[CITE-Forum] WFS 1.0 setup instructions incomplete

Richard Martell rmartell at galdosinc.com
Mon Dec 9 12:06:49 EST 2013


Andrea,

I see that the local schemas are located in the web/OGCTestData/wfs/OGCTestData/wfs/1.0.0/schemas/ directory.
However, the resources element appears to be missing from config.xml, so they're not on the classpath; this is the likely cause.
I'll update the config file.

BTW, the WFS-1.0 endpoint appearing in the list of current OGC reference implementations (opengeo.org) gives a 404:

<http://cite.opengeospatial.org/reference>

Do you know of an alternative endpoint that's available so I can verify the fix?

--
Richard


From: CITE-Forum [mailto:cite-forum-bounces at lists.opengeospatial.org] On Behalf Of Andrea Aime
Sent: Saturday, 07 December, 2013 08:38
To: cite-forum at lists.opengeospatial.org
Subject: [CITE-Forum] WFS 1.0 setup instructions incomplete

Hi,
I'm trying to run the WFS 1.0 tests from trunk and noticed the tests
wont' start due to this exception:

java.lang.Exception: Can't instantiate parser wfs:GMLValidatingParser
            at com.occamlab.te.TECore.parse(TECore.java:1828)
            at com.occamlab.te.TECore.parse(TECore.java:1775)
            at com.occamlab.te.TECore.request(TECore.java:1375)
            at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFunctionCall.java:533)
            at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:256)
            at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:147)
            at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:848)
            at net.sf.saxon.sort.DocumentSorter.iterate(DocumentSorter.java:84)
            at net.sf.saxon.instruct.CopyOf.processLeavingTail(CopyOf.java:292)
            at net.sf.saxon.instruct.Instruction.process(Instruction.java:94)
            at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:282)
            at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:295)
            at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:341)
            at net.sf.saxon.expr.LetExpression.process(LetExpression.java:372)
            at net.sf.saxon.instruct.ForEach.processLeavingTail(ForEach.java:300)
            at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:551)
            at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:175)
            at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:343)
            at net.sf.saxon.Controller.transformDocument(Controller.java:1736)
            at net.sf.saxon.Controller.transform(Controller.java:1560)
            at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:190)
            at com.occamlab.te.TECore.executeTemplate(TECore.java:517)
            at com.occamlab.te.TECore.executeTest(TECore.java:660)
            at com.occamlab.te.TECore.reexecute_test(TECore.java:299)
            at com.occamlab.te.TECore.execute(TECore.java:241)
            at com.occamlab.te.TECore.run(TECore.java:2083)
            at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at com.occamlab.te.util.Misc.makeInstance(Misc.java:196)
            at com.occamlab.te.TECore.parse(TECore.java:1825)
            ... 29 more
Caused by: java.lang.IllegalArgumentException: no protocol: schemas/OGC-1.0.0/OGC_Wrapper.xsd
            at com.galdosinc.glib.xml.jaxp.ValidatingDocumentBuilderFactory.setAttribute(ValidatingDocumentBuilderFactory.java:57)
            at com.occamlab.te.parsers.GMLValidatingParser.<init>(GMLValidatingParser.java:67)
            ... 35 more

Now, the setup instructions in the WFS 1.0 resources directory instruct to build ets-resources and
drop the resulting jars in the teamengine web application, which I did.
However, there is a number of xsds the test is referring to, that are still missing (from wfs.xml):

<parser name="wfs:GMLValidatingParser">
      <java class="com.occamlab.te.parsers.GMLValidatingParser" initialized="true"
            method="parse">
         <with-param name="documentlocations">
            <documentlocations xmlns="">
               <parm>
                  <name>http://www.galdosinc.com/xml/properties/schemaLocation</name>
                  <value>http://schemas.opengis.net/gml/2.1.2/feature.xsd</value>
               </parm>
               <parm>
                  <name>http://www.galdosinc.com/xml/properties/schemaLocation</name>
                  <value>schemas/OGC-1.0.0/OGC_Wrapper.xsd</value>
               </parm>
               <parm>
                  <name>http://www.galdosinc.com/xml/properties/schemaLocation</name>
                  <value>schemas/WFS-1.0.0/WFS_Wrapper.xsd</value>
               </parm>
               <parm>
                  <name>http://www.galdosinc.com/xml/properties/schemaLocation</name>
                  <value>schemas/complexFeatures.xsd</value>
               </parm>
               <parm>
                  <name>http://www.galdosinc.com/xml/properties/schemaLocation</name>
                  <value>schemas/dataFeatures.xsd</value>
               </parm>
               <parm>
                  <name>http://www.galdosinc.com/xml/properties/schemaLocation</name>
                  <value>schemas/geometryFeatures.xsd</value>
               </parm>
            </documentlocations>
         </with-param>
      </java>
   </parser>

Do you know where they can be found, and where they are supposed to be placed?

Cheers
Andrea


--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20131209/718bc1e4/attachment-0001.html>


More information about the CITE-Forum mailing list