The Artima Developer Community
Sponsored Link

Java Answers Forum
Problems Invoking EJBs across Servers

1 reply on 1 page. Most recent reply: Sep 12, 2003 4:58 AM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
suhas walanjoo

Posts: 2
Nickname: suhasw
Registered: Sep, 2003

Problems Invoking EJBs across Servers Posted: Sep 12, 2003 3:03 AM
Reply to this message Reply
Advertisement
Dear all,

I have deployed ejbs on Jboss application server and I am calling the ejb's from web server(tomcat) which

is on different machine.

I have done the configurations for JNDI look up.

env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.provider.url", "comp194:1099");
env.put("java.naming.rmi.security.manager", "yes");
Context ctx = new InitialContext(env);

When the servlet is called it throws exception

java.security.AccessControlException: access denied (java.io.FilePermission

C:\tomcat-4.1\webapps\dxdamsweb1.0\WEB-INF\classes\jndi.properties read)

I tried modifying catalina.policy file for the permission still it is giving me those errors.

Can someone please help me. If you do know the answer or want to commmunicate with me please write

at suhasv1@yahoo.com

Regards,

Suhas Walanjoo


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Problems Invoking EJBs across Servers Posted: Sep 12, 2003 4:58 AM
Reply to this message Reply
env.put("java.naming.rmi.security.manager", "yes");


Provide the access ...to ur security manager

Flat View: This topic has 1 reply on 1 page
Topic: How to modify cell properties of a JDBTable ? Previous Topic   Next Topic Topic: Can any body help me.........

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use