struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4902) Struts 2 fails to init Dispatcher - Tomcat Embedded
Date Sat, 28 Jul 2018 17:07:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560809#comment-16560809
] 

Ramesh commented on WW-4902:
----------------------------

Hi , I am still facing this issue .

 

18-July-28 17:48:51:866 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - getResource(struts-2.3.dtd)
18-July-28 17:48:51:866 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - Delegating
to parent classloader org.springframework.boot.loader.LaunchedURLClassLoader@1be6f5c3
18-July-28 17:48:51:867 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - -->
Returning 'jar:file:/D:/CodeBase/IOL-PCF/Latest-12-07-2018/bk/push/IOL-0.0.1-SNAPSHOT.war!/WEB-INF/lib-provided/struts2-core-2.5.16.jar!/struts-2.3.dtd'
18-July-28 17:48:52:123 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - findResources(META-INF/services/javax.xml.parsers.SAXParserFactory)
18-July-28 17:48:52:126 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - findResources(META-INF/services/javax.xml.parsers.DocumentBuilderFactory)
18-July-28 17:48:52:131 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - getResource(struts-2.5.dtd)
18-July-28 17:48:52:131 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - Delegating
to parent classloader org.springframework.boot.loader.LaunchedURLClassLoader@1be6f5c3
18-July-28 17:48:52:132 DEBUG localhost-startStop-1 o.a.c.l.WebappClassLoaderBase:179 - -->
Returning 'jar:file:/D:/CodeBase/IOL-PCF/Latest-12-07-2018/bk/push/IOL-0.0.1-SNAPSHOT.war!/WEB-INF/lib-provided/struts2-core-2.5.16.jar!/struts-2.5.dtd'
ERROR | 2018-07-28 17:48:52 | [localhost-startStop-1] dispatcher.Dispatcher (Dispatcher.java:508)
- Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957) ~[struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496) [struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73) [struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
[struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:109)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590) [tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) [tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.5.14.jar!/:8.5.14]
 at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_144]
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_144]
 at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:274)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:98)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:167)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
~[struts2-core-2.5.16.jar!/:2.5.16]
 ... 16 more
Caused by: com.opensymphony.xwork2.config.ConfigurationException: Bean type class com.opensymphony.xwork2.ObjectFactory
with the name spring has already been loaded by bean - jar:file:/D:/CodeBase/IOL-PCF/Latest-12-07-2018/bk/push/IOL-0.0.1-SNAPSHOT.war!/WEB-INF/lib/struts2-spring-plugin-2.5.16.jar!/struts-plugin.xml:27:132
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:260)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:98)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:167)
~[struts2-core-2.5.16.jar!/:2.5.16]
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
~[struts2-core-2.5.16.jar!/:2.5.16]
 ... 16 more
18-July-28 17:48:52:192 ERROR localhost-startStop-1 o.a.c.c.C.[.[.[/]:181 - Exception starting
filter strutsPrepareAndExecuteFilter
org.apache.struts2.StrutsException: null
 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 org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
 at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:109)
 at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
 at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
 ... 13 common frames omitted
Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:274)
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:98)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:167)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
 ... 16 common frames omitted
Caused by: com.opensymphony.xwork2.config.ConfigurationException: Bean type class com.opensymphony.xwork2.ObjectFactory
with the name spring has already been loaded by bean - jar:file:/D:/CodeBase/IOL-PCF/Latest-12-07-2018/bk/push/IOL-0.0.1-SNAPSHOT.war!/WEB-INF/lib/struts2-spring-plugin-2.5.16.jar!/struts-plugin.xml:27:132
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:260)
 ... 19 common frames omitted

 

after this embedded tomcat fails .

 

18-July-28 17:48:59:193 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [org.apache.catalina.mapper.MapperListener@7c2312fa]
to [STOPPING_PREP]
18-July-28 17:48:59:193 DEBUG NioBlockingSelector.BlockPoller-1 o.a.t.u.n.NioBlockingSelector:181
- 
java.nio.channels.ClosedSelectorException: null
 at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:83)
 at sun.nio.ch.SelectorImpl.selectNow(SelectorImpl.java:105)
 at org.apache.tomcat.util.net.NioBlockingSelector$BlockPoller.run(NioBlockingSelector.java:386)
18-July-28 17:48:59:194 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [org.apache.catalina.mapper.MapperListener@7c2312fa]
to [STOPPING]
18-July-28 17:48:59:194 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [org.apache.catalina.mapper.MapperListener@7c2312fa]
to [STOPPED]
18-July-28 17:48:59:194 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [StandardService[Tomcat]]
to [STOPPED]
18-July-28 17:48:59:194 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [org.apache.catalina.deploy.NamingResourcesImpl@7495699f]
to [STOPPING_PREP]
18-July-28 17:48:59:195 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [org.apache.catalina.deploy.NamingResourcesImpl@7495699f]
to [STOPPING]
18-July-28 17:48:59:195 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [org.apache.catalina.deploy.NamingResourcesImpl@7495699f]
to [STOPPED]
18-July-28 17:48:59:195 DEBUG main o.a.c.u.LifecycleBase:179 - Setting state for [StandardServer[-1]]
to [STOPPED]
18-July-28 17:48:59:226 ERROR main o.s.b.SpringApplication:771 - Application startup failed
org.springframework.context.ApplicationContextException: Unable to start embedded container;
nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException:
Unable to start embedded Tomcat
 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
 at com.intercall.Application.main(Application.java:33)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
 at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
 at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
 at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable
