Created attachment 897062 [details] stacktrace from server log Description of problem: Having the Business Central deployed on WebSphere, starting a new process instance via kie-services-client throws an exception: java.lang.ClassCastException: org.kie.services.client.serialization.jaxb.rest.JaxbExceptionResponse cannot be cast to org.kie.services.client.serialization.jaxb.impl.JaxbCommandsResponse at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:407) at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:121) at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232) at org.jboss.qa.bpms.jbpm.integration.client.Client.startProcess(Client.java:173) at org.jboss.qa.bpms.jbpm.integration.client.task.CTaskOperationTest.testExecuteTaskOp(CTaskOperationTest.java:78) The cause is an exception thrown by apache wink in server log: WebApplicationException (415 - Unsupported Media Type) with message 'null' while processing POST request Full stacktrace can be found in the attachment. Steps to Reproduce: 1. deploy Business Central to WebSphere 2. build a project containing some process definition 3. start the process via kie-services-client
Hi Radovan, Would it be possible to include the entire stack trace? The attached stack trace refers to a different error than the stack trace posted in the error above. Thank!
Created attachment 897233 [details] error stacktrace - both client and server
(In reply to Marco Rietveld from comment #1) Hi Marco, sorry for such a misleading information, I just picked one of many failing tests and tried to provide corresponding server side exception, which as it seems, was not so corresponding. I have just uploaded a new pair of exceptions from single test run.
Hi Radovan, no problem. Would you be able to attach the entire server log? I have the feeling that there's an exception that happened that I'm not seeing. Thanks.
after investigation the issue seems to be already fixed on both 6.0.x and master (tested on both) and could not reproduce the problem. Although on last product build the issue is indeed visible. Unfortunately I cannot find out easily what change has made the fix so can't attach a patched jar. Marking as modified to get retested on ER3.
Clearing "needinfo" due to comment 5.
Created attachment 901355 [details] errors - server and client (hopefully matching), ER3
Please take a look at the new attachment 901355 [details], the issue persists with BPMS-6.0.2.ER3.
Created attachment 901400 [details] standalone reproducer Attaching reproducer, standalone maven project. 1. start business central on WebSphere 2. create a deployment unit containing any process definition 3. use the reproducer - edit test-config.properties and run via mvn test
problem is caused by addition of jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-2.jar library into WEB-INF/lib of business central. This does not exist in community build (even non red hat version jaxb-api thus it might be added during product bold somewhere. Reassign to Ryan for investigation on product build side.
On initial investigation, this is happening due to an EAP relocation of sun-jaxb:jaxb-api to org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:1.0.4.Final-redhat-2 This should also be failing on EAP as well. I'm looking into this and will update once I know more.
Agreed with George! @Kris Actually I found that it the exclude is already existed there. But there is typo in the assembly-kie-drools-wb-websphere-as-8_5.xml. [1] actual: jboss-jaxb-api-*.jar, expect: jboss-jaxb-api_*.jar I would assign it to you. Thanks very much,Kris! [1]: https://github.com/jboss-integration/kie-wb-distributions/blob/6.0.x/kie-drools-wb/kie-drools-wb-distribution-wars/src/main/assembly/assembly-kie-drools-wb-websphere-as-8_5.xml#L222
master: https://github.com/droolsjbpm/kie-wb-distributions/commit/d52714fa6c01cbecc0d93dbe8cc086736a1fb2f4 6.0.x: https://github.com/droolsjbpm/kie-wb-distributions/commit/624688f406a1458c35524b29dfe9801471872596
Verified with BPMS-6.0.2.CR1