Greetings guys,
I have the following issue, our team made a Spring REST API that uses alfresco jars and dependencies to
connect to local alfresco service. The war deploys just fine, however
when i try to call a function that uses a method to retrieve a file URL i
get the following error:
[2021-07-23T15:22:22.832-0500] [Payara 5.2021.1] [INFORMACIÓN] [] []
[tid: _ThreadID=88 _ThreadName=http-thread-pool::http-listener-1(2)]
[timeMillis: 1627071742832] [levelValue: 800] [[
2021-07-23
15:22:22.829 ERROR 18008 --- [p-listener-1(2)]
o.s.b.w.servlet.support.ErrorPageFilter : Forwarding to error page from
request [/prueba/consultaPrueba2] due to exception
[org.apache.xml.security.transforms.Transform.init()V]
java.lang.NoSuchMethodError: org.apache.xml.security.transforms.Transform.init()V at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:255) ~[wss4j-1.5.5.jar:na]
at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:269) ~[wss4j-1.5.5.jar:na]
at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:278) ~[wss4j-1.5.5.jar:na]
at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:93) ~[wss4j-1.5.5.jar:na]
at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170) ~[wss4j-1.5.5.jar:na]
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) ~[axis-1.4.jar:na]
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) ~[axis-1.4.jar:na]
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) ~[axis-1.4.jar:na]
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127) ~[axis-1.4.jar:na]
at org.apache.axis.client.Call.invokeEngine(Call.java:2784) ~[axis-1.4.jar:na]
at org.apache.axis.client.Call.invoke(Call.java:2767) ~[axis-1.4.jar:na]
at org.apache.axis.client.Call.invoke(Call.java:2443) ~[axis-1.4.jar:na]
at org.apache.axis.client.Call.invoke(Call.java:2366) ~[axis-1.4.jar:na]
at org.apache.axis.client.Call.invoke(Call.java:1812) ~[axis-1.4.jar:na]
I have checked the jar in question wss4j-1.5.5.jar
and the method Transform.init() does exists in it, so i don't know whats going on here.
Also i
verified
that all the jars needed are bundled in the war /web-inf/lib/ path.
Additionally deploying the same war on tomcat 9 works without issues.
¿Does anyone have any idea why i have this behavior happening in payara?
Thanks in advance.