users@glassfish.java.net

Calling SessionBean in Glassfish 3.1 with standalone client throws Exception

From: <forums_at_java.net>
Date: Mon, 24 Oct 2011 14:16:57 -0500 (CDT)

 I'm using a standalone client to call a SessionBean method.  The remote
method call throws the Exception below.  The cause seems to be

Caused by: java.lang.ClassNotFoundException:
com.sun.messaging.jmq.jmsservice.JMSServiceException (no security manager:
RMI class loader disabled)

I've read the section in the docs
at http://download.oracle.com/docs/cd/E18930_01/html/821-2418/beabx.html
[1] but it doesn't indicate what if anything I need to do .  Follwing the
instructions
at wiki.eclipse.org/EclipseLink/Examples/JPA/GlassFishV3_Web_Tutorial
[2] I've run these commands to start a security manager:

asadmin start-domain asadmin create-jvm-options -Djava.security.manager
asadmin stop-domain asadmin start-domain
There's a problem with the security manager, but the docs are useless as far
as indicating what the problem may be.

How do I set up a security manager in Glassfish 3.1 to allow a connection
from a standalone client?

The second problem is the ClassNotFoundException.  Why can't Glassfish find
the JMSServiceException class?

Here's the stack trace:

Exception in thread "main" javax.ejb.EJBException: java.rmi.RemoteException:
CORBA NO_IMPLEMENT 1398079489 Maybe; nested exception is:
org.omg.CORBA.NO_IMPLEMENT: ----------BEGIN server-side stack trace----------
org.omg.CORBA.NO_IMPLEMENT: WARNING: IOP01000001: Missing local value
implementation vmcid: SUN minor code: 1 completed: Maybe at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at
com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
at
com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
at
com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
at
com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
at
com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
at
com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
at $Proxy123.missingLocalValueImpl(Unknown Source) at
com.sun.corba.ee.impl.io.FVDCodeBaseImpl.implementation(FVDCodeBaseImpl.java:113)
at
com.sun.org.omg.SendingContext._CodeBaseImplBase._invoke(_CodeBaseImplBase.java:99)
at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:528)
at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:199)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1486)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:990)
at
com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:214)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:742)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:539)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2324)
at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
Caused by: java.lang.ClassNotFoundException:
com.sun.messaging.jmq.jmsservice.JMSServiceException (no security manager:
RMI class loader disabled) at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:394)
 


[1] http://download.oracle.com/docs/cd/E18930_01/html/821-2418/beabx.html
[2] http://wiki.eclipse.org/EclipseLink/Examples/JPA/GlassFishV3_Web_Tutorial

--
[Message sent by forum member 'dwschulze']
View Post: http://forums.java.net/node/856643