title: start tomcat with specific java parameters
body: <p>I am starting Tomcat using the startup.bat in the TOMCAT_HOME\bin directory.<br>
  I need to enable all the java's debugging traces.<br>
  In my web app (Note: Actually it is an axis2 web service) I did:<br>
  <code>System.setProperty("javax.net.debug","all");</code><br>
  But it did not work.<br>
  Nothing printed to Tomcat console.<br>
  I tried to put this property as parameter in Tomcat on start-up so I edited the catalina.bat as follows:<br>
  Before:  </p>
  
  <pre><code>if not "%LOGGING_MANAGER%" == "" goto noJuliManager
  set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
  :noJuliManager
  set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
  </code></pre>
  
  <p>After:</p>
  
  <pre><code>if not "%LOGGING_MANAGER%" == "" goto noJuliManager
  set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
  :noJuliManager
  set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
  set JAVA_OPTS=-Djavax.net.debug=all %JAVA_OPTS%
  </code></pre>
  
  <p>I am not sure if this is the write place to put it in catalina.bat, but it seemed reasonable to me.<br>
  No success as well.<br>
  So how can I start tomcat with a -Djava option?<br>
  Specifically how can I enable  </p>
  
  <p><code>System.setProperty("javax.net.debug","all");</code>
  so that I can do the debugging in my web app?  </p>
  
  <p>Thank you.</p>