Hi

I'm just starting out with Axis2 + rampart and have hit a brick wall early.
I am unable to invoke a service with inbound security enabled and cannot
find any further documentation to help.

I have installed Axis 2 correctly and have tested an unsecured service with
success.

When I attempt to access a secured service I receive a HTTP 500 response.
Any help would be very much appreciated. Details follow:


The Tomcat localhost log says:

2006-08-10 17:44:24 StandardWrapperValve[AxisServlet]: Servlet.service()
for servlet AxisServlet threw exception
java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin
cannot create instance
        at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:155)
        at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:115)
...


The Tomcat catalina.out says:

java.lang.InstantiationException:
org.apache.ws.security.components.crypto.Merlin
        at java.lang.Class.newInstance0(Class.java:281)
        at java.lang.Class.newInstance(Class.java:249)
        at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:150)
...

Rampart is installed in webapps/axis2/WEB-INF/modules/rampart-1.0.mar. It
is enabled in axis2.xml as <module ref="rampart"/>

The rampart-1.0.mar file contains wss4j-1.5.0.jar, which in turn contains
org/apache/ws/security/components/crypto/Merlin.class

The service.xml definition:

<service name="lcc_calculator">
    <description>
        LCC Calculator
    </description>
    <parameter name="ServiceClass"
locked="false">com.thenational.prototype.axis2.LCCCalculator</parameter>
    <parameter name="InflowSecurity">
        <action>
            <items>Timestamp Signature Encrypt</items>

<passwordCallbackClass>com.thenational.prototype.axis2.security.PasswordStore</passwordCallbackClass>
            <signaturePropFile>interop.properties</signaturePropFile>
        </action>
    </parameter>
    <operation name="calculate">
        <messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </operation>
</service>


The signature properties file:

org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
...

(I have not yet fixed the subsequent properties, as I'm stuck on getting
the first one to work).


National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended 
recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to 
the sender, and then destroy all copies of this email. Except where this email 
indicates otherwise, views expressed in this email are those of the sender and 
not of National Australia Bank Ltd. Advice in this email does not take account 
of your objectives, financial situation, or needs. It is important for you to 
consider these matters and, if the e-mail refers to a product(s), you should 
read the relevant Product Disclosure Statement(s)/other disclosure document(s) 
before making any decisions. If you do not want email marketing from us in 
future, forward this email with "unsubscribe" in the subject line to [EMAIL 
PROTECTED] in order to stop marketing emails from this sender. National 
Australia Bank Ltd does not represent that this email is free of errors, 
viruses or interference.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to