to start embedded Tomcat
 at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:138)
 at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:87)
 at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:554)
 at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:179)
 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
 ... 16 common frames omitted
Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]
failed to start
 at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.rethrowDeferredStartupExceptions(TomcatEmbeddedServletContainer.java:182)
 at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:117)
 ... 21 common frames omitted

 

 

> Struts 2 fails to init Dispatcher - Tomcat Embedded
> ---------------------------------------------------
>
>                 Key: WW-4902
>                 URL: https://issues.apache.org/jira/browse/WW-4902
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.34
>            Reporter: George Felix Barbosa
>            Assignee: Yasser Zamani
>            Priority: Major
>             Fix For: 2.6
>
>
> I'm migrating a webapp from Jboss 7.1.1 to tomcat embedded 8.5.14. It works fine while
I run it on Intellij but when I try to create an executable war file Struts fails to start.
> I have been using struts2-core:2.3.34, xwork-core:2.3.34 and struts2-spring-plugin:2.3.34.
> Tomcat embedded starts normal and everything looks good but when I call a page, struts
try to start the dispatcher and it fails. I've created a small project to reproduce that error
and it can found [https://github.com/GeorgeBarbosa/spring-boot-struts2].
> In addiction, there are no duplicate jars in my classpath.
> Please, is it a error in Struts or something else? What should I do to get struts2 working
in tomcat embedded?
> Error:
> {noformat}
> 2017-12-06 14:48:05.688  INFO 11440 --- [nio-8080-exec-1] c.o.x.c.p.XmlConfigurationProvider
      : Parsing configuration file [struts-default.xml]
> 2017-12-06 14:48:05.861 ERROR 11440 --- [nio-8080-exec-1] o.apache.struts2.dispatcher.Dispatcher
  : Dispatcher initialization failed
> com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:978)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490) ~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.ng.servlet.StrutsServlet.init(StrutsServlet.java:54)
[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:795)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_131]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_131]
>         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
> Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load bean:
type: class:com.opensymphony.xwork2.ObjectFactory
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:247)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         ... 23 common frames omitted
> Caused by: com.opensymphony.xwork2.config.ConfigurationException: Bean type class com.opensymphony.xwork2.ObjectFactory
with the name struts has already been loaded by bean - jar:file:/C:/workspaces/workspace/pessoal/spring-boot-struts2/target/spring-boot-struts2-0.0.1-SNAPSHOT.war!/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:65:72
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:231)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         ... 26 common frames omitted
> 2017-12-06 14:48:05.873 ERROR 11440 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]
      : StandardWrapper.Throwable
> org.apache.struts2.StrutsException: null
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:504) ~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.ng.servlet.StrutsServlet.init(StrutsServlet.java:54)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:795)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_131]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_131]
>         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
> Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:978)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490) ~[struts2-core-2.3.34.jar!/:2.3.34]
>         ... 20 common frames omitted
> Caused by: com.opensymphony.xwork2.config.ConfigurationException: Unable to load bean:
type: class:com.opensymphony.xwork2.ObjectFactory
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:247)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         ... 23 common frames omitted
> Caused by: com.opensymphony.xwork2.config.ConfigurationException: Bean type class com.opensymphony.xwork2.ObjectFactory
with the name struts has already been loaded by bean - jar:file:/C:/workspaces/workspace/pessoal/spring-boot-struts2/target/spring-boot-struts2-0.0.1-SNAPSHOT.war!/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:65:72
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:231)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         ... 26 common frames omitted
> 2017-12-06 14:48:05.876 ERROR 11440 --- [nio-8080-exec-1] .a.c.c.C.[.[.[.[.g.s.c.SBSStrutsServlet]
: Allocate exception for servlet com.gbarbosa.sbs.config.SBSStrutsServlet
> com.opensymphony.xwork2.config.ConfigurationException: Bean type class com.opensymphony.xwork2.ObjectFactory
with the name struts has already been loaded by bean - jar:file:/C:/workspaces/workspace/pessoal/spring-boot-struts2/target/spring-boot-struts2-0.0.1-SNAPSHOT.war!/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:65:72
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:231)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
~[xwork-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:978)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490) ~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.struts2.dispatcher.ng.servlet.StrutsServlet.init(StrutsServlet.java:54)
~[struts2-core-2.3.34.jar!/:2.3.34]
>         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
~[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:795)
~[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
~[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_131]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_131]
>         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-embed-core-8.5.14.jar!/:8.5.14]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message