嘿,我是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中尝试过,但它不起作用
正确的站点名称是什么?
谢谢
发布于 2010-05-20 19:41:09
斜杠是相反的,在冒号后面有一个双斜杠:
http://localhost:8080/mysite/notify 此外,如果您的servlet不支持GET http方法,它将无法工作。您必须重写doGet()方法。
还要确保mysite是您的war的名称。
发布于 2010-05-20 19:49:54
它无法连接
可能的原因:
可能的解决方案:
ping检查它是否响应。尝试使用IP地址而不是主机名,例如http://127.0.0.1:8080 (如果有效,则hosts文件是端口号的bogus).tracert检查它是否存在。发布于 2010-05-20 19:49:32
您可能可以通过JMX附加到正在运行的JBoss,并读取应用程序的实际运行时设置。为此使用jconsole,连接到本地进程不需要配置。
https://stackoverflow.com/questions/2873252
复制相似问题