当前位置: 代码迷 >> J2EE >> struts2配置后,TOMCAT报错解决思路
  详细解决方案

struts2配置后,TOMCAT报错解决思路

热度:61   发布时间:2016-04-22 02:01:38.0
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 performance in production environments was not found on the java.library.path: C:\work\java\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:\Windows;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\Tools\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\Intel\WirelessCommon\2012-3-7 21:24:54 org.apache.coyote.http11.Http11Protocol init信息: Initializing Coyote HTTP/1.1 on http-80842012-3-7 21:24:54 org.apache.catalina.startup.Catalina load信息: Initialization processed in 332 ms2012-3-7 21:24:54 org.apache.catalina.core.StandardService start信息: Starting service Catalina2012-3-7 21:24:54 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.202012-3-7 21:24:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Parsing configuration file [struts-default.xml]2012-3-7 21:24:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Parsing configuration file [struts-plugin.xml]2012-3-7 21:24:55 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error严重: Dispatcher initialization failedUnable 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(Dispatcher.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(ApplicationFilterConfig.java:275)        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java: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(LifecycleSupport.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:516)        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.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - 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.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235)        at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)        ... 30 moreCaused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)        at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:157)        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206)        ... 33 more2012-3-7 21:24:55 org.apache.catalina.core.StandardContext start严重: Error filterStart2012-3-7 21:24:55 org.apache.catalina.core.StandardContext start严重: Context [/Struts2] startup failed due to previous errors2012-3-7 21:24:55 org.apache.coyote.http11.Http11Protocol start信息: Starting Coyote HTTP/1.1 on http-80842012-3-7 21:24:55 org.apache.jk.common.ChannelSocket init信息: JK: ajp13 listening on /0.0.0.0:80092012-3-7 21:24:55 org.apache.jk.server.JkMain start信息: Jk running ID=0 time=0/20  config=null2012-3-7 21:24:55 org.apache.catalina.startup.Catalina start信息: Server startup in 1822 ms
  相关解决方案