JSF 应用程序为子上下文提供 404
我的 JSF 应用程序在本地 tomcat 中运行,其 URL 类似于 http://localhost:8080/MyApp/admin ,但不在托管服务器上,URL 为 http://www.myapp.com/admin 我需要对 'context.xml'/ put BocBase & 执行某些操作吗?应用程序库。我在谷歌上搜索到了这些东西,但不明白我到底要做什么。任何人都可以帮助我完成必须做的确切事情才能使其正常工作吗?
My JSF application works in my local tomcat for URL like http://localhost:8080/MyApp/admin, but not on the hosting server, the URL there is http://www.myapp.com/admin
Do I need to do something with 'context.xml'/ put BocBase & AppBase. I got these things googling, but could not understand what exactly I have to do. Can anyone help me with the exact thing thats has to be done to get this working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Tomcat 的配置参考 - 上下文容器对此进行了描述
您的 URL 表明您希望将其放在 root 的文档库中。所以应该设置为
/
。This is described in Tomcat's Configuration Reference - The Context Container
Your URL indicates that you want to have it on a document base of root. So it should be set to
/
.