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]> wrote:

> Found another page with a better walkthough J****
>
> ** **
>
>
> http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html
> ****
>
> ** **
>
> ** **
>
> ** **
>
> *Victor Tey *
>
> Software Engineer
> ASRDC
> CSIRO Earth Science and Resource Engineering**
>
> Phone: [image: cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]]+61 8 6436 8944
> [email protected] *|* 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]'
> *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****
>
> [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: [image: cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]][image:
> cid:[email protected]]+61 8 6436 8944
> [email protected] *|* 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]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

<<image001.gif>>

<<image003.gif>>

<<image004.gif>>

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

Reply via email to