tomcat 服务器出现运行应用程序的问题

发布于 2024-12-27 14:27:02 字数 564 浏览 4 评论 0原文

我正在尝试运行该应用程序。我刚刚安装了 tomcat 和 netBeans。 它给出以下错误。如果我尝试单独构建,,构建成功。但我无法在服务器中部署...

Created dir: D:\Test\build\generated\src
Created dir: D:\Test\build\generated\classes
Compiling 1 source file to D:\Test\build\generated\classes
Undeploying ...
undeploy?path=/excelRD
OK - Undeployed application at context path /excelRD
In-place deployment at D:\Test\build\web
D:\Test\build\web\META-INF\context.xml (The system cannot find the file specified)
D:\Test\nbproject\build-impl.xml:686: The module has not been deployed.

请执行需要的操作

I am trying to run the application. just i installed the tomcat and netBeans.
It is giving following error. if i try to give build alone,,, build is successful. but i am unable to deploy in server ...

Created dir: D:\Test\build\generated\src
Created dir: D:\Test\build\generated\classes
Compiling 1 source file to D:\Test\build\generated\classes
Undeploying ...
undeploy?path=/excelRD
OK - Undeployed application at context path /excelRD
In-place deployment at D:\Test\build\web
D:\Test\build\web\META-INF\context.xml (The system cannot find the file specified)
D:\Test\nbproject\build-impl.xml:686: The module has not been deployed.

Please do needful

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

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

发布评论

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

评论(2

无敌元气妹 2025-01-03 14:27:02

错误消息似乎很清楚,您的项目中需要一个文件 context.xml
在使用 Netbeans 创建的常规 apache 项目中,目录 Web Pages 中有一个名为 META-INF 的目录,并且在此目录中有文件 context.xml< /代码>。
尝试尊重这种架构。最小的 context.xml 内容是:

<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/excelRD"/>

The error message seems clear you need a file context.xml in your project.
In a regular apache project created with Netbeans, you have in the directory Web Pages an other directory names META-INF and in this directory the file context.xml.
Try to respect this architecture. The minimal context.xml contant is :

<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/excelRD"/>
尴尬癌患者 2025-01-03 14:27:02

他可能还发现了我多年来在 NetBeans 上看到的问题。您有一个完全有效的 context.xml 文件,但 NetBeans 在部署期间无法找到该文件。如果您打开文件,无论如何触摸它(输入一个字符,删除该字符,然后保存),问题就会消失。这种情况发生过很多次,我已经养成了在部署之前总是接触 context.xml 文件的习惯。

He may also be seeing an issues I've seen on NetBeans for years. You have a perfectly valid context.xml file that can't be found by NetBeans during deployment. If you open the file, touch it in anyway (type in a character, delete that character, then save), the problem goes away. I've had this happen so many times that I've gotten in the habit of always touching the context.xml file before I deploy.

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