You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sanghamitra Roy <we...@yahoo.com> on 2004/09/29 21:39:26 UTC

Deploying struts

I have  Tomcat 3.3.1. I have downloaded the struts 1.2.2 and unzipped to the directory C:\struts. 
I have copied over the "struts-examples.war" files in the directory C:\struts\jakarta-struts-1.2.2\dist\webapps to the $TOMCAT_HOME\webapps directory as well as unjarred them to 
$TOMCAT_HOME\webapps\struts-examples. 
I have downloaded sax2r2.jar, unjarred it and added sax.jar to the classpath. Have also copied sax.jar to the $TOMCAT_HOME\webapps\struts-examples\WEB-INF directory.
I can run the struts-documentation fine but when I try to run the struts-examples I get the following error
Error: 500Location: /struts-examples/welcome.doInternal Servlet Error:

java.lang.NoClassDefFoundError: org/xml/sax/SAXException	at java.lang.Class.newInstance0(Native Method)	at java.lang.Class.newInstance(Class.java:232)	at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:346)	at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439)	at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228)	at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)	at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)	at java.lang.Thread.run(Thread.java:479)

Please can someone help me run the examples?

Thanks,

WA.

 
 
 
 
 

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

Re: Deploying struts

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Hi there,
you should put it in the WEB-INF/lib directory. However the 
struts-documentation should run straight out of the box. I suspect you 
have a configuration failure somewhere.

On 09/29/2004 08:39 PM Sanghamitra Roy wrote:
> I have  Tomcat 3.3.1. I have downloaded the struts 1.2.2 and unzipped to the directory C:\struts. 
> I have copied over the "struts-examples.war" files in the directory C:\struts\jakarta-struts-1.2.2\dist\webapps to the $TOMCAT_HOME\webapps directory as well as unjarred them to 
> $TOMCAT_HOME\webapps\struts-examples. 
> I have downloaded sax2r2.jar, unjarred it and added sax.jar to the classpath. Have also copied sax.jar to the $TOMCAT_HOME\webapps\struts-examples\WEB-INF directory.
> I can run the struts-documentation fine but when I try to run the struts-examples I get the following error
> Error: 500Location: /struts-examples/welcome.doInternal Servlet Error:
> 
> java.lang.NoClassDefFoundError: org/xml/sax/SAXException	at java.lang.Class.newInstance0(Native Method)	at java.lang.Class.newInstance(Class.java:232)	at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:346)	at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439)	at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228)	at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)	at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)	at java.lang.Thread.run(Thread.java:479)
> 
> Please can someone help me run the examples?
> 
> Thanks,
> 
> WA.
> 
>  
>  
>  
>  
>  
> 
> 		
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org