Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
NoClassDefFoundError

NoClassDefFoundError

2004-01-14       - By Michael Duffy

 Back
Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  


I believe Tomcat ignores any system environment
variable CLASSPATH.

When Tomcat starts, it assumes the CLASSPATH for your
Web app consists of:

(1) The rt.jar, of course,
(2) All the JARs in TOMCAT_HOME/common/lib, which are
visible to all apps,
(3) All the JARs in the TOMCAT_HOME/server/lib, which
are visible only to Tomcat,
(4) All the JARs in your WEB-INF/lib, which are
visible only to your app,
(5) All the .class files in your WEB-INF/classes,
which are visible only to your app.

That's it.

If your Web app needs a JAR, put it in the WEB-INF/lib
and you should be all set. - MOD


--- Mike Curwen <mikec@(protected)> wrote:
> Did you read the document Yoav mentioned?
>  
> I'll give a tiny push...
>
>
http://jakarta.apache.org/tomcat/tomcat-4 (See http://cat-4.ora-code.com).1-doc/class-loader-howto.html
>
> > -- --Original Message-- --
> > From: Xavier ANDRE
> [mailto:xavier.andre@(protected)]
> > Sent: Wednesday, January 14, 2004 11:27 AM
> > To: Tomcat Users List
> > Subject: RE: NoClassDefFoundError
> >
> >
> > If I put a jar file in classpath, how can I do
> that ?
> >
> > In which directory do I put my jar file ?
> > Must I modify a file ?
> >
> > Xavier Andr?
> >  
> > -- --Message d'origine-- --
> > De?: Shapira, Yoav [mailto:Yoav.Shapira@(protected)]
> > Envoy�: mercredi 14 janvier 2004 14:45
> > : Tomcat Users List
> > Objet?: RE: NoClassDefFoundError
> >
> >
> > Howdy,
> > Read the classloader how-to in the tomcat
> documentation.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> > >-- --Original Message-- --
> > >From: Xavier ANDRE
> [mailto:xavier.andre@(protected)]
> > >Sent: Wednesday, January 14, 2004 8:45 AM
> > >To: Tomcat Users List
> > >Subject: RE: NoClassDefFoundError
> > >
> > >Thank you Yaov for your answer.
> > >
> > >I don't understand why I've got to put a jar
> file, since the path to
> > >acces to my classes is in the classpth of the JVM
> which
> > launchs Tomcat.
> > >
> > >
> > >Could you help me on that point ?
> > >
> > >
> > >Xavier Andr?
> > >
> > >-- --Message d'origine-- --
> > >De?: Shapira, Yoav [mailto:Yoav.Shapira@(protected)]
> > >Envoy�: mercredi 14 janvier 2004 14:40
> > > : Tomcat Users List
> > >Objet?: RE: NoClassDefFoundError
> > >
> > >
> > >Howdy,
> > >We got your email, rest assured ;)  I noticed a
> couple of things:
> > >
> > >First, the stack trace is for a
> ClassNotFoundException,
> > which is very
> > >different from a NoClassDefFoundError that you
> mention in
> > your message.
> > >It's usually easier to fix: place the jar with
> the missing
> > class on the
> > >classpath.
> > >
> > >Second, you're using tomcat 3.x, which at this
> point in time
> > means not
> > >many people can help you.  Perhaps someone will,
> but if you can then
> > >you should consider upgrading to a more recent
> tomcat version.
> > >
> > >Yoav Shapira
> > >Millennium ChemInformatics
> > >
> > >
> > >>-- --Original Message-- --
> > >>From: Xavier ANDRE
> [mailto:xavier.andre@(protected)]
> > >>Sent: Wednesday, January 14, 2004 5:36 AM
> > >>To: Tomcat Users List
> > >>Subject: RE: NoClassDefFoundError
> > >>
> > >>Please I really need help !!!
> > >>
> > >>Is someone receive my mail ?
> > >>
> > >>
> > >>-- --Message d'origine-- --
> > >>De?: Xavier ANDRE
> > >>Envoy�: mercredi 14 janvier 2004 09:38
> > >> : Tomcat Users List
> > >>Objet?: NoClassDefFoundError
> > >>Importance?: Haute
> > >>
> > >>Hi,
> > >>
> > >>
> > >>
> > >>I've got en NoClassDefFoundError when I'm
> calling a method
> > of a SOAP
> > >>service which is deployed on my Tomcat Server.
> > >>
> > >>
> > >>
> > >>To start TOMCAT, I use these code, which is
> launched in my JVM :
> > >>
> > >>
> > >>
> > >>String[] args = new String[]{"start"};
> > >>
> > >>
> > >>org.apache.tomcat.startup.Main.main(args);
> > >>
> > >>
> > >>
> > >>The version of Tomcat is 3.3a.
> > >>
> > >>
> > >>
> > >>The error is :
> > >>
> > >>
> > >>
> > >><?xml version='1.0' encoding='UTF-8 (See http://UTF-8.ora-code.com)'?>
> > >>
> > >><SOAP-ENV:Envelope
> >
>
>>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
>>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > >>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > >>
> > >><SOAP-ENV:Body>
> > >>
> > >><SOAP-ENV:Fault
> >
>
>>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> > >>
> >
>
>><faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>
> > >>
> > >><faultstring>Unable to resolve target object:
> > >>lib123.soap.sms.SmsDriverSOAP</faultstring>
> > >>
> >
>
>><faultactor>/soap/servlet/messagerouter/</faultactor>
> > >>
> > >><detail>
> > >>
> > >><stackTrace>java.lang.ClassNotFoundException Source code of java.lang.ClassNotFoundException:
> > >>lib123.soap.sms.SmsDriverSOAP
> > >>
> > >>
> > >>
> > >>I don't understand why the class
> > lib123.soap.sms.SmsDriverSOAP can't
> > >>be found since is in my JVM's classpath ?
> > >>
> > >>
> > >>
> > >>Thanks
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
>
>>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> > -- ------
> > >>To unsubscribe, e-mail:
> tomcat-user-unsubscribe@(protected)
> > >>For additional commands, e-mail:
> tomcat-user-help@(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:
> tomcat-user-unsubscribe@(protected)
> > >For additional commands, e-mail:
> tomcat-user-help@(protected)
> > >
> > >
> >
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > >To unsubscribe, e-mail:
> tomcat-user-unsubscribe@(protected)
> > >For additional commands, e-mail:
> tomcat-user-help@(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:
> tomcat-user-unsubscribe@(protected)
> > For additional commands, e-mail:
> tomcat-user-help@(protected)
> >
> >
> >
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > To unsubscribe, e-mail:
> tomcat-user-unsubscribe@(protected)
> > For additional commands, e-mail:
> tomcat-user-help@(protected)
> >
>
>
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail:
> tomcat-user-help@(protected)
>


__ ____ ____ ____ ____ ____ ______
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.