cancel
Showing results for 
Search instead for 
Did you mean: 

Java Proxy - Cannot locate bean

Former Member
0 Kudos

Hi everyone,

We are trying to create a Java Proxy Server but without any luck. We get the error "Cannot locate proxy bean..."

Our version is PI 7.11 and our configuration is like below:

1. Created Business System

2. Created Comm. Channel with the parameters below:

XI Adapter

Target Host: hostname

Service Number: 50000

Path: /MessagingSystem/receive/JPR/XI

User Auth: PIAPPLUSER

3. Service Interface (Inbound)

Interface Pattern: Stateless (XI30-Compatible) Point-to-Point enabled

Mode Synchronous

4. The registration of the interface is also done successfuly

In sxmb_moni I get a successful flag. Also Message Monitoring shows Successful. But in NWA we see that the Proxy gets the error Cannot locate proxy bean. Did we miss anything?

What kind of specific developments do we need on the Java side?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This sort of error usually comes when JPR cannot find the deployed java server proxy bean.

1) Register ur server proxy using this :

http://host:port/ProxyServer/register?ns=xxx&interface=SI_Proxy_IA&bean=localejbs/Jndi-name&method=m... name

refer this: http://help.sap.com/saphelp_nw04/helpdata/en/a4/d5b3b0b16843b3867c0245d9847ae5/content.htm

2)Chk whether u have mentioned the corrcet JNDI name while registering the URL.

3) Chk whether u r able to see JNDI name under NWA.

Plz refer this also:

Thanks

Amit

Former Member
0 Kudos

Hi,

In PI 7.11 do we still need to generate the Java Proxy in ESR and export it? Or import from NWDS?

Also in some new documents it doesn't mention the registration of the bean.

For example in this document there is a different approuch to implement Java Proxies.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/100e7b9e-d8ce-2a10-b986-c24acc3dd...

Which is the correct one?

stefan_grube
Active Contributor
0 Kudos

> In PI 7.11 do we still need to generate the Java Proxy in ESR and export it? Or import from NWDS?

You generate Java proxies from ESR when you want to enhance existing Java proxies.

When you create new scenarios based on Java proxies, create them directly in NWDS.

Former Member
0 Kudos

Hi,

According to the document:

If you want to create new applications using new features offered with Java EE5 and SAP NetWeaver Process Integration 7.1, enhancement package 1, SAP recommends that you start using the new programming model for services: Java API for XML Web Services (JAX-WS).

Refer this for more information:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508bb504-87cf-2c10-2aaf-f3a5df75e...

Which is the correct one?

Chk stefan's reply for the same:

Thanks

Amit