各位,我初学EJB,配置JBoss+Tomcat时的出现的问题请人解答。
分别启动Tomcat和JBoss后,http://localhost:8080能出现Tomcat页面,
http://localhost:8083也是空白页。
这说明该环境配置没什么问题了吧?可是我把一个很简单的index.jsp测试文件放到deploy下的hello.war文件夹中,用http://localhost:8080/hello/index.jsp测试时,却出现如下错误:
HTTP Status 404 - /hello/index.jsp
--------------------------------------------------------------------------------
type Status report
message /hello/index.jsp
description The requested resource (/hello/index.jsp) is not available
不知是何原因?望各位赐教!
那时因为你还没有发布web应用程序,制作一个war文件,把他拷贝到%JBOSS_HOME%\server\default\deploy下,然好访问http://localhost:8080/test就可以看到你的页面了。