You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by Julien Sentier <js...@rocketmail.com> on 2009/11/23 23:38:53 UTC

Developing a secure WS with Axis2: compiling a client

Hi,

I'm trying to create a Web Service which could know who is the person connected.

Currently I'm just following this how-to: http://www.ibm.com/developerworks/java/library/j-jws4/

I've setup Tomcat apache-tomcat-6.0.20/ with axis2-1.5.1/. I've made my own awis2.war with rahas-1.4.mar and rampart-1.4.mar in the repository/modules/ folder.

Now I'm compiling the examples provided in the how-to but I have the following error:
....jws04code/client/src/com/sosnoski/ws/library/adb/WebServiceClient.java:29: package org.apache.rampart does not exist

It's quite explicit ;)

However by build.properties contains :
axis-home=/Users/jsentier/WS/zips/axis2-1.5.1
And my build.xml contains:
  <path id="axis-classpath">
    <fileset dir="${axis-home}/lib" includes="**/*.jar"/>
    <fileset dir="${axis-home}/repository/modules" includes="rampart*.mar"/>
  </path>

/Users/jsentier/WS/zips/axis2-1.5.1/repository/modules/ exists and contains the official rampart-1.4.mar. So, what's wrong? Inside the rampart-1.4.mar there is no *.class, is that normal?

Regards,
Julien


      


Re: Developing a secure WS with Axis2: compiling a client

Posted by Julien Sentier <js...@rocketmail.com>.
Hi,

As I said the error was explicit... I'm must me tired.

Anyway, big thanks for your help!

Regards,
Julien

--- On Mon, 11/23/09, Nandana Mihindukulasooriya <na...@gmail.com> wrote:

> From: Nandana Mihindukulasooriya <na...@gmail.com>
> Subject: Re: Developing a secure WS with Axis2: compiling a client
> To: rampart-dev@ws.apache.org
> Date: Monday, November 23, 2009, 10:53 PM
> Hi Julien,
>        Rampart class files are in
> th jar files under lib directory of
> official Rampart binary distribution. So in your case, do
> you have all the
> jars (eg. rampart-core-1.4.jar, rampart-policy-1.4.jar,
> rampart-trust-1.4.jar, etc .. ) under ${axis-home}/lib.
> Those libraries has
> to be in your class path. Hope this [1] will help you to
> find more info.
> 
> regards,
> nandana
> 
> [1] - http://blog.facilelogin.com/2009/11/httprampartfaqcom.html
> 
> On Mon, Nov 23, 2009 at 11:38 PM, Julien Sentier <js...@rocketmail.com>wrote:
> 
> > Hi,
> >
> > I'm trying to create a Web Service which could know
> who is the person
> > connected.
> >
> > Currently I'm just following this how-to:
> > http://www.ibm.com/developerworks/java/library/j-jws4/
> >
> > I've setup Tomcat apache-tomcat-6.0.20/ with
> axis2-1.5.1/. I've made my own
> > awis2.war with rahas-1.4.mar and rampart-1.4.mar in
> the repository/modules/
> > folder.
> >
> > Now I'm compiling the examples provided in the how-to
> but I have the
> > following error:
> >
> ....jws04code/client/src/com/sosnoski/ws/library/adb/WebServiceClient.java:29:
> > package org.apache.rampart does not exist
> >
> > It's quite explicit ;)
> >
> > However by build.properties contains :
> > axis-home=/Users/jsentier/WS/zips/axis2-1.5.1
> > And my build.xml contains:
> >   <path id="axis-classpath">
> >     <fileset
> dir="${axis-home}/lib" includes="**/*.jar"/>
> >     <fileset
> dir="${axis-home}/repository/modules"
> > includes="rampart*.mar"/>
> >   </path>
> >
> >
> /Users/jsentier/WS/zips/axis2-1.5.1/repository/modules/
> exists and contains
> > the official rampart-1.4.mar. So, what's wrong? Inside
> the rampart-1.4.mar
> > there is no *.class, is that normal?
> >
> > Regards,
> > Julien
> >
> >
> >
> >
> >
> 


      


Re: Developing a secure WS with Axis2: compiling a client

Posted by Nandana Mihindukulasooriya <na...@gmail.com>.
Hi Julien,
       Rampart class files are in th jar files under lib directory of
official Rampart binary distribution. So in your case, do you have all the
jars (eg. rampart-core-1.4.jar, rampart-policy-1.4.jar,
rampart-trust-1.4.jar, etc .. ) under ${axis-home}/lib. Those libraries has
to be in your class path. Hope this [1] will help you to find more info.

regards,
nandana

[1] - http://blog.facilelogin.com/2009/11/httprampartfaqcom.html

On Mon, Nov 23, 2009 at 11:38 PM, Julien Sentier <js...@rocketmail.com>wrote:

> Hi,
>
> I'm trying to create a Web Service which could know who is the person
> connected.
>
> Currently I'm just following this how-to:
> http://www.ibm.com/developerworks/java/library/j-jws4/
>
> I've setup Tomcat apache-tomcat-6.0.20/ with axis2-1.5.1/. I've made my own
> awis2.war with rahas-1.4.mar and rampart-1.4.mar in the repository/modules/
> folder.
>
> Now I'm compiling the examples provided in the how-to but I have the
> following error:
> ....jws04code/client/src/com/sosnoski/ws/library/adb/WebServiceClient.java:29:
> package org.apache.rampart does not exist
>
> It's quite explicit ;)
>
> However by build.properties contains :
> axis-home=/Users/jsentier/WS/zips/axis2-1.5.1
> And my build.xml contains:
>   <path id="axis-classpath">
>     <fileset dir="${axis-home}/lib" includes="**/*.jar"/>
>     <fileset dir="${axis-home}/repository/modules"
> includes="rampart*.mar"/>
>   </path>
>
> /Users/jsentier/WS/zips/axis2-1.5.1/repository/modules/ exists and contains
> the official rampart-1.4.mar. So, what's wrong? Inside the rampart-1.4.mar
> there is no *.class, is that normal?
>
> Regards,
> Julien
>
>
>
>
>