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 User
Originally posted by: mam05eux.studserv.uni-leipzig.de

Hello,

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.

Thanks




import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import javax.xml.parsers.DocumentBuilderFactory;
import bin.org.eclipse.bpel.model.resource.BPELReader;

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
e.printStackTrace();
}

System.out.println("test");
BPELReader reader = new BPELReader();
System.out.println(reader);
}
}






Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/bpel/model/resource/BPELReader
at Main.main(Main.java:20)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.bpel.model.resource.BPELReader
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
... 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 Moser
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 User
Originally posted by: mam05eux.studserv.uni-leipzig.de

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: Sat Sep 20 04:04:41 GMT 2014

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

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