Generator Attempts to 2 sets of bean definitions when same schema included twice
--------------------------------------------------------------------------------

                 Key: XFIRE-1073
                 URL: http://jira.codehaus.org/browse/XFIRE-1073
             Project: XFire
          Issue Type: Bug
          Components: Generator
    Affects Versions: 1.2.6
         Environment: Eclipse plugin, Ubuntu, Eclipse 3.2.2. JDK 1.6
            Reporter: James
            Assignee: Dan Diephouse


I have a web service that includes two XSD schemas which both include the same 
shared common schema.

When using the XFire eclipse plugin to generate a web service client I get an 
error because the plugin tries
to generate the classes in the shared common schema twice.

Is there a work around for this?

The exception is:

02-Aug-2007 10:16:01 org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at 
http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL with a base URI of 
http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL
Retrieving schema at 'common.xsd', relative to ' 
http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL'.
Retrieving schema at ' common.xsd', relative to ' 
http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL'.
02-Aug-2007 10:16:08 org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: Two declarations cause a collision in the ObjectFactory class. at 
105,72 in http://localhost:8080/smartagent/common.xsd
02-Aug-2007 10:16:08 org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (Related to above error) This is the other declaration.    at 0,0 in 
http://localhost:8080/smartagent/CMSWebSuiteAccessPoint?WSDL#types?schema5
org.codehaus.xfire.gen.GenerationException: Error generating JAXB model. 


see 
http://archive.xfire.codehaus.org/user/e25ae93e0708020234h2c064437k645a4c25c1bba72f%40mail.gmail.com

Related to
http://jira.codehaus.org/browse/XFIRE-584
http://jira.codehaus.org/browse/XFIRE-761
?

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to