Closed glassfishrobot closed 15 years ago
@glassfishrobot Commented sonialiu said: Created an attachment (id=2652) server.log
@glassfishrobot Commented sonialiu said: Created an attachment (id=2653) client-execution.log
@glassfishrobot Commented sats said: This issue is a consequence of changes to the Connector's module that does not default the RA mid value to JMARA if no RA MID is specified in the deployment descriptor. A new system property needs to be set to specify the RA mid value.
Please define the following system property to set the default RA value to jmsra - com.sun.enterprise.connectors.inbound.ramid=jmsra.
This can be done either through the admin console or by manually editing domain.xml and adding a new JVM option Dcom.sun.enterprise.connectors.inbound.ramid=jmsra
The MDB would deploy successfully after this change.
@glassfishrobot Commented sonialiu said: I uninstalled/reinstalled build and applied the jms-admin.jar that Satish attached and set the following: asadmin create-system-properties jmsra asadmin create-jvm-options -Dcom.sun.enterprise.connectors.inbound.ramid=jmsra The commands were successful.
I executed the mdb test and at this time the exception
"com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No RA Mid"
no longer displayed. But the test still failed with the following errors in the
client side (no exceptions in server.log)
runclient-common:
[echo] Executing appclient at /export/sonia/appserver-sqe/pe/ejb/mdb/basic
[echo] Apr 24, 2009 11:40:05 AM
org.glassfish.appclient.client.acc.FacadeLaunchable selectFacadeFromGroup
[echo] WARNING: Using the only client in
jar:/export/sonia/appserver-sqe/build/pe/sparc_jed-asqe-1_SunOS/ejb-mdb/archive/ejb-mdb-basicAppClient.jar
even though it does not match the specified main class name or client name
[echo] WS HOME appserver-sqe
[echo] Apr 24, 2009 11:40:07 AM
com.sun.enterprise.security.appclient.AppClientSecurityInfoImpl initializeSecurity
[echo] INFO: acc.secmgroff
[echo] In main before calling init
[echo] basicJMS2EJB initTopic failed: unexpected NamingException
[echo] javax.naming.NamingException: Lookup failed for
'java:comp/env/jms/basicTopic' in SerialContext
targetHost=localhost,targetPort=3700 [Root exception is
javax.naming.NamingException: Lookup failed for 'jms/basic/topic' in
SerialContext
targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700
[Root exception is javax.naming.NamingException: Unable to acquire
SerialContextProvider for SerialContext
targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700
[Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201
completed: No]]]
[echo] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:434)
[echo] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[echo] at
com.sun.s1peqe.ejb.mdb.basic.BasicJMS2EJBClient.initTopic(BasicJMS2EJBClient.java:63)
[echo] at
com.sun.s1peqe.ejb.mdb.basic.BasicJMS2EJBClient.init(BasicJMS2EJBClient.java:52)
[echo] at
com.sun.s1peqe.ejb.mdb.basic.BasicJMS2EJBClient.main(BasicJMS2EJBClient.java:314)
[echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[echo] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[echo] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[echo] at java.lang.reflect.Method.invoke(Method.java:597)
[echo] at
org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:360)
[echo] at
org.glassfish.appclient.client.AppClientGroupFacade.main(AppClientGroupFacade.java:59)
[echo] Caused by: javax.naming.NamingException: Lookup failed for
'jms/basic/topic' in SerialContext
targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700
[Root exception is javax.naming.NamingException: Unable to acquire
SerialContextProvider for SerialContext
targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700
[Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201
completed: No]]
[echo] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:434)
[echo] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[echo] at
com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:74)
[echo] at
com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$1.create(ComponentEnvManagerImpl.java:256)
[echo] at
com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:461)
[echo] at
com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:139)
[echo] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:418)
[echo] ... 10 more
[echo] Caused by: javax.naming.NamingException: Unable to acquire
SerialContextProvider for SerialContext
targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700
[Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201
completed: No]
[echo] at
com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:266)
[echo] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:420)
[echo] ... 16 more
[echo] Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201
completed: No
[echo] at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2747)
[echo] at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2768)
[echo] at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.
@glassfishrobot Commented sherryshen said: cc
@glassfishrobot Commented sonialiu said: email from Ken:
"Please file a separate bug for the new issue and leave 7988 open. We need a better solution than requiring the user to set a system property where no special configuration was required before. Satish / Jagadish, this will need to be addressed for the EA release. Please see my other message on the topic. I don't understand why this this information can't be figured out automatically. The fact that we happen to use a resource adapter for our default JMS provider is an implementation detail that the user should not have to be aware of.
Regarding the naming exception, the issue is that the client lookup depends on the ORB and Remote Naming service having been started. Right now those services are only started as a side effect of deploying a Remote EJB application. The goal is to also start them lazily as a side effect of any access of the naming port, but I don't think that's going to be done in time for EA. I'll have to add a temporary workaround to start those services as a result of MDB deployment."
@glassfishrobot Commented sonialiu said: As per Ken's suggestions, I have just opened another bug for the client lookup issue. https://glassfish.dev.java.net/issues/show_bug.cgi?id=8001
@glassfishrobot Commented sats said: Currently, the system property needs to be set manually by the user. We would need to automate this so that the GF ships with JMSRA as the default RA. To discuss with Jagadish and Kedar to see how this can be done.
Lowering the priority to P3 since setting the system property is getting the MDB to deploy successfully.
@glassfishrobot Commented sats said: Fix provided by Jagadish (in the Connector module) to revert to the V2 behaviour of defaulting ra-mid to JMSRA if no ra-mid value is specified in the deployment descriptor. Fix checked-in on April 27, 2009.
@glassfishrobot Commented File: run.log Attached By: sonialiu
@glassfishrobot Commented File: server.log Attached By: sonialiu
@glassfishrobot Commented Was assigned to sats
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-7988
@glassfishrobot Commented Reported by sonialiu
@glassfishrobot Commented Marked as fixed on Sunday, April 26th 2009, 7:46:50 pm
OS: solaris build: 04/22 nightly build + jms-admin.jar patch from Satish (I did not use 04/23 nightly since the appclient doesn't work in the build). Steps to reproduce the bug: 1. Install V3. start domain 2. Checkout SQE workspace cvs co appserver-sqe/bootstrap.xml (CVSROOT: :pserver:@redcvs.red.iplanet.com:/m/jws)
cd appserver-sqe
ant -f bootstrap.xml co-jms
3.set env variables
S1AS_HOME (for example: /export/sonia/glassfishv3/glassfish)
SPS_HOME
ANT_HOME
JAVA_HOME (I use jdk1.6.0_13)
4. cd appserver-sqe/pe/ejb/mdb/basic, run
ant build setup deploy run
The test hung and them exited after 1-2 minutes.
The client side displayed some exceptions (see attachment).
I check the server.log and saw the following exceptions:
[#|2009-04-23T17:22:24.660-0700|SEVERE|glassfish|javax.enterprise.system.container.ejb.mdb.com.sun.ejb.containers|_ThreadID=16;_ThreadName=Thread-1;|com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No RA Mid
specified in descriptor of application : BasicJMS2EJBApp
at
com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:145)
at
com.sun.ejb.containers.MessageBeanContainer.(MessageBeanContainer.java:196)
at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:115)
at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:181)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:160)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:57)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:152)
at
org.glassfish.javaee.full.deployment.EarDeployer$CompositeApplicationInfo.load(EarDeployer.java:277)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:287)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:175)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:246)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:320)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:335)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:470)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:137)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:165)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:202)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:740)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:631)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:900)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:162)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
| #] |
[#|2009-04-23T17:22:24.662-0700|SEVERE|glassfish|javax.enterprise.system.core.org.glassfish.internal.data|_ThreadID=16;_ThreadName=Thread-1;|Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method java.lang.RuntimeException: EJB Container initialization error at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:196) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:160) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:57) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:152) at org.glassfish.javaee.full.deployment.EarDeployer$CompositeApplicationInfo.load(EarDeployer.java:277) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:287) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:175) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:246) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:320) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:335) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:470) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:137) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:165) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:202) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:740) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:631) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:900) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:162) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No RA Mid specified in descriptor of application : BasicJMS2EJBApp at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:145) at com.sun.ejb.containers.MessageBeanContainer.(MessageBeanContainer.java:196)
at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:115)
at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:181)
... 30 more
| #]
Please see full server.log attached |
Environment
Operating System: All Platform: All
Affected Versions
[V3]