Created attachment 1155616 [details] WebSphere server log Description of problem: SOAP does not work when Business Central is deployed on WebSphere AS. Version-Release number of selected component (if applicable): 6.2.3 CR1 Steps to Reproduce: 1. Run Business Central on WAS 2. Try to access http://SERVER_ADDRESS:9080/business-central/ws/CommandService?wsdl Actual results: 404 Not Found Expected results: SOAP working without any problems Additional info: It seems that the problem is caused by XStream library. This can be seen in the attached server log: WSWS7011E: The configuration for the business-central.war application module cannot load correctly. The following error occurred: com.ibm.ws.metadata.annotations.AnnotationException: Annotation processing failed for class: com/thoughtworks/xstream/mapper/LambdaMapper.class
Which version fo WAS is this?
It is WebSphere 8.5.5.7.
The com.thoughtworks.xstream.mapper.LambdaMapper class in XStream 1.4.9 can only be compiled using Java 8. https://github.com/x-stream/xstream/blob/master/xstream/src/java/com/thoughtworks/xstream/mapper/LambdaMapper.java#L45 The java.lang.reflect.Method.isDefault() method only exists in JDK 8: https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html#isDefault-- https://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html -- Websphere is failing because the ASM framework can not read the class -- and my very strong suspicion is that this is happened because the ASM framework being used doesn't expect a version 52/JDK 8 class. Caused by: java.lang.IllegalArgumentException at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.objectweb.asm.ClassReader.<init>(Unknown Source) at com.ibm.ws.metadata.annotations.AnnotationConfigReader.getAnnotationData(AnnotationConfigReader.java:836)
All further comments and status updates will happen here: https://issues.jboss.org/browse/RHBPMS-137
Verified with WAS 8.5.5.10. The deployed war hat the xstream 1.4.9. With JAVA 1.8 the WAS could be started and accessed http://SERVER_ADDRESS:PORT/business-central/ws/CommandService?wsdl, a XML was displayed. The WAS was stopped, the JAVA versions set to 1.6 and the WAS restarted. Also, when accessing http://SERVER_ADDRESS:PORT/business-central/ws/CommandService?wsdl a XML the same XML was dispalyed. This bug couldn't be reproduced with WAS 8.5.5.10.