Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SecurityContext connecting to JRun jndi

0 views
Skip to first unread message

BusyByte

unread,
Oct 3, 2006, 4:09:03 PM10/3/06
to
For out StrutsTestCase tests run outside of JRun we are connecting the the JRun
jndi provider via a jndi.properties file in the Java Home/JRE/lib folder. We
are doing this to access the database.
We run our JUnit tests this way and they run fine but when we try to run the
StrutsTestCase (an extension of JUnit) tests we keep getting the following
exception:

[Q]
10/03 13:35:55 error SecurityContext is null when invoking method: create.
Check authentication information in the log file

java.rmi.RemoteException: SecurityContext is null when invoking method:
create. Check authentication information in the log file

at
jrun.ejb.interceptors.EJBSecurityInterceptor.authorizeMethodAccess(EJBSecurityIn
terceptor.java:148)

at
jrun.ejb.interceptors.EJBSecurityInterceptor.invokeHomeMethod(EJBSecurityInterce
ptor.java:50)

at
jrun.ejb.ClientInvokableContainer.invokeHomeMethod(ClientInvokableContainer.java
:282)

at
jrun.ejb.invocation.RemoteInvocationProxyImpl.invoke(RemoteInvocationProxyImpl.j
ava:105)

at jrunx.rmi.RMIBroker.invokeEJB(RMIBroker.java:235)

at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:142)

at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

at sun.rmi.transport.Transport$1.run(Transport.java:153)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:149)

at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)

at java.lang.Thread.run(Thread.java:595)
[/Q]

Any help would be appreciated.

0 new messages