- This topic has 3 replies, 3 voices, and was last updated 20 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
ruettimacMemberHello,
MacOS X 10.3.3, JVM 1.4.2
Eclipse 3.0 M7
MyEclipseIDE 3.7GA
Tomcat 5.0.19I 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
Scott AndersonParticipantCyrill,
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.
ruettimacMemberHello 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
Riyad KallaMemberCyrill,
Thank you for closing the loop with us, we are glad its working now. -
AuthorPosts