On Apr 9, 2009, at 6:27 AM, ishree wrote:


I am getting the following error while deploying application ear in geronimo
2.1.3 and 2.1.4. This was working in 1.1.1:

15:35:09,600 INFO  [OracleAQListener] Starting Queues for: A0001
15:35:09,631 INFO  [OracleAQListener] B4 Queue Session...........
15:35:09,678 INFO  [OracleAQListener] After Queue Session...........
15:35:10,224 INFO  [OracleAQListener] Starting Queues for: A0001
15:35:10,224 INFO [OracleAQListener] B4 Queue Session in run()...........
15:35:10,224 INFO  [OracleAQListener] badd :::::::1.1
15:35:10,457 ERROR [OracleAQListener] Opening DB connections
java.lang.NullPointerException: You have accessed the java:comp jndi context
on a thread that has not initialized it
        at
org .apache .geronimo .gjndi.JavaCompContextGBean.getContext(JavaCompContextGBean.java:34)
        at
org .apache .xbean.naming.context.ContextFlyweight.lookup(ContextFlyweight.java: 47)
        at
org .apache .xbean .naming .context .ContextFederation.getFederatedBinding(ContextFederation.java:69)
        at
org .apache .xbean .naming .context .AbstractFederatedContext.getBinding(AbstractFederatedContext.java:63)
        at
org .apache .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:139)
        at
org .apache .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:625)
        at
org .apache .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:162)
        at
org .apache .xbean.naming.context.AbstractContext.lookup(AbstractContext.java:611)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at oracle.jms.EmulatedXAHandler.<init>(EmulatedXAHandler.java:69)
        at oracle.jms.AQjmsSession.<init>(AQjmsSession.java:378)
at oracle.jms.AQjmsConnection.createQueueSession(AQjmsConnection.java: 655) at ltc.vise.hl7.gbean.OracleAQListener.<init>(OracleAQListener.java: 132)
        at ltc.vise.hl7.gbean.OracleAQProxy.doStart(OracleAQProxy.java:111)
        at
org .apache .geronimo .gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
        at
org .apache .geronimo .gbean .runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java: 268)


By looking at the stack trace we found that the error occured while lookinb up JNDI name "java:comp/pm/TransactionManage" in EmulatedXAHandler.java.
This file is a part of aqapi.jar which we are using.

Can you configure aqapi.jar to look for the TransactionManager at "java:/TransactionManager"? That's where it will find it...

--kevan

Reply via email to