在Lotus Notes 6.5中使用AXis时出现NoClassDEfFoundError [英] NoClassDEfFoundError while Using AXis with Lotus notes 6.5
本文介绍了在Lotus Notes 6.5中使用AXis时出现NoClassDEfFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Lotus Notes 6.5中使用APACHE-AXIS框架.
I am trying to use APACHE-AXIS framework in Lotus notes 6.5.
我做到了:
- 在脚本库中创建的Java库
- 从WSDL创建Java文件并将其添加到库中
- 将xml-apis.jar添加到库中.
现在,我创建了一个代理,并向其中添加了创建的库. 请参阅下面的代理代码:
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();
}
}
}
当代码遇到任何初始化代码(构造函数调用)时,现在在代理中,它就是NoClassDefFoundError
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)
推荐答案
将xalan-2.0.1.jar添加到库中.
Add xalan-2.0.1.jar to the library.
您可以在以下位置找到详细信息 http://www.java2s.com/Code/Jar/x/Downloadxalan201jar.htm
You can find the details in http://www.java2s.com/Code/Jar/x/Downloadxalan201jar.htm
这篇关于在Lotus Notes 6.5中使用AXis时出现NoClassDEfFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文