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

发布于 2024-11-18 02:43:49 字数 1508 浏览 2 评论 0原文

我正在尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲娇萝莉攻 2024-11-25 02:43:49

我基本上检查了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文