部署错误:目标服务器ID错误tomcat70:home

时间:2013-12-17 03:09:12

标签: apache tomcat netbeans tomcat6 netbeans-7

我开始使用netbeans7.4,当我试图运行一个网络应用程序,我得到以下错误..我在谷歌搜索,但没有明白如何纠正它..所以,请有人建议我如何解决下面的问题..

以下是错误:

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

1 个答案:

答案 0 :(得分:2)

当我搞乱服务器设置时,我遇到了类似的问题。我删除并重新添加了服务器配置。右键单击项目,转到属性并确保在"运行"下选择服务器。配置。