jboss - tomcat JNDI problem

T

Tim Terry

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:eek:rg.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top