由于先前的错误-Tomcat而跳过安装的应用程序侦听器

时间:2011-06-30 20:56:07

标签: java web-services tomcat jax-ws

我正在尝试在Tomcat服务器上部署JAX-WS并获得以下控制台输出:

`Skipped installing application listeners due to previous error(s)  
 - Error listenerStart
- Context startup failed due to previous errors`

我认为这与上下文配置文件的设置方式有关:

<?xml version="1.0" encoding="utf-8" ?>
<Context docBase="C:\Documents and Settings\tomcat" workDir="C:\Documents and Settings\tomcat\work"   path="/tomcat" reloadable="true"  />

或web.xml文件:

<?xml version="1.0" encoding="UTF-8"?>   
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application     2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">   
<web-app>   
<listener>   
    <listener-class>   
        com.sun.xml.ws.transport.http.servlet.WSServletContextistener
    </listener-class>   
</listener>   
<servlet>   
<servlet-name>CalculatorPublisher</servlet-name>   
    <servlet-class>   
        com.sun.xml.ws.transport.http.servlet.WSServlet   
    </servlet-class>   
<load-on-startup>1</load-on-startup>   
</servlet>   
<servlet-mapping>   
    <servlet-name>CalculatorPublisher</servlet-name>   
    <url-pattern>/calculator</url-pattern>   
</servlet-mapping>   
<session-config>   
    <session-timeout>60</session-timeout>   
</session-config>   
</web-app>

我无法弄清楚如何查看以前的错误,或者是否有办法做到这一点。

1 个答案:

答案 0 :(得分:-1)

我基本上检查了Tomcat日志目录中的日志,看看底层实际出现了什么问题并添加了正确的库。