由于之前的错误而跳过安装应用程序侦听器 - Tomcat
我正在尝试在 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>
我无法弄清楚如何查看以前的错误或者是否有办法做到这一点。
I am trying to deploy a JAX-WS on a Tomcat server and get the following Console output:
`Skipped installing application listeners due to previous error(s)
- Error listenerStart
- Context startup failed due to previous errors`
I believe this has something to do with how the context configuration file has been set up:
<?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" />
or the web.xml file:
<?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>
I could not figure out how to view the previous error(s) or if there is even a way to do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我基本上检查了 Tomcat 日志目录中的日志,看看到底出了什么问题,并添加了正确的库。
I basically checked the logs in the Tomcat logs directory to see what was actually going wrong under the hood and added the correct libraries.