通过netbeans在tomcat服务器上部署应用程序

发布于 2024-11-09 16:45:59 字数 753 浏览 0 评论 0原文

我正在尝试在 Netbeans 中创建一个新的 JSF 应用程序。我已经转移了我现有的java源代码文件&包到 netbeans 中新的“带有 JSF 框架的 Java Web 项目”中新创建的 src 文件夹中我还将所有依赖项添加到类路径中。

但是,当我尝试通过 netbeans 在 Tomcat 服务器上部署我的应用程序时,它失败并出现以下错误

Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at Z:\dev\Px10App\build\web
deploy?config=file%3A%2FZ3A%2FUsers%2FXX%2FAppData%2FLocal%2FTemp%2Fcontext64443165856331944.xml&path=/Px10App
http://localhost:8070/manager/deploy?config=file%3A%2FZ%3A%2FUsers%2FXX%2FAppData%2FLocal%2FTemp%2Fcontext64443165856331944.xml&path=/Px10App
Z:\dev\Px10App\nbproject\build-impl.xml:732: The module has not been deployed.
BUILD FAILED (total time: 1 minute 19 seconds)

非常感谢任何有关解决此问题的帮助!

I am trying to create a new JSF application in Netbeans. I have transferred my existing java source code files & packages to newly created src folder in the new 'Java Web project with JSF framework' in netbeans & also I have added all the dependencies to the classpath.

But when I try to deploy my application on the Tomcat server through netbeans, it fails with following error

Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at Z:\dev\Px10App\build\web
deploy?config=file%3A%2FZ3A%2FUsers%2FXX%2FAppData%2FLocal%2FTemp%2Fcontext64443165856331944.xml&path=/Px10App
http://localhost:8070/manager/deploy?config=file%3A%2FZ%3A%2FUsers%2FXX%2FAppData%2FLocal%2FTemp%2Fcontext64443165856331944.xml&path=/Px10App
Z:\dev\Px10App\nbproject\build-impl.xml:732: The module has not been deployed.
BUILD FAILED (total time: 1 minute 19 seconds)

Any help on resolving this is highly appreciated !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

难理解 2024-11-16 16:45:59

正如您所注意到的,您的项目使用 Glassfish 运行良好。 您的问题背后最符合逻辑的想法是您的 Tomcat 容器没有所需的库。
Glassfish 附带了基于 JSF 的 Web 应用程序或 EJB 应用程序所需的所有(例如:jsf-imp*l、Mysql 连接器、*< code>jsf-api, mojarra impl,列表很长)。

您可以尝试将这些库复制到tomcat的LIB文件夹中并重新启动它。
告诉我们这个消息。

As you noticed, Your project runs fine using Glassfish. The most logical idea behind your problem is that your Tomcat container does not have the required libraries.
Glassfish comes along shipped with all the necessary libraries for a JSF based web application or an EJB App (e.g : jsf-imp*l, Mysql connector, *jsf-api, mojarra impl, the list is long).

You can try copying these libraries in the LIB folder of your tomcat and restart it.
Tell us the news.

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