users@jax-rpc.java.net

The simple sample - Tomcat

From: <arehfeld_at_tiscali.dk>
Date: Wed, 6 Oct 2004 13:07:38 +0200

I hope its okay that i post a newbie question!

When i wanted to learn how JWSDP handles webservice security i was very
happy
to find the simple sample in the xws-security folder. So i tried to follow
the
README.txt file, but it didn't quite work (does it ever when you first try).
Now i have searched the web for several days, without any luck and this
is my
last hope.

I have downloaded and installed the tomcat-jwsdp-1.4 from sun's site and
then
installed jwsdp-1.4.
I have copy-pasted the connector from the README file so i now have the
following connectors:

<Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
        acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"
port="8080" redirectPort="8443">
</Connector>

<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
           port="8443" minProcessors="5" maxProcessors="75"
           enableLookups="true" disableUploadTimeout="true"
           acceptCount="100" debug="0" scheme="https" secure="true"
           keystoreFile=
           "/opt/jwsdp-1.4/xws-security/etc/server-keystore.jks"
           truststoreFile=
           "/opt/jwsdp-1.4/xws-security/etc/server-truststore.jks">
</Connector>

When i try to run the sample with the encrypt-client/encrypt-server setup
and
endpoint.port=8443 i get the following exception:

deploy-tomcat:
     [echo] Deploying war for simple to tomcat

BUILD FAILED
file:/usr/local/tomcat-jwsdp-1.4/xws-security/samples/simple/build.xml:209:
java.io.IOException: Error writing to server


Then i try the same setup with endpoint.port=8080.
Everything seems to work - the client sends the encrypted message but then

i get an exception in the serverlog:

Oct 5, 2004 4:14:09 PM com.sun.xml.wss.filter.ImportCertificateTokenFilter
process
SEVERE: WSS0156: Exception [ java.lang.NullPointerException: the keystore
parameter must be non-null ] while validating certificate


If anyone can help me it would certainly make my day.

Anders


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net