cancel
Showing results for 
Search instead for 
Did you mean: 

Error in adapter module - jndi lookup can't find the class

Former Member
0 Kudos

Hi gurus,

I have a problem with my adapter module, the error from the RWB is:

Error: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of KFCProc.

My EJB-JAR looks like this:

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE ejb-jar (View Source for full doctype...)>

<ejb-jar>

<description>EJB JAR description</description>

<display-name>EJB JAR</display-name>

<enterprise-beans>

<session>

<ejb-name>KFCProc</ejb-name>

<home>com.sap.aii.af.mp.module.ModuleHome</home>

<remote>com.sap.aii.af.mp.module.ModuleRemote</remote>

<local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>

<local>com.sap.aii.af.mp.module.ModuleLocal</local>

<ejb-class>com.sap.adapter.KFCProc</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

</enterprise-beans>

</ejb-jar>

I think it should be all right, but it isn't.

Can be the problem, that I use for "com.sap.adapter.KFCProc"package "com.sap..."?

Thank you,

Olian

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Check the JNDI name. See this document to find this:

[Adapter Modules|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e]

Former Member
0 Kudos

Hi Stefan,

I developed it using your document

This is my ejb-j2ee-engine.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd">

<ejb-j2ee-engine>

<enterprise-beans>

<enterprise-bean>

<ejb-name>KFCProc</ejb-name>

<jndi-name>KFCProc</jndi-name>

<session-props/>

</enterprise-bean>

</enterprise-beans>

</ejb-j2ee-engine>

My entry in Modules tab of CC config is

localejbs/KFCProc

I think this all should be ok...

Thanks,

Olian

Former Member
0 Kudos

Stefan,

could this problem be caused by the fact that I let the adapter libraries inside the EAR?

Thank you,

Olian

stefan_grube
Active Contributor
0 Kudos

Yes. Delete the library jars.