Re: How to use Rampart as Axis2 client from ejb (JBoss) ?

2009-06-20 Thread asheikh
Andreas, Thanks a lot, I have added in the repository/modules/modules.list with the following code, and everything is fine, thanks again My problem was that I have never included modules.list in the repository. Asad On Sun, Jun 21, 2009 at 7:42 AM, asheikh wrote: > > > Andreas, > > Thanks f

Re: How to use Rampart as Axis2 client from ejb (JBoss) ?

2009-06-20 Thread asheikh
Andreas, Thanks for the replay but I have already done that but it didn't work either URL url = this.getClass().getClassLoader().getResource( "repository"); ConfigurationContext ctxs = ConfigurationContextFactory .createConfigurationContextFromURIs(null, url.getPath()) the above code is

Re: How to use Rampart as Axis2 client from ejb (JBoss) ?

2009-06-20 Thread Andreas Veithen
ConfigurationContextFactory has a method to create the ConfigurationContext from a URL. You should use that method and calculate the URL of the repository with the help of Class#getResource. This assumes of course that the content of the repository is in the classpath. In addition you need to creat

Re: How to use Rampart as Axis2 client from ejb (JBoss) ?

2009-06-20 Thread asheikh
Hi The solution of using the following configuration context works(default context and re-naming mar to jar or copying modules to lib directory) in a stand alone application, but not in a ear deployment . I have spring configuration that creates a bean, and in the construction of the bean I create

Re: How to use Rampart as Axis2 client from ejb (JBoss) ?

2008-09-01 Thread keith chapman
Hi, You need to have the rampart.mar in the classpath. Perhaps renaming rampart.mar to rampart.jar (in the lib directory) will do the trick . Thanks, Keith. On Tue, Aug 26, 2008 at 6:43 PM, Rainer Montag <[EMAIL PROTECTED]> wrote: > Hello, > > I like to implement an Axis2 client that is used fr

How to use Rampart as Axis2 client from ejb (JBoss) ?

2008-08-26 Thread Rainer Montag
Hello, I like to implement an Axis2 client that is used from within an EJB calling an external web service that requires a UsernameToken. I have a problem how to setup my Axis2 client code to engage the rampart module resulting in a "Unable to engage module: rampart" exception. My ejb code