Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » tomcat authentication(web apps do not request authentication)
tomcat authentication [message #733402] Tue, 04 October 2011 16:33 Go to next message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
After adding a Web Application (war) to the pickup I am able to access it from the browser but without needing to authenticate, but if I try to access the Virgo Admin Console the browser prompts for credentials.
How can I define the embedded tomcat to prompt for credential for all apps ?
Re: tomcat authentication [message #733409 is a reply to message #733402] Tue, 04 October 2011 16:50 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

You can put such configuration in the so called "default" web.xml.
Get "default" web.xml from <Virgo-Home>/repository/ext/org.eclipse.gemini.web.tomcat-<version>.jar!/conf/web.xml
Modify it
Put it in <Virgo-Home>/config folder
Restart Virgo

Regards
Violeta
Re: tomcat authentication [message #733635 is a reply to message #733409] Wed, 05 October 2011 09:13 Go to previous messageGo to next message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
Hi Violeta,
Thanks for your response.
There is no web.xml in <Virgo-Home>/repository/ext/org.eclipse.gemini.web.tomcat-<version>.jar!/conf/web.xml.
but there is a web-embed.xml in the jars root (is that the file you meant ?)
I tried modifying the web-embed.xml file and placing it in <Virgo-Home>/config folder (I also tried renaming it to web.xml),
but it seems that virgo is not using it as the default web.xml (how can I know for sure ? maybe jmx ?)
Any ideas?

Thanks,
Jacob
Re: tomcat authentication [message #733663 is a reply to message #733635] Wed, 05 October 2011 10:54 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Can you tell me what the Virgo version is cause we introduced this feature in 3.0.0
For previous versions you can edit web-embed.xml directly in the jar, then start Virgo with -clean option.

Regards
Violeta

PP: The default web.xml is called web-embed.xml in previous versions.

[Updated on: Wed, 05 October 2011 11:19]

Report message to a moderator

Re: tomcat authentication [message #733793 is a reply to message #733663] Wed, 05 October 2011 16:17 Go to previous message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
Thanks for your help,
I was using virgo 2.1.1. I will upgrade to 3.0.1.
Previous Topic:How to implement catch all type exception handler
Next Topic:use JSF2 with SNAPS
Goto Forum:
  


Current Time: Thu Apr 18 01:17:34 GMT 2024

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

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

Back to the top