Paul Brown wrote:
> 
> Just seen this in one of the logs:
> 
> 2002-02-19 14:50:49 StandardContext[/messagelets]: Servlet /messagelets
> threw load() exception
> javax.servlet.ServletException: Error instantiating servlet class

.....

> java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
>         at java.lang.Class.newInstance0(Native Method)
>         at java.lang.Class.newInstance(Class.java:237)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav

> the digester stuff is in tomcat_home\server\libs, by the way
> surely, it doesnt have to be put in the WAR ?

If the digester is a separate WAR or JAR, put it in 
...webapps/messagelets/WEB-INF/lib 

> 1. i've built my WAR (everythings in there, i checked)
> 
> 2. shut down tomcat 4.0.1
> 
> 3. deleted the dev tree webapps\messagelets and replaced it
> with the messagelets.war
I think the war needs to go in messagelets dir ==>

.../webapps/messagelets

> 
> 4. added a <context> to server.xml ...
> <Context path="/simplepublisherexample" docBase="messagelets"
> debug="0" reloadable="false"/>

If you don't need special stuff (like customized logfile, or reloadable
classes), you *could* omit the entry from server.xml, but it won't
hurt either.

> 
> 5. started up tomcat
> 
> logging that my servlet does on init() is not seen
> 
> when i run Tomcat through JBuilder6 it all works and i see my
> servlets init() logging
> 
> have i missed a step out?
> 
> should System.out logging in a servlet appear through the Tomcat
> console (inside overloaded init() method)?

Yep. You should look into logging your stuff using the log api one day,
but System.out should work fine.

Hope this helps,
Eelco

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to