BpelUnit standalone installation

29 views
Skip to first unread message

Sana

unread,
Dec 9, 2013, 10:10:29 AM12/9/13
to bpel...@googlegroups.com
Hi,
I am getting the following error on installing the standalone version of BpelUnit. The JAVA_HOME and BPELUNIT_HOME variables are set. 
I am running the shell script provided in the tar file.

Exception in thread "main" java.lang.NoClassDefFoundError: net/bpelunit/framework/ui/command/BPELUnitCommandLineRunner
Caused by: java.lang.ClassNotFoundException: net.bpelunit.framework.ui.command.BPELUnitCommandLineRunner
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Thanks for any help

Antonio García Domínguez

unread,
Dec 9, 2013, 3:58:44 PM12/9/13
to bpel...@googlegroups.com
Hi Sana,

I'm sorry to hear that you're running into trouble with BPELUnit. Could you please provide us with the exact values of your JAVA_HOME and BPELUNIT_HOME variables, and the address from which you downloaded the standalone distribution?

No problem,
Antonio



--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "BPELUnit" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine E-Mail an bpelunit+u...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out

Sana

unread,
Dec 15, 2013, 6:05:53 AM12/15/13
to bpel...@googlegroups.com
Hi Antonio,

My .bash_profile looks like this

export JAVA_HOME=`/usr/libexec/java_home -v 1.6`
export BPELUNIT_HOME=/Users/bpelunit-1.6.1

I got the standalone distribution from here  http://bpelunit.github.io/download/

thanks,
sana


On Monday, December 9, 2013 9:58:44 PM UTC+1, Antonio García Domínguez wrote:
Hi Sana,

I'm sorry to hear that you're running into trouble with BPELUnit. Could you please provide us with the exact values of your JAVA_HOME and BPELUNIT_HOME variables, and the address from which you downloaded the standalone distribution?

No problem,
Antonio

Antonio García Domínguez

unread,
Dec 15, 2013, 2:14:41 PM12/15/13
to bpel...@googlegroups.com
Hi Sana,

What is the output of "java -version"? It seems you're running a Java 6 JVM, but just in case.

I've tried running that copy of BPELUnit 1.3.1 from my machine (a 64-bit Ubuntu 13.10 installation using a Java 7 JVM) and it has worked fine. Are you using a Mac? I wonder if the shell script might not be working properly due to the slightly different shell tools (find and so on).

Here's a slightly tweaked version of bpelunit.sh that prints the classpath that is going to be used by BPELUnit. Could you try it out and post the output here?

Best regards,
Antonio
bpelunit.sh

Sana

unread,
Dec 16, 2013, 3:31:05 AM12/16/13
to bpel...@googlegroups.com

below is the output of the script...

