我对此错误有疑问,我尝试将xmlsec,wss4j和其他jar文件替换为不同的版本,但是结果是相同的。引发错误的Liferay 6.1
服务器具有Tomcat version 6.0.35
,但在具有Tomcat 7
的localhost中,portlet可以正常工作。我该如何解决?
java.lang.NoSuchMethodError: org.apache.xml.security.transforms.Transform.init()V
at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:244)
at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:256)
at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:265)
at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:89)
at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query(RepositoryServiceSoapBindingStub.java:753)
at es.pack.test.accessalfresco.commands.implementaciones.FindElementsByPropertiesCommand.getElements(FindElementsByPropertiesCommand.java:98)
at es.pack.test.accessalfresco.commands.implementaciones.FindElementsByPropertiesCommand.execute(FindElementsByPropertiesCommand.java:71)
at es.pack.test.accessalfresco.commands.UnmanagedSessionCommandExecutor.execute(UnmanagedSessionCommandExecutor.java:59)
at es.pack.test.accessalfresco.AccessAlfresco.findElementsByProperties(AccessaAlfresco.java:1734)
at es.pack.test.myapp.MyApp.processAction(MyApp.java:87)
我的类路径包含下一个jar:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/saaj-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/wss4j-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xalan-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xercesImpl-2.8.0-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xmlsec-1.4.1-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/wsdl4j-1.6.2-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/opensaml-1.0.1-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jaxrpc-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/web-service-client-4.0.a.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/wss4j-1.5.4-patched-3.0.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/client-access-alfresco-2.4.2.jar"/>
<classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
</classpath>