无法访问 JBoss 中的 jsp 文件 7
Unable to access jsp file in JBoss 7
我在我的应用程序中放置了一个 JSP 文件。但是我收到 404 错误:"HTTP Status 404 - Could not find resource for relative : /ping.jsp of full path: http://localhost:8080/asset/ping.jsp"。
以下是 JSP 文件的源代码:
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
当我使用 http://localhost:8080/asset/ping.jsp URL 请求页面时,我在 server.log 中收到以下日志消息:
17:12:06,160 DEBUG [org.apache.tomcat.util.http.Cookies] (http--0.0.0.0-8080-1) Cookies: Parsing b[]: JSESSIONID=48YjapAO5bg5Yxt8XqRlDucr; org.cups.sid=264b18fffb2ee21f51a099617839d14f
17:12:06,177 INFO [org.jboss.resteasy.cdi.CdiInjectorFactory] (http--0.0.0.0-8080-1) Found BeanManager at java:comp/BeanManager
17:12:06,181 INFO [org.jboss.resteasy.spi.ResteasyDeployment] (http--0.0.0.0-8080-1) Deploying javax.ws.rs.core.Application: class com.passo.framework.remote.servlet.CachedServices$Proxy$_$$_WeldClientProxy
我发现,我的其余应用程序 class 绑定到“/”
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/")
public class CachedServices extends Application {
}
将 ApplicationContextPath
更新到不同的路径后,我能够访问 JSP 个文件。
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/cached")
public class CachedServices extends Application {
}
我在我的应用程序中放置了一个 JSP 文件。但是我收到 404 错误:"HTTP Status 404 - Could not find resource for relative : /ping.jsp of full path: http://localhost:8080/asset/ping.jsp"。
以下是 JSP 文件的源代码:
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
当我使用 http://localhost:8080/asset/ping.jsp URL 请求页面时,我在 server.log 中收到以下日志消息:
17:12:06,160 DEBUG [org.apache.tomcat.util.http.Cookies] (http--0.0.0.0-8080-1) Cookies: Parsing b[]: JSESSIONID=48YjapAO5bg5Yxt8XqRlDucr; org.cups.sid=264b18fffb2ee21f51a099617839d14f
17:12:06,177 INFO [org.jboss.resteasy.cdi.CdiInjectorFactory] (http--0.0.0.0-8080-1) Found BeanManager at java:comp/BeanManager
17:12:06,181 INFO [org.jboss.resteasy.spi.ResteasyDeployment] (http--0.0.0.0-8080-1) Deploying javax.ws.rs.core.Application: class com.passo.framework.remote.servlet.CachedServices$Proxy$_$$_WeldClientProxy
我发现,我的其余应用程序 class 绑定到“/”
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/")
public class CachedServices extends Application {
}
将 ApplicationContextPath
更新到不同的路径后,我能够访问 JSP 个文件。
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("/cached")
public class CachedServices extends Application {
}