Well, the problem now is that if I remove that param from the web.xml file, it
complains about it :
<!-- <init-param>-->
<!-- <param-name>actionPackages</param-name>-->
<!--
<param-value>com.eni.dvtejb.clientStruts2.action</param-value>-->
<!-- </init-param> -->
12:48:52,978 ERROR [Dispatcher] Dispatcher initialization failed
java.lang.RuntimeException: java.lang.RuntimeException:
com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=java.lang.String, name='actionPackages'] in
public void
org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).
In struts.xml I put :
<constant name="struts.convention.action.packages"
value="com.eni.dvtejb.clientStruts2.action" />
Any idea ? You also removed it from the web.xml file ?
Thanks.
-----Message d'origine-----
De : Lukasz Lenart [mailto:[email protected]]
Envoyé : lundi 9 novembre 2009 12:25
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on
JBoss5.1.0: workaround ?
2009/11/9 Fernandes Celinio <[email protected]>:
> However I am using JBOSS 5.1.0 GA JDK 6, not Jboss 5.0.1 GA.
I downloaded and checked also with 5.1 - no problems spotted
> Anyays, I added a constant in struts.xml :
> <constant name="actionPackages"
> value="com.eni.dvtejb.clientStruts2.action" />
You have to define it like this:
<constant name="struts.convention.action.packages"
value="com.eni.dvtejb.clientStruts2.action" />
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]