This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes debug web application using intellij and tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "debug web application using intellij and tomcat 5" Watch "debug web application using intellij and tomcat 5" New topic
Author

debug web application using intellij and tomcat 5

Habib Ghayoumi
Greenhorn

Joined: Dec 30, 2008
Posts: 6
Hi,
I want to debug my application that runs on tomcat 5.5.27 . My IDE is intellij 6. I have lots of problems.
can anyone explain step by steb guide for debugging. My problem is related to socket, java_opts, catalina.bat

thanks in advance
Habib
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60807
    
  65

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Habib Ghayoumi
Greenhorn

Joined: Dec 30, 2008
Posts: 6
Bear Bibeault wrote:Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


I have added a remote in IDEA and set the port . but when i start debugging nothing happens just a message that "you can not open the port ". i have added the port in catalina.bat too . This problem has confused me
stanislav bashkirtsev
Ranch Hand

Joined: Aug 17, 2009
Posts: 75
Tomcat should be ran by Idea, not by you manually. I don't know exactly how to tune this process in Idea6, but look for Web Server issue in your Preferences.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

There are 2 ways to do this. One is to let IntelliJ launch an embedded Tomcat and have it use that. The other is to launch an independent Tomcat with Remote Debugging switched on and have IntelliJ connect to it just like IntelliJ would do remote debugging on any other application. The "remote" simply means "In a separate JVM". You can use remote debugging on both the local machine or remote machines (providing the firewalls permit it).

Unless it has changed recently, the IntelliJ embedded Tomcat server synthesizes its "server.xml" configuration and only understands a limited set of features. Good enough for basic webapp development, but not some of the more evil things I often do. Plus it will only handle debugging one webapp at a time. If you want more, you need to launch a standalone Tomcat.

Consult the IntelliJ documentation for up-to-date details on how to set up and use the debugging profiles for embedded Tomcat and remote debugging.


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: debug web application using intellij and tomcat 5
 
Similar Threads
IntelliJ debug with Tomcat 5
Debugging using tomcat server in idea
Remote debugging in idea for Tomcat server
Tomcat issues under Intellij IDEA
IntelliJ IDEA Debugging Question