After some serious trial and error to get the Orion server up and running
with an existing set of EJB code, I have finally succeeded in getting my
Entity Bean auto-deployed and the server now seems happy.
So, being naive, I simply grabbed a TestSuite.java client program to try
and test the new EntityBean. The program is dying on this line:
InitialContext iCtx = new InitialContext( env );
Where env is setup as follows:
Properties env = new Properties();
env.put( Context.SECURITY_PRINCIPAL, "admin" );
env.put( Context.SECURITY_CREDENTIALS, "123" );
env.put( Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory" );
env.put( Context.PROVIDER_URL, "ormi://localhost/sequence" );
Now, when I run my client, I get the following stack trace:
java.security.AccessControlException: access denied
java.security.AccessControlContext.checkPermission:
java.security.AccessController.checkPermission:
java.lang.SecurityManager.checkPermission:
java.lang.SecurityManager.checkPropertyAccess:
java.lang.System.getProperty:
com.evermind.server.XMLConfiG:
com.evermind.server.ServerComponent:
com.evermind.server.deployment.ApplicationClientArchive:
com.evermind.server.ApplicationClientInitialContextFactory:
javax.naming.spi.NamingManager.getInitialContext:
javax.naming.InitialContext.getDefaultInitCtx:
javax.naming.InitialContext.<init>:
mhi.ejb.seq.TestSuite.getInitialContext:
Where mhi.ejb.seq.TestSuite.getInitialContext() contains the line of code
above that instantiates the InitialContext.
The "admin" def in $ORION/principals.xml is activated.
Thank you,
tim.