I am using Axis2+rampart at client side. The server side is apache tuscany with web-services based services.
Do I still need to do that?

Regards,
Yang Sun

[EMAIL PROTECTED] wrote:
Did you copy all the JARs in rampart-1,3/lib into webapps/axis2/WEB-INF/lib
?

- Steve

"Sun Yang" <[EMAIL PROTECTED]> wrote on 05/29/2008 01:05:12 PM:

Hi,
I am new to Axis2. I have some problem when I want to engage
rampart. Please give me a hand to look at it.

Steps I take:
I.  Modify the axis2.xml file to add a module ref to rampart;
2. Copy rahas-1.3.mar, rampart-1.3.mar to the <repository-
path>/modules directory;
3. Write a very simple program to test it. Eg:
/------------------
public class MyTest {
    private static EndpointReference targetEPR = new EndpointReference("
http://localhost:8080/axis2/services/MyService";);

    public static void main(String[] args) throws AxisFault {
        ServiceClient sender = new ServiceClient();
        sender.engageModule("rampart");
    }
}
--------------------/
4. When run, I use jvm parameter(-Daxis2.xml=...) to transfer the
right axis2.xml and axis2.repo parameters to the make them point to
the right location.
5. When run, it always complain that some class cannot be loaded.

I make some debugging and find the reason is the lack of class
definition. But the class is obviously resides in the jars listed in
the classpath. I guess there are some classloading issues there. So
I copy all the jars in the lib to the jre's lib/ext folder. That
works fine and no error occur.

But I am not sure whether it is the right way to solve this problem?
Do I make something wrong here? Please help me to give me some advices.

Best Regards,
Yang Sun


______________________________________________
Steve Gruverman
IntelliCare, Inc. | A Medco Health Solutions Company

500 Southborough Drive | South Portland ME 04106





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


Reply via email to