Hello !
Authentication in EmbeddedTomcat will only work if you include
a Realm (Simple or JDBC or ...) as an Interceptor.
Standalone you would do that in server.xml of Tomcat, but in
embedded-tomcat this file won't be read.
Instead you'll have to modify the EmbeddedTomcatService Class
in jboss/contrib/tomcat (look in CVS), patch like:
diff -r1.5 EmbeddedTomcatService.java
34a35
> import org.apache.tomcat.request.SimpleRealm;
290a292,296
>
> // access control ( find if a resource have constraints )
> SimpleRealm realmI=new SimpleRealm();
> tomcat.addRequestInterceptor( realmI );
> realmI.setDebug(0);
>
The rest should work as usual..
--
markus
ZZ-Coz <[EMAIL PROTECTED]> writes:
> what steps are needed to enable embedded tomcat security so that the login
> is checked
> via a form and the principal is passed through jndi to the ejbs?
>
> thx markus
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]