Problem about JBoss dependencies

Hi all,

I’ve an activity doesn’t work after deploy on JBoss bundle.

It’s a human task with a form and list widget. In Studio, for load this list, I use a Java code written in Eclipse and I’ve exported it as Jar file.
I’ve imported this jar file in my Studio in applications dependencies and all works fine .

Then I’ve generated bar file and imported in Jboss bundle but when this task is loading, I got an exception because :

Script10.groovy: 1: unable to resolve class fr.actia.control.RetourneList
This is my jar.

My question is : where should I to add my jar in JBoss directories ?

Thanks in advance.

Hello big73

What is the version of JBOSS bundle that you have installed ?

Then have you followed up these instructions ?
http://documentation.bonitasoft.com/jboss-bundle-2

Keep in mind that Java 1.8 is not supported.
http://documentation.bonitasoft.com/hardware-and-software-requirements-0

The BonitaBPM Studio uses a embedded Tomcat 7 version, so it seems you are facing a config issue on the JBOSS implementation. Have you tried to import and run a simple process without any external jar lib ?

Finally, when you built the bar file, is the jar included in the process dependencies ?

Regards,
LL

Hi bos2013

thank you for your response.
Yeah, I’ve followed http://documentation.bonitasoft.com/jboss-bundle-2 except SGBD configuration and the JVM is 1.7.

I’ve tried to deploy a process without external jar and it works fine.

Must I to add this jar in process dependencies too ? I’ve put this jar in application dependencies yet, isn’t a problem this duplication ?

Thank you again !

Thanks for the feedback.

Yes please add the jar to the process dependencies too. And send me the feedback.

Regards
LL

I’ve added this jar in process dependencies and effectively it working better but not like I want.

When I start Jboss and connect to Bonita and start my first process I get this :

USERNAME=user1 | java.lang.ExceptionInInitializerError

Then, when with this user I start an other process I get :

USERNAME=user1 | java.lang.NoClassDefFoundError: Could not initialize class org.jdom2.input.sax.XMLReaders

Thank you again

I’ve just deployed my bar file on Tomcat Server and now I’ve got this exception when I execute for the first time my process :

USERNAME=user1 | javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found

And when I execute my process time I’ve got this :

USERNAME=remi.boue | java.lang.NoClassDefFoundError: Could not initialize class org.jdom2.input.sax.XMLReaders

Someone could help me by telling me where and which jar add in Tomcat directories ?

Thanks in advance

Hi,

Have you checked the logs in the JBOSS server if there is more information ?

In the meantime, are everything well initialized when using this process + jar ?

Finally about the last error, is a class/jar not missing ? org.jdom2 on you server side ?

A bientôt.

Hi bos and sorry for my delay,

Now, I just need to know how and where org.jdom2 on JBoss server.
would you know how to do it ?

A plus

Hello,

Have you check the website about JDOM ?
http://www.jdom.org/docs/faq.html

And mainly about
http://www.jdom.org/docs/faq.html#a0090

Check also you are using the right JDOM version 1.x or 2.x.

Best regards,
LL

Thank you bos for your response.

But I need to know how to add a librairy in side of JBoss.

I’ve read this HOWTO but it doesn’t work for me :confused:

Here the problem is that the jboss bundle delivered by BonitaSoft is a little bit modified with Bonita implementation and name files are too modified, then I can’t match them with tutos that I can to find on Internet.