meb*_*ada 5 java deployment jboss servlets
嘿,我是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>
Run Code Online (Sandbox Code Playgroud)
并为jboss-web.xml
<jboss-web>
<context-root>mysite</context-root>
</jboss-web>
Run Code Online (Sandbox Code Playgroud)
我在我的浏览器中尝试了 http:// localhost:8080/mysite/notify ,但它不起作用
什么是正确的网站名称?
谢谢
斜线是相反的,冒号后面有一个双斜线:
http://localhost:8080/mysite/notify
Run Code Online (Sandbox Code Playgroud)
此外,如果您的 servlet 不支持GEThttp 方法,它将无法工作。您必须覆盖该doGet()方法。
还要确保mysite是您的战争名称。