struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefan.hada...@dsv-gruppe.de
Subject HowTo install an Struts 1.1 application on Tomcat 3.2.4
Date Mon, 31 Mar 2003 10:03:57 GMT
Hello,

I tried to install the examples application, which comes with Struts 1.1
RC1 on Tomcat 3.2.4. When I put the struts-example.war into the webapps
directory and restart Tomcat, I get an exception (here is the complete
stack trace):

[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
<java.l
ang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFacto
ry>java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResou
rcesFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:182)
        at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR
esourcesFactory.java:192)
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageRe
sources.java:576)
        at
org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:138)
        at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR
esourcesFactory.java:192)
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageRe
sources.java:576)
        at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.jav
a:1276)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240)

[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
<java.l
ang.ExceptionInInitializerError>java.lang.ExceptionInInitializerError:
java.lang
.NullPointerException
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageRe
sources.java:577)
        at
org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:138)
        at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR
esourcesFactory.java:192)
        at
org.apache.struts.util.MessageResources.getMessageResources(MessageRe
sources.java:576)
        at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.jav
a:1276)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240)

cannot load servlet name: action: null



Because Struts 1.1 needs an JAXP 1.1 compatible XML parser, I renamed
crimson.jar to zcrimson.jar (and jaxp.jar in the same way) and put
xercesImpl.jar and xmlParserAPIs.jar from Xerces 2.3.0 into the lib
directory of Tomcat. Even when I deleted the XML parser library, which
ships with Tomcat, I get the exception.

What else I have to configure, to get the examples application work?

Greetings
Stefan
____________________________________________________________________________

Deutscher Sparkassen Verlag GmbH

Am Wallgraben 115
70565 Stuttgart
Telefon: 0711/782-0
Webseite: http://www.dsv-gruppe.de
____________________________________________________________________________

Dieses E-Mail einschließlich evtl. angehängter Dateien enthält vertrauliche
und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige
Adressat sind und Sie dieses E-Mail irrtümlich erhalten haben, dürfen Sie
weder den Inhalt dieses E-Mails nutzen noch dürfen Sie die evtl.
angehängten Dateien öffnen und auch nichts kopieren oder
weitergeben/verbreiten.
Bitte verständigen Sie den Absender und löschen Sie dieses E-Mail und evtl.
angehängte Dateien umgehend. Vielen Dank!
____________________________________________________________________________



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


Mime
View raw message