Fedora Linux Support Community & Resources Center
  #1  
Old 20th April 2010, 02:17 PM
dtbal Offline
Registered User
 
Join Date: Apr 2010
Posts: 1
windows_xp_2003ie
Tomcat6 stop failure when started in debug mode

Hi,
I noticed this problem with Tomcat6 in FC10 and FC12.
When tomcat started in debug mode JAVA_OPTS contains a dt_socket definition.
Since tomcat shutdown script uses JAVA_OPTS, stopping tomcat fails.
I don't know if JAVA_OPTS is needed at all when stopping tomcat, but if it is needed, I patched /usr/sbin/tomcat6 stop function to delete the debug info from JAVA_OPTS.
It is as follows:
60,61d59
< # Fails when JVM debug defined - patched by dTb
< JAVA_OPTS=`echo $JAVA_OPTS | sed -e 's/\(.*\)-Xdebug -\(\([^ ]* \)\|\(.*\)\)\(.*\)/\1\5/'`
It may not be be the best solution and it works for '-Xdebug ...' definition only, and not for '-agentlib ...' definiton, but it might be a good starting point to solve the problem.
Regards
Balazs D Toth

Last edited by dtbal; 20th April 2010 at 02:19 PM.
Reply With Quote
Reply

Tags
debug, failure, mode, started, stop, tomcat6

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeRadius in debug mode + fedora 10 + errors atifshakeel Servers & Networking 4 19th April 2011 05:09 AM
Can kernel failure window help debug problem? tashirosgt Using Fedora 0 16th July 2009 06:59 AM
Fc3 Stop Initialization On Smp Mode With P4 3.2 Ht andreytalamonte EOL (End Of Life) Versions 0 20th December 2004 05:59 PM
stop print process started in thunderbird d2e2 Using Fedora 4 25th October 2004 10:37 PM


Current GMT-time: 00:23 (Saturday, 02-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat