Hi
i have put the Digester jar inside my war and i still get the same
problem at deployment time.
ie. this stacktrace
2002-02-19 15:35:07 StandardContext[/messagelets]: Servlet /messagelets
threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.commons.messagelet.ManagerServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:894)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3272)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3393
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:278)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:680)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319)
at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:688)
at java.lang.Thread.run(Thread.java:484)
----- Root Cause -----
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
a:885)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3272)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3393
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:278)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:680)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319)
at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:688)
at java.lang.Thread.run(Thread.java:484)
-----Original Message-----
From: Eelco den Heijer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 3:26 PM
To: Tomcat Users List
Subject: Re: Newbie deployment problem
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]>
This message contains confidential information and is intended only for the named
individual
and may not be disseminated without prior permission. If you are not the named
addressee,
you should not disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this message in error and delete this
e-message from your system. E-mail transmission cannot be guaranteed to be secure or
error-free as
information could be intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept liability for
any
errors or omissions in the contents of this Message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version. This
message
is provided for informational purposes and should not be construed as a solicitation or
offer to buy or sell any software or services.
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>