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:[EMAIL PROTECTED]
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(MiniRisMonitor.

java

:359)
   at
com.brit.MiniRIS.Servlet.AdminServlet.showAdminServlet(AdminServlet.jav

a:63

3)
   at
com.brit.MiniRIS.Servlet.AdminServlet.parseHeader(AdminServlet.java:345

)

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(InvokerServlet

.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(Applic

atio

nFilterChain.java:237)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil

terC

hain.java:157)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal

ve.j

ava:214)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC

onte

xt.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:

520)

   at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo

ntex

tValve.java:198)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal

ve.j

ava:152)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC

onte

xt.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:

520)

   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav

a:13

7)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC

onte

xt.java:104)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav

a:11

7)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC

onte

xt.java:102)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:

520)

   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve

.jav

a:109)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC

onte

xt.java:104)
   at
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve

.jav

a:169)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC

onte

xt.java:102)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:

520)

   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   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.java

:675

)
   at

org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)

   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo

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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 1:19 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail:

[EMAIL PROTECTED]





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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to