struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: ClassNotFoundException: org.apache.struts.ActionServlet (was: retrieveMessageResources: NullPointerException)
Date Thu, 02 Dec 2004 22:53:56 GMT
The package for ActionServlet is wrong - in your web.xml you must have:

org.apache.struts.ActionServlet

Change it to

org.apache.struts.action.ActionServlet


Niall

----- Original Message ----- 
From: "Bernd Prager" <Bernd.Prager@RSGSystems.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, December 02, 2004 8:47 PM
Subject: ClassNotFoundException: org.apache.struts.ActionServlet (was:
retrieveMessageResources: NullPointerException)


Hm, the problem might already be somewhere else. Turning the log level
to debug, reveales following error after tomcat startup before even I
try to get my message ressource:

--- snip ----------------------
Dec 2, 2004 3:27:39 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 2, 2004 3:27:39 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 750 ms
Dec 2, 2004 3:27:39 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 2, 2004 3:27:39 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Dec 2, 2004 3:27:39 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 2, 2004 3:27:40 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balanc
er.rules.URLStringMatchRule: Target string: News / Redirect URL:
http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParam
eterRule: Target param name: paramName / Target param value: paramValue
/ Redirect URL: http://www.yahoo.com], [org.apache.webapp.ba
lancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Dec 2, 2004 3:27:40 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 2, 2004 3:27:40 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 2, 2004 3:27:40 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Dec 2, 2004 3:27:40 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1e1dadb
 org.apache.struts.ActionServlet
java.lang.ClassNotFoundException: org.apache.struts.ActionServlet
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1332)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1181)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:988)
    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3817)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079
)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:755)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:8
86)
    at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:849)
    at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
0)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
    at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
    at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Dec 2, 2004 3:27:40 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /app threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.struts.ActionServlet or a class it depends on
...
--- snip ----------------------

It looks to me that Tomcat is trying to instantiate
org.apache.struts.ActionServlet before its even going to my app. I have
struts.jar and all the commons-xxx.jars in my webapps\apps\WEB-INF\lib
directory. Do I miss something else?

Thanks,
-- Bernd


-----Original Message-----
From: Lane, Brad [mailto:Brad.Lane@pearson.com]
Sent: Thursday, December 02, 2004 1:53 PM
To: Struts Users Mailing List
Subject: RE: retrieveMessageResources: NullPointerException

Message-resources needs to come AFTER action-mappings according to dtd.
You should be getting errors from your container about it.



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



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


Mime
View raw message