struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ryan" <seamu...@hotmail.com>
Subject PropertyMessageResourcesFactory ClassNotFoundException
Date Wed, 16 Jul 2003 00:25:31 GMT
I have a fresh installation of the following on Windows XP:

 

- Java 1.3.1_08 SDK

- Tomcat 3.2.3

- Struts 1.1

 

If I run Tomcat it starts fine, and all the examples work.

 

However, if I drop the Struts 1.1 "struts-blank.war" or "struts-example.war"
into the tomcat/webapps dir, I get the following exception when starting
Tomcat:

 

2003-07-15 16:44:40 - ContextManager: Adding context Ctx( /examples )
2003-07-15 16:44:40 - ContextManager: Adding context Ctx( /admin ) Starting
tomcat. Check logs/tomcat.log for error messages 2003-07-15 16:44:40 -
ContextManager: Adding context Ctx(  ) 2003-07-15 16:44:40 - ContextManager:
Adding context Ctx( /struts-example ) 2003-07-15 16:44:40 - ContextManager:
Adding context Ctx( /test ) [ERROR] MessageResourcesFactory -
-MessageResourcesFactory.createFactory <java.

ang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFact

ry>java.lang.ClassNotFoundException: 

ry>org.apache.struts.util.PropertyMessageReso

rcesFactory

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.ja

a:207)

        at
org.apache.struts.util.MessageResourcesFactory.createFactory(Message

esourcesFactory.java:192)

        at
org.apache.struts.util.MessageResources.getMessageResources(MessageR

sources.java:576)

        at
org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:134)

        at
org.apache.struts.util.MessageResourcesFactory.createFactory(Message

esourcesFactory.java:192)

        at
org.apache.struts.util.MessageResources.getMessageResources(MessageR

sources.java:576)

        at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.ja

a:1329)

        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)

        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(LoadO

StartupInterceptor.java:130)

        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.jav

: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:235)

 

[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
<java.

ang.ExceptionInInitializerError>java.lang.ExceptionInInitializerError:
java.lan .NullPointerException

        at
org.apache.struts.util.MessageResources.getMessageResources(MessageR

sources.java:577)

        at
org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:134)

        at
org.apache.struts.util.MessageResourcesFactory.createFactory(Message

esourcesFactory.java:192)

        at
org.apache.struts.util.MessageResources.getMessageResources(MessageR

sources.java:576)

        at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.ja

a:1329)

        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)

        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(LoadO

StartupInterceptor.java:130)

        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.jav

: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:235)

 

cannot load servlet name: action: null

2003-07-15 16:44:41 - PoolTcpConnector: Starting HttpConnectionHandler on
8080 2003-07-15 16:44:41 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007

 

 

Unfortunately I am stuck with Java 1.3.1 and Tomcat 3.2.3, so I can't
upgrade these tools. 

 

The Struts 1.1 site and docs claim to be Tomcat 3.2.* compatible. Hmmm. I
have searched far and wide for a solution, and although I have found folks
who have posted the same problem, I have yet to find an answer.

 

Out of curiosity I tried the Struts 1.0.2 "struts-example.war" and it works
fine.

 

Also, I have tried upgrading Tomcat's jaxp to 1.2, and it had no effect.

 

I'm hoping someone on this list might be able to help.

 

Thanks!

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message