Hi, Thank you for the answer! The bean generation with jaxb worked perfectly, and the result compiled fine. The gpx.xsd contained an 'xmlns="http://www.topografix.com/GPX/1/1"' attribute, so I only extended this to look like the one you mentioned, and it worked that way. Now I'm going to fill the bindings with code :)
Thanks again, Peter Justin Deoliveira wrote: > Hi Peter, > > It appears that you have indeed found a bug in the code generator. It > seems that when a schema does not explicitly map a namespace prefix to > the target namespace of the schema the code generator dies. > > I have scheduled a jira task to fix this. > > http://jira.codehaus.org/browse/GEOT-1414 > > However... the easy work around for you is just to add another namespace > prefix mapping to the root schema element: > > "xmlns:gpx="http://www.topografix.com/GPX/1/1" > > Also... that tutorial is a bit out of date. Were you actually able to > compile the generated beans? I was not due to version conflicts with the > jaxb compiler plugin. So what i have done is set the version of the > plugin explicity in the example and updated the jaxb dependencies > slightly. Let me know if it all works for you. > > -Justin > > Bolla Péter wrote: >> Hello, >> >> I tried to create gt2-xml style bindings for the gpx format, with the >> help of the tutorial ( >> http://docs.codehaus.org/display/GEOTDOC/0+Purchase+Order+Parsing+Tutorial >> ). >> The beans get generated well, but when doing the bindings generation >> with mvn org.geotools.maven:gt2-xmlcodegen:generate, the result is >> only 68K of exceptions output. This is the first of them: >> >> WARNING: Unable to generate binding for >> [EMAIL PROTECTED] (element: >> [xsd:complexType: null]) (name: boundsType, targetNamespace: >> http://www.topografix.com/GPX/1/1) (derivationMethod: <unset>, final: >> [], abstract: <unset>, contentTypeCategory: empty, >> prohibitedSubstitutions: [], lexicalFinal: null, block: null, mixed: >> <unset>) >> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException >> at >> org.geotools.maven.xmlcodegen.AbstractGenerator.execute(AbstractGenerator.java:228) >> >> >> at >> org.geotools.maven.xmlcodegen.BindingGenerator.generate(BindingGenerator.java:192) >> >> >> [...] >> >> Is there any setting that should be set apart of the ones in the >> tutorial? May the tutorial be outdated? >> >> >> Thanks, >> Peter >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> >> !DSPAM:4007,46aacaf0134402458217002! >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
