# Jar file didn't build properly

**URL:** <https://community.ofelia.com/t/jar-file-didnt-build-properly/9386>\
**Category:** Q&A\
**Created:** [28 December 2018 15:31 UTC](https://community.ofelia.com/t/jar-file-didnt-build-properly/9386 "2018-12-28T15:31:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donghee.baik](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@donghee.baik](https://community.ofelia.com/u/donghee.baik)\
**Post date:** [28 December 2018 15:31 UTC](https://community.ofelia.com/t/jar-file-didnt-build-properly/9386/1 "2018-12-28T15:31:15Z")

</div>

Hello  
I updated Bonitastudio 7.4.3 to 7.6.3  
When I imported Bos file from the previous version, the dependency didn’t work and has an error.

I imported jar by Manage jars and configured Process dependencies and Application dependencies.

Even I try to put jar file into tomcat\_bundle\_Home\webapps\bonita\WEB-INF\lib  
based on the answer: [[SOLVED] Where to add dependencies ? - Q&A - Bonitasoft Forum](http://community.ofelia.com/questions-and-answers/solved-where-add-dependencies)

## However, I still have the same error as below : Do I need to more configure for dependency or miss some parts? Any help appreciated in advance. ` 28-Dec-2018 09:52:57.077 SEVERE [Bonita-Worker-1-09] org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl.log THREAD\_ID=1542 | HOSTNAME=WNETAP262 | TENANT\_ID=1 | The work [ExecuteFlowNodeWork: flowNodeInstanceId: 20174] failed. The failure will be handled. 28-Dec-2018 09:52:57.078 SEVERE [Bonita-Worker-1-09] org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl.log THREAD\_ID=1542 | HOSTNAME=WNETAP262 | TENANT\_ID=1 | com.thoughtworks.xstream.converters.ConversionException : " ---- Debugging information ---- cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.bonitasoft.departmessagetype.MessageType class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter path : /list/org.bonitasoft.departmessagetype.MessageType line number : 1 version : 1.4.10 -------------------------------" com.thoughtworks.xstream.converters.ConversionException: ---- Debugging information ---- cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.bonitasoft.departmessagetype.MessageType class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter path : /list/org.bonitasoft.departmessagetype.MessageType line number : 1 version : 1.4.10

```
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1328)
at org.bonitasoft.engine.data.instance.model.impl.SXMLObjectDataInstanceImpl.revert(SXMLObjectDataInstanceImpl.java:59)
at org.bonitasoft.engine.data.instance.model.impl.SXMLObjectDataInstanceImpl.getValue(SXMLObjectDataInstanceImpl.java:40)
at org.bonitasoft.engine.expression.DataExpressionExecutorStrategy.evaluate(DataExpressionExecutorStrategy.java:109)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:141)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionsOfKind(ExpressionResolverServiceImpl.java:225)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateAllExpressionsWithNoDependencies(ExpressionResolverServiceImpl.java:182)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionsFlatten(ExpressionResolverServiceImpl.java:115)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluate(ExpressionResolverServiceImpl.java:83)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.evaluateRightOperandExpression(OperationServiceImpl.java:198)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.calculateRightOperandValue(OperationServiceImpl.java:121)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.executeOperators(OperationServiceImpl.java:106)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.execute(OperationServiceImpl.java:95)
at org.bonitasoft.engine.execution.state.CompletingCallActivityStateImpl.executeDataOutputOperations(CompletingCallActivityStateImpl.java:101)
at org.bonitasoft.engine.execution.state.CompletingCallActivityStateImpl.beforeConnectors(CompletingCallActivityStateImpl.java:88)
at org.bonitasoft.engine.execution.state.OnEnterOrOnFinishConnectorState.execute(OnEnterOrOnFinishConnectorState.java:59)
at org.bonitasoft.engine.execution.state.OnEnterOrOnFinishConnectorState.execute(OnEnterOrOnFinishConnectorState.java:1)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeState(FlowNodeExecutorImpl.java:129)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.updateState(FlowNodeExecutorImpl.java:180)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.stepForward(FlowNodeExecutorImpl.java:164)
at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeFlowNode(FlowNodeExecutorImpl.java:338)
at org.bonitasoft.engine.execution.work.ExecuteFlowNodeWork.work(ExecuteFlowNodeWork.java:85)
at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:48)
at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:1)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)
at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:53)
at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:74)
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: com.thoughtworks.xstream.mapper.CannotResolveClassException: org.bonitasoft.departmessagetype.MessageType  
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81)  
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)  
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)  
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)  
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)  
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)  
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)  
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)  
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)  
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)  
at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)  
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)  
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)  
at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)  
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:72)  
at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:98)  
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:91)  
at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:85)  
at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)  
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)  
… 43 more`

---

<div class="post-metadata">

**Author:** ![test.bar\_1389222](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@test.bar\_1389222](https://community.ofelia.com/u/test.bar_1389222)\
**Post date:** [29 December 2018 13:35 UTC](https://community.ofelia.com/t/jar-file-didnt-build-properly/9386/2 "2018-12-29T13:35:03Z")

</div>

Hi,  
I have the same problem when I use the Import feature in “Manage dependencies” with Bonita Studio 7.8. The jar files get corrupted. I copy the dependencies directly into my project (Directory BonitaStudioCommunity-7.8.0\workspace{Project Name}\lib) by using the Windows-Explorer.  
Cheers

---

<div class="post-metadata">

**Author:** ![donghee.baik](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@donghee.baik](https://community.ofelia.com/u/donghee.baik)\
**Post date:** [3 January 2019 14:13 UTC](https://community.ofelia.com/t/jar-file-didnt-build-properly/9386/3 "2019-01-03T14:13:36Z")

</div>

Thanks for your comment.  
I tried the way you recommend, however, I couldn’t solve the issue.

I solved this issue by recreating jar on Bonita Studio.  
Development \> data type \> edit data types \> Create as Jar.  
Once I recreated the Jar, the Process dependencies and Application dependencies in Configure menu were set correctly. Then, build the process again. finally, it works now.

Thanks.
