on 04-22-2010 3:12 PM
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
<ejb-j2ee-engine
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br>
xsi:noNamespaceSchemaLocation="ejb-j2ee-engine.xsd"><br>
<enterprise-beans><br>
<enterprise-bean><br>
<ejb-name>PersonBean</ejb-name><br>
</enterprise-bean><br>
</enterprise-beans><br>
</ejb-j2ee-engine>
<br><br>
ejb-jar.xml
<br><br>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <br>
<ejb-jar <br>
xmlns="http://java.sun.com/xml/ns/j2ee"<br>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <br>
id="ejb-jar_ID"<br>
version="2.1"<br>
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"> <br>
<icon/><br>
<enterprise-beans><br>
<session><br>
<display-name/><br>
<icon/><br>
<ejb-name>PersonBean</ejb-name><br>
<home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4</home><br>
<remote>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4</remote><br>
<local-home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4</local-home><br>
<local>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4</local><br>
<ejb-class>chh.PersonIn_PortTypeImpl</ejb-class><br>
<session-type>Stateless</session-type><br>
<transaction-type>Container</transaction-type><br>
</session><br>
</enterprise-beans><br>
</ejb-jar><br>
<br><br>
EAR
<br><br>
application.xml
<br><br>
<?xml version="1.0" encoding="UTF-8"?><br>
<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" <br>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com<br>/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"><br>;
<display-name><br>
yyyProxyBeanEAR</display-name><br>
<module id="EjbModule_1271863943227"><br>
<ejb>yyyProxyBeanEJB.jar</ejb><br>
</module><br>
</application><br>
<br><br>
application-j2ee-engine.xml
<br><br>
<?xml version="1.0" encoding="UTF-8"?><br>
<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <br> xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd"><br>
<reference reference-type="weak"><br>
<reference-target provider-name="sap.com" target-type="service">com.sap.aii.proxy.svc</reference-target> <br>
</reference><br>
<reference reference-type="weak"><br>
<reference-target provider-name="sap.com" target-type="library">com.sap.aii.af.sdk.lib</reference-target> <br>
</reference> <br>
<reference reference-type="weak"> <br>
<reference-target provider-name="sap.com" target-type="library">com.sap.xi.util.misc</reference-target><br>
</reference> <br>
<reference reference-type="weak"><reference-target provider-name="sap.com" target-type="library">com.sap.guid</reference-target> <br>
</reference> <br>
</application-j2ee-engine> <br>
<br><br>
According to that configuration I register with JPR using following command:
<br><br>
<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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.