[ZOO-Discuss] Java based Service: <ows:ExceptionText>can't find class ZooWrapper.class</ows:ExceptionText>

Matthias Lendholt matthias.lendholt at gfz-potsdam.de
Thu May 5 06:52:07 PDT 2011


Dear all,

I tried to setup a very simple Java Process and followed the demo in the 
wiki.

ZooWrapper.class is stored in the cgi-bin directory and TestJava.zcfg is 
pointing to it.

*ls*

/usr/lib/cgi-bin$ ls
HelloPy.zcfg  mapserv        test_service.py  ZooWrapper.class
main.cfg      TestJava.zcfg  zoo_loader.cgi

*zcfg*

[Test]
  Title = Display a string
  Abstract = Display a string which contains an hello message
  processVersion = 1
  storeSupported = true
  statusSupported = true
  serviceProvider = ZooWrapper.class
  serviceType = Java
  <MetaData>
    title = Demo
  </MetaData>
  <DataInputs>
   [S]
    Title = the string
    Abstract = The string to add to the hellow one.
    minOccurs = 1
    maxOccurs = 1
    <LiteralData>
     DataType = string
     <Default>
     </Default>
    </LiteralData>
  </DataInputs>
  <DataOutputs>
   [Result]
    Title = The hello string
    Abstract = The Hello message string.
    <LiteralOutput>
     DataType = string
     <Default>
     </Default>
    </LiteralOutput>
  </DataOutputs>


*ServerRequest*
http://192.168.56.101/cgi-bin/zoo_loader.cgi?Service=WPS&Request=Execute&Version=1.0.0&Identifier=TestJava&DataInputs=S=TesT


*ServerResponse*

<?xml version="1.0" encoding="utf-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xsi:schemaLocation="http://www.opengis.net/ows/1.1 
http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" 
xml:lang="en-US" version="1.1.0">
   <ows:Exception exceptionCode="NoApplicableCode">
     <ows:ExceptionText>can't find class ZooWrapper.class
</ows:ExceptionText>
   </ows:Exception>
</ows:ExceptionReport>
Content-Type: text/xml; charset=utf-8
Status: 200 OK


Are there any other Java specific settings? Must a classpath env be set?
For testing ZooWrapper is in the default package. However, is it 
possible to store Java classes in jar files under package structure? I 
couldn't find any specific documentation for Java-based processes.


Many thanks in advance,
Matthias




More information about the Zoo-discuss mailing list