Tomcat启动失败

时间:2012-07-31 06:53:37

标签: hibernate tomcat netbeans-7

Starting of Tomcat failed, the server port 8084 is already in use.
D:\NetbeansProjects\Credit Card Management System\nbproject\build-impl.xml:731: 
Deployment error:
Starting of Tomcat failed, the server port 8084 is already in use.
See the server log for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:200)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)

我正在研究信用卡管理系统。它在部署项目时支持hibernate和struts,它给了我以下错误

2 个答案:

答案 0 :(得分:0)

Web服务器的另一个服务器实例(可能是Apache-tomcat)已经在运行,因此您必须停止正在运行的实例或更改端口号。

答案 1 :(得分:0)

检查端口是否正在使用:

netstat -an |find /i "established"

如果上面的命令显示任何输出,则表示该端口已在使用中。在大多数情况下,可能是您忘记停止以前运行的实例。在任务管理器的“进程”选项卡中,您可以检查是否存在已在运行的tomcat进程。杀死进程并重启tomcat。