IBM Worklight 6.2/ Liberty 8.5.5.1
For the custom implementation of Webservice,
Java code had been written and jaxrpc.jar included in the server lib folder of worklight project
While testing in the eclipse it works fine.
When the build has moved to Testing environment the following error had thrown by the server.
Invocation of init method failed; nested exception is java.lang.LinkageError:
loaderconstraint violation: loader (instance of com/ibm/ws/classloading/internal
/ParentLastClassLoader) previously initiated loading for a different type with name
"javax/xml/namespace/QName"
I understand that there is a conflict. So I have removed the QName.class from jaxrpc.jar which is in server/lib folder. However I could deploy and run it on Testing environment without error.
Since, this is not a solution so I tried by removing jaxrpc.jar from server/lib then compiler throws exception in .java
The type javax.xml.rpc.Service cannot be resolved. It is indirectly referenced from required .class files
If still I proceed with the build, no error when while starting the server but class not found exception occurs at runtime.
How to make use of Liberty library or is any alternate way to solve.