I need to convert some BPEL-models using the BPELReader [message #10823] |
Fri, 08 August 2008 16:47 |
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03133 seconds