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
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