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: [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.

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

Reply via email to