Using the WPS request builder in GeoServer 2.1.x (2012-08-13), I set the 
result option to application/json. The WPS request is:



<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version="1.0.0" service="WPS" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://www.opengis.net/wps/1.0.0"; 
xmlns:wfs="http://www.opengis.net/wfs"; 
xmlns:wps="http://www.opengis.net/wps/1.0.0"; 
xmlns:ows="http://www.opengis.net/ows/1.1"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:wcs="http://www.opengis.net/wcs/1.1.1"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd";>
<ows:Identifier>gt:BufferFeatureCollection</ows:Identifier>
   <wps:DataInputs>
     <wps:Input>
       <ows:Identifier>features</ows:Identifier>
       <wps:Reference mimeType="text/xml; subtype=wfs-collection/1.0" 
xlink:href="http://geoserver/wfs"; method="POST">
         <wps:Body>
           <wfs:GetFeature service="WFS" version="1.0.0" 
outputFormat="GML2">
             <wfs:Query typeName="sf:roads"/>
           </wfs:GetFeature>
         </wps:Body>
       </wps:Reference>
     </wps:Input>
     <wps:Input>
       <ows:Identifier>buffer</ows:Identifier>
       <wps:Data>
         <wps:LiteralData>5</wps:LiteralData>
       </wps:Data>
     </wps:Input>
   </wps:DataInputs>
   <wps:ResponseForm>
     <wps:RawDataOutput mimeType="application/json">
       <ows:Identifier>result</ows:Identifier>
     </wps:RawDataOutput>
   </wps:ResponseForm>
</wps:Execute>


What I get is:

<ows:ExceptionReport version="1.1.0" 
xsi:schemaLocation="http://www.opengis.net/ows/1.1 
http://172.16.0.100:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd";><ows:Exception 
exceptionCode="NoApplicableCode"><ows:ExceptionText>java.lang.NoClassDefFoundError:
 
org/json/simple/parser/ContentHandler
org/json/simple/parser/ContentHandler
org.json.simple.parser.ContentHandler</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

Where could I start to look into?

Peter

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to