struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aditya shrivastava (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-4903) Dependency Mapping Exception When Using PrefixBasedActionProxyFactory
Date Mon, 18 Dec 2017 07:58:00 GMT
aditya shrivastava created WW-4903:
--------------------------------------

             Summary: Dependency Mapping Exception When Using PrefixBasedActionProxyFactory
                 Key: WW-4903
                 URL: https://issues.apache.org/jira/browse/WW-4903
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - REST
            Reporter: aditya shrivastava


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.

{code:java}
<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"/>
{code}
When I start my tomcat & hit on url 
https://localhost:8080/myapp

I always get the exception 


{code:java}
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)

{code}





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message