【发布时间】:2010-05-20 11:35:55
【问题描述】:
嘿,我是 servlet 和 jboss 的新手,我只是在 jboss 4.2 上部署我的 servlet。jboss 控制台显示它已成功部署
我的 web.xml 包含
<display-name>Notification_Auth_server_simulator</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>Notify</display-name>
<servlet-name>Notify</servlet-name>
<servlet-class>com.me.Notify</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Notify</servlet-name>
<url-pattern>/notify</url-pattern>
</servlet-mapping>
</web-app>
对于 jboss-web.xml
<jboss-web>
<context-root>mysite</context-root>
</jboss-web>
我在浏览器中尝试过 http://localhost:8080/mysite/notify 不行
正确的网站名称是什么?
谢谢
【问题讨论】:
-
显示您的 servlet 代码和日志
-
那么,最终,您会在浏览器中尝试什么 - 带有 \ 的原始版本,还是更新后的版本?
-
是的,它不起作用。这就是你在这里的原因:) 但是会发生什么呢?你得到了什么错误页面/代码/消息?服务器日志不是告诉了一些有趣的事情吗?
-
一个更新后无法连接
-
您的问题对所需的修复没有任何意义。
标签: java deployment servlets jboss