Skip to Content
author's profile photo Former Member
Former Member

Problem in JNDI Lookup of Deployable Proxy inside logon.par

Hi,

I have customized the Logon par file and have a functionality to call a webservice when the Password Reset happens.

<b>From the ResetPassword.jsp , SAPMLogonLogic.java is getting called ,and there is a method called performResetPassword().</b>

I am calling a Deployable Proxy in that method by using the below code,

<b>Gateway objGateway=(SMSGateway)ctx.lookup("java:comp/env/MailProxy");

MailGatewayViDocument objSMSGatewayViDocument=(MailGatewayViDocument )objGateway.getLogicalPort("wsPort_Document",MailGatewayViDocument.class);

objMailGatewayViDocument.sendMail(...);</b>

I am getting the Exception,

com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/MailProxy.

I have deployed the Deployable Proxy in the J2EE Engine and add this API Jar as the External Library (Project >Properties >Java Build Path ---> Add External jars...Added the .jar file generated in the Proxy Project).

<b>Please let me know the possible solutions where i can call a deployable proxy inside the logon par file.</b>

Thanks and Regards,

Sekar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2007 at 01:06 PM

    Hi Sekar!

    I think the JNDI name is not correct. Normally it's like this, more or less:

    wsclients/proxies/yourvendor/yourproxyProyectName/proxyPackage.yourproxy

    Replace string between * * with yours. You can also check it out at Visual Administrator -> Services->Destinations.

    Hope this helps 😊

    Eneko.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sekar,

      Can you share what should be the correct JNDI name for a DC?

      My DC name is abc/sc/dc_aptea , i have taken this name from application.xml file of Enterprise archieve project from the tag <display-name> </display-name>

      Vendor name is abc.com , taken from application-j2ee-engine.xml file of Enterprise archieve project

      my stateless bean name is FetchDataBean taken from ejbjar.xml file from tag <ejb-name></ejb-name> of EJB DC.

      and in my ejb-j2ee-engine.xml file i have given the JNDI name as

      <jndi-name>FetchDataBean</jndi-name>

      while referring to the JNDI name from Command bean DC i have given JNDI name as

      
      private FetchDataHome home = (FetchDataHome) 
      javax.rmi.PortableRemoteObject.narrow(context.lookup("FetchDataBean"),FetchDataHome.class);
      
      

      Is everything correct here?

      Regards,

      Ashish Shah

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.