Hi Justin and Andrea, My public repo is https://github.com/victortey/geotool.git
Looks like I have done it the wrong way, I was following http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html and used jaxb as documented. Perhaps I should be using EMF as Andrea have done. Is net.opengis.cat.csw20.Csw20Factory auto generated? If yes, how is it done? Were you following any documentation Andrea? Thanks :) Victor Tey Software Engineer ASRDC CSIRO Earth Science and Resource Engineering Phone: [cid:[email protected]] +61 8 6436 8944 [email protected]<mailto:[email protected]> | www.csiro.au<http://www.csiro.au/> | Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151 PLEASE NOTE The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. Please consider the environment before printing this email. From: Justin Deoliveira [mailto:[email protected]] Sent: Friday, 28 September 2012 3:26 PM To: Tey, Victor (CESRE, Kensington) Cc: [email protected]<mailto:[email protected]> Subject: Re: [Geotools-gt2-users] xmlcodegen for sos 2.0 Hey Victor, Does your xsd sos project depend on the model you are using? Is it an emf model? Also, can you verify that ${basedir}/src/main/resources/org/geotools/sos/v2_0 is the actual location of the xsd file? Is your work anywhere online? If so i can grab a clone of it and do some local debugging. -Justin On Fri, Sep 28, 2012 at 7:41 AM, <[email protected]<mailto:[email protected]>> wrote: Found another page with a better walkthough :) http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html Victor Tey Software Engineer ASRDC CSIRO Earth Science and Resource Engineering Phone: [cid:[email protected]] +61 8 6436 8944<tel:%2B61%208%206436%208944> [email protected]<mailto:[email protected]> | www.csiro.au<http://www.csiro.au/> | Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151 PLEASE NOTE The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. Please consider the environment before printing this email. From: Tey, Victor (CESRE, Kensington) Sent: Friday, 28 September 2012 12:42 PM To: '[email protected]<mailto:[email protected]>' Subject: xmlcodegen for sos 2.0 Hi, I am having trouble generating the binding. Tutorial: http://docs.geotools.org/latest/userguide/library/xml/internal/code.html Below are my config <build> <plugins> <plugin> <groupId>org.geotools.maven</groupId> <artifactId>xmlcodegen</artifactId> <configuration> <schemaLocation>sos.xsd</schemaLocation> <schemaSourceDirectory>${basedir}/src/main/resources/org/geotools/sos/v2_0</schemaSourceDirectory> <targetPrefix>sos</targetPrefix> <destinationPackage>org.geotools.sos.v2_0</destinationPackage> <generateConfiguration>true</generateConfiguration> <generateBindingInterface>true</generateBindingInterface> <generateSchemaLocationResolver>false</generateSchemaLocationResolver> <overwriteExistingFiles>true</overwriteExistingFiles> <bindingConstructorArguments> <bindingConstructorArgument> <name>factory</name> <type>org.geotools.sos.v2_0.ObjectFactory</type> </bindingConstructorArgument> </bindingConstructorArguments> </configuration> </plugin> </plugins> </build> Error: [INFO] Building SOS xsd unsupported modules 9-SNAPSHOT [INFO] ----------------------------------------------------------------- [INFO] [INFO] --- xmlcodegen:8-SNAPSHOT_r38714:generate (default-cli) @ gt-xsd- [INFO] org.apache.maven.artifact.factory.DefaultArtifactFactory@d510e8<mailto:org.apache.maven.artifact.factory.DefaultArtifactFactory@d510e8> [INFO] Parsing schema: C:\VRepo\geotools\modules\unsupported\xsd-sos\src [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [WARNING] Could not locate schema for: http://www.opengis.net/sos/2.0 [ERROR] Could not locate class:org.geotools.sos.v2_0.ObjectFactory Please advice Victor Tey Software Engineer ASRDC CSIRO Earth Science and Resource Engineering Phone: [cid:[email protected]] +61 8 6436 8944<tel:%2B61%208%206436%208944> [email protected]<mailto:[email protected]> | www.csiro.au<http://www.csiro.au/> | Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151 PLEASE NOTE The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. Please consider the environment before printing this email. ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ GeoTools-GT2-Users mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial.
<<inline: image001.gif>>
<<inline: image002.gif>>
<<inline: image003.gif>>
<<inline: image004.gif>>
------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
