best is to keep it only in WEB-INF/lib of kie workbench. Then define the marshaling strategy in deployment descriptor of your project and that should simply fine it.
Since it does not could you please attach:
- complete stacktrace
- your project
that way we can quickly verify it what might be the issue.
Sure, thanks for the help.
Attached is the stack trace and my project, which is just the kie-wb-distribution-wars maven project with the pom file changed to add the extra libraries, ie
This pulls the webapp from the repo and repackages it for wildfly etc (you probably know this) and adding the libraries here seems to happily add the jar files to WEB-INF/lib.
For completeness I ought to mention that I've altered my copy of kie-wb-webapp to use postgres rather than h2 and the copy in my local repo has those changes, but no others.
I think the postgres thing is not relevant. I can send you that if you want, but I figure it will be easier for any testing you want to do to stick to h2.
I've removed the other copies of the libraries, rebuilt this war this morning and redeployed it, and verified that I still get the error. I've also attached my process repository (R5.git.tar.bz2) which contains one simple process. The error I get is when I try and build&deploy that process.
A ton of other errors come up when I run this but I'm ignoring these for now.
thanks for the details, I'll look into it later today.
I believe the root cause is the white spaces in the deployment descriptor:
<marshalling-strategies> <marshalling-strategy> <resolver>reflection</resolver> <identifier> org.jbpm.document.marshalling.DocumentMarshallingStrategy </identifier> </marshalling-strategy> </marshalling-strategies>
could you give it a try with following config:
<marshalling-strategies> <marshalling-strategy> <resolver>reflection</resolver> <identifier>org.jbpm.document.marshalling.DocumentMarshallingStrategy</identifier> </marshalling-strategy> </marshalling-strategies>
with this we ensure that there is correct FQCN given.
in 6.2 there is dedicated editor for deployment descriptor so this sort of issues should not be valid any longer.
Worked immediately, thanks.
There is a need to add attachment to the process. I have successfully created the marshall and configured as required.
Created a process variable named 'Document' of type 'Object' and custom type as 'org.jbpm.document.Document' .
While executing the prcess and trying to add the a file to the process, I am getting the below error after submit.
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.jbpm.document.Document
at org.jbpm.formModeler.fieldTypes.document.handling.JBPMDocumentFieldTypeHandler.getInputHTML(JBPMDocumentFieldTypeHandler.java:172) [jbpm-form-modeler-document-6.3.0.Final.jar:6.3.0.Final]
at org.jbpm.formModeler.core.processing.fieldHandlers.plugable.PlugableFieldHandlerFormatter.service(PlugableFieldHandlerFormatter.java:51) [jbpm-form-modeler-ui-6.3.0.Final.jar:6.3.0.Final]
Please suggest on the same?
P.S. I am using version 6.3.0
Thanks in advance.