Hello,
I exported my sample application as EJB JAR from within eclipse (3.5.1) and tried to deploy it on a remote glassfishv3 installation by command line as well as via the admin console. In both cases the following Exception is thrown::
[#|2010-01-07T22:56:52.639+0100|INFO|glassfishv3.0|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=25;_ThreadName=Thread-1;|Portable JNDI names for EJB SampleBean : [java:global/SampleBean/SampleBean, java:global/SampleBean/SampleBean!local.host.examples.glassfishv3.ejb.SampleBeanRemote]|#]
[#|2010-01-07T22:56:52.645+0100|INFO|glassfishv3.0|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=25;_ThreadName=Thread-1;|Glassfish-specific (Non-portable) JNDI names for EJB SampleBean : [local.host.examples.glassfishv3.ejb.SampleBeanRemote#local.host.examples.glassfishv3.ejb.SampleBeanRemote, local.host.examples.glassfishv3.ejb.SampleBeanRemote]|#]
[#|2010-01-07T22:56:52.668+0100|WARNING|glassfishv3.0|org.glassfish.admin.amx.core.AMXValidator|_ThreadID=29;_ThreadName=Thread-1;|Attribute 'ManagerId' failed for amx:pp=/mon/server-mon[server]/ORB-Root[S1AS-ORB]/oa.poa.POAFactory,type=oa.poa.POAImpl,name=RootPOA.#RFMBase#.82765395419398144_RBusiness_local.host.examples.glassfishv3.ejb._SampleBeanRemote_Remote-EJBObject
java.lang.NullPointerException
at com.sun.corba.ee.impl.oa.poa.POAImpl.getManagerId(POAImpl.java:1701)
at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.glassfish.gmbal.generic.FacetAccessorImpl.invoke(FacetAccessorImpl.java:126)
at org.glassfish.gmbal.impl.MBeanImpl.invoke(MBeanImpl.java:440)
at org.glassfish.gmbal.impl.AttributeDescriptor.get(AttributeDescriptor.java:144)
at org.glassfish.gmbal.impl.MBeanSkeleton.getAttribute(MBeanSkeleton.java:569)
at org.glassfish.gmbal.impl.MBeanImpl.getAttribute(MBeanImpl.java:378)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
at org.glassfish.admin.amx.util.jmx.MBeanProxyHandler.getAttribute(MBeanProxyHandler.java:247)
at org.glassfish.admin.amx.core.AMXValidator._validate(AMXValidator.java:587)
at org.glassfish.admin.amx.core.AMXValidator.validate(AMXValidator.java:1298)
at org.glassfish.admin.amx.impl.mbean.ComplianceMonitor$ValidatorThread.doRun(ComplianceMonitor.java:256)
at org.glassfish.admin.amx.impl.mbean.ComplianceMonitor$ValidatorThread.run(ComplianceMonitor.java:227)
|#]
[#|2010-01-07T22:56:53.360+0100|INFO|glassfishv3.0|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=25;_ThreadName=Thread-1;|SampleBean was successfully deployed in 2,060 milliseconds.|#]
Trying to connect with a standalone client from another host results in hanging the client at the initialContext.lookup(...) call.
Deploying the SampleBean on a local glassfish installation from within eclipse and then running the standalone client from the same host works without any error.
Any idea what's going wrong here? Comments are really appreciated... ;-)
[Message sent by forum member 'anusplus' (anus.plus_at_gmx.de)]
http://forums.java.net/jive/thread.jspa?messageID=379429