Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows NT 5.1 SP 1, Tomcat 5.5.9

      Description

      Following the instructions for enabling Rampart in Axis2 leads to the following exception:

      java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin cannot create instance
      org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:155)
      org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:115)
      org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:337)
      org.apache.ws.security.handler.WSHandler.decodeSignatureParameter2(WSHandler.java:770)
      org.apache.ws.security.handler.WSHandler.doReceiverAction(WSHandler.java:231)
      org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:176)
      org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
      org.apache.axis2.engine.Phase.invoke(Phase.java:381)
      org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
      org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
      org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
      org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      I have a fresh installation of Tomcat 5.5.9. I deployed Axis 2, added the line <module ref="rampart"/> to axis2.xml and uploaded a service with the following configuration.

      service.xml:

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

      interop.properties:

      org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
      org.apache.ws.security.crypto.merlin.keystore.type=jks
      org.apache.ws.security.crypto.merlin.keystore.password=password
      org.apache.ws.security.crypto.merlin.file=interop/interop2.jks

      Whether this is a genuine bug or a lack of documentation I am not sure. User mailing list is unhelpful.

        Activity

        Davanum Srinivas made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Davanum Srinivas added a comment -

        Looks like this is fixed.

        – dims

        Show
        Davanum Srinivas added a comment - Looks like this is fixed. – dims
        Hide
        Jeremy Mawson added a comment -

        Thank you!

        I had downloaded the war dist, not the standard bin dist, so I didn't have this very useful security sample. The sample makes it clear.

        Cheers
        Jem

        Show
        Jeremy Mawson added a comment - Thank you! I had downloaded the war dist, not the standard bin dist, so I didn't have this very useful security sample. The sample makes it clear. Cheers Jem
        Hide
        Ruchith Udayanga Fernando added a comment -

        Hi,

        Please copy following jars into the "axis2/WEB-INF/lib/" directory:

        bcprov-jdk13-132.jar
        commons-discovery-0.2.jar
        wss4j-1.5.0.jar
        xmlsec-1.3.0.jar

        If you downloaded the axis2 standard bin distribution these are available in the lib directory of the security sample directory.

        Thanks,
        Ruchith

        Show
        Ruchith Udayanga Fernando added a comment - Hi, Please copy following jars into the "axis2/WEB-INF/lib/" directory: bcprov-jdk13-132.jar commons-discovery-0.2.jar wss4j-1.5.0.jar xmlsec-1.3.0.jar If you downloaded the axis2 standard bin distribution these are available in the lib directory of the security sample directory. Thanks, Ruchith
        Hide
        Jeremy Mawson added a comment -

        I did not mention it, but I did download rampart-1.0.mar and deploy it to

        {tomcat}

        /webapps/axis2/WEB-INF/modules

        Show
        Jeremy Mawson added a comment - I did not mention it, but I did download rampart-1.0.mar and deploy it to {tomcat} /webapps/axis2/WEB-INF/modules
        Jeremy Mawson created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Jeremy Mawson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development