Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I am using struts-rest plugin with REST & NON REST flow I am using STRUTS 2.3.34 version.
To achieve this I am using following configuration.
<constant name="struts.mapper.class" value="org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper"/> <constant name="struts.mapper.prefixMapping" value="/sm:rest,/pd:rest,:struts"/> <constant name="struts.actionProxyFactory" value="prefix"/>
When I start my tomcat & hit on url
https://localhost:8080/myapp
I always get the exception
HTTP Status 500 – Internal Server Error Type Exception Report Message java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ActionProxyFactory, name='struts.actionProxyFactory'] in public void org.apache.struts2.impl.PrefixBasedActionProxyFactory.setActionProxyFactory(com.opensymphony.xwork2.ActionProxyFactory). Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ActionProxyFactory, name='struts.actionProxyFactory'] in public void org.apache.struts2.impl.PrefixBasedActionProxyFactory.setActionProxyFactory(com.opensymphony.xwork2.ActionProxyFactory). com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132) com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:524) com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:555) com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:553) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:565) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) com.elitecore.nvsmx.system.filter.PortalSecurityFilter.doFilter(PortalSecurityFilter.java:61) Root Cause java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ActionProxyFactory, name='struts.actionProxyFactory'] in public void org.apache.struts2.impl.PrefixBasedActionProxyFactory.setActionProxyFactory(com.opensymphony.xwork2.ActionProxyFactory). com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:502) com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:539) com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:593) com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:537) com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32) com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130) com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:524) com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:555) com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:553) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:565) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) com.elitecore.nvsmx.system.filter.PortalSecurityFilter.doFilter(PortalSecurityFilter.java:61) com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ActionProxyFactory, name='struts.actionProxyFactory'] in public void org.apache.struts2.impl.PrefixBasedActionProxyFactory.setActionProxyFactory(com.opensymphony.xwork2.ActionProxyFactory). com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:239) com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:229) com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:293) com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:117) com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:114) com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:141) com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:113) com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:90) com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:71) com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:67) com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150) java.util.concurrent.FutureTask.run(FutureTask.java:266) com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76) com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116) com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.<init>(ContainerImpl.java:356) com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:311) com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:307) com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150) java.util.concurrent.FutureTask.run(FutureTask.java:266) com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76) com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116) com.opensymphony.xwork2.inject.ContainerImpl.getConstructor(ContainerImpl.java:607) com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:498) com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:539) com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:593) com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:537) com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32) com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130) com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:524) com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:555) com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584) com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:553) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:565) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) com.elitecore.nvsmx.system.filter.PortalSecurityFilter.doFilter(PortalSecurityFilter.java:61)
Attachments
Attachments
Issue Links
- is related to
-
WW-4131 RestActionProxyFactory is handling all requests with PrefixBasedActionMapper
- Closed
- links to