tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bedell, Kevin" <KBed...@cmgi.com>
Subject RE: servlet cannot find depending JAR file
Date Mon, 19 Jun 2000 20:05:12 GMT
Don't you hate these problems:

Is:		c\apps\java\javamail-1.1.3\mail.jar

Should Be:	c:\apps\java\javamail-1.1.3\mail.jar

Don't forget the colon ":" - Just takes a second set of eyes...




> -----Original Message-----
> From: Peter Jasko [mailto:peter.jasko@liquidexchange.co.uk]
> Sent: Monday, June 19, 2000 11:32 AM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: servlet cannot find depending JAR file
> 
> 
> I get a similar problem using Tomcat on NT but in my case 
> I've checked and
> the JAR file is in Tomcat's classpath:
> 
> org.apache.jasper.JasperException: Unable to compile class for
> JSPC:\Apps\java\tomcat\work\localhost_8080%2Fv\_0002ferror_000
> 2ejsperror_jsp
> _0.java:15: Package javax.mail not found in import.
> import javax.mail.*;
> 
> Starting tomcat install="c:\apps\java\tomcat" 
> home="C:\Apps\java\tomcat"
> classPa
> th="c:\apps\java\tomcat\classes;c:\apps\java\tomcat\lib\webser
> ver.jar;c:\app
> s\ja
> va\tomcat\lib\jasper.jar;c:\apps\java\tomcat\lib\xml.jar;c:\ap
> ps\java\tomcat
> \lib
> \servlet.jar;c:\apps\java\jdk1.3\lib\tools.jar;.;c:\apps\java\
> jaf-1.0.1\ac
> tivation.jar;c\apps\java\javamail-1.1.3\mail.jar;"
> 
> Any clues as to what might be the problem?
> 
> Thanks in advance,
> Peter
> 
> -----Original Message-----
> From: Bedell, Kevin [mailto:KBedell@cmgi.com]
> Sent: Monday, June 19, 2000 3:05 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: RE: servlet cannot find depending JAR file
> 
> 
> When you restart Tomcat, it prints out the CLASSPATH it is 
> using - this is
> after it has looked at the TOMCAT_HOME/lib directory and 
> appended every file
> in the directory to the classpath.
> 
> See if your .jar file is on this classpath it displays on startup. Or,
> redirect output to a file called startup.log and view it 
> after startup.
> 
> This behavior is controlled by the file tomcat.sh (or 
> tomcat.bat on Win32).
> Evaluate the execution of this startup script and you should 
> be able to
> isolate the issue.
> 
> 
> 
> > -----Original Message-----
> > From: H.vanderLinden@MI.UNIMAAS.NL
> > [mailto:H.vanderLinden@MI.UNIMAAS.NL]
> > Sent: Monday, June 19, 2000 5:20 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: RE: servlet cannot find depending JAR file
> >
> >
> > Hello Ken,
> >
> > I (or rather my co-worker) will be testing this.
> > Somewhere on this list I read that webapp specific jar files
> > should go into
> > the WEB-INF/lib dir, while
> > global jar files should go into the jakarta-tomcat/lib
> > directory. Is this
> > true?
> >
> > If so, why did my SaxonServlet complain he couldn't find this
> > saxon.jar
> > while it's in jakarta-tomcat/lib in the CLASSPATH? Could 
> that also be
> > because of the examples.war file present?
> >
> > Bye,
> >
> > Helma van der Linden
> >
> >
> > -----Original Message-----
> > From: Ken Baltz [mailto:KBaltz@responsenetworks.com]
> > Sent: Friday, June 16, 2000 5:39 PM
> > To: 'tomcat-user@jakarta.apache.org'
> > Subject: RE: servlet cannot find depending JAR file
> >
> >
> > I believe the reason you didn't find WEB-INF/lib for the
> > examples app is
> > because it comes in a .war file.  Just expand this file in
> > place using the
> > jar command.  Rename the examples.war to be sure it's not
> > being used.  Then
> > I think Tomcat will find what you want it to find.
> >
> > K.C.
> >
> > > -----Original Message-----
> > > From: H.vanderLinden@MI.UNIMAAS.NL
> > > [mailto:H.vanderLinden@MI.UNIMAAS.NL]
> > > Sent: Friday, June 16, 2000 9:52 AM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: RE: servlet cannot find depending JAR file
> > >
> > >
> > > Hello Ken,
> > >
> > > Thanks for the answer but sorry, this is not the ultimate answer.
> > >
> > > To make life easier I used the 'examples' web app and 
> looked for the
> > > WEB-INF/lib directory there.
> > > Since it wasn't there I created it and filled it with
> > > saxon.jar and the
> > > ParserManager.properties files.
> > > Shutting down and starting up Tomcat returned a message on
> > > 'error loading
> > > default servlet'.
> > >
> > >
> > > Bye,
> > >
> > > Helma van der Linden
> > > Medical Informatics
> > > h.vanderlinden@mi.unimaas.nl
> > >
> > > > -----Original Message-----
> > > > From: Ken Baltz [mailto:KBaltz@responsenetworks.com]
> > > > Sent: Friday, 16 June 2000 15:23
> > > > To: 'tomcat-user@jakarta.apache.org'
> > > > Subject: RE: servlet cannot find depending JAR file
> > > >
> > > >
> > > > I'm surprised the way you have it doesn't work.  However,
> > there is a
> > > > "correct" place for .jar files.  This is in the WEB-INF/lib
> > > > directory of
> > > > your web app.  Any jar files found in this directory get
> > > added to the
> > > > classpath for that web app.  jakarta-tomcat/lib should be
> > > reserved for
> > > > things needed to start Tomcat, I believe.
> > > >
> > > > K.C.
> > > >
> > > > > -----Original Message-----
> > > > > From: H.vanderLinden@MI.UNIMAAS.NL
> > > > > [mailto:H.vanderLinden@MI.UNIMAAS.NL]
> > > > > Sent: Friday, June 16, 2000 8:24 AM
> > > > > To: tomcat-user@jakarta.apache.org
> > > > > Subject: servlet cannot find depending JAR file
> > > > >
> > > > >
> > > > > Hello,
> > > > >
> > > > > if this is not the correct place, please tell me where I
> > > > > should post this
> > > > > question.
> > > > >
> > > > > Situation:
> > > > >
> > > > > 1. I've developed some XML + XSL files using saxon by Michael
> > > > > Kay. This
> > > > > works.
> > > > > 2. I've developed a simple JSP that sends these files in the
> > > > > correct format
> > > > > to Michael's SaxonServlet. I've used
> > > > > Tomcat with the Sun JDK 1.2.2 on a Windows 98 PC. This
> > works too.
> > > > > 3. I have a Redhat 6.2 Linux machine (Intel platform)
> > > > > installed with Apache
> > > > > and Tomcat running.
> > > > > 4. Apache correctly handles my standard HTML files.
> > > > > 5. Tomcat correctly handles all example JSP's and example
> > > servlets.
> > > > > 6. Tomcat also correctly handles a simple JSP I wrote myself
> > > > > (and put in the
> > > > > examples directory).
> > > > >
> > > > > Problem:
> > > > > My JSP (step 2) starts the SaxonServlet, but that one
> > > finishes with
> > > > > 'NoClassDefFound' org/icl/saxon/<somefunction>. This is
> > > > > stored in saxon.jar
> > > > > which I added to the jakarta-tomcat/lib directory. Saxon.jar
> > > > > also shows up in the classpath displayed by startup.sh of
> > > > > tomcat. Saxon.jar
> > > > > depends on a file called 'ParserManager.properties' file
> > > > > which should be in
> > > > > a directory on the classpath. So I put it in a separate
> > > > > directory under lib
> > > > > (jakarta-tomcat/lib/test) which I added to the classpath.
> > > > >
> > > > > When I call the SaxonServlet with parameters right from the
> > > > > 'commandline' of
> > > > > my browser (IE5) I get the same error.
> > > > >
> > > > > According to Michael Kay the problem is in the classpath. So,
> > > > > can anyone
> > > > > tell me where I should store the saxon.jar file?
> > > > >
> > > > > Thanks in advance.
> > > > >
> > > > > Bye,
> > > > >
> > > > > Helma van der Linden
> > > > > Medical Informatics
> > > > > h.vanderlinden@mi.unimaas.nl
> > > > >
> > > > > --------------------------------------------------------------
> > > > > ------------
> > > > > To unsubscribe, email:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > > > > For additional commmands, email:
> > > tomcat-user-help@jakarta.apache.org
> > > > >
> > > >
> > > > --------------------------------------------------------------
> > > > ------------
> > > > To unsubscribe, email: 
> tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commmands, email:
> > tomcat-user-help@jakarta.apache.org
> > > >
> > >
> > > --------------------------------------------------------------
> > > ------------
> > > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commmands, email: 
> tomcat-user-help@jakarta.apache.org
> > >
> >
> > --------------------------------------------------------------
> > ------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
> >
> > --------------------------------------------------------------
> > ------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
> >
> 
> --------------------------------------------------------------
> ------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 
> 
> --------------------------------------------------------------
> ------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 

Mime
View raw message