Hi,

I still have a small problem with mapserver and secure OWS, I followed the 
steps in http://www.secureows.org/trac/secureows/wiki/ServerDocumentation.

I installed mapserver and tested it.

I installed securewos server and tested it.


I edited services.xml and added:


       <service serviceId="mapservertest" serviceDescription="Test"
                serviceEndPoint="http://www.example.com/cgi-
bin/mapserv?map=/var/www/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map">
                <roles>
                        <role>tomcat</role>
                        <role>role1</role>
                </roles>
        </service>

I created wmsPolicy_mapservertest.xml, with content:

<?xml version="1.0" encoding="UTF-8"?>
<OWSPolicy service="WMS" xmlns="http://www.deegree.org/security";>
        <Security></Security>
        <Requests>
        <GetMap>
        </GetMap>
        <GetFeatureInfo>
        </GetFeatureInfo>
        <GetCapabilities>
        </GetCapabilities>
                <GetLegendGraphic>
                </GetLegendGraphic>
        </Requests>
</OWSPolicy>

The next step is  Launch a command to generate the service configuration. This 
is what I did:

java ­-cp /usr/local/owsproxyserver_20081106/apache-
tomcat-5.5.20/webapps/owsproxyserver/WEB-INF/classes/ OwsAdmin 
/usr/local/owsproxyserver_20081106/apache-
tomcat-5.5.20/webapps/owsproxyserver/WEB-INF/

Then I get the error:

Exception in thread "main" java.lang.NoClassDefFoundError: ­-cp
Caused by: java.lang.ClassNotFoundException: ­-cp
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: ­-cp. Program will exit.


What am I doing wrong here?
-- 
Met vriendelijke groeten,
Chantal Rosmuller
TMCR Systeembeheer en advies
http://www.tmcr.nl

Let op, ik heb een nieuw telefoonnummer: 0317769041
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to