Hello All!
I created simple document review process with few variables and document attachment.
I was able to start the process, get the process/task details, complete the task etc. using REST api without enabling the basic authentication filter. But once I add the authentication filter to tomcat web.xml file with the below value as given in this link,
<filter>
<filter-name>camunda-auth</filter-name>
<filter-class>
org.camunda.bpm.engine.rest.security.auth.ProcessEngineAuthenticationFilter
</filter-class>
<async-supported>true</async-supported>
<init-param>
<param-name>authentication-provider</param-name>
<param-value>org.camunda.bpm.engine.rest.security.auth.impl.HttpBasicAuthenticationProvider</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>camunda-auth</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Iâm getting following error in the service task which is the following task of my start task,
{
âtypeâ: âRestExceptionâ,
âmessageâ: âCannot instantiate process definition documentreview:13:7381e4ad-5f8a-11eb-a695-d8f2ca5e626d: ENGINE-09008 Exception while instantiating class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: ENGINE-09017 Cannot load class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: com.demo.bpm.reviewprocess.LoggerDelegateâ
}
I see the following error in the tomcat log,
org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: ENGINE-09008 Exception while instantiating class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: ENGINE-09017 Cannot load class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: com.demo.bpm.reviewprocess.LoggerDelegate
org.camunda.bpm.engine.ProcessEngineException: ENGINE-09008 Exception while instantiating class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: ENGINE-09017 Cannot load class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: com.demo.bpm.reviewprocess.LoggerDelegate
.
.
Caused by: org.camunda.bpm.engine.ClassLoadingException: ENGINE-09017 Cannot load class âcom.demo.bpm.reviewprocess.LoggerDelegateâ: com.demo.bpm.reviewprocess.LoggerDelegate
at org.camunda.bpm.engine.impl.util.EngineUtilLogger.classLoadingException(EngineUtilLogger.java:146)
at org.camunda.bpm.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:111)
at org.camunda.bpm.engine.impl.util.ClassDelegateUtil.instantiateDelegate(ClassDelegateUtil.java:46)
⌠123 more
Caused by: java.lang.ClassNotFoundException: com.demo.bpm.reviewprocess.LoggerDelegate
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.camunda.bpm.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:88)
⌠124 more
This âLoggerDelegateâ got only the message to log the details of the process instance details and variables no other logic.
But if I comment out the authentication filter in the web.xml it works fine.
Please let me know what Iâm missing.
Thanks in advance!