将战争嵌入码头时出错
我尝试了这个将战争嵌入码头的示例。 当我在 Eclipse 上调试时,一切正常,并且 Web 服务在端口 8080 中部署得很好,但是当我用这个程序制作一个 jar 并放入服务器时(我尝试进入 tomcat 5.5 和 jetty 7.4.1),当我启动时该程序,当我启动jetty服务器时出现此异常:
7641 [qtp21021313-35] ERROR configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
7641 [qtp21021313-35] WARN configuration.EngineConfigurationFactoryServlet - Unable to load/create servlet engine config file, attempting internal default (from jar).
仅部署了默认的webservices方法(AdminService和Version) wsdd 很好。如果我将这场战争部署到服务器中,它会完美运行
I tried this example of an embedding war into a jetty.
When I debug on eclipse everything its ok and the webservices is deployed fine in port 8080, but when I make a jar with this program and put into a server (I tried into a tomcat 5.5 and into a jetty 7.4.1) when I start the program, when I started the jetty server appears this exception:
7641 [qtp21021313-35] ERROR configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
7641 [qtp21021313-35] WARN configuration.EngineConfigurationFactoryServlet - Unable to load/create servlet engine config file, attempting internal default (from jar).
Only the default webservices methos are deployed (AdminService and Version)
The wsdd its fine. If I deploy this war into a server it works perfectly
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在没有servlet容器(Tomcat/Jetty)的情况下运行java代码,您嵌入了jetty服务器,这就是为什么在eclipse中代码可以正常工作的原因。
杰蒂的口号:
“不要在 Jetty 中部署您的应用程序,而是在您的应用程序中部署 Jetty。”
您应该查看本教程:
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty
了解更多信息:
http://wiki.eclipse.org/Jetty/Howto/Deploy_Web_Applications
You should run the java code without the servlet container (Tomcat/Jetty), you have the jetty server embedded, that's why in eclipse the code works fine.
Jetty's slogan:
"Don't deploy your application in Jetty, deploy Jetty in your application."
You should check this tutorial:
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty
For more info:
http://wiki.eclipse.org/Jetty/Howto/Deploy_Web_Applications