I am trying to use APACHE-AXIS framework in Lotus notes 6.5.
I did:
- Created java library in Script library
- created the Java files from WSDL and added to the library
- added xml-apis.jar to the library.
Now i created an agent an added the created library to it. See Agent code below:
import lotus.domino.*;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.axis.client.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
URL url = new URL("http://foo.com");
QName qName = new QName("xxxx", "getFooDataUser");
TestWebServiceLocator loc = new TestWebServiceLocator();
System.out.println("Before STUB Calling");
// (Your code goes here)
} catch(Exception e) {
e.printStackTrace();
}
}
}
Now in the agent whenever the code encounters any initialization code (Constructor calls), it is NoClassDefFoundError
See Stack trace below:
java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:103)
at org.apache.axis.client.Service.<init>(Service.java:112)
at JavaAgent.NotesMain(JavaAgent.java:18)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(NotesThread.java:218)