[ 
http://jira.codehaus.org/browse/JIBX-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Don Corley reassigned JIBX-377:
-------------------------------

    Assignee: Don Corley

> Error: Unknown element for "schema-type" element
> ------------------------------------------------
>
>                 Key: JIBX-377
>                 URL: http://jira.codehaus.org/browse/JIBX-377
>             Project: JiBX
>          Issue Type: Bug
>          Components: CodeGen, maven plugin
>    Affects Versions: JiBX 1.2.1
>         Environment: windows 7, maven v 2.0.9
>            Reporter: code hause
>            Assignee: Don Corley
>         Attachments: jibx_codehause_schema-type_0.jar
>
>
> after referring to the jibx documentation's "Date/time conversions" page 
> (http://jibx.sourceforge.net/binding/date-time.html), all i want to be able 
> to do is to have the maven-jibx-plugin execute a simple customization that 
> simply converts a schema "dateTime" to a java.sql.Timestamp. but even when 
> using the examples xsd schemas and customization xml examples provided in the 
> jibx documentation, the maven-jibx-plugin still blows up with:
>    Error: Unknown element for "schema-type" element at (line 9, col 69)
>    Error: No customizations allowed for "schema" element at (line 10, col 63)
>    Terminating due to command line or customization errors
> steps to reproduce the issue:
> 1. download the jibx 1.2.1 distribution from 
> http://sourceforge.net/projects/jibx/files/jibx/jibx-1.2.1/jibx_1_2_1.zip/download
> 2. download and install the maven-jibx-plugin patch that guido schmutz posted 
> on his blog (sincere thanks for that, btw, guido!)
> 3. create a pom-based project with maven's "archetype:generate ..." command 
> (see attached "jibx_codehause_schema-type_0.jar" for a pre-rolled one)
> 4. add the JiBX Maven 2 Plugin to the project's pom.xml (as described in the 
> maven-jibx-plugin tutorial listed in guido schmutz' blog 
> (http://guidoschmutz.wordpress.com/tag/jibx/). 
> 5. replace the "customer.xsd" in guido schmutz' sample pom.xml with the 
> "jibx/examples/codegen/otasubset/OTA_CommonTypes.xsd" sample xsd schema file 
> from the jibx 1.2.1 distribution. 
> 6. copy the example customization xml file from the jibx documentation's 
> "Example 3: More extensive customizations" page 
> (http://jibx.sourceforge.net/fromschema/example-custom2.html) 
> 7. remove from the above example customization xml, all except one of the 
> "<schema-type>" elements listed therein; set the one remaining 
> "<schema-type>" to this (as described here: 
> "http://jibx.sourceforge.net/fromschema/codegen-extends.html";):
>    
>       "<schema-type type-name="dateTime" format-name="Timestamp.default"/>"
> 8. remove from the above example customization xml, all but one of the 
> "<schema>" elements listed therein (keep only the very last one - that is, 
> the one that refers to "OTA_CommonTypes.xsd"); 
> 9. after saving the modified customization xml file to a convenient 
> sudirectory under your pom-based project, configure the maven-jibx-plugin in 
> your pom.xml's /customizations/customization configuration to point to the 
> modified customization xml file (as described in the maven-jibx-plugin 
> tutorial listed in guido schmutz' blog 
> (http://guidoschmutz.wordpress.com/tag/jibx/)
> 10. from the command line, run "mvn clean generate-sources"

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

        

------------------------------------------------------------------------------
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to