[User] Name [COMM_TEST_JNDI] is not bound in this Context. Unable to find [COMM_TEST_JNDI]

Sachin Mallarappa sachin.m at inspirage.com
Fri Dec 4 11:11:17 GMT 2020


HI

I'm facing an issue while connecting to the MYSQL DB!!

I have created DB project and have defined the JNDI name is DB BC
application variable as (COMM_TEST_JNDI).

As motioned in one of the document 
https://drive.google.com/file/d/1irUlJIxHVGqCpZz06b9vClpV-x4DQvY5/view
<https://drive.google.com/file/d/1irUlJIxHVGqCpZz06b9vClpV-x4DQvY5/view>  

I have edited the  openesb.yaml and context.xml
Please find attached  Context.xml
<http://openesb-community-forum.794670.n2.nabble.com/file/t395950/Context.xml>  
and  openesb.yaml
<http://openesb-community-forum.794670.n2.nabble.com/file/t395950/openesb.yaml>  

Also I have done the step adding JDBC driver in the classpath
                (e.g. lib/ext of you OpenESB installation dir)
                before being able to use this example !

But getting the below error can you please suggest what I'm missing here ?

BPCOR-6130: Activity Name is InvokeInsertDB
   Caused by: Error occured while looking up jndi resource with jndi name.
   Caused by: Name [COMM_TEST_JNDI] is not bound in this Context. Unable to
find [COMM_TEST_JNDI]

Detailed log error message ---------------

com.sun.jbi.engine.bpel.core.bpel.exception.SystemException: BPCOR-6131: An
Error status was received while doing an invoke (partnerLi
nk=PartnerLink1,
portType={http://j2ee.netbeans.org/wsdl/HTTP_DataBase_Bpel/src/Database_AD}jdbcPortType,
operation=insert)
BPCOR-6129: Line Number is 45
BPCOR-6130: Activity Name is InvokeInsertDB
        at
com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.InvokeUnitImpl.processStatus(InvokeUnitImpl.java:969)
        at
com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.InvokeUnitImpl.process(InvokeUnitImpl.java:566)
        at
com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.InvokeUnitImpl.doAction(InvokeUnitImpl.java:185)
        at
com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:163)
        at
com.sun.jbi.engine.bpel.core.bpel.engine.BusinessProcessInstanceThread.execute(BusinessProcessInstanceThread.java:98)
        at
com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:1092)
        at
com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:285)
        at
com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1363)
        at
com.sun.jbi.engine.bpel.BPELSEInOutThread.processStatus(BPELSEInOutThread.java:384)
        at
com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:241)
        at
com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:193)
Caused by: java.lang.Exception: Error occured while looking up jndi resource
with jndi name.
        at
org.glassfish.openesb.databasebc.OutboundMessageProcessor.processInOut(OutboundMessageProcessor.java:616)
        at
org.glassfish.openesb.databasebc.OutboundMessageProcessor.execute(OutboundMessageProcessor.java:277)
        at
org.glassfish.openesb.databasebc.OutboundMessageProcessor.run(OutboundMessageProcessor.java:157)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
*Caused by: javax.naming.NameNotFoundException: Name [COMM_TEST_JNDI] is not
bound in this Context. Unable to find [COMM_TEST_JNDI].*
        at org.apache.naming.NamingContext.lookup(NamingContext.java:819)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:167)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at
org.glassfish.openesb.databasebc.OutboundMessageProcessor.getDataSourceFromContext(OutboundMessageProcessor.java:2032)
        at
org.glassfish.openesb.databasebc.OutboundMessageProcessor.getDatabaseConnection(OutboundMessageProcessor.java:2061)
        at
org.glassfish.openesb.databasebc.OutboundMessageProcessor.processInOut(OutboundMessageProcessor.java:598)


Thanks



--
Sent from: http://openesb-community-forum.794670.n2.nabble.com/


More information about the User mailing list