Problem about JBoss dependencies

1
0
-1

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.

Comments

Submitted by bos2013 on Mon, 02/16/2015 - 16:09

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

Submitted by big73 on Tue, 02/17/2015 - 08:52

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 !

Submitted by bos2013 on Tue, 02/17/2015 - 10:38

Thanks for the feedback.

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

Regards LL

Submitted by big73 on Tue, 02/17/2015 - 11:05

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

Submitted by big73 on Tue, 02/17/2015 - 15:18

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

Submitted by bos2013 on Tue, 02/17/2015 - 16:38

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.

Submitted by big73 on Mon, 03/02/2015 - 10:23

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

Submitted by bos2013 on Mon, 03/02/2015 - 11:14

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

Submitted by big73 on Mon, 03/02/2015 - 16:26

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 :/

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.

No answers yet.
Testing
Notifications