Caused by: java.lang.ClassNotFoundException: org.codehaus.jam.JamServiceFactory

2147 ワード

Axis 2テスト中に次のエラーが発生しました.
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/jam/JamServiceFactory
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:76)
	at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:926)
	at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:780)
	at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125)
	at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:315)
	at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:608)
	at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:577)
	at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:114)
	at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:236)
	at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:192)
	at org.apache.axis2.client.ServiceClient.fillSOAPEnvelope(ServiceClient.java:631)
	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:443)
	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:426)
	at org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:132)
	at sample.addressbook.rpcclient.AddressBookRPCClient.main(AddressBookRPCClient.java:48)
Caused by: java.lang.ClassNotFoundException: org.codehaus.jam.JamServiceFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 16 more

 
解決方法:サンプルlibのannogen-0.1.0をインポートする.jarパッケージでいいです.