I am assuming that you have aready checked to ensure that the generated class is in the jar and that this jar is on you classpath.
I think you might be missing the generated xsb files. Make sure that the directory schemaorg_apache_xmlbeans is in your jar file and that it contains these xsb files. C. ________________________________ From: Vo, Khanh [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 1:44 PM To: [email protected] Subject: Factory.parse(string) errror Hello, I've trying to execute Document.Factory.parse(string) and am getting the following errors. I'm new to XMLBeans. I ran: scomp -out workflow.jar -src . dynamicworkflow2.xsd and generated the java source. Exception in thread "main" java.lang.ExceptionInInitializerError at noNamespace.WorkflowDocument$Factory.parse(WorkflowDocument.java:109) at com.syys.harps.action.TestXPDL.XPDL(TestXPDL.java:55) at com.syys.harps.action.TestXPDL.main(TestXPDL.java:78) Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s6795CA4E2209DBFFCE06966196DB34BD.TypeS ystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783) at noNamespace.WorkflowDocument.<clinit>(WorkflowDocument.java:19) ... 3 more Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s6795CA4E2209DBFFCE06966196DB34BD.TypeS ystemHolder 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:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769) ... 4 more Thanks for the help Khanh

