struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bscitygirl <priya4ka...@gmail.com>
Subject Dependency mapping for [type=java.lang.String, name='struts.devMode'] already exists error in Eclipse
Date Thu, 11 Oct 2018 20:15:54 GMT
Hello.
I am using Eclipse Juno Service Release 2 edition and recently started
seeing below error in my development environment. I am using struts2 (2.5.17
version). I googled various forums but none of the suggested resolutions
have worked so far. Any help in this regard is appreciated. TIA.

Error stack is:
ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization
failed
com.opensymphony.xwork2.inject.DependencyException: Dependency mapping for
[type=java.lang.String, name='struts.devMode'] already exists.
	at
com.opensymphony.xwork2.inject.ContainerBuilder.checkKey(ContainerBuilder.java:138)
~[struts2-core-2.5.17.jar:2.5.17]
	at
com.opensymphony.xwork2.inject.ContainerBuilder.factory(ContainerBuilder.java:99)
~[struts2-core-2.5.17.jar:2.5.17]
	at
com.opensymphony.xwork2.inject.ContainerBuilder.constant(ContainerBuilder.java:562)
~[struts2-core-2.5.17.jar:2.5.17]
	at
com.opensymphony.xwork2.inject.ContainerBuilder.constant(ContainerBuilder.java:438)
~[struts2-core-2.5.17.jar:2.5.17]
	at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:292)
~[struts2-core-2.5.17.jar:2.5.17]
	at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:162)
~[struts2-core-2.5.17.jar:2.5.17]
	at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
~[struts2-core-2.5.17.jar:2.5.17]
	at
org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
~[struts2-core-2.5.17.jar:2.5.17]
	at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
~[struts2-core-2.5.17.jar:2.5.17]
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
[struts2-core-2.5.17.jar:2.5.17]
	at
org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
[struts2-core-2.5.17.jar:2.5.17]
	at
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
[struts2-core-2.5.17.jar:2.5.17]
	at
weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:577)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
[com.oracle.css.weblogic.security.wls_7.0.0.0.jar:CSS 7.0 0.0]
	at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:137)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:70)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:87)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1789)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2807)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)
[weblogic.server.merged.jar:12.1.2.0.0]
	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:822)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
[weblogic.server.merged.jar:12.1.2.0.0]
	at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
[weblogic.server.merged.jar:12.1.2.0.0]
.
.
.
.
.
<Could not load user defined filter in web.xml:
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.
Dependency mapping for [type=java.lang.String, name='struts.devMode']
already exists. - Class: com.opensymphony.xwork2.inject.ContainerBuilder
File: ContainerBuilder.java
Method: checkKey
Line: 138 - com/opensymphony/xwork2/inject/ContainerBuilder.java:138:-1
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:509)
	at
org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
	at
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
	at
weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:577)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
	at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
	at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
	at
weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:137)
	at
weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:70)
	at
weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:87)
	at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1789)
	at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2807)
	at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)
	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:822)
	at
weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
	at
weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)



-----
bscitygirl
--
Sent from: http://struts.1045723.n5.nabble.com/Struts-Dev-f3499899.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message