This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat not working in Debug mode - Maven project

 
sangram nani
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic