[
https://issues.apache.org/jira/browse/WW-3803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259530#comment-13259530
]
nick edited comment on WW-3803 at 4/23/12 11:32 AM:
----------------------------------------------------
I was working with Struts 2.3.1.2, as per your suggestion i took the latest
snapshot of struts-2.3.4 unfortunately nothing is working now. either ANY of my
action class or my result jsp are getting invoked. Is there anything i have to
do extra to migrate frm 2.3.1.2 to 2.3.4.
Now, not just Actions inside transaction package but non of the Action's in any
packages are getting invoked.
The following is my log... Now i'm really not sure problem is with convention
component or any other struts2 component...
{noformat}
17:00:52,326 INFO [com.opensymphony.xwork2.config.ConfigurationManager]
(http-127.0.0.1-127.0.0.1-8080-3) Detected container provider Struts XML
configuration provider (struts-default.xml) needs to be reloaded. Reloading
all providers.
17:00:52,372 INFO
[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Parsing configuration file
[struts-default.xml]
17:00:52,487 INFO
[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Parsing configuration file [struts-plugin.xml]
17:00:52,509 INFO
[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Parsing configuration file [struts.xml]
17:00:52,514 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.ObjectFactory) for (#2)
17:00:52,514 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.FileManager) for (#2)
17:00:52,514 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.conversion.impl.XWorkConverter) for (#2)
17:00:52,514 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.TextProvider) for (#2)
17:00:52,515 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.ActionProxyFactory) for (#2)
17:00:52,515 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) for (#2)
17:00:52,515 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.dispatcher.mapper.ActionMapper) for (#2)
17:00:52,515 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.dispatcher.multipart.MultiPartRequest) for (#2)
17:00:52,515 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.views.freemarker.FreemarkerManager) for (#2)
17:00:52,520 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.components.UrlRenderer) for (#2)
17:00:52,520 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.validator.ActionValidatorManager) for (#2)
17:00:52,520 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.ValueStackFactory) for (#2)
17:00:52,521 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.reflection.ReflectionProvider) for (#2)
17:00:52,521 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) for (#2)
17:00:52,521 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.PatternMatcher) for (#2)
17:00:52,521 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.dispatcher.StaticContentLoader) for (#2)
17:00:52,521 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.UnknownHandlerManager) for (#2)
17:00:52,521 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.views.util.UrlHelper) for (#2)
17:00:52,521 INFO [com.opensymphony.xwork2.config.impl.DefaultConfiguration]
(http-127.0.0.1-127.0.0.1-8080-3) Overriding property struts.i18n.reload - old
value: false new value: true
17:00:52,521 INFO [com.opensymphony.xwork2.config.impl.DefaultConfiguration]
(http-127.0.0.1-127.0.0.1-8080-3) Overriding property
struts.configuration.xml.reload - old value: false new value: true
17:00:52,522 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Loading global messages from
ApplicationResources
17:00:52,522 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Loading global messages from
lcmsApplicationResources
17:00:52,522 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Loading global messages from custom
17:00:52,525 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory]
(http-127.0.0.1-127.0.0.1-8080-3) Initializing Struts-Spring integration...
17:00:52,527 INFO [com.opensymphony.xwork2.spring.SpringObjectFactory]
(http-127.0.0.1-127.0.0.1-8080-3) Setting autowire strategy to name
17:00:52,527 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory]
(http-127.0.0.1-127.0.0.1-8080-3) ... initialized Struts-Spring integration
successfully
17:00:54,100 INFO [com.opensymphony.xwork2.config.ConfigurationManager]
(http-127.0.0.1-127.0.0.1-8080-3) Detected container provider Struts XML
configuration provider (struts-default.xml) needs to be reloaded. Reloading
all providers.
17:00:54,138 INFO
[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Parsing configuration file
[struts-default.xml]
17:00:54,186 INFO
[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Parsing configuration file [struts-plugin.xml]
17:00:54,199 INFO
[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Parsing configuration file [struts.xml]
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.ObjectFactory) for (#2)
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.FileManager) for (#2)
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.conversion.impl.XWorkConverter) for (#2)
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.TextProvider) for (#2)
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.ActionProxyFactory) for (#2)
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) for (#2)
17:00:54,202 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.dispatcher.mapper.ActionMapper) for (#2)
17:00:54,203 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.dispatcher.multipart.MultiPartRequest) for (#2)
17:00:54,203 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.views.freemarker.FreemarkerManager) for (#2)
17:00:54,205 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.components.UrlRenderer) for (#2)
17:00:54,205 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.validator.ActionValidatorManager) for (#2)
17:00:54,205 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.ValueStackFactory) for (#2)
17:00:54,205 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.reflection.ReflectionProvider) for (#2)
17:00:54,205 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) for (#2)
17:00:54,205 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.util.PatternMatcher) for (#2)
17:00:54,206 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.dispatcher.StaticContentLoader) for (#2)
17:00:54,206 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(com.opensymphony.xwork2.UnknownHandlerManager) for (#2)
17:00:54,206 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Choosing bean
(org.apache.struts2.views.util.UrlHelper) for (#2)
17:00:54,206 INFO [com.opensymphony.xwork2.config.impl.DefaultConfiguration]
(http-127.0.0.1-127.0.0.1-8080-3) Overriding property struts.i18n.reload - old
value: false new value: true
17:00:54,206 INFO [com.opensymphony.xwork2.config.impl.DefaultConfiguration]
(http-127.0.0.1-127.0.0.1-8080-3) Overriding property
struts.configuration.xml.reload - old value: false new value: true
17:00:54,206 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Loading global messages from
ApplicationResources
17:00:54,206 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Loading global messages from
lcmsApplicationResources
17:00:54,206 INFO [org.apache.struts2.config.BeanSelectionProvider]
(http-127.0.0.1-127.0.0.1-8080-3) Loading global messages from custom
17:00:54,227 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory]
(http-127.0.0.1-127.0.0.1-8080-3) Initializing Struts-Spring integration...
17:00:54,228 INFO [com.opensymphony.xwork2.spring.SpringObjectFactory]
(http-127.0.0.1-127.0.0.1-8080-3) Setting autowire strategy to name
17:00:54,228 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory]
(http-127.0.0.1-127.0.0.1-8080-3) ... initialized Struts-Spring integration
successfully
{noformat}
was (Author: nick.sree):
I was working with Struts 2.3.1.2, as per your suggestion i took the latest
snapshot of struts-2.3.4 unfortunately nothing is working now. either ANY of my
action class or my result jsp are getting invoked. Is there anything i have to
do extra to migrate frm 2.3.1.2 to 2.3.4.
Now, not just Actions inside transaction package but non of the Action's in any
packages are getting invoked.
> Convention Plugin treats struts.convention.package.locators as a part of
> package name
> -------------------------------------------------------------------------------------
>
> Key: WW-3803
> URL: https://issues.apache.org/jira/browse/WW-3803
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Convention
> Affects Versions: 2.3.1, 2.3.1.1
> Environment: JDK 6, JBoss AS 7.1.0 Final, Windows 7, Struts 2, EAR
> deployment.
> Reporter: nick
> Assignee: Lukasz Lenart
> Fix For: 2.3.4
>
>
> My struts.xml is as follows..
> {code:xml}
> <constant name="struts.devMode" value="true" />
> <constant name="struts.configuration.xml.reload" value="true"/>
> <constant name="struts.convention.exclude.parentClassLoader" value="true"
> />
> <constant name="struts.convention.action.fileProtocols"
> value="jar,vfsfile,vfszip,vfs,zip" />
> <constant name="struts.convention.result.path" value="/WEB-INF/jsp/"/>
> <constant name="struts.i18n.reload" value="false" />
> <constant name="struts.locale" value="en_IN" />
> <constant name="struts.multipart.maxSize" value="10485760" />
> <constant name="struts.multipart.parser" value="jakarta"/>
> <constant name="struts.convention.action.mapAllMatches" value="true" />
> <constant name="struts.convention.default.parent.package" value="egov" />
> <!-- Comma separated list of regular expressions of jar URLs to be
> scanned -->
> <constant name="struts.convention.action.includeJars" value=".*egov-.*" />
> <!-- Packages whose name ends with one of these strings will be scanned
> for actions -->
> <constant name="struts.convention.package.locators" value="actions"/>
> <!--
> This makes the URL for an action like HelloWorldAction.java be
> /helloWorld.action rather than /hello-world
> By default Struts2 uses the SEOActionNameBuilder.
> -->
> <bean type="org.apache.struts2.convention.ActionNameBuilder"
> name="defaultActionNameBuilder"
> class="org.apache.struts2.convention.DefaultActionNameBuilder"/>
> <constant name="struts.convention.actionNameBuilder"
> value="defaultActionNameBuilder"/>
> ......
> {code}
> my action package structure is like org.x.y.web.actions.transactions
> my jsp's are under WEB-INF/jsp/ transactions/
> I'm getting the following error
> {noformat}
> ERROR [com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor]
> (http-localhost-127.0.0.1-9080-2) No result defined for action
> org.x.y.web.actions.transactions.FirstAction and result new: No result
> defined for actionorg.x.y.web.actions.transactions.FirstAction and result new
> at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:376)
> [xwork-core-2.3.1.jar:2.3.1]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)
> [xwork-core-2.3.1.jar:2.3.1]
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
> [xwork-core-2.3.1.jar:2.3.1]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> [xwork-core-2.3.1.jar:2.3.1]
> {noformat}
> Its hitting FirstAction class method and returning string "new"
> (first-new.jsp)
> My WEB-INF/jsp/ transactions/ folder has first-new.jsp.
> I guess this may be a bug in conventional-plugin
> i have commented out <constant name="struts.convention.package.locators"
> value="actions"/>
> and tried it but it doesn't worked out.
> Then i have changed my package name from transactions to trns.........
> ie :
> my action package structure is like org.x.y.web.actions.trns
> my jsp's are under WEB-INF/jsp/ trns/
> there it goes, its working perfectly :) .
> i'm facing it when i use transactions as package name (Is it something to do
> with trans"actions").
> even i guess this will be applicable for all package names starts or ends
> with "actions"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira