You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Don Stewart (JIRA)" <xm...@xml.apache.org> on 2005/03/09 19:30:54 UTC

[jira] Created: (XMLBEANS-120) No TypeHolder generated in -srconly

No TypeHolder generated in -srconly
-----------------------------------

         Key: XMLBEANS-120
         URL: http://issues.apache.org/jira/browse/XMLBEANS-120
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2 Beta 2    
    Reporter: Don Stewart


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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12424785 ] 
            
Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

Would it be possible to get sourcecode for
a) TypeSystemHolder
b) .xsb "classes"?

> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=all ]
     
Lawrence Jones resolved XMLBEANS-120:
-------------------------------------

    Fix Version: Version 2.1
     Resolution: Fixed
      Assign To:     (was: Radu Preotiuc-Pietro)

Fixed with checkin 220181. Now refer to TypeSystemHolder via a reflection API instead of directly.

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=all ]

Radu Preotiuc-Pietro updated XMLBEANS-120:
------------------------------------------

    Environment: 
       Priority: Minor  (was: Major)

Johannes, I have no problems building that Schema file.
I have become convinced that this is an Eclipse-only issue because it can't pick up dependencies from a different directory than the source. I am going to fix this by removing that compile-time dependency, but in order to do this I need some APIs that don't currently exist, so I was going to wait on it a bit.


> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>     Priority: Minor
>  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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Charles Blaxland (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12315113 ] 

Charles Blaxland commented on XMLBEANS-120:
-------------------------------------------

I've just tried upgrading to 2.0, and I'm getting the same problem.  I'm compiling with -srconly, and I get a TypeSystemHolder.class generated, but no TypeSystemHolder.java!  This is not just an Eclipse issue - the TypeSystemHolder.java files seems to be simply not generated.

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>     Priority: Minor
>  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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12315141 ] 

Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

I just retested with 2.0 final version: definitely the sourcecode being generated is not compilable as it misses the TypeSystemHolder.java _SOURCECODE_. 
 
 Not with 2.0-beta1, nor with 2.0 final. 
 Not with '-scronly=true' nor without!! 
 
 This is definitely no IDE problem (btw: I'm using IntelliJ, not Eclipse). 
 
 Note: the xmlbeans-generated .jar contains a TypeSystemHolder.class file. 
 
 The annoying thing is: when creating the .jar with xmlbeans itself (only way working so far) I do not have full control about javac options used. 
 
 And IMHO this is no minor bug when creating not compilable sourcecode, please re-consider this. 


> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>     Priority: Minor
>  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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Assigned: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=history ]

Jacob Danner reassigned XMLBEANS-120:
-------------------------------------

    Assign To: Radu Preotiuc-Pietro

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro

>
> 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12415289 ] 

Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

BTW: it is another schema but the attached one. On interest I might add that one, too.

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug

>   Components: Compiler
>     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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12425133 ] 
            
Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

OK, I ask a different way: is it worth it to request those sourcecodes generation. Or is it too complex or not possible?

> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


Re: [jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by David Jencks <da...@yahoo.com>.
For maven, you might consider the maven plugin I wrote that induces  
xmlbeans to generate the binary artifacts into maven.build.dest  
automatically.  it also caters to multi-project builds by letting you  
include dependencies in the xmlbeans classpath using a properties flag  
in the dependency.

http://issues.apache.org/jira/browse/XMLBEANS-124

thanks
david jencks

On Jul 7, 2005, at 8:10 PM, Charles Blaxland (JIRA) wrote:

>     [  
> http://issues.apache.org/jira/browse/XMLBEANS-120? 
> page=comments#action_12315276 ]
>
> Charles Blaxland commented on XMLBEANS-120:
> -------------------------------------------
>
> If anyone's intersted, I managed to make Eclipse happy without the  
> TypeSystemHolder source by adding the output directory (where the  
> TypeSystemHolder.class files get generated) to the project "Libraries"  
> in the Java Build Path for the project.  I also made my maven build  
> work by manually copying the TypeSystemHolder.class files up to the  
> target directory in a java:compile pregoal:
>
> 	<preGoal name="java:compile">
> 		<attainGoal name="generate-xmlbeans"/>
> 		<ant:copy todir="${maven.build.dest}">
> 			<ant:fileset dir="${xmlbeans.output.dir}">
> 				<include name="**/*.class"/>
> 			</ant:fileset>
> 		</ant:copy>
> 	</preGoal>
>
>
>
>> No TypeHolder generated in -srconly
>> -----------------------------------
>>
>>          Key: XMLBEANS-120
>>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>>      Project: XMLBeans
>>         Type: Bug
>>   Components: Compiler
>>     Versions: Version 2 Beta 2
>>     Reporter: Don Stewart
>>     Assignee: Radu Preotiuc-Pietro
>>     Priority: Minor
>>  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: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Charles Blaxland (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12315276 ] 

Charles Blaxland commented on XMLBEANS-120:
-------------------------------------------

If anyone's intersted, I managed to make Eclipse happy without the TypeSystemHolder source by adding the output directory (where the TypeSystemHolder.class files get generated) to the project "Libraries" in the Java Build Path for the project.  I also made my maven build work by manually copying the TypeSystemHolder.class files up to the target directory in a java:compile pregoal:

	<preGoal name="java:compile">
		<attainGoal name="generate-xmlbeans"/>
		<ant:copy todir="${maven.build.dest}">
			<ant:fileset dir="${xmlbeans.output.dir}">
				<include name="**/*.class"/>
			</ant:fileset>
		</ant:copy>
	</preGoal>



> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>     Priority: Minor
>  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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12424495 ] 
            
Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

My fault: I cannot reproduce after holidays. I guess I missed to replace somewhere in our build system the 2.0.0 version. Sorry for that!

> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radu Preotiuc-Pietro resolved XMLBEANS-120.
-------------------------------------------

    Resolution: Won't Fix

As Wing Yew said, the .xsb files are not compiled Java code, so we can't generate sources for them.

> No TypeHolder generated in -srconly
> -----------------------------------
>
>                 Key: XMLBEANS-120
>                 URL: https://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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12425344 ] 
            
Wing Yew Poon commented on XMLBEANS-120:
----------------------------------------

Note: While TypeSystemHolder.class is a java class file, the .xsb files are not. They are simply binary files. There is no "source" for them.


> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Robin Sander (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12315050 ] 

Robin Sander commented on XMLBEANS-120:
---------------------------------------

With the actual 2.0 release I get the same effect even without -srconly! No TypeSystemHolder.java is generated, which causes IDEs like
Eclipse to complain. You can reproduce it simply by compiling one of the sample schemas:
 cd xmlbeans-2.0.0/schemas
  ../bin/scomp -src src -d out  easypo.xsd
  find src -name '*TypeSystemHolder*.java'

... and nothing is found!


> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>     Priority: Minor
>  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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12313472 ] 

Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

