Hi,
I am trying Java sender Proxy scenarion on XI 3.0 SP10.
I have generated proxies for the outbound interface and imported in
NDS. Correspondingly, Bean is set up and one more bean is created to look up
java proxy bean which is exposed as web service for testing purposes.
I have deployed this EAR (having two ejbs) in my local WAS SP 10. In XI, I have configured
scenario using XI sender adapter.
I have copied following Jars from XI server and added in external jars.
aii_msg_runtime.jar
aii_proxy_xirt.jar
aii_utilxi_misc.jar
ejb20.jar
exception.jar
jARM.jar
sapj2eeclient.jar
sapxmltoolkit.jar
aii_af_ms_api.jar
Following is the code:
Mail_Type reqtype = new Mail_Type();
reqtype.setFrom(From);
reqtype.setTo(To);
reqtype.setSubject(Subject);
reqtype.setContent(Message);
try {
SCEPWMSIMailFileOutbound_PortTypeHome queryHome = null;
SCEPWMSIMailFileOutbound_PortTypeRemote queryRemote = null;
Context ctx = null;
Object ref = null;
Properties p = new Properties();
p.put(Context.PROVIDER_URL, "172.25.5.172:50004");
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.SECURITY_PRINCIPAL, "Administrator");
p.put(Context.SECURITY_CREDENTIALS, "New#pass");
ctx = new InitialContext(p);
queryHome =
(SCEPWMSIMailFileOutbound_PortTypeHome) ctx.lookup("sap.com/Java_ProxyEAR/SCEPWMSIMailFileOutbound_PortTypeBean");
queryRemote = queryHome.create();
MessageSpecifier msg = queryRemote.$messageSpecifier();
msg.setSenderService("Java_Proxy_BS_AAJ");
queryRemote.$messageSpecifier(msg);
queryRemote.sCEPWMSIMailFileOutbound(reqtype);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
return e.getMessage();
}
Now I am getting classNotFoundException in last line of the code...
java.lang.NoClassDefFoundError: com/sap/aii/utilxi/sld/XIEntityInSld
When I checked the corresponding jar i.e. aii_utilxi_misc.jar ....it doesnt have XIEntityInSld class..
Plz help!
Abhijeet Jangam