[ 
http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12424543 
] 
            
Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

OK, generation and compilation of the generated sourcecode now seems to work. 
But usage fails:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at 
net.eads.space.systemaccess.corba.corbaobject.CORBAObjectDocument$Factory.newInstance(CORBAObjectDocume
        at 
net.eads.space.systemaccess.corba.jacorb.XMLObjectInfo.createXML(XMLObjectInfo.java:73)
        at net.eads.space.systemaccess.app.IORParser.<init>(IORParser.java:39)
        at net.eads.space.systemaccess.app.IORParser.main(IORParser.java:52)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to 
load class with name schemaorg_apac.corbaobject.TypeSystemHolder. Make sure the 
generated binary files are on the classpath.
        at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783)
        at 
net.eads.space.systemaccess.corba.corbaobject.CORBAObjectDocument.<clinit>(CORBAObjectDocument.java:19)
        ... 4 more
Caused by: java.lang.ClassNotFoundException: 
schemaorg_apache_xmlbeans.system.net.eads.space.systemaccess.corba.co
        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)
        ... 5 more



Sourcecode created with 2.2.0 and ant task

        <xmlbean schema="${schema.corbaobject}"
                 srcgendir="${src.corbaobject.dir}"
                 source="1.5"
                 javasource="1.5"
                 fork="false"
                 srconly="true"
                 verbose="false"
                 
typesystemname="net.eads.space.systemaccess.corba.corbaobject"/>


> No TypeHolder generated in -srconly
> -----------------------------------
>
>                 Key: XMLBEANS-120
>                 URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: Version 2 Beta 2
>            Reporter: Don Stewart
>            Priority: Minor
>             Fix For: Version 2.1
>
>         Attachments: SpaceSystem.xsd
>
>
> If youcreate a -srconly output no TypeHolder class is generated. If you try 
> to edit the source files in an IDE they all point to a missing class and as 
> such the IDE's report errors in every generated Interface.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to