2013-12-17 101 views
0

我開始使用netbeans7.4,當iam試圖運行一個web應用程序時,iam正在下面的錯誤..我在谷歌搜索,但沒有理解如何糾正它..所以,請有人建議我如何解決跌破發行..部署錯誤:錯誤的目標服務器ID tomcat70:主頁

這裏是錯誤:

Deployment error: Bad target server ID tomcat70:home=C:\Program Files\Apache Software Foundation\Tomcat 7.0 
See the server log for details. 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:273) 
    at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:205) 
    at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:123) 
    at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:235) 
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) 
Caused by: java.lang.RuntimeException: Bad target server ID tomcat70:home=C:\Program Files\Apache Software Foundation\Tomcat 7.0 
    at org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTarget.getServer(DeploymentTarget.java:270) 
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:192) 
    ... 4 more 
+0

有人可以告訴嗎? –

+0

任何人都可以請回復?我的查詢很難嗎? –

回答

2

我遇到類似的問題,當我與服務器設置搞亂。我已經刪除並重新添加了服務器配置。右鍵單擊項目,轉到屬性並確保在「運行」配置下選擇了服務器。