https://issues.apache.org/bugzilla/show_bug.cgi?id=56829
Bug ID: 56829 Summary: do not override _RUNJAVA and _RUNJDB environment variables if already defined Product: Tomcat 6 Version: 6.0.41 Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: neeme.pr...@eesti.ee Created attachment 31888 --> https://issues.apache.org/bugzilla/attachment.cgi?id=31888&action=edit patch I'm integrating LiveRebel (http://liverebel.com) with Tomcat. I need a clean way how to get Tomcat scripts to start LiveRebel agent instead of Tomcat (the agent will be responsible for starting Tomcat). Currently we are patching Tomcat scripts (catalina.sh/bat and setclasspath.sh/bat); however, that is messy, as every time user updates Tomcat, those changes get overwritten. Instead, I would like to change the "java" executable that Tomcat scripts use to start Tomcat. My current solution is to set _RUNJAVA environment variable in CATALINA_BASE/bin/setenv.sh/bat and then patch CATALINA_HOME/bin/setclasspath.sh/bat not to override the setting if already set (see the attached patch). This solution is also described here: http://zeroturnaround.com/forums/topic/trouble-setting-up-live-rebel-with-tomcat-on-ubuntu/#post-45253 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org