Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Configuring Security for Tomcat Server(Configuring Security for Tomcat Server)
Configuring Security for Tomcat Server [message #494977] Tue, 03 November 2009 12:45 Go to next message
breako  is currently offline breako
Messages: 57
Registered: July 2009
Member
Hi,
I wish to configure some security for a tomcat server that I have set up to be managed by eclipse.

When not using eclipse, all I have to do is update the catalina.policy file, and then execute:
catalina start -security,

I am wondering what do I do for eclipse?

I edit the catalina.policy file and then republish. This looks all ok.

I then go to the server overview for the managed tomcat server and selecting: " open launch configuration", followed by the arguments tab.

I then add as VM arguments:

-Djava.security.manager
-Djava.security.policy=" D:\docprod637ws\.metadata\.plugins\org.eclipse.wst.server.co re\tmp0\conf\catalina.policy "

but it doesn't work are my missing something?


Re: Configuring Security for Tomcat Server [message #495085 is a reply to message #494977] Tue, 03 November 2009 17:35 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
In the server editor Server Options section, you can enable the "Enable
Security" option and those java.security VM arguments will be added
automatically. However, what you have done seems fine. I will need to
know more about what "doesn't work" means to offer additional help.

Cheers,
Larry

breako wrote:
> Hi,
> I wish to configure some security for a tomcat server that I have set up
> to be managed by eclipse.
>
> When not using eclipse, all I have to do is update the catalina.policy
> file, and then execute:
> catalina start -security,
>
> I am wondering what do I do for eclipse?
>
> I edit the catalina.policy file and then republish. This looks all ok.
>
> I then go to the server overview for the managed tomcat server and
> selecting: " open launch configuration", followed by the arguments tab.
>
> I then add as VM arguments:
>
> -Djava.security.manager
> -Djava.security.policy="
> D:\docprod637ws\.metadata\.plugins\org.eclipse.wst.server.co
> re\tmp0\conf\catalina.policy "
>
> but it doesn't work are my missing something?
>
>
>
Previous Topic:What is the default url of wsdl file in eclipse-generated web services?
Next Topic:how to reference to a utility module from ejb module?
Goto Forum:
  


Current Time: Wed Sep 17 05:33:04 GMT 2014

Powered by FUDForum. Page generated in 0.27735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software