struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Thibaudeau" <pierre.thibaud...@gmail.com>
Subject [s1] Struts 1.3.8: property actionId causes load() Exception
Date Sun, 18 Mar 2007 05:33:42 GMT
I just upgraded to Struts 1.3.8.  I was experimenting with adding
<set-property property="actionId" value="myAction"/> in my action mappings.

Unfortunately, as soon as I add one of these to my struts-config.xml,
starting the servlet gives me the exception quoted below.  The exception
goes away when I remove those lines.  I am running the servlet on Tomcat
6.0.9 through Eclipse, and my project buildpath (within Eclipse) has no
mention of any version of Struts other than 1.3.8.

(I am not personally bothered by that exception, since I haven't yet started
making any use of the actionId property.  Yet if anyone has ideas as to
what's going wrong, I would love to know!)

EXCEPTION TRACE:
javax.servlet.UnavailableException: Parsing error processing resource path
jndi:/localhost/myapplication/WEB-INF/struts-config.xml
    at org.apache.struts.action.ActionServlet.handleConfigException(
ActionServlet.java:774)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
ActionServlet.java:749)
    at org.apache.struts.action.ActionServlet.initModuleConfig(
ActionServlet.java:686)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:353)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1160)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java
:980)
    at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:4044)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4350)
    at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(
HostConfig.java:920)
    at org.apache.catalina.startup.HostConfig.deployDirectories(
HostConfig.java:883)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java
:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java
:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

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