# Run has failed while deploying the process

**URL:** <https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237>\
**Category:** Q&A\
**Created:** [14 June 2022 05:57 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237 "2022-06-14T05:57:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JIUN](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@JIUN](https://community.ofelia.com/u/JIUN)\
**Post date:** [14 June 2022 05:57 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/1 "2022-06-14T05:57:41Z")

</div>

Hi everyone,

When I import the BOS file I can't execute the process, he always shows the following error

Error when trying to create bar for "my process Pool name" (1.0)

&nbsp;

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [14 June 2022 07:09 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/2 "2022-06-14T07:09:06Z")

</div>

Hi,

You can find more details in the [logs](https://documentation.bonitasoft.com/bonita/2022.1/setup-dev-environment/log-files#_studio_log_file).

HTH  
Romain

---

<div class="post-metadata">

**Author:** ![JIUN](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@JIUN](https://community.ofelia.com/u/JIUN)\
**Post date:** [14 June 2022 09:10 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/3 "2022-06-14T09:10:02Z")

</div>

Thank for your reply,

&nbsp;

I found my project details.

The information consists of the following:

!ENTRY org.bonitasoft.studio.engine 1 0 2022-06-14 15:55:17.261  
!MESSAGE Attempt to login as User2

!ENTRY org.bonitasoft.studio.engine 1 0 2022-06-14 15:55:18.224  
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2022-06-14 15:55:18.308  
!MESSAGE Building bar for process Pool (1.0 )...

!ENTRY org.bonitasoft.studio.common 4 0 2022-06-14 15:55:20.882  
!MESSAGE Failed to add Process resources from configuration.  
!STACK 0  
org.bonitasoft.studio.engine.export.BarCreationException: Failed to add Process resources from configuration.  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:122)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:199)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.operation.DeployProcessOperation.deployProcess(DeployProcessOperation.java:176)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.operation.DeployProcessOperation.deploy(DeployProcessOperation.java:156)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.operation.DeployProcessOperation.run(DeployProcessOperation.java:115)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.operation.RunProcessOperation.run(RunProcessOperation.java:90)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.command.RunProcessCommand$1.run(RunProcessCommand.java:140)  
&nbsp;&nbsp; &nbsp;at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)  
Caused by: org.bonitasoft.studio.groovy.provider.JarExportFailedException: Error while building Jar for Groovy scripts in Process dependencies.&nbsp;  
Please check scripts in Development -\> Manage Groovy scripts...&nbsp;  
BonitaXML.groovy (line 8, col 238): The package javax.xml.transform is accessible from more than one module: \<unnamed\>, java.xml&nbsp;

&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.groovy.provider.GroovyScriptBarResourceProvider.addGroovyCompilationUnitToClasspath(GroovyScriptBarResourceProvider.java:121)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.groovy.provider.GroovyScriptBarResourceProvider.addProvidedScriptsToClasspath(GroovyScriptBarResourceProvider.java:89)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.groovy.provider.GroovyScriptBarResourceProvider.addResourcesForConfiguration(GroovyScriptBarResourceProvider.java:75)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:120)  
&nbsp;&nbsp; &nbsp;... 7 more

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [14 June 2022 09:12 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/4 "2022-06-14T09:12:08Z")

</div>

It looks like one of your project dependencies in not compliant with Java 11 and prevent the compilation of some classes from the project.

---

<div class="post-metadata">

**Author:** ![JIUN](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@JIUN](https://community.ofelia.com/u/JIUN)\
**Post date:** [15 June 2022 08:11 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/5 "2022-06-15T08:11:32Z")

</div>

I tried to change JAVA to version 11 and the result is the same as the above error

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [15 June 2022 11:16 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/6 "2022-06-15T11:16:51Z")

</div>

It is not about a java version to update. It is required to use Java 11. But one of your connectors or script uses a dependency not compatible with java 9+ module system (eg: old versions of xerces).

You may use a terminal and run the following maven command from the root of your project to have a report of all your dependencies:

`
mvn dependency:tree
`

You can post the result if you need help to identify the culprit

---

<div class="post-metadata">

**Author:** ![JIUN](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@JIUN](https://community.ofelia.com/u/JIUN)\
**Post date:** [25 June 2022 10:29 UTC](https://community.ofelia.com/t/run-has-failed-while-deploying-the-process/11237/7 "2022-06-25T10:29:50Z")

</div>

Hi!,

This is the result of the execution

&nbsp;

C:\Users\USER\>cd C:\BonitaStudioCommunity-2022.1-u0\workspace\exam\_test

C:\BonitaStudioCommunity-2022.1-u0\workspace\exam\_test\>mvn dependency:tree  
[INFO] Scanning for projects...  
[INFO]  
[INFO] -----------------------\< com.company:my-project \>-----------------------  
[INFO] Building exam\_test 0.0.1  
[INFO] --------------------------------[jar]---------------------------------  
Downloading from central: https://repo.maven.apache.org/maven2/org/glassfish/jaxb/txw2/2.4.0-b180608.0325/txw2-2.4.0-b180608.0325.pom  
Downloading from jvnet-nexus-releases: https://maven.java.net/content/repositories/releases/org/glassfish/jaxb/txw2/2.4.0-b180608.0325/txw2-2.4.0-b180608.0325.pom  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: &nbsp;10.401 s  
[INFO] Finished at: 2022-06-25T18:29:34+08:00  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal on project my-project: Could not resolve dependencies for project com.company:my-project:jar:0.0.1: Failed to collect dependencies at org.bonitasoft.connectors:bonita-connector-webservice:jar:1.3.3 -\> com.sun.xml.ws:jaxws-rt:jar:2.3.1 -\> com.sun.xml.ws:policy:jar:2.7.5 -\> org.glassfish.jaxb:txw2:jar:2.4.0-b180608.0325: Failed to read artifact descriptor for org.glassfish.jaxb:txw2:jar:2.4.0-b180608.0325: Could not transfer artifact org.glassfish.jaxb:txw2:pom:2.4.0-b180608.0325 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [releases.java.net (http://maven.java.net/content/repositories/releases/, default, releases+snapshots), jvnet-nexus-staging (http://maven.java.net/content/repositories/staging/, default, releases+snapshots), eclipse (http://download.eclipse.org/rt/eclipselink/maven.repo, default, releases+snapshots), jvnet-nexus-snapshots (http://maven.java.net/content/repositories/snapshots/, default, snapshots)] -\> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please read the following articles:  
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
