Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » BPEL Designer » I need to convert some BPEL-models using the BPELReader
I need to convert some BPEL-models using the BPELReader [message #10823] Fri, 08 August 2008 16:47 Go to next message
Eclipse UserFriend
Originally posted by:


I have to convert some BPEL-models that are not based on EMF!
The Designer is able to open them, so I thought that I were able to use
the org.eclipse.bpel.model.resource.BPELReader to read them from my
bpel-model file and convert them to the emf-based bpel model.

But everytime I tried to access the BPELReader via a simple program
there is a NoClassDefFoundError.
Below I┬┤ve attached my source and the error-message.

I need to convert the models very soon for my thesis.


import javax.xml.parsers.DocumentBuilderFactory;

public class Main {
public static void main(String[] args) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
File file = new File("D:/SampleProcess.bpel");
FileInputStream stream = null;
try {
stream = new FileInputStream(file);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block

BPELReader reader = new BPELReader();

Exception in thread "main" java.lang.NoClassDefFoundError:
at Main.main(
Caused by: java.lang.ClassNotFoundException:
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass( )
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal( )
... 1 more
Re: I need to convert some BPEL-models using the BPELReader [message #11100 is a reply to message #10823] Tue, 12 August 2008 20:57 Go to previous messageGo to next message
Simon Moser is currently offline Simon MoserFriend
Messages: 21
Registered: July 2009
Junior Member
Are u running this code as part of an Eclipse plugin ? I think you do not.
I am not sure if that works if you are trying to access the bpel model
outside of eclipse - you'd have to export the bpel model plugin (and all
its dependencies and dependencies of dependencies) as jar files and put
them onto the classpath of your program - not sure this is feasible ?!

I suggest to create a eclipse plugin, add a dependency to bpel.model and
put that code inside of the plugin.
Re: I need to convert some BPEL-models using the BPELReader [message #11105 is a reply to message #11100] Wed, 13 August 2008 15:03 Go to previous message
Eclipse UserFriend
Originally posted by:

OK thanks.
Ithink I will try it out later, I just found a temporal solution for my
problem so that I con continue working on my thesis.
Previous Topic:Open, view .bpel file
Next Topic:Eclipse BPEL Designer: problems with DOM parser
Goto Forum:

Current Time: Sun Oct 23 14:28:54 GMT 2016

Powered by FUDForum. Page generated in 0.02196 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software