You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "Vo, Khanh" <kv...@systechnologies.com> on 2008/04/02 21:43:58 UTC
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
RE: Factory.parse(string) errror
Posted by "Vo, Khanh" <kv...@systechnologies.com>.
Hello Clarance,
I just check my jar file and the schemaorg_apache_xmlbeans directory is
not in my jar file.
One thing that I didn't mentioned was that I did get an error message
when I ran :
scomp -out workflow.jar -src . dynamicworkflow2.xsd
BUILD FAILED
scomp -out workflow.jar -src . dynamicworkflow2.xsd
Time to build schema type system: 1.442 seconds
Time to generate code: 0.421 seconds
java.io.IOException: CreateProcess:
C:\work-5095\harps\trunk\workflow\dynamicwf\
xsl\javac @C:\DOCUME~1\KHANHV~1\LOCALS~1\Temp\javac6477 error=2
null
java.io.IOException: CreateProcess:
C:\work-5095\harps\trunk\workflow\dynamicwf\
xsl\javac @C:\DOCUME~1\KHANHV~1\LOCALS~1\Temp\javac6477 error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at
org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
.java:231)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:1154)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:373)
BUILD FAILED
Not sure why it is getting IO errors.
Khanh
-----Original Message-----
From: Clarance Howatt [mailto:clarance.howatt@fujitsu.health.gov.ab.ca]
Sent: Wednesday, April 02, 2008 12:59 PM
To: user@xmlbeans.apache.org
Subject: RE: Factory.parse(string) errror
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:kvo@systechnologies.com]
Sent: Wednesday, April 02, 2008 1:44 PM
To: user@xmlbeans.apache.org
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
RE: Factory.parse(string) errror
Posted by Clarance Howatt <cl...@fujitsu.health.gov.ab.ca>.
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:kvo@systechnologies.com]
Sent: Wednesday, April 02, 2008 1:44 PM
To: user@xmlbeans.apache.org
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