Without -srconly there is created a .jar but the sourcecode written to disk is cannot be the one having been compiled as the generated interfaces contain references to not existing classes like ...schema.system.s88336473178149A1091FEBD8E40E9E6C.TypeSystemHolder that do not exist - and therefore are not compilable (though the corresponding .class file is found within the generated .jar).

I'll attach the schema (XTCE OMG spec.) I observe the problems with (1.0.4 generates working sourcecode).

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro

>
> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12424987 ] 
            
Radu Preotiuc-Pietro commented on XMLBEANS-120:
-----------------------------------------------

Actually, no, there is no source code for those.


> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12415288 ] 

Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

I just tried this thing ... and it still does not work for me: I created src files with ant task:

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

And when compiling the sourcecode in another task this one still complains of TypeSystemHolder not existing:

    [javac] Compiling 28 source files to /home/jstammi/Perforce2/systemaccess/main/build/classes/corbaobject
    [javac] /home/jstammi/Perforce2/systemaccess/main/src/generated/corbaobject/net/eads/space/systemaccess/corba/corbaobject/Address.java:18: package schemaorg_apache_xmlbeans.system.net.eads.space.systemaccess.corba.corbaobject.TypeSystemHolder does not exist


Please re-open this issue (I cannot do so; or do you prefer a new one?)

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug

>   Components: Compiler
>     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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12424635 ] 
            
Radu Preotiuc-Pietro commented on XMLBEANS-120:
-----------------------------------------------

Johannes,
The TypeSystemHolder class is still required at run-time. It contains information about the Schema<->Java relationship (name mappings etc) that is not available elsewhere. You need to make sure that you have the .jar containing this class and all the generated .xsb classes on the classpath at runtime (look for these classes in the directory that you specify as "classgendir" in ant.

This issue merely asked that this dependency be only a run-time one (rather than both compiletime and runtime) so that IDEs can show the generated classes without having to re-load their classpath every time the files get re-generated. And this seems to be fixed.


> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_12423707 ] 
            
Radu Preotiuc-Pietro commented on XMLBEANS-120:
-----------------------------------------------

Can you please give me more details, like maybe paste the generated file?
I have looked at the code one more time and we have changed the line that used to output the static reference to TypeSystemHolder, definitely. I just can't understrand how this can happen... have you checked that you run at least XmlBeans 2.1.0 and you don't have any "stale" source files in ant?


> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Reopened: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Don Stewart (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=all ]
     
Don Stewart reopened XMLBEANS-120:
----------------------------------


Reopened at the request of 

Johannes Stamminger commented on XMLBEANS-120:
----------------------------------------------

I just tried this thing ... and it still does not work for me: I created src files with ant task:

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

And when compiling the sourcecode in another task this one still complains of TypeSystemHolder not existing:

    [javac] Compiling 28 source files to /home/jstammi/Perforce2/systemaccess/main/build/classes/corbaobject
    [javac] /home/jstammi/Perforce2/systemaccess/main/src/generated/corbaobject/net/eads/space/systemaccess/corba/corbaobject/Address.java:18: package schemaorg_apache_xmlbeans.system.net.eads.space.systemaccess.corba.corbaobject.TypeSystemHolder does not exist


Please re-open this issue (I cannot do so; or do you prefer a new one?)



> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug

>   Components: Compiler
>     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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-120) No TypeHolder generated in -srconly

Posted by "Johannes Stamminger (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-120?page=all ]

Johannes Stamminger updated XMLBEANS-120:
-----------------------------------------

    Attachment: SpaceSystem.xsd

XTCE 1.0 OMG specification (http://www.omg.org/cgi-bin/apps/do_doc?dtc/03-09-02.pdf) 2.0.1-beta1 does not create valid sourcecode for

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>  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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org