cancel
Showing results for 
Search instead for 
Did you mean: 

Naming Exception

Former Member
0 Kudos

Hi,

I am trying to Consume a XI web Service in a EJB.

1.I have created a deployable proxy "FBProxy" in the package com.samir.

2.This proxy is in the DC Component NWD_demo_Dews~xyz.com.

3.In the create( ) method of the EJB, I have given the jndi lookup for the FBProxy as "java:comp/env/FBProxy".

4.In the ejb-j2ee-engine.xml file I have given JNDI -mapping as

Application local JNDI -name=>FBProxy

Swerver Component Type=> Service

Server Component JNDI name=> /wsclients/proxies/com.samir.FBProxy

but I when I try to access FBProxy from ejbCreate method I am getting Naming Exception. I don't know why. what should be the JNDI-mapping?

can anyone guide me regarding this?

Regards,

Samir

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Samir,

I think your <b>Server Component JNDI name</b> has been assigned wrongly.

try out this as the name :

/wsclients/proxies/<Your Proxy project name>/com.samir.FBProxy

Regards,

Talimeren

Former Member
0 Kudos

Hi,

I tried but its not working still I am getting the Naming Exception.

In ur suggestion the provider name was missing.

c. Server Component JNDI name – Enter the name with which this component is bound to the J2EE Engine Naming System. The following convention is used:

/wsclients/proxies/<ProviderName>/<ApplicationName>/<ProxyName>

<ApplicationName>

I have observed one thing while creating deployable proxy that when I give the source of the WSDL as Local Server then the FBProxyClientAPI.jar is generated and if I give the source as Local file System or URL the FBProxyClientAPI.jar is not generated.Is this jar is required for the lookup and why it is not getting generated when i give the WSDL source as the Local file System or URL ?

you can refer the link http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm

Former Member
0 Kudos

Hi Samir

Yes I missed out that providerName

and about that jar thing, yes it is required!

Actually I was having the same error .(am still having the error)

But somehow I was able to create JAR file

what I did was ...I created the client definition proxy twice

and the second time I was able to create the ClientAPI.jar file.

Regards,

Talimeren

Former Member
0 Kudos

Hi,

ok thanks for your quick reply. Can you please elaborate more on how did you created the proxy again(you used Local Server option or Local file system or URL)?

As you said that the jar file is required is it for JNDI lookup?

awaiting for your reply..

regards,

Samir

Former Member
0 Kudos

I created using the "Local File sytem or URL" option

And regarding the jar file ,

you need to refer to that jar file from where you are trying to lookup.

i.e add the jar file to your project.

Regards,

Talimeren

Former Member
0 Kudos

Hi,

To my knowledge this should a JNDI lookup issue, can you please paste your stack trace here.

regards

Vivek Nidhi