JavaObjectGateway

I’m trying to use the JavaObjectGateway to invoke a method in a Java class. I have added the sequence below:

<?xml version="1.0" encoding="UTF-8"?>
<sequence version="4.0" xbd.zid="N400001">
    <block xbd.zid="N400002">
        <!--{Name: jogCreate};{Notes: }-->
        <step component="SagJavaObjectGateway" xbd.object.class="blanket.signature.Verify" xbd.object.classPath="C:\Mediatorjava\MyJar.jar" xbd.object.function="Create" xbd.object.result="VerifyClass" xbd.zid="N400010"/>
        <!--{Name: jogCall};{Notes: }-->
        <step component="SagJavaObjectGateway" xbd.object.function="Call" xbd.object.method="TestMethod" xbd.object.object="VerifyClass" xbd.object.result="VerifyResult" xbd.zid="N400011"/>
    </block>
</sequence>

The problem is that I get a ClassNotFoundException when I start the sequence. The error occurs after the first step. Am I supposed to place the Jar-file in a specific dir or what am I doing wrong?

/Caspar

The classpath property should contain a URL. Try
xbd.object.classPath=“file:C:/Mediatorjava/MyJar.jar”

Regards,

Jason

I tried to change the classpath to: file://C:/Mediatorjava/eXSign.jar and file:C:/Mediatorjava/eXSign.jar, but I still get the ClassNotFoundException.

/Caspar

I’d make sure that the class exists in the jar. Can you post your jar to this list?

Jason