首页 > 代码库 > 配置SSH三大框架报错

配置SSH三大框架报错

1、错误描述

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ]  { -help | start | stop }
2014-9-16 23:49:57 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1.4.8.
2014-9-16 23:49:57 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2014-9-16 23:49:59 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1h 5 Jun 2014)
2014-9-16 23:50:00 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
2014-9-16 23:50:00 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
2014-9-16 23:50:00 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3874 ms
2014-9-16 23:50:01 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2014-9-16 23:50:01 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.55
2014-9-16 23:50:01 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\docs
2014-9-16 23:50:02 org.apache.tomcat.websocket.server.WsSci onStartup
信息: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 
2014-9-16 23:50:02 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\docs has finished in 1,296 ms
2014-9-16 23:50:02 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\examples
2014-9-16 23:50:03 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2014-9-16 23:50:03 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2014-9-16 23:50:03 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@77bc1fb9')
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\examples has finished in 1,140 ms
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\host-manager
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\host-manager has finished in 125 ms
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\manager
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\manager has finished in 125 ms
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\ROOT
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\ROOT has finished in 47 ms
2014-9-16 23:50:03 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\SSH
2014-9-16 23:50:14 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://www.springframework.org/tags/form is already defined
2014-9-16 23:50:14 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://www.springframework.org/tags is already defined
2014-9-16 23:50:15 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
2014-9-16 23:50:15 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/SSH' 的 Mojarra 2.0.3 (FCS b03)
2014-9-16 23:50:16 com.sun.faces.spi.InjectionProviderFactory createInstance
信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2014-9-16 23:50:17 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:220)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:530)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:501)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:457)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
	... 19 more
2014-9-16 23:50:17 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2014-9-16 23:50:17 org.apache.catalina.core.StandardContext startInternal
严重: Context [/SSH] startup failed due to previous errors
2014-9-16 23:50:17 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/SSH] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@3d9478c7]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2014-9-16 23:50:17 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/SSH] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@5e857066]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@a966905]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2014-9-16 23:50:17 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/SSH] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@18c8ccb1]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@26f6852d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2014-9-16 23:50:17 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\MyEclipse\apache-tomcat-7.0.55\webapps\SSH has finished in 13,703 ms
2014-9-16 23:50:17 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
2014-9-16 23:50:17 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
2014-9-16 23:50:17 org.apache.catalina.startup.Catalina start
信息: Server startup in 16845 ms

2、错误原因


3、解决办法

配置SSH三大框架报错