0
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,它给了我以下错误

4

2 回答 2

0

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

于 2012-07-31T06:55:57.870 回答
0

检查端口是否被使用:

netstat -an |find /i "established"

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

于 2012-07-31T08:04:32.710 回答