Hoyya,
my Bonita process is the following:
- starts from a Java-BE instantiation,
- manipulates BDM data on the form,
- then validates on frontend through a REST-API-Extensions endpoint. (Response error handled: printed out)
If no error in the response:
- both the response and the form data are stored in the BDM.
- When a ServiceTask sends back this data to the starter system through SOAP-WS-connector, it drops me this Exception:
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=7584137026408397581 | PROCESS_NAME=KitttyAdoptProcess | PROCESS_VERSION=1.0.2 | PROCESS_INSTANCE_ID=118034 | ROOT_PROCESS_INSTANCE_ID=118034 | FLOW_NODE_DEFINITION_ID=5861212463674097943 | FLOW_NODE_INSTANCE_ID=2220177 | FLOW_NODE_NAME=SoapCallBack | CONNECTOR_IMPLEMENTATION_CLASS_NAME=callBackWithFlags | CONNECTOR_INSTANCE_ID=2120134 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.apache.cxf.jaxws22.spi.ProviderImpl could not be instantiated at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:285) at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:158) at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:114) at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:138) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:58) at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$0(BonitaThreadPoolExecutor.java:90) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.apache.cxf.jaxws22.spi.ProviderImpl could not be instantiated at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:125) at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:279) ... 12 more Caused by: java.util.concurrent.ExecutionException: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.apache.cxf.jaxws22.spi.ProviderImpl could not be instantiated at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at com.bonitasoft.engine.connector.impl.ConnectorExecutorTimedOut.getValue(ConnectorExecutorTimedOut.java:54) at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:122) ... 13 more Caused by: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.apache.cxf.jaxws22.spi.ProviderImpl could not be instantiated at java.util.ServiceLoader.fail(Unknown Source) at java.util.ServiceLoader.access$100(Unknown Source) at java.util.ServiceLoader$LazyIterator.nextService(Unknown Source) at java.util.ServiceLoader$LazyIterator.next(Unknown Source) at java.util.ServiceLoader$1.next(Unknown Source) at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Unknown Source) at javax.xml.ws.spi.Provider.provider(Unknown Source) at javax.xml.ws.Service.<init>(Unknown Source) at javax.xml.ws.Service.create(Unknown Source) at org.bonitasoft.connectors.ws.SecureWSConnector.executeBusinessLogic(SecureWSConnector.java:157) at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77) at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:73) at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:206) at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:176) at java.util.concurrent.FutureTask.run(Unknown Source) ... 3 more Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/interceptor/InterceptorProvider at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at org.bonitasoft.engine.classloader.MonoParentJarFileClassLoader.access$200(MonoParentJarFileClassLoader.java:40) at org.bonitasoft.engine.classloader.MonoParentJarFileClassLoader$6.run(MonoParentJarFileClassLoader.java:250) at java.security.AccessController.doPrivileged(Native Method) at org.bonitasoft.engine.classloader.MonoParentJarFileClassLoader.findClass(MonoParentJarFileClassLoader.java:216) at org.bonitasoft.engine.classloader.BonitaClassLoader.loadClass(BonitaClassLoader.java:156) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) ... 16 more Caused by: java.lang.ClassNotFoundException: org.apache.cxf.interceptor.InterceptorProvider at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1136) at org.bonitasoft.engine.classloader.VirtualClassLoader.loadClass(VirtualClassLoader.java:88) at org.bonitasoft.engine.classloader.BonitaClassLoader.loadClass(BonitaClassLoader.java:170) at org.bonitasoft.engine.classloader.VirtualClassLoader.loadClass(VirtualClassLoader.java:86) at org.bonitasoft.engine.classloader.BonitaClassLoader.loadClass(BonitaClassLoader.java:170) at java.lang.ClassLoader.loadClass(Unknown Source)
I said this is a dependency problem, but I'm not so sure about it. Please help me if you have an idea how to handle this problem.
Thank you,
Pivi