struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Mikheev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2177) struts2-blank-2.0.9 example cannot be deployed
Date Sat, 20 Mar 2010 22:52:27 GMT

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

Oleg Mikheev commented on WW-2177:
----------------------------------

I've just had the same issue with a freshly created sample application from 2.1.8.1.
I used maven archetype struts2-archetype-blank to create the application.
Then tried to run in on Tomcat and it failed.
If it is a Tomcat issue then could you please add to the online documentation that struts2-archetype-blank
does not work on Tomcat, that would sound funny but who cares :)

> struts2-blank-2.0.9 example cannot be deployed
> ----------------------------------------------
>
>                 Key: WW-2177
>                 URL: https://issues.apache.org/jira/browse/WW-2177
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.0.9
>         Environment: Windows XP Proffesional EN SP2
> Tomcat 5.5.20
> JRE 1.5.0_11
> Struts 2.0.9
>            Reporter: Grzegorz TymiƄski
>
> When I try to deploy example blank application ("struts2-blank-2.0.9.war"), I get the
error in Tomcat's logs.
> When I copy stuts-default.xml from inside 'struts2-core-2.0.9.jar' file into i.e. /WEB-INF/classes/
the problem is the same.
> Stack trace looks like:
> SEVERE: Exception starting filter struts2
> Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/<path-to-tomcat>/webapps/struts2-blank-2.0.9/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-default.xml:8:72
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)
> 	at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
> 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
> 	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
> 	at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
> 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
> 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
> 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
> 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork
has already been loaded by bean - jar:file:/<path-to-tomcat>/common/lib/struts2-core-2.0.9.jar!/struts-default.xml:8:72
- bean - jar:file:/<path-to-tomcat>/webapps/struts2-blank-2.0.9/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-default.xml:8:72
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:193)
> 	... 33 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message