tomcat 服务器出现运行应用程序的问题
我正在尝试运行该应用程序。我刚刚安装了 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
错误消息似乎很清楚,您的项目中需要一个文件
context.xml
。在使用 Netbeans 创建的常规 apache 项目中,目录
Web Pages
中有一个名为META-INF
的目录,并且在此目录中有文件context.xml< /代码>。
尝试尊重这种架构。最小的
context.xml
内容是: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 namesMETA-INF
and in this directory the filecontext.xml
.Try to respect this architecture. The minimal
context.xml
contant is :他可能还发现了我多年来在 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.