-n :/Users/bpelunit-1.6.1/lib/activation-1.1.1.jar
-n :/Users/bpelunit-1.6.1/lib/ant-1.8.1.jar
-n :/Users/bpelunit-1.6.1/lib/ant-launcher-1.8.1.jar
-n :/Users/bpelunit-1.6.1/lib/ant-plugin-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/cloning-1.9.0.jar
-n :/Users/bpelunit-1.6.1/lib/commandline-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/commons-beanutils-1.7.0.jar
-n :/Users/bpelunit-1.6.1/lib/commons-cli-1.2.jar
-n :/Users/bpelunit-1.6.1/lib/commons-codec-1.3.jar
-n :/Users/bpelunit-1.6.1/lib/commons-collections-3.2.1.jar
-n :/Users/bpelunit-1.6.1/lib/commons-digester-1.8.jar
-n :/Users/bpelunit-1.6.1/lib/commons-httpclient-3.1.jar
-n :/Users/bpelunit-1.6.1/lib/commons-io-1.3.2.jar
-n :/Users/bpelunit-1.6.1/lib/commons-jxpath-1.3.jar
-n :/Users/bpelunit-1.6.1/lib/commons-lang-2.4.jar
-n :/Users/bpelunit-1.6.1/lib/commons-logging-1.1.1.jar
-n :/Users/bpelunit-1.6.1/lib/datasource-csv-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/datasource-excel-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/datasource-html-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/datasource-inliner-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/datasource-ods-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/dom4j-1.1.jar
-n :/Users/bpelunit-1.6.1/lib/framework-1.6.1-tests.jar
-n :/Users/bpelunit-1.6.1/lib/framework-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/geronimo-stax-api_1.0_spec-1.0.jar
-n :/Users/bpelunit-1.6.1/lib/jdom-1.1.3.jar
-n :/Users/bpelunit-1.6.1/lib/jetty-5.1.10.jar
-n :/Users/bpelunit-1.6.1/lib/log4j-1.2.15.jar
-n :/Users/bpelunit-1.6.1/lib/model-bpel-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/objenesis-1.2.jar
-n :/Users/bpelunit-1.6.1/lib/odfdom-java-0.8.6.jar
-n :/Users/bpelunit-1.6.1/lib/oro-2.0.8.jar
-n :/Users/bpelunit-1.6.1/lib/poi-3.6.jar
-n :/Users/bpelunit-1.6.1/lib/poi-ooxml-3.6.jar
-n :/Users/bpelunit-1.6.1/lib/poi-ooxml-schemas-3.6.jar
-n :/Users/bpelunit-1.6.1/lib/servlet-api-2.4.jar
-n :/Users/bpelunit-1.6.1/lib/stax-api-1.0.1.jar
-n :/Users/bpelunit-1.6.1/lib/truezip-6.8.2.jar
-n :/Users/bpelunit-1.6.1/lib/util-1.6.1.jar
-n :/Users/bpelunit-1.6.1/lib/velocity-1.7.jar
-n :/Users/bpelunit-1.6.1/lib/velocity-tools-2.0.jar
-n :/Users/bpelunit-1.6.1/lib/wsdl4j-1.6.2.jar
-n :/Users/bpelunit-1.6.1/lib/xercesImpl-2.9.1.jar
-n :/Users/bpelunit-1.6.1/lib/xml-apis-1.3.04.jar
-n :/Users/bpelunit-1.6.1/lib/xmlbeans-2.4.0.jar
Exception in thread "main" java.lang.NoClassDefFoundError: net/bpelunit/framework/ui/command/BPELUnitCommandLineRunner
Caused by: java.lang.ClassNotFoundException: net.bpelunit.framework.ui.command.BPELUnitCommandLineRunner
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)



----------------

the output of $ java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11G63)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

-----------------
The purpose is to call the command line tool(/ eclipse plug in ) to run the .bpts file and get the coverage of the test suite. Would be great if you can give any example on that.


Antonio García Domínguez

unread,
Dec 16, 2013, 6:40:02 PM12/16/13
to bpel...@googlegroups.com
Hi Sana,

Well, it seems that the MacOS X (BSD) version of "echo" does not support the "-n" option for not printing a newline at the end, and that is breaking the launch script, which assumes the user has GNU echo.

Can you try this other version of bpelunit.sh? I've replaced "echo" with "printf", which is more consistent over platforms.

Best regards,
Antonio


bpelunit.sh

Sana

unread,
Dec 17, 2013, 3:47:34 AM12/17/13
to bpel...@googlegroups.com
thanks for the script. It is working now. Now I have another question.

1. Does the command line version support ODE deployer ? As I have the test suite for ODE deployer, originally made for the eclipse plugin. But, if I give this suite to command line tool, it gives the following error. 

BPELUnit Command Line Runner
----------------------------
A configuration error was encountered when initializing BPELUnit
Description: The extension class for type activevos9 from the configuration could not be found. Check the CLASSPATH.
Original Exception Message: net.bpelunit.framework.control.deploy.activevos9.ActiveVOS9Deployer
Original Exception Message: The extension class for type activevos9 from the configuration could not be found. Check the CLASSPATH.
Original Exception Message: net.bpelunit.framework.control.deploy.activevos9.ActiveVOS9Deployer

2. How can I call the eclipse plugin from my java program to run the test suite  ? 

thanks for any help,
sana

Antonio García Domínguez

unread,
Dec 17, 2013, 4:36:38 AM12/17/13
to bpel...@googlegroups.com
Hi Sana,

Yes, the standalone version supports ODE. It seems you have an old version of BPELUnit with a bad configuration file. Please check $BPELUNIT_HOME/conf/extensions.xml and remove the "activevos9" <deployer> element. Current nightlies should have this fixed, but as you know already, test coverage is broken in them.

You don't need the Eclipse plugin to run the test suite. You just need to run your .bpts like this (run "bpelunit.sh" to see the available options):

bpelunit.sh -c coverage.xml suite.bpts

No problem,
Antonio


--
Reply all
Reply to author
Forward
0 new messages