日期:2014-05-20  浏览次数:20967 次

struts2配置后,TOMCAT报错
Java code

2012-3-7 21:24:54 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C:\work\jav
a\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:\oracle\product
\10.2.0\db_2\bin;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Wind
ows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\asus
_prog\Wifi\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\asus
_prog\Windows7Master;C:\work\svn\bin;C:\Program Files\Microsoft SQL Server\100\T
ools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\work\java\bin;
C:\work\java\jre\bin;C:\asus_prog\Wifi\WiFi\bin\;C:\Program Files\Common Files\I
ntel\WirelessCommon\
2012-3-7 21:24:54 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8084
2012-3-7 21:24:54 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 332 ms
2012-3-7 21:24:54 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-3-7 21:24:54 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2012-3-7 21:24:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inf
o
信息: Parsing configuration file [struts-default.xml]
2012-3-7 21:24:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inf
o
信息: Parsing configuration file [struts-plugin.xml]
2012-3-7 21:24:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger err
or
严重: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/C:/work/tomcat6/webapps/Struts2
/WEB-INF/lib/struts2-gxp-plugin-2.3.1.2.jar!/struts-plugin.xml:8:162
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:69)
        at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Di
spatcher.java:390)
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)
        at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.
java:195)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(Applicatio
nFilterConfig.java:275)
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
tionFilterConfig.java:397)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFi
lterConfig.java:108)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.
java:3800)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
450)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:987)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:909)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:314)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        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:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
        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: Unable to load bean: type:org.apache.struts2.views.gxp.inject.Injecte
dObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContain
er - bean - jar:file:/C:/work/tomcat6/webapps/Struts2/WEB-INF/lib/struts2-gxp-pl
ugin-2.3.1.2.jar!/struts-plugin.xml:8:162
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.reg
ister(XmlConfigurationProvider.java:235)
        at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Str
utsXmlConfigurationProvider.java:102)
        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContai
ner(DefaultConfiguration.java:180)
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:66)
        ... 30 more
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject
.InjectedObjectContainer
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1387)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1233)
        at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUti
l.java:157)
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.reg
ister(XmlConfigurationProvider.java:206)
        ... 33 more
2012-3-7 21:24:55 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2012-3-7 21:24:55 org.apache.catalina.core.StandardContext start
严重: Context [/Struts2] startup failed due to previous errors
2012-3-7 21:24:55 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8084
2012-3-7 21:24:55 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-3-7 21:24:55 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/20  config=null
2012-3-7 21:24:55 org.apache.catalina.startup.Catalina start
信息: Server startup in 1822 ms