cancel
Showing results for 
Search instead for 
Did you mean: 

JPR register interface not working?

Former Member
0 Kudos

Hi

I created and deployed the following Stateless session bean in NWDS CE 7.1 and deployed it to the PI 7.1 server. In NWA in the JNDI Browser I can see the bean details in the root :

Object Name PersonBean

Class Name javax.naming.Reference

Context Name

Object Value Reference Class Name:

Type: clientAppName

Content: sap.com/yyyProxyBeanEAR

Type: interfaceType

Content: remote

Type: home

Content: com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4

Type: ejb-link

Content: PersonBean

Type: jndi-name

Content: PersonBean

Type: remote

Content: com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4

Then I register the interface with following command

http://<server>:<port>/ProxyServer/register?ns=http://chh.com&interface=Person_in&bean=sap.com/yyyPr...

as per

http://help.sap.com/saphelp_nwpi71/helpdata/EN/a4/d5b3b0b16843b3867c0245d9847ae5/content.htm

When I send a message to the XI channel I get the following error in RWB:

JPR could not process the message. Reason: Cannot locate proxy bean sap.com/yyyProxyBeanEAR/PersonBean.

Any suggestions?

Regards,

Chris

Edited by: CHH on Apr 22, 2010 4:13 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think your jndi name is PersonBean rather than sap.com/*****.

Please make sure that in your ejb-j2ee-engine.xml there is no explicit jndi-name parameter. If there is a value given then in your register URL you have to use that else you have to use the JNDI name as sap.com/<application-name>/<ejb-name>

where the application name is set in the application.xml in the EAR.

Regds,

Vineetha.

Former Member
0 Kudos

Hi Vineetha

<br><br>

Thanks for the info. I have been going in circles. Perhaps have a look at my config below

<br><br>

EJB:

<br><br>

ejb-j2ee-engine.xml

<br><br>

&lt;ejb-j2ee-engine

xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;<br>

xsi:noNamespaceSchemaLocation=&quot;ejb-j2ee-engine.xsd&quot;&gt;<br>

&lt;enterprise-beans&gt;<br>

&lt;enterprise-bean&gt;<br>

&lt;ejb-name&gt;PersonBean&lt;/ejb-name&gt;<br>

&lt;/enterprise-bean&gt;<br>

&lt;/enterprise-beans&gt;<br>

&lt;/ejb-j2ee-engine&gt;

<br><br>

ejb-jar.xml

<br><br>

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt; <br>

&lt;ejb-jar <br>

xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot;<br>

xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; <br>

id=&quot;ejb-jar_ID&quot;<br>

version=&quot;2.1&quot;<br>

xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd&quot;&gt; <br>

&lt;icon/&gt;<br>

&lt;enterprise-beans&gt;<br>

&lt;session&gt;<br>

&lt;display-name/&gt;<br>

&lt;icon/&gt;<br>

&lt;ejb-name&gt;PersonBean&lt;/ejb-name&gt;<br>

&lt;home&gt;com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4&lt;/home&gt;<br>

&lt;remote&gt;com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4&lt;/remote&gt;<br>

&lt;local-home&gt;com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4&lt;/local-home&gt;<br>

&lt;local&gt;com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4&lt;/local&gt;<br>

&lt;ejb-class&gt;chh.PersonIn_PortTypeImpl&lt;/ejb-class&gt;<br>

&lt;session-type&gt;Stateless&lt;/session-type&gt;<br>

&lt;transaction-type&gt;Container&lt;/transaction-type&gt;<br>

&lt;/session&gt;<br>

&lt;/enterprise-beans&gt;<br>

&lt;/ejb-jar&gt;<br>

<br><br>

EAR

<br><br>

application.xml

<br><br>

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>

&lt;application id=&quot;Application_ID&quot; version=&quot;1.4&quot; xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot; <br>

xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com<br>/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd&quot;&gt;<br>;

&lt;display-name&gt;<br>

yyyProxyBeanEAR&lt;/display-name&gt;<br>

&lt;module id=&quot;EjbModule_1271863943227&quot;&gt;<br>

&lt;ejb&gt;yyyProxyBeanEJB.jar&lt;/ejb&gt;<br>

&lt;/module&gt;<br>

&lt;/application&gt;<br>

<br><br>

application-j2ee-engine.xml

<br><br>

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>

&lt;application-j2ee-engine xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; <br> xsi:noNamespaceSchemaLocation=&quot;application-j2ee-engine.xsd&quot;&gt;<br>

&lt;reference reference-type=&quot;weak&quot;&gt;<br>

&lt;reference-target provider-name=&quot;sap.com&quot; target-type=&quot;service&quot;&gt;com.sap.aii.proxy.svc&lt;/reference-target&gt; <br>

&lt;/reference&gt;<br>

&lt;reference reference-type=&quot;weak&quot;&gt;<br>

&lt;reference-target provider-name=&quot;sap.com&quot; target-type=&quot;library&quot;&gt;com.sap.aii.af.sdk.lib&lt;/reference-target&gt; <br>

&lt;/reference&gt; <br>

&lt;reference reference-type=&quot;weak&quot;&gt; <br>

&lt;reference-target provider-name=&quot;sap.com&quot; target-type=&quot;library&quot;&gt;com.sap.xi.util.misc&lt;/reference-target&gt;<br>

&lt;/reference&gt; <br>

&lt;reference reference-type=&quot;weak&quot;&gt;&lt;reference-target provider-name=&quot;sap.com&quot; target-type=&quot;library&quot;&gt;com.sap.guid&lt;/reference-target&gt; <br>

&lt;/reference&gt; <br>

&lt;/application-j2ee-engine&gt; <br>

<br><br>

According to that configuration I register with JPR using following command:

<br><br>

http://ctsapxid01.engenoil.net:50100/ProxyServer/register?ns=http://chh.com&interface=Person_in&bean...

<br><br>

But I still get an error:

<br><br>

Cannot locate proxy bean sap.com/yyyProxyBeanEAR/PersonBean.

<br><br>

I see the bean in JNDI browser in NWA in root/sap.com/ with following properties:

<br><br>

Object Name sap.com/yyyProxyBeanEAR/PersonBean<br>

Class Name javax.naming.Reference<br>

Context Name sap.com/yyyProxyBeanEAR <br>

Object Value Reference Class Name:<br>

Type: clientAppName<br>

Content: sap.com/yyyProxyBeanEAR<br>

Type: interfaceType<br>

Content: remote<br>

Type: home<br>

Content: com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4<br>

Type: ejb-link<br>

Content: PersonBean<br>

Type: remote<br>

Content: com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4 <br>

<br><br>

I think the registration command is correct.

<br><br>

Any ideas?

<br><br>

Thanks,

<br><br>

Chris

Edited by: CHH on Apr 23, 2010 9:07 AM

Former Member
0 Kudos

Hi,

Please try to list the Interface using listAll or list command from the server to check whether the proxy got registered.

Also check JPR status through RWB monitoring.

The URL used for registration seems to be ok.

Regards,

Vineetha.

Answers (0)