You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/09/03 06:43:58 UTC

[jira] Created: (XMLBEANS-56) Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-56

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-56
    Summary: Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config 
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
 Components: 
             Compiler
   Versions:
             Version 1.0.3

   Assignee: 
   Reporter: Mehul Jasani

    Created: Thu, 2 Sep 2004 9:42 PM
    Updated: Thu, 2 Sep 2004 9:42 PM
Environment: Windows 2000, j2sdk1.4.2_04

Description:
Created following config file:

<xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config"
           xmlns:ep="http://openuri.org/easypo">



  <xb:namespace uri="http://openuri.org/easypo">
    <xb:package>com.easypo</xb:package>
  </xb:namespace>
  
  <xb:namespace uri="##any">
    <xb:prefix>Xml</xb:prefix>
    <xb:suffix>Bean</xb:suffix>
  </xb:namespace>


<xb:extension for="com.easypo.XmlCustomerBean">
    <xb:interface name="myPackage.Foo">
        <xb:staticHandler>myPackage.FooHandler</xb:staticHandler>
    </xb:interface>
</xb:extension>

  <xb:qname name="ep:purchase-order" javaname="purchaseOrderXXX"/>


</xb:config>

Getting following error message while running scomp as follows:

C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo>scomp -src C:\xmlbeans\xmlbeans-1.0.3\
schemas\easypo\test C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsd -out te
st.jar C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsdconfig
easypo.xsdconfig:0: error: Expected element namespace@http://xml.apache.org/xmlb
eans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/20
04/02/xbean/config here in element config@http://xml.apache.org/xmlbeans/2004/02
/xbean/config
Time to build schema type system: 1.332 seconds
BUILD FAILED


---------------------------------------------------------------------
JIRA INFORMATION:
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] Closed: (XMLBEANS-56) Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config

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


See comments above, closing

> Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-56
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-56
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 1.0.3
>  Environment: Windows 2000, j2sdk1.4.2_04
>     Reporter: Mehul Jasani
>     Assignee: Jacob Danner
>      Fix For: Version 2 Beta 1, Version 2 Beta 2, Version 2

>
> Created following config file:
> <xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config"
>            xmlns:ep="http://openuri.org/easypo">
>   <xb:namespace uri="http://openuri.org/easypo">
>     <xb:package>com.easypo</xb:package>
>   </xb:namespace>
>   
>   <xb:namespace uri="##any">
>     <xb:prefix>Xml</xb:prefix>
>     <xb:suffix>Bean</xb:suffix>
>   </xb:namespace>
> <xb:extension for="com.easypo.XmlCustomerBean">
>     <xb:interface name="myPackage.Foo">
>         <xb:staticHandler>myPackage.FooHandler</xb:staticHandler>
>     </xb:interface>
> </xb:extension>
>   <xb:qname name="ep:purchase-order" javaname="purchaseOrderXXX"/>
> </xb:config>
> Getting following error message while running scomp as follows:
> C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo>scomp -src C:\xmlbeans\xmlbeans-1.0.3\
> schemas\easypo\test C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsd -out te
> st.jar C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsdconfig
> easypo.xsdconfig:0: error: Expected element namespace@http://xml.apache.org/xmlb
> eans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/20
> 04/02/xbean/config here in element config@http://xml.apache.org/xmlbeans/2004/02
> /xbean/config
> Time to build schema type system: 1.332 seconds
> BUILD FAILED

-- 
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] Resolved: (XMLBEANS-56) Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config

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

     Resolution: Won't Fix
    Fix Version: Version 2 Beta 1
                 Version 2 Beta 2
                 Version 2

The error text states the problem of this issue. The elements are not valid according to the config's schema file. If you have questions, the schema for xsdconfigs lives in src/configschema/schema

> Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-56
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-56
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 1.0.3
>  Environment: Windows 2000, j2sdk1.4.2_04
>     Reporter: Mehul Jasani
>     Assignee: Jacob Danner
>      Fix For: Version 2 Beta 1, Version 2 Beta 2, Version 2

>
> Created following config file:
> <xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config"
>            xmlns:ep="http://openuri.org/easypo">
>   <xb:namespace uri="http://openuri.org/easypo">
>     <xb:package>com.easypo</xb:package>
>   </xb:namespace>
>   
>   <xb:namespace uri="##any">
>     <xb:prefix>Xml</xb:prefix>
>     <xb:suffix>Bean</xb:suffix>
>   </xb:namespace>
> <xb:extension for="com.easypo.XmlCustomerBean">
>     <xb:interface name="myPackage.Foo">
>         <xb:staticHandler>myPackage.FooHandler</xb:staticHandler>
>     </xb:interface>
> </xb:extension>
>   <xb:qname name="ep:purchase-order" javaname="purchaseOrderXXX"/>
> </xb:config>
> Getting following error message while running scomp as follows:
> C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo>scomp -src C:\xmlbeans\xmlbeans-1.0.3\
> schemas\easypo\test C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsd -out te
> st.jar C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsdconfig
> easypo.xsdconfig:0: error: Expected element namespace@http://xml.apache.org/xmlb
> eans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/20
> 04/02/xbean/config here in element config@http://xml.apache.org/xmlbeans/2004/02
> /xbean/config
> Time to build schema type system: 1.332 seconds
> BUILD FAILED

-- 
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