将战争嵌入码头时出错

发布于 2024-11-08 03:41:49 字数 729 浏览 2 评论 0原文

我尝试了这个将战争嵌入码头的示例。 当我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我乃一代侩神 2024-11-15 03:41:49

您应该在没有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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文