gpt4 book ai didi

tomcat - Netbeans 无法部署到 Tomcat 7,适用于 Tomcat 6

转载 作者:行者123 更新时间:2023-11-28 21:51:10 25 4
gpt4 key购买 nike

我已经将 Netbeans 与 Tomcat 6.0.37 一起使用了几个星期,现在没有任何问题。今天我安装了 Tomcat 7.0.40 并更改了 Home 文件夹。

当我在 netbeans 中单击运行时,我得到以下信息:

In-place deployment at /Users/sean/NetBeansProjects/WebApplication1/build/web
Deployment is in progress...
deploy?config=file%3A%2Fvar%2Ffolders%2F6q%2Fwn580_m52f14dh0r5j1zm0v00000gn%2FT%2Fcontext1472679556924624209.xml&path=/WebApplication1
http://localhost:8080/manager/deploy?config=file%3A%2Fvar%2Ffolders%2F6q%2Fwn580_m52f14dh0r5j1zm0v00000gn%2FT%2Fcontext1472679556924624209.xml&path=/WebApplication1
/Users/sean/NetBeansProjects/WebApplication1/nbproject/build-impl.xml:1033: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 36 seconds)

据我所知,服务器日志没有显示任何有用信息,但它是:

Jun 11, 2013 3:26:58 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 11, 2013 3:26:58 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 11, 2013 3:26:58 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@6e9b86ea')

build-impl.xml:1033 是:

<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>

如果我将 Tomcat 主文件夹更改回版本 6,一切都会再次正常运行。这让我相信这是一个 tomcat 问题,但我无法弄清楚。

我确实找到了一个文件 local_access_log.[date].txt 有以下内容,这是线索吗?

[my ip] - - [11/Jun/2013:15:27:54 -0700] "GET /manager/deploy?config=file%3A%2Fvar%2Ffolders%2F6q%2Fwn580_m52f14dh0r5j1zm0v00000gn%2FT%2Fcontext1472679556924624209.xml&path=/WebApplication1 HTTP/1.1" 404 1549

最佳答案

我今天花了几个小时来解决这个问题,并在发布到这里几分钟后找到了解决方案。

在 Netbeans 中,我必须从服务器列表中删除 Tomcat,然后使用所有相同的信息手动将其添加回来。 Netbeans 必须在第一次也是唯一一次连接时保存有关服务器的详细信息。

关于tomcat - Netbeans 无法部署到 Tomcat 7,适用于 Tomcat 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17055029/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com