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 Fri, 16 Jun 2000 15:45:16 GMT
The WEB-INF/lib is an optional directory. If there are no .JAR files needed
for the webapp, then it is not needed.



> -----Original Message-----
> From: Ken Baltz [mailto:KBaltz@responsenetworks.com]
> Sent: Friday, June 16, 2000 11:39 AM
> 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
> 

Mime
View raw message