facebook

Tomcat 5 Connector: Optional Program Arguments [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #205133 Reply

    ruettimac
    Member

    Hello,

    MacOS X 10.3.3, JVM 1.4.2
    Eclipse 3.0 M7
    MyEclipseIDE 3.7GA
    Tomcat 5.0.19

    I tried to startup Tomcat 5 with security (policy file) enabled. I added the argument security/-security/–security into the field Optional Program Arguments in the Preferences pane of the Tomcat 5 connector. Afterwards, tomcat does not start anymore. It dies immediately, no console output, no log entries in ${catalina.home}/logs.

    How can I start Tomcat 5 from Eclipse with security enabled?

    I can start tomcat 5 from the console

    ./catalina.sh start -security

    without any problems.

    Regards,

    Cyrill

    #205149 Reply

    Scott Anderson
    Participant

    Cyrill,

    Are you saying that starting with -security enabled outside of MyEclipse is working fine? The reason I ask is because all we do is pass the arguments along to the Tomcat process. The other thing to check is if the catalina.sh script is interpreting the -security flag itself and is then passing a different set of arguments to the actual Tomcat process. If that’s the case, the altered arguments will need to be used as the commandline arguments since MyEclipse cannot use the startup script directly.

    #205203 Reply

    ruettimac
    Member

    Hello Scott,

    @scott wrote:

    Cyrill,

    Are you saying that starting with -security enabled outside of MyEclipse is working fine? The reason I ask is because all we do is pass the arguments along to the Tomcat process. The other thing to check is if the catalina.sh script is interpreting the -security flag itself and is then passing a different set of arguments to the actual Tomcat process. If that’s the case, the altered arguments will need to be used as the commandline arguments since MyEclipse cannot use the startup script directly.

    I managed it to run Tomcat with the security manager with your advices (looking what catalina.sh does. Since I can not simply pass -security in the Optional Program Arguments, I pass now the following arguments in the Optional JVM Arguments Pane of the Tomcat 5 Connector:

    
    -Djava.security.manager
    -Djava.security.policy==/opt/jakarta-tomcat/conf/catalina.policy
    

    That’s it.

    Regards,

    Cyrill

    #205207 Reply

    Riyad Kalla
    Member

    Cyrill,
    Thank you for closing the loop with us, we are glad its working now.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Tomcat 5 Connector: Optional Program Arguments [Closed]

You must be logged in to post in the forum log in