tomcat在启动时出了两个严重:
2010-3-13 11:53:37 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.5.0_17\bin;D:\Program Files\Tomcat 5.5\bin
2010-3-13 11:53:37 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2010-3-13 11:53:37 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 703 ms
2010-3-13 11:53:37 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-3-13 11:53:37 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.23
2010-3-13 11:53:37 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2010-3-13 11:53:41 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-3-13 11:53:41 org.apache.catalina.core.StandardContext start
严重: Context [/ssh] startup failed due to previous errors
2010-3-13 11:53:41 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-80
2010-3-13 11:53:41 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-3-13 11:53:41 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2010-3-13 11:53:41 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-3-13 11:53:41 org.apache.catalina.startup.Catalina start
信息: Server startup in 4000 ms====================================WEB。XML配置============================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/applicationContext_*.xml</param-value>
</context-param>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts/struts-config-a.xml</param-value>
</init-param>
<!--init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/sruts/*</param-value>
</init-param-->
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener> <filter>
<filter-name>UserFilter</filter-name>
<filter-class>com.ssh.filter.UserFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UserFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UserFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UserFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
</web-app>在加载applicationcontext.xml的时候总是出问题。不知道是哪里的问题,请各位高手解决下。谢谢
2010-3-13 11:53:37 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.5.0_17\bin;D:\Program Files\Tomcat 5.5\bin
2010-3-13 11:53:37 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2010-3-13 11:53:37 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 703 ms
2010-3-13 11:53:37 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-3-13 11:53:37 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.23
2010-3-13 11:53:37 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2010-3-13 11:53:41 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-3-13 11:53:41 org.apache.catalina.core.StandardContext start
严重: Context [/ssh] startup failed due to previous errors
2010-3-13 11:53:41 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-80
2010-3-13 11:53:41 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-3-13 11:53:41 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47 config=null
2010-3-13 11:53:41 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-3-13 11:53:41 org.apache.catalina.startup.Catalina start
信息: Server startup in 4000 ms====================================WEB。XML配置============================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/applicationContext_*.xml</param-value>
</context-param>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts/struts-config-a.xml</param-value>
</init-param>
<!--init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/sruts/*</param-value>
</init-param-->
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener> <filter>
<filter-name>UserFilter</filter-name>
<filter-class>com.ssh.filter.UserFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UserFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UserFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UserFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
</web-app>在加载applicationcontext.xml的时候总是出问题。不知道是哪里的问题,请各位高手解决下。谢谢
你看你的环境变量看看哈
Path中添加D:\Program Files\Java\jdk1.5.0_17\bin
classpath中添加%JAVA_HOME\lib\dt.jar;%JAVA_HOME\lib\tools.jar;
http://blog.csdn.net/wibnmo/archive/2009/12/05/4943369.aspx可做参考。
http://blog.csdn.net/wibnmo/archive/2009/12/07/4958996.aspx
应该是org.springframework.web.context.ContextLoaderListener起动失败
用wibnmo提供的方法,看一下spring的异常信息试试