Hi,
I dont think specifying the "schemaSourceDirectory" and
"schemaLookupDirectories" like this will quite work. The way i would
specify them is as follows:
${basedir}/src/main/xsd/ows/1.0.0
${basedir}/src/main/xsd/xlink/1.0.0
Try changing them and see if that works for you. Let me know.
-Justin
Yingqi Tang wrote:
> All,
>
> I am trying to use gt2-xmlcodegen to generate binding code for ows
> schema, and I got a NullPointerException error from
> org.geotools.xml.Schemas.getIncludes(), so I wonder that was caused by
> <include schemaLocation="..."> in ows schema itself.
>
> Does anyone have clue on how to solve that?
>
> Here is the plugin configure
>
> <configuration>
>
> <schemaLocation>owsAll.xsd</schemaLocation>
>
> <schemaSourceDirectory>\src\main\xsd\ows\1.0.0\</schemaSourceDirectory>
> <schemaLookupDirectories>
>
> <schemaLookupDirectory>\src\main\xsd\ows\1.0.0\</schemaLookupDirectory>
>
> <schemaLookupDirectory>\src\main\xsd\xlink\1.0.0\</schemaLookupDirectory>
> </schemaLookupDirectories>
>
> <destinationPackage>org.geotools.ows2.xml</destinationPackage>
>
> <generateConfiguration>true</generateConfiguration>
>
> <generateBindingConfiguration>true</generateBindingConfiguration>
>
> <generateBindingInterface>true</generateBindingInterface>
>
> <generateSchemaLocationResolver>false</generateSchemaLocationResolver>
>
> <generateElements>true</generateElements>
> <includes>
>
> <include>ExceptionReport</include>
> <include>ExceptionType</include>
> </includes>
> </configuration>
>
> -------------------------------------------------------------------------
> 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-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
> !DSPAM:4007,46aa24b2305868992556831!
>
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users