我使用的是eclipse调试ssh工程,今天遇到了一个普通的exception,但是解决办法及原因都是很重要的特此记录如下:
2010-12-13 15:33:31 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:\Java\jdk1.5.0_22\jre\bin;.;C:\Windows\system32;C:\Windows;D:\Java\jdk1.5.0_22\jre\bin;D:/Java/jre6/bin/client;D:/Java/jre6/bin;D:\ORA10;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs
2010-12-13 15:33:31 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-12-13 15:33:31 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 747 ms
2010-12-13 15:33:32 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-12-13 15:33:32 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.28
2010-12-13 15:33:32 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2010-12-13 15:33:32 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3743)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2010-12-13 15:33:32 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2010-12-13 15:33:32 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-12-13 15:33:32 org.apache.catalina.core.StandardContext start
严重: Context [/videoadmin] startup failed due to previous errors
2010-12-13 15:33:33 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-12-13 15:33:33 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-12-13 15:33:33 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=1/44 config=null
2010-12-13 15:33:33 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-12-13 15:33:33 org.apache.catalina.startup.Catalina start
信息: Server startup in 1431 ms
原因如下:我部署的这个ssh工程有一个比较特殊的地方就是lib包并不是在WEB-INF下面而是直接在工程中,我配置的jar包都是在编译环境下,因此编译不会有问题。但是启动tomcat的时候eclipse会使用WEB-INF下的lib包,但是却找不到该lib包,所以将所有lib包中的jar包都拷过来就可以启动了。
分享到:
相关推荐
在Java Web开发中,`org.springframework.web.context.ContextLoaderListener` 是Spring框架的一部分,它负责初始化一个Web应用程序的Spring上下文。这个监听器是基于Servlet容器(如Tomcat、Jetty等)的,当Web应用...
09. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 10. </listener> 11. 12. <servlet> 13. <servlet-name>spring</servlet-name> 14. <servlet-class>org.spring...
错误发生在尝试配置应用程序监听器时,监听器类为`org.springframework.web.context.ContextLoaderListener`。这是一个Spring框架的关键组件,它负责初始化Spring Web应用的上下文。当Tomcat尝试加载这个类时,引发...
<listener-class>org.springframework.web.context.ContextLoaderListener <context-param> <param-name>contextConfigLocation <param-value>classpath:applicationContext.xml </context-param> ``` 这里的`...
`<listener>`标签中的`<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>`定义了一个监听器,它会在Web应用启动时自动加载默认的Spring配置文件,即`/WEB-INF/...
<listener-class>org.springframework.web.context.ContextLoaderListener ``` - 设置Spring上下文配置文件的位置: ```xml <context-param> <param-name>contextConfigLocation <param-value>classpath:...
<listener-class>org.springframework.web.context.ContextLoaderListener <!-- Spring MVC 的DispatcherServlet配置 --> <servlet-name>spring <servlet-class>org.springframework.web.servlet....
<listener-class>org.springframework.web.context.ContextLoaderListener <context-param> <param-name>contextConfigLocation <param-value>/WEB-INF/spring/appServlet/servlet-context.xml </context-param>...
<listener-class>org.springframework.web.context.ContextLoaderListener ``` 这样,当Web容器启动时,Spring会自动加载配置文件并初始化ApplicationContext。 ### 4. 添加Hibernate支持 1. 添加数据库驱动...
<listener-class>org.springframework.web.context.ContextLoaderListener ``` 其中`applicationContext.xml`是Spring的配置文件,定义了Bean的配置信息。 - **编写Spring Factory**:为了能够从Flex端访问...
class="org.springframework.web.servlet.view.InternalResourceViewResolver" p:prefix="/WEB-INF/jsp/" p:suffix=".jsp"/> ``` #### 三、注解支持 Spring Web MVC 提供了多种注解来简化控制器的开发: #####...
<listener-class>org.springframework.web.context.ContextLoaderListener ``` - **applicationContext.xml**:Spring的核心配置文件,定义了Bean的配置信息和事务管理等。 ```xml <beans xmlns="http://www....
<listener-class>org.springframework.web.context.ContextLoaderListener ``` 如果缺少这段配置,或者类名拼写错误,都会导致找不到`ContextLoaderListener`。 3. **类路径问题**:在Web应用中,类路径的结构...
org.springframework.web.context.ContextLoaderListener <!-- 指定 Spring Bean 的配置文件所在目录。默认配置在 WEB-INF 目录下 --> <context-param> <param-name>contextConfigLocation <param-value>...
name标签与welcome-file-list标签中加入一下代码 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* org.springframework.web.context.ContextLoaderListener ...
17 <listener-class>org.springframework.web.context.ContextLoaderListener 18 19 20 21 <filter-name>encodingFilter 22 <filter-class>org.springframework.web.filter.CharacterEncodingFilter 23 24 ...
org.springframework.web.context.ContextLoaderListener <context-param> <param-name>contextConfigLocation <param-value>classpath:config/applicationContext.xml </context-param> ``` 四、spring-...
<listener-class>org.springframework.web.context.ContextLoaderListener ... </web-app> ``` `springmvc-servlet.xml`是Spring MVC的配置文件,用于定义视图解析器、模型数据绑定、拦截器等。例如,我们可以...
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error ...