I currently have Jboss and tomcat setup on a separate machines. Tomcat can access jboss's jndi resources such as ejbs. I have done this by settings tomcats system properties to: JAVA_OPTS="-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=host2:1099 -Djava. naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces"
I have now added role based security to one of the ejbs deployed on jboss (using org.jboss.security.auth.spi.UsersRolesLoginModule), how can tomcat authenticate webapps to use this ejb? I have tried using tomcat memory realm implementation. but after the browser authenticates me as the correct user the jndi resource cannot be retrived from jboss. The following error occurs: 'RemoteException occurred in server thread; nested exception is: java.rmi.AccessException: SecurityException; nested exception is: java.lang.SecurityException: Authentication exception, principal=null' I guess i need to provide the principle to use in the system properties, but have no idea as what to use. I would be greatful for any suggestions, Tim View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876344#3876344 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876344 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user