java.lang.LinkageError:加载约束违规

时间:2014-06-25 13:54:03

标签: web-services axis2 ibm-was linkageerror

我在Websphere 7中部署Web服务war文件时收到以下错误。此Web服务war文件是使用Axis2创建的,包含一个非常基本的服务(Hello World!)。有人可以指出我可能会出现什么问题吗?

  

[6/25/14 17:10:42:132 IST] 0000000f SystemOut O [ERROR]加载约束违规:loader" org / eclipse / osgi / internal / baseadaptor / DefaultClassLoader @ 679e679e"以前为名为" org / apache / axiom / soap / SOAPFactory"的其他类型启动加载由loader" com / ibm / ws / classloader / CompoundClassLoader @ 71817181"定义   java.lang.LinkageError:加载约束违规:loader" org / eclipse / osgi / internal / baseadaptor / DefaultClassLoader @ 679e679e"以前为名为" org / apache / axiom / soap / SOAPFactory"的其他类型启动加载由loader" com / ibm / ws / classloader / CompoundClassLoader @ 71817181"定义       at java.lang.ClassLoader.defineClassImpl(Native Method)       at java.lang.ClassLoader.defineClass(ClassLoader.java:265)       在org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160)       在org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:550)       在org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:520)       at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:451)       at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassName(ClasspathManager.java:430)       在org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)       在org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)       在org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)       在org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)       在org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)       在org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)       at java.lang.ClassLoader.loadClass(ClassLoader.java:609)       at java.lang.J9VMInternals.verifyImpl(Native Method)       at java.lang.J9VMInternals.verify(J9VMInternals.java:72)       在java.lang.J9VMInternals.initialize(J9VMInternals.java:134)       at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:154)       在org.apache.rampart.RampartMessageData。(RampartMessageData.java:270)       在org.apache.rampart.RampartEngine.process(RampartEngine.java:60)       在org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)       在org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)       在org.apache.axis2.engine.Phase.invoke(Phase.java:313)       在org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)       在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)       at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)       在org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)       在javax.servlet.http.HttpServlet.service(HttpServlet.java:738)       在javax.servlet.http.HttpServlet.service(HttpServlet.java:831)       在com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)       在com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)       在com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)       在com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)       在com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)       在com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)       在com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)       在com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)       在com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)       在com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)       at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)       在com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)       at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)       在com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)       at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)       在com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)       在com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)       在com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)       在com.ibm.io.async.ResultHandler $ 2.run(ResultHandler.java:896)       在com.ibm.ws.util.ThreadPool $ Worker.run(ThreadPool.java:1527)

1 个答案:

答案 0 :(得分:1)

请参阅本文,其中详细介绍了如何使用Axis2运行Axis2和解决Websphere中的错误

http://zacktutorials.blogspot.ca/2014/04/axis2-installation-in-websphere-80-to.html

问题:java.lang.VerifyError:违反了类加载约束(类:org / apache / xerces / dom / CoreDocumentImpl方法:getDomConfig()Lorg / w3c / dom / DOMConfiguration;)在pc:0

解决方案:( FIX代表“java.lang.VerifyError:违反了JVMVRFY013类加载约束”)

在xmlbeans-2.3.0.jar中删除org.dom包

http://www-01.ibm.com/support/docview.wss?uid=nas8N1011249