Start Tomcat in debug mode.
Start Tomcat in Debug mode
1) Open your Tomcat–>conf folder.
2) Open server.xml file in notepad or any other editor.
3) Search for these lines :
<Context path=”/—-” reloadable=”true” docBase=”—-” >
<Resource name=”jdbc/—-” auth=”Container” type=”javax.sql.DataSource” driverClassName=”oracle.jdbc.driver.OracleDriver” url=”jdbc:oracle:thin:@localhost:1521:orcl”
username=”—-”
password=”—-”
maxActive=”20″
maxIdle=”10″
maxWait=”-1″ />
</Context>
In the above syntax you have to fill some information that is given below
* path = write any name but this name must match with context path
of the application.
* docBase = write the project path.
* name=”jdbc/—- (write here database name).
* driverClassName= type of driver.
* url= complete path of database.
* username= database user name.
* password= database password .
4) open cmd –> set Tomcat directory path then write debug.bat(for Windows)
or ./debug.sh(for Linux).Press Enter,it will display your debug port no.
5) After finishing the above steps, in IDE(eclipse or netbeans)–> right click
on application–>click on debug as –> click on open debug dialog.
6) click on Remote java application–> right side one form will open.
write—>
name = project name or any name.
port = debug port number that is declared in debug.bat file which is inside
Tomcat directory or you can see on cmd (default is 9090).
7) Click on apply then debug.
Check the cmd,Now your Tomcat starts in debug mode.
Popularity: 6%
- Share this:
- Share
2 Responses to Start Tomcat in debug mode.
Leave a Reply Cancel reply
Like Us on Facebook
My Favorite
Archives
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
![[del.icio.us]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/linkedin.png)
![[MySpace]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/myspace.png)
![[Reddit]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/reddit.png)
![[Squidoo]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/squidoo.png)
![[StumbleUpon]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Twitter]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/twitter.png)
![[Windows Live]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://www.blog.usefulfreetips.com/wp-content/plugins/bookmarkify/email.png)








lol sweet stuff bro.
Very Nice post Aryan . I was looking for this.Very Informative.Keep up the good work