|
This looks like I should be able to change the
java.policy file make it work, but no such luck. This worked before I loaded
jdk se 1.3 on my machine, now it can’t even perform lookup. I have included the
code and the exception(at the bottom). I’m running jboss_pr3. Is it possible to quantity the greater of the time
EBJ’s save, and the time they waste attempting to resolve problems like this. Just
wondering. If anyone has any idea, please let me know. public static void main(String[] args) { TestMemberRegistration testMemberRegistration =
new TestMemberRegistration(); try{
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
"localhost"); System.out.println("1"); AppletServer server = new
AppletServer(); Thread t = new Thread(server); t.setDaemon(true); t.start(); System.out.println("2"); MemberRegistrationRequest mrr = new
MemberRegistrationRequest("2", "127.0.0.1/", new Date(),
server, "client type"); System.out.println("3"); Context jndiContext = new
InitialContext();
System.out.println("4"); Object obj = jndiContext.lookup("MemberRegistrationManagerBean");
System.out.println("5"); MemberRegistrationManagerHome home =
(MemberRegistrationManagerHome)PortableRemoteObject.narrow(obj,
MemberRegistrationManagerHome.class);
System.out.println("6"); MemberRegistrationManager mrm =
home.create(mrr);
System.out.println("7");
System.exit(1); //mrm.registerMember(); } catch(Exception e){ e.printStackTrace(); } } ============== EXCEPTION =================== java.security.AccessControlException: access
denied (java.net.SocketPermission 1 27.0.0.1:1099 connect,resolve) at
java.security.AccessControlContext.checkPermission(Unknown Source) at
java.security.AccessController.checkPermission(Unknown Source) at
java.lang.SecurityManager.checkPermission(Unknown Source) at
java.lang.SecurityManager.checkConnect(Unknown Source) at
java.net.Socket.<init>(Unknown Source) at
java.net.Socket.<init>(Unknown Source) at
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:88) at
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:617) at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:272) at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:265) at
javax.naming.InitialContext.lookup(Unknown Source) at
com.tradingproduce.TestMemberRegistration.main(TestMemberRegistration .java:45) |
- [jBoss-User] java.security.AccessControlException John McDonald
- [jBoss-User] java.security.AccessControlException Keith Thomas
