Hi,
Read http://java.sun.com/j2se/1.4.2/docs/guide/standards/.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Tom Bednarz [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 3:49 AM
>To: Tomcat Users List
>Subject: Tomcat 5, Velocity and XML Parser issues
>
>Hi,
>
>I just experienced a problem with Velocity and Tomcat 5.0.19. I use
>Velocity 1.3, Velocity Tools 1.0, Struts 1.1 and Tomcat 5.0.19.
>
>When starting my Web-App I got the following error:
>
>2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity   [info]
Velocity
>successfully started.
>2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity   [info] Using
>toolbox configuration file '/WEB-INF/toolbox.xml'
>2004-04-05 16:18:02 StandardContext[/Echnaton] Velocity   [info]
>ServletToolboxManager: Loading toolbox...
>2004-04-05 16:18:02 StandardContext[/Echnaton]StandardWrapper.Throwable
>java.lang.NoClassDefFoundError: org/dom4j/io/SAXReader
> at
>org.apache.velocity.tools.view.XMLToolboxManager.load(XMLToolboxManager
.jav
>a:205)
> at
>org.apache.velocity.tools.view.servlet.ServletToolboxManager.getInstanc
e(Se
>rvletToolboxManager.java:211)
> at
>org.apache.velocity.tools.view.servlet.VelocityViewServlet.initToolbox(
Velo
>cityViewServlet.java:252)
> at
>org.apache.velocity.tools.view.servlet.VelocityViewServlet.init(Velocit
yVie
>wServlet.java:219)
> at
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:1
>044)
> at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
> at
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
java
>:3959)
> at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:428
4)
> at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
>866)
> at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
> at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
> at
>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
>java:320)
> at
org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
> at
>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
a:72
>7)
> at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
> at
>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
94)
> at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
>rt.java:166)
> at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
> at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
> at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
> at
>org.apache.catalina.core.StandardService.start(StandardService.java:519
)
> at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
>
>
>On the Velocity-user mailinglist I was told to copy the dom4j.jar file
into
>$CATALINA_HOME/common/endorsed and that solved the problem. So far
(Tomcat
>4.x) I put the dom4j.jar into the lib directory of the WEB-INF of my
web
>app.
>
>Could anybody please explain me what this endorsed directory is all
about?
>Which libraries do I need to put where and why is it NOT possible to
put
>libraries such as dom4j.jar into my Web-Application. Or is there
anything I
>am doing wrong when deploying my web app to Tomcat 5?
>
>Any clarification, additional documentation etc is greatly appreciated.
>
>Tom



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to