tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Stoessel <vi...@digex.net>
Subject Re: same here
Date Tue, 11 Apr 2000 17:59:10 GMT
Thank you so very much but I bit the bullet and unpacked today's
binary of tomcat and now everything works as expected.
But I am still going to troubleshoot because I like compiling
my own apps.
Later.


"Craig R. McClanahan" wrote:
> 
> Vincent Stoessel wrote:
> 
> > I'm having the same problem with trying to load my php servlet.
> > I put phpsrvlt.jar in the WEB-INF/lib/ as well as extracted
> > (jar -xvf phpsrvlt.jar ) the jar in the WEB-INF/classes directory
> > to no avail. Using Blackdown JDK 1.2RC and tomcat 3.1beta and latest
> > php4 cvs.
> >
> > I still get:
> >
> > java.lang.NoClassDefFoundError: net/php/servlet
> >         at java.lang.Class.newInstance0(Native Method)
> >         at java.lang.Class.newInstance(Compiled Code)
> >         at org.apache.tomcat.core.ServletWrapper.loadServlet(Compiled Code)
> >         at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> >         at org.apache.tomcat.core.ContextManager.service(Compiled Code)
> >         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
> >         at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> >         at java.lang.Thread.run(Compiled Code)
> >
> > but it's there, I swear it's there!
> >
> 
> Speaking as one who as been bit by this, there is a very important difference between
> ClassNotFoundException and NoClassDefFoundError.
> 
> The former error (ClassNotFoundException) is what you get when you refer to a class that
is not on
> your class path.  The usual fix is to put the class's JAR file in the right place, or
fix an
> environment variable, or whatever.  No big deal.
> 
> However, ClassNotFoundException is different.  It means that the class you are trying
to load (the
> PHP servlet in this scenario) is *itself* making references to some other classes (perhaps
it
> defines an instance variable or return type of class Foo, or this class extends a superclass
or
> implements an interface -- it can be lots of things), and that "other" class cannot be
located.
> Which class is the real offender, you might ask?  That's the rub -- you cannot tell from
the error
> message!  The only thing you can do is to look at the source code of the class reporting
the error,
> and try to figure out what in the heck it is referring to that it cannot find.
> 
> Anyone want to go dig into the PHP servlet and volunteer to tell us what you found?
> 
> Craig McClanahan
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

-- 
Vincent Stoessel - Major Customer Center, Manager 
vince@digex.net - 301 847 6548 (direct) 301 847 5082 (fax) 
24-hour Support Line - 301 847 5200 or 1 800 969 9090
Intermedia Communications Business Internet

Mime
View raw message