tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Location of third party jar files.
Date Thu, 09 Sep 2004 12:50:36 GMT

Hi,
Hmm, that's very strange.  The only reason that comes to mind for this
is other JavaMail API classes repackaged in a JAR either in common/lib
or your WEB-INF/lib.  For example, j2ee.jar contains these classes and
should be avoided for this reason.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Kyle A. Boyd [mailto:kboyd@brit.com]
>Sent: Wednesday, September 08, 2004 5:04 PM
>To: Tomcat Users List
>Subject: Re: Location of third party jar files.
>
>Yes, it is in tomcat/webapps/MyServer/WEB-INF/lib/. If I move it to
>tomcat/common/lib/ and restart Tomcat everything works ok.
>
>Kyle
>
>Shapira, Yoav wrote:
>
>> Hi,
>> And, is Sun's mail.jar in WEB-INF/lib?
>>
>> Yoav Shapira
>> Millennium Research Informatics
>>
>>
>>
>>>-----Original Message-----
>>>From: Kyle A. Boyd [mailto:kboyd@brit.com]
>>>Sent: Wednesday, September 08, 2004 3:57 PM
>>>To: Tomcat Users List
>>>Subject: Re: Location of third party jar files.
>>>
>>>Here is the exception:
>>>
>>>2004-09-08 12:40:30 StandardWrapperValve[invoker]: Servlet.service()
>>
>> for
>>
>>>servlet invoker threw exception
>>>java.lang.NoClassDefFoundError: javax/mail/MessagingException
>>>    at java.lang.Class.forName0(Native Method)
>>>    at java.lang.Class.forName(Class.java:115)
>>>    at com.brit.comm.EmailManager.addSender(EmailManager.java:646)
>>>    at
>>>com.brit.comm.EmailManager.readPropertiesFile(EmailManager.java:618)
>>>    at com.brit.comm.EmailManager.<init>(EmailManager.java:82)
>>>    at com.brit.MiniRIS.Comm.Email.<init>(Email.java:91)
>>>    at
>>>com.brit.MiniRIS.Servlet.MiniRisMonitor.getEmailManager(MiniRisMonito
r.
>>
>> java
>>
>>>:359)
>>>    at
>>>com.brit.MiniRIS.Servlet.AdminServlet.showAdminServlet(AdminServlet.j
av
>>
>> a:63
>>
>>>3)
>>>    at
>>>com.brit.MiniRIS.Servlet.AdminServlet.parseHeader(AdminServlet.java:3
45
>>
>> )
>>
>>>    at
>>
>> com.brit.MiniRIS.Servlet.AdminServlet.doGet(AdminServlet.java:221)
>>
>>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>    at
>>>org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServl
et
>>
>> .jav
>>
>>>a:419)
>>>    at
>>>org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java
:1
>>
>> 33)
>>
>>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>    at
>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
ic
>>
>> atio
>>
>>>nFilterChain.java:237)
>>>    at
>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
il
>>
>> terC
>>
>>>hain.java:157)
>>>    at
>>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
al
>>
>> ve.j
>>
>>>ava:214)
>>>    at
>>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eC
>>
>> onte
>>
>>>xt.java:104)
>>>    at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:
>>
>> 520)
>>
>>>    at
>>>org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
Co
>>
>> ntex
>>
>>>tValve.java:198)
>>>    at
>>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
al
>>
>> ve.j
>>
>>>ava:152)
>>>    at
>>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eC
>>
>> onte
>>
>>>xt.java:104)
>>>    at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:
>>
>> 520)
>>
>>>    at
>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
av
>>
>> a:13
>>
>>>7)
>>>    at
>>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eC
>>
>> onte
>>
>>>xt.java:104)
>>>    at
>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
av
>>
>> a:11
>>
>>>7)
>>>    at
>>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eC
>>
>> onte
>>
>>>xt.java:102)
>>>    at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:
>>
>> 520)
>>
>>>    at
>>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve
>>
>> .jav
>>
>>>a:109)
>>>    at
>>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eC
>>
>> onte
>>
>>>xt.java:104)
>>>    at
>>>org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperVal
ve
>>
>> .jav
>>
>>>a:169)
>>>    at
>>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eC
>>
>> onte
>>
>>>xt.java:102)
>>>    at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:
>>
>> 520)
>>
>>>    at
>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>>    at
>>>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
>>>    at
>>>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>>>    at
>>
>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>>
>>>    at
>>
>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>>
>>>    at
>>>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va
>>
>> :675
>>
>>>)
>>>    at
>>
>> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>>
>>>    at
>>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
oo
>>
>> l.ja
>>
>>>va:683)
>>>    at java.lang.Thread.run(Thread.java:479)
>>>
>>>
>>>Kyle
>>>
>>>Shapira, Yoav wrote:
>>>
>>>
>>>>Hi,
>>>>What's the stack trace for the NoClassDefFoundError?  Don't mistake
>>
>> that
>>
>>>>for a ClassNotFoundException.
>>>>
>>>>Yoav Shapira
>>>>Millennium Research Informatics
>>>>
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>From: Kyle A. Boyd [mailto:kboyd@brit.com]
>>>>>Sent: Wednesday, September 08, 2004 2:51 PM
>>>>>To: Tomcat Users List
>>>>>Subject: Re: Location of third party jar files.
>>>>>
>>>>>Ok, I moved them to tomcat/webapps/MyServer/WEB-INF/lib/ and I am
now
>>>>>getting a java.lang.NoClassDefFoundError
>>>>>
>>>>>Kyle
>>>>>
>>>>>Shapira, Yoav wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>The right and best way is to include copies of them in your
>>>>
>>>>WEB-INF/lib
>>>>
>>>>
>>>>>>directory.  Don't symlink, don't put them in common/lib or
>>>>
>>>>shared/lib,
>>>>
>>>>
>>>>>>don't put them on the bootstrap classpath.
>>>>>>
>>>>>>Yoav Shapira
>>>>>>Millennium Research Informatics
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Kyle A. Boyd [mailto:kboyd@brit.com]
>>>>>>>Sent: Wednesday, September 08, 2004 1:19 PM
>>>>>>>To: tomcat-user@jakarta.apache.org
>>>>>>>Subject: Location of third party jar files.
>>>>>>>
>>>>>>>We are using a couple of third party jar files. I can only get
our
>>>>>>>application to see them if I add them to the tomcat/common/lib/
>>>>>>>directory. This is inconvenient for our setup. Is there any other
>>
>> way
>>
>>>>>>>for Tomcat to find the jar files in the classpath (works with
>>
>> Tomcat
>>
>>>>>>>3.2), a .xml file, or with a symbolic link?
>>>>>>>
>>>>>>>We are using Tomcat 5.0.27.
>>>>>>>
>>>>>>>Thanks,
>>>>>>>Kyle
>>>>>>>
>>>>>>>
>>>>>>>-----------------------------------------------------------------
--
>>
>> --
>>
>>>>>>>To unsubscribe, e-mail:
tomcat-user-unsubscribe@jakarta.apache.org
>>>>>>>For additional commands, e-mail:
>>
>> tomcat-user-help@jakarta.apache.org
>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>This e-mail, including any attachments, is a confidential business
>>>>>
>>>>>communication, and may contain information that is confidential,
>>>>>proprietary and/or privileged.  This e-mail is intended only for
the
>>>>>individual(s) to whom it is addressed, and may not be saved,
copied,
>>>>>printed, disclosed or used by anyone else.  If you are not the(an)
>>>>
>>>>intended
>>>>
>>>>
>>>>>recipient, please immediately delete this e-mail from your computer
>>>>
>>>>system
>>>>
>>>>
>>>>>and notify the sender.  Thank you.
>>>>>
>>>>>
>>>>>>------------------------------------------------------------------
--
>>
>> -
>>
>>>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail:
tomcat-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>-------------------------------------------------------------------
--
>>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail:
tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>This e-mail, including any attachments, is a confidential business
>>>
>>>communication, and may contain information that is confidential,
>>>proprietary and/or privileged.  This e-mail is intended only for the
>>>individual(s) to whom it is addressed, and may not be saved, copied,
>>>printed, disclosed or used by anyone else.  If you are not the(an)
>>
>> intended
>>
>>>recipient, please immediately delete this e-mail from your computer
>>
>> system
>>
>>>and notify the sender.  Thank you.
>>>
>>>>
>>>>--------------------------------------------------------------------
-
>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>
>>
>> This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender.  Thank you.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message