无法在 arch linux 上使用 Tomcat 和 NetBeans 部署 Java web 应用程序

问题描述 投票:0回答:0

我目前正在使用 NetBeans 16.1 和 Tomcat 10 以及 Java 17 并尝试运行 Web 应用程序。

当我尝试运行它时,出现以下消息:

就地部署在 /home/henriquedelben/Documentos/WebApplication1/build/web 部署正在进行中... deploy?config=file%3A%2Ftmp%2Fcontext2029074434843372881.xml&path=/WebApplication1 失败 - 无法在上下文路径 [/WebApplication1] 部署应用程序 /home/henriquedelben/Documentos/WebApplication1/nbproject/build-impl.xml:1030:模块尚未部署。 有关详细信息,请参阅服务器日志。 构建失败(总时间:0 秒)

我知道在 Arch Linux 的版本上,Tomcat 的默认部署位置是 /var/lib/tomcat8/webapps。是因为没有部署在正确的地方还是什么?

与 Tomcat 10 的连接由具有所有 manager-* 权限且默认使用端口 8080 的用户建立

这是 /var/log/tomcat10/localhost.2023-04-26.log 中的日志文件

obs.:就 arch linux 文档而言,我不知道任何其他服务器日志文件(除了 catalina.err 和 catalina.out)

127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/ HTTP/1.1" 200 38
127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/ HTTP/1.1" 200 38
127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/ HTTP/1.1" 200 38
127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 -
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/ HTTP/1.1" 200 38
127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "GET /manager/text/list HTTP/1.1" 401 2499
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/list HTTP/1.1" 200 196
127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "GET /manager/text/list HTTP/1.1" 401 2499
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/list HTTP/1.1" 200 196
127.0.0.1 - - [26/Apr/2023:10:48:26 -0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext2029074434843372881.xml&path=/WebApplication1 HTTP/1.1" 401 2499
127.0.0.1 - root [26/Apr/2023:10:48:26 -0300] "GET /manager/text/deploy?config=file%3A%2Ftmp%2Fcontext2029074434843372881.xml&path=/WebApplication1 HTTP/1.1" 200 82

当我设置 Web 服务器时,我转到“工具”>“服务器”并添加“Apache Tomcat 或 TomEE”以及 catalina home 和 base 并设置为:“/usr/share/tomcat8”,这是 arch linux 安装的主文件夹使用 pacman

java tomcat netbeans
© www.soinside.com 2019 - 2024. All rights reserved.