The simple sample - Tomcat

From: <>
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
to find the simple sample in the xws-security folder. So i tried to follow
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
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">

<!-- 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"

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

     [echo] Deploying war for simple to tomcat

file:/usr/local/tomcat-jwsdp-1.4/xws-security/samples/simple/build.xml:209: 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
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.


To unsubscribe, e-mail:
For additional commands, e-mail: