尚未定义用于处理 /ShoppingWAR/shooperServlet 的 WebGroup/虚拟主机
我正在尝试将一个 Web 应用程序添加到现有的 EAR 中。我添加了 web.xml 和 servlet 文件,并将其打包为 war,然后将其打包到 EAR 中。当我尝试在 Internet Explorer 中访问 servlet 时,出现页面无法显示错误。我不确定这里出了什么问题。
我在 system.out 日志中收到以下错误
尚未定义用于处理 /ShoppingWAR/shooperServlet 的 WebGroup/虚拟主机。 对此的任何帮助都将受到高度赞赏。如果您需要朋友,我准备提供更多文件详细信息。
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 数据库 jdbc.shoppingmall javax.sql.DataSource 容器 可分享 购物者Servlet 购物者Servlet
<servlet-class>com.shopping.shooperServlet </servlet-class>
<load-on-startup>1</load-on-startup>
购物者Servlet /shoperServlet
I am trying to add one web application in to the existing EAR. I have added the web.xml and a servlet file and packaged it as a war then packaged it in the EAR. When i am trying to access the servlet in internet explorer i am getting the page can not be displayed error. I am not sure whats is going wrong here.
I am getting the following error in system.out log
A WebGroup/Virtual Host to handle /ShoppingWAR/shooperServlet has not been defined.
Any help in this is highly appreciated. I am ready to give further file details if you need friends.
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
DataBase
jdbc.shoppingmall
javax.sql.DataSource
Container
Shareable
shooperServlet
shooperServlet
<servlet-class>com.shopping.shooperServlet </servlet-class>
<load-on-startup>1</load-on-startup>
shooperServlet
/shooperServlet
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了 chro 提到的内容之外,还要确保将 Web 应用程序部署到正确的虚拟主机。默认情况下有两个虚拟主机(一台用于应用程序,一台用于管理控制台)。我不知道你是否添加了额外的VHost。
HTH
曼格鲁
Besides what chro has mentioned ensure that the web app is deployed to the correct virtual host. By default there are two virtual hosts (one for applications and one for the admin console). I don't know if you have added additional VHosts.
HTH
Manglu