在解释问题之前,我只想指出,我对 NetBeans 和 Tomcat 完全陌生,而且我正在做一个学校项目.话虽如此,问题正是标题所说的.这是我尝试运行一个简单的 Hello World jsp 时的输出:
Before I explain the problem, I just want to point out that I am completely new to NetBeans and Tomcat and I am doing a school project. That being said, the problem is exactly what the title says. Here is the output when I try to run a simple Hello World jsp:
就地部署在C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\build\web部署正在进行中...deploy?config=file%3A%2FC%3A%2FUsers%2Flostl%2FAppData%2FLocal%2FTemp%2Fcontext7180600714574256491.xml&path=/Project3失败 - 无法在上下文路径中部署应用程序 [/Project3]C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\nbproject\build-impl.xml:1058:模块尚未部署.有关详细信息,请参阅服务器日志.构建失败(总时间:0 秒)
In-place deployment at C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\build\web Deployment is in progress... deploy?config=file%3A%2FC%3A%2FUsers%2Flostl%2FAppData%2FLocal%2FTemp%2Fcontext7180600714574256491.xml&path=/Project3 FAIL - Failed to deploy application at context path [/Project3] C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\nbproject\build-impl.xml:1058: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 0 seconds)
如果相关,我正在使用 Apache NetBeans 11.2 和 Tomcat 9.
I am using Apache NetBeans 11.2 and Tomcat 9 if it is relevant.
这是我尝试过的:
- 我检查了服务器日志,它完全没有显示.
- 我尝试在 META-INF 文件夹下的 context.xml 文件中将上下文路径直接设置为 Project3(即在 Project3 之前包括 -C:/...).
- 我尝试重新启动 NetBeans 并清理和构建项目.
- 我尝试在管理员权限下运行 NetBeans.
我可能看起来像个不知道如何解决这个问题的白痴,因为其他人似乎没有这个问题,但请帮帮我.
I might seem like such an idiot for not knowing how to fix this since no one else seems to have this problem, but please help me out.
推荐答案如果您已经从 Netbeans 安装了 Apache Tomcat 应用程序,那么您的 apache 服务可能已经在运行并且与 Netbeans 冲突.您可以停止apache服务,然后在Netbeans中运行该应用程序.因为 Netbeans 以不同的方式启动 apache 服务,所以您不需要在 apache 的文件夹中安装应用程序.
If you have installed the Apache Tomcat appart from Netbeans, maybe your apache service is already running and it conflicts with Netbeans. You may stop the apache service and then run the application in Netbeans. Because Netbeans start the apache service in a diffent way, so you don´t need to install the aplication on apache´s folder.
更多推荐
FAIL
发布评论