struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Aylward" <r...@glassdoor.com>
Subject Error loading strut2-core.jar in Tomcat 6.0.14
Date Thu, 27 Sep 2007 03:00:47 GMT
I'm working on a Struts 2.0.9 app using Java6. I'm switching from Jetty
(which we were using for a few weeks to get started) over to Tomcat
6.0.14.

 

When trying to deploy my webapp, I get the error below. When I google'd
for this error, I found that I wasn't the first to have this problem as
their was a bug opened in Jira, but the struts dev team determined it's
a tomcat issue so they did not figure out a resolution. Has anyone else
had this problem? If so, any suggestions on how to address it?

 

Thanks in advance,

Ryan Aylward

 

SEVERE: Exception starting filter action2

Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory -
bean -
jar:file<path-to-webapp>/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-defa
ult.xml:8:72

      at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regist
er(XmlConfigurationProvider.java:208)

      at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Struts
XmlConfigurationProvider.java:101)

      at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultC
onfiguration.java:131)

      at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Con
figurationManager.java:52)

      at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa
tcher.java:395)

      at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)

      at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.jav
a:201)

      at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:275)

      at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
nFilterConfig.java:397)

      at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilte
rConfig.java:108)

      at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
a:3696)

      at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4343
)

      at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:791)

      at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

      at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

      at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
626)

      at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:553)

      at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

      at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

      at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)

      at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)

      at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

      at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

      at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

      at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

      at
org.apache.catalina.core.StandardService.start(StandardService.java:516)

      at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:566)

      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:288)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with
the name xwork has already been loaded by bean -
jar:file:/C:/Documents%20and%20Settings/ryan/.m2/repository/org/apache/s
truts/struts2-core/2.0.9/struts2-core-2.0.9.jar!/struts-default.xml:8:72
- bean -
jar:file:/C:/jagundi/webproj/target/webproj/WEB-INF/lib/struts2-core-2.0
.9.jar!/struts-default.xml:8:72

      at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regist
er(XmlConfigurationProvider.java:193)

      ... 33 more

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message