2014-01-15 103 views
3

我在我的MacBook上將NetBeans從7.3更新爲7.4。
更新之前,一切工作正常,但安裝NetBeans 7.4,當我試圖在tomcat部署Web應用程序後,它給了我以下錯誤:從NetBeans在tomcat上部署應用時出現HTTP錯誤503?

ant -f "/Volumes/DEVELOPMENT/Projects/Order Mapper/Swan/Server/Swan" "-Dbrowser.context=/Volumes/DEVELOPMENT/Projects/Order Mapper/Swan/Server/Swan" -DforceRedeploy=false -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true -Dnb.internal.action.name=run run 
init: 
deps-module-jar: 
deps-ear-jar: 
deps-jar: 
library-inclusion-in-archive: 
library-inclusion-in-manifest: 
compile: 
compile-jsps: 
Starting Tomcat process... 
Waiting for Tomcat... 
Tomcat server started. 
In-place deployment at /Volumes/DEVELOPMENT/Projects/Order Mapper/Swan/Server/Swan/build/web 
Deployment is in progress... 
deploy?config=file%3A%2Fvar%2Ftmp%2Fcontext7415672549510654952.xml&path=/Swan 
Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ftmp%2Fcontext7415672549510654952.xml&path=/Swan 
/Volumes/DEVELOPMENT/Projects/Order Mapper/Swan/Server/Swan/nbproject/build-impl.xml:1087: The module has not been deployed. 
See the server log for details. 
下面

line 1087build-impl.xml的代碼:

<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/> 

當我看到服務器日誌時,什麼都沒有!但我看到下面的localhost_access_log文件:

127.0.0.1 - - [15/Jan/2014:17:21:48 +0500] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 - 
127.0.0.1 - - [15/Jan/2014:17:21:48 +0500] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 - 
127.0.0.1 - - [15/Jan/2014:17:21:49 +0500] "HEAD /netbeans-tomcat-status-test HTTP/1.1" 404 - 

任何幫助將不勝感激。提前致謝!

編輯
下面是IDE登錄嘗試在tomcat

INFO [org.netbeans.modules.tomcat5.TomcatManagerImpl]: TomcatManagerImpl connecting to: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ffolders%2Fvv%2Fdsk5zwq114j5hgp2k6hq9plr0000gn%2FT%2Fcontext4112527509427233412.xml&path=/Swan 
java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ffolders%2Fvv%2Fdsk5zwq114j5hgp2k6hq9plr0000gn%2FT%2Fcontext4112527509427233412.xml&path=/Swan 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) 
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) 
    at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:561) 
Caused: java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ffolders%2Fvv%2Fdsk5zwq114j5hgp2k6hq9plr0000gn%2FT%2Fcontext4112527509427233412.xml&path=/Swan 
    at sun.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) 
[catch] at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:596) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) 
INFO [org.netbeans.modules.j2ee.deployment.impl.TargetServer]: Cannot incrementally deploy to more than one target 
INFO [org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment] 
The module has not been deployed. 
See the server log for details. 
[catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:238) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:161) 
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:111) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 
    at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:435) 
    at org.apache.tools.ant.Target.performTasks(Target.java:456) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248) 
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283) 
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541) 
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) 
INFO [org.netbeans.modules.tomcat5.TomcatManagerImpl]: TomcatManagerImpl connecting to: http://localhost:8084/manager/text/list 
java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/list 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) 
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) 
    at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:561) 
Caused: java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/list 
    at sun.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) 
[catch] at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:596) 
    at org.netbeans.modules.tomcat5.TomcatManagerImpl.list(TomcatManagerImpl.java:394) 
    at org.netbeans.modules.tomcat5.TomcatManager.modules(TomcatManager.java:649) 
    at org.netbeans.modules.tomcat5.TomcatManager.getAvailableModules(TomcatManager.java:460) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.getAvailableTMIDsMap(TargetServer.java:420) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTargetModules(TargetServer.java:457) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetServer.java:172) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:607) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:225) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:161) 
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:111) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 
    at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:435) 
    at org.apache.tools.ant.Target.performTasks(Target.java:456) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248) 
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283) 
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541) 
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) 
INFO [org.netbeans.modules.tomcat5.TomcatManagerImpl]: TomcatManagerImpl connecting to: http://localhost:8084/manager/text/list 
java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/list 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) 
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) 
    at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:561) 
Caused: java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/list 
    at sun.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) 
[catch] at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:596) 
    at org.netbeans.modules.tomcat5.TomcatManagerImpl.list(TomcatManagerImpl.java:394) 
    at org.netbeans.modules.tomcat5.TomcatManager.modules(TomcatManager.java:649) 
    at org.netbeans.modules.tomcat5.TomcatManager.getAvailableModules(TomcatManager.java:460) 
    at org.netbeans.modules.tomcat5.ide.TMIDResolver.lookupTargetModuleID(TMIDResolver.java:81) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSharedReferences(TargetServer.java:351) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.checkUndeployForSharedReferences(TargetServer.java:324) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTargetModules(TargetServer.java:496) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetServer.java:172) 
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:607) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:225) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:161) 
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:111) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 
    at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:435) 
    at org.apache.tools.ant.Target.performTasks(Target.java:456) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248) 
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283) 
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541) 
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) 
INFO [org.netbeans.modules.tomcat5.TomcatManagerImpl]: TomcatManagerImpl connecting to: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ffolders%2Fvv%2Fdsk5zwq114j5hgp2k6hq9plr0000gn%2FT%2Fcontext4761508169495242621.xml&path=/Swan 
java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ffolders%2Fvv%2Fdsk5zwq114j5hgp2k6hq9plr0000gn%2FT%2Fcontext4761508169495242621.xml&path=/Swan 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) 
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) 
    at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:561) 
Caused: java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8084/manager/text/deploy?config=file%3A%2Fvar%2Ffolders%2Fvv%2Fdsk5zwq114j5hgp2k6hq9plr0000gn%2FT%2Fcontext4761508169495242621.xml&path=/Swan 
    at sun.reflect.GeneratedConstructorAccessor81.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) 
[catch] at org.netbeans.modules.tomcat5.TomcatManagerImpl.run(TomcatManagerImpl.java:596) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) 
INFO [org.netbeans.modules.j2ee.deployment.impl.TargetServer]: Cannot incrementally deploy to more than one target 
INFO [org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment] 
The module has not been deployed. 
See the server log for details. 
[catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:238) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:161) 
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:111) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 
    at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:435) 
    at org.apache.tools.ant.Target.performTasks(Target.java:456) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248) 
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283) 
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541) 
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) 
+1

任何其他日誌你可以看看? – trojanfoe

+0

感謝回覆@trojanfoe!我更新了我的答案並添加了IDE日誌! –

回答

15

部署應用程序後近2天的研究,我終於得到它工作時!
我好像問題是由於代理設置!
我的辦公室網絡代理和Netbeans'代理設置,分別設置爲:Use System Proxy Settings
但是,當我將其設置爲No Proxy,它開始正常工作,我能夠在tomcat直接從NetBeans部署Web應用程序!

+3

非常感謝我的朋友。我節省了很多時間。 –

+0

我很高興它幫助! :) –

+1

你2天的研究爲我節省了很多時間。 –

相關問題