aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat not working in Debug mode - Maven project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat not working in Debug mode - Maven project" Watch "Tomcat not working in Debug mode - Maven project" New topic
Author

Tomcat not working in Debug mode - Maven project

sangram nani
Greenhorn

Joined: Nov 27, 2011
Posts: 21
Hi Team,

Deployed a struts2 webproject with Hibernate ORM & Maven buildmanager successfully in netbeans ( i.e., Run the project is working fine)
But when i Debug the project i get the following errors in the conosle.

NetBeans: Deploying on Apache Tomcat 7.0.22.0
profile mode: false
debug mode: true
force redeploy: true
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
Deployment error: Starting of Tomcat failed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionCheNetBeans: Deploying on Apache Tomcat 7.0.22.0
profile mode: false
debug mode: true
force redeploy: true
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
Deployment error: Starting of Tomcat failed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:179)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) cker.java:179)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)


But even if tomcat fails, i can open the project in browser, but can't debug i.e., in the taskmanager the java process is already running, but i dont find the debug tools in IDE.

sangram nani
Greenhorn

Joined: Nov 27, 2011
Posts: 21
sangram nani wrote:Hi Team,

Deployed a struts2 webproject with Hibernate ORM & Maven buildmanager successfully in netbeans ( i.e., Run the project is working fine)
But when i Debug the project i get the following errors in the conosle.

NetBeans: Deploying on Apache Tomcat 7.0.22.0
profile mode: false
debug mode: true
force redeploy: true
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
Deployment error: Starting of Tomcat failed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionCheNetBeans: Deploying on Apache Tomcat 7.0.22.0
profile mode: false
debug mode: true
force redeploy: true
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
Deployment error: Starting of Tomcat failed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:179)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) cker.java:179)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)


But even if tomcat fails, i can open the project in browser, but can't debug i.e., in the taskmanager the java process is already running, but i dont find the debug tools in IDE.





Some times it works fine, but in most of the cases, the starting of tomcat fails.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Repeating a long post won't get it answered any faster.

All of the classes in the stack trace are NetBean classes, so I can only assume that there's a problem with how NetBeans is running Tomcat.

Moving to the IDE (NetBeans) forum.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not working in Debug mode - Maven project