title: NoSuchMethodError (wss4j jar) on Payara server but work in Tomcat
body: <p>I try to get a document URL from alfresco 4.0.2 enterprise. I maked an webservice as WAR with Java 8. It work in tomcat 9 (java 8), but not in my Payara community server 5.2021.1.</p>
  <p>The war deploys correctly in Payara, but when I get the webservice recibe an NoSuchMethodError:</p>
  <pre><code>java.lang.NoSuchMethodError: org.apache.xml.security.transforms.Transform.init()V
  at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:308) ~[wss4j-1.5.12.jar:na]
  at org.apache.ws.security.WSSConfig.&lt;init&gt;(WSSConfig.java:324) ~[wss4j-1.5.12.jar:na]
  at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:333) ~[wss4j-1.5.12.jar:na]
  at org.apache.ws.security.WSSConfig.getDefaultWSConfig(WSSConfig.java:342) ~[wss4j-1.5.12.jar:na]
  at org.apache.ws.security.WSSecurityEngine.getWssConfig(WSSecurityEngine.java:157) ~[wss4j-1.5.12.jar:na]
  at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:97) ~[wss4j-1.5.12.jar:na]
  at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170) ~[wss4j-1.5.12.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]
  at org.alfresco.webservice.content.ContentServiceSoapBindingStub.read(ContentServiceSoapBindingStub.java:467) ~[alfresco-web-service-client-3.4.b.jar:na]
  at com.cfemex.lv.apps.alfresco.models.dao.AlfrescoDAO.getArchivoURL(AlfrescoDAO.java:349) ~[AlfrescoDAO.class:na]
  at com.cfemex.lv.apps.alfresco.models.services.AlfrescoBO.mostrarArchivo(AlfrescoBO.java:132) ~[AlfrescoBO.class:na]
  at com.cfemex.lv.apps.alfresco.controlllers.PruebaRestController.prueba2(PruebaRestController.java:32) ~[PruebaRestController.class:na]
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]
  at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
  at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) ~[spring-web-5.3.4.jar:5.3.4]
  at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) ~[spring-web-5.3.4.jar:5.3.4]
  at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.3.4.jar:5.3.4]
  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) ~[spring-webmvc-5.3.4.jar:5.3.4]
  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.4.jar:5.3.4]
  at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.4.jar:5.3.4]
  </code></pre>
  <p>The rute org.apache.xml.security.transforms.Transform.init() is not in wss4j-1.5.12.jar, its on xmlsec-1.4.1.jar. I don't know why get this error in Payara but not in Tomcat.</p>
  <p>In payara i put the jars in:</p>
  <ul>
  <li>payara5\glassfish\domains\domain1\lib</li>
  <li>payara5\glassfish\lib</li>
  </ul>
  <p>The error comes from my conection method:</p>
  <pre><code>private void Conection(String user, String password){
      try {
          WebServiceFactory.setEndpointAddress(Util.getAlfrescoServer());
          AuthenticationUtils.startSession(user, password);
      } catch (Exception authenticationFault) {
          System.out.println(authenticationFault.getMessage());
          authenticationFault.printStackTrace();
      } }
  </code></pre>
  <p>I using this jars:</p>
  <ul>
  <li>alfresco-core-3.4.b.jar</li>
  <li>alfresco-data-model-3.4.b.jar</li>
  <li>alfresco-deployment-3.4.b.jar</li>
  <li>alfresco-jlan-embed-3.4.b.jar</li>
  <li>alfresco-jndi-client-3.4.b.jar</li>
  <li>alfresco-mbeans-3.4.b.jar</li>
  <li>alfresco-remote-api-3.4.b.jar</li>
  <li>alfresco-repository-3.4.b.jar</li>
  <li>alfresco-web-client-3.4.b.jar</li>
  <li>alfresco-web-service-client-3.4.b.jar</li>
  <li>axis-1.4.jar</li>
  <li>axis-schema.jar</li>
  <li>commons-discovery-0.2.jar</li>
  <li>commons-logging-1.1.jar</li>
  <li>jaxrpc.jar</li>
  <li>wsdl4j-1.5.1.jar</li>
  <li>wss4j-1.5.12.jar</li>
  <li>xmlsec-1.4.1.jar</li>
  <li>xmlsec-1.4.1.jar</li>
  </ul>
  <p>thanks in advance.</p>