Hi Deepal
I'm using 0.94. I will try to build from SVN, otherwise I'll wait for the
0.95 release.
Cheers
Rob
----- Original Message -----
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 21, 2006 12:46 PM
Subject: Re: [Axis2] wss4j
Hi Rob;
Are you working on current SVN code base or 0.94 release, I am sure that
I fixed this issues after 0.94 release.
Rob Henley wrote:
Hi Ruchith
many thanks - great explanation!
I know my server-side (tomcat) repository is ok, so I tried pointing
my client there:
ccf.createConfigurationContextFromFileSystem("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF");
_serviceClient = new org.apache.axis2.client.ServiceClient(ctx,
_service);
Now I get a different error
[java] java.lang.NullPointerException
[java] at
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:58)
[java] at
org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:105)
[java] at org.apache.axis2.PurchasingStub.<init>(Unknown Source)
[java] at samples.purchasing1.ClientTest.main(Unknown Source)
Have you seen anything like this before?
Cheers
Rob
----- Original Message ----- From: "Ruchith Fernando"
<[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 21, 2006 2:23 AM
Subject: Re: [Axis2] wss4j
Hi Rob,
Yes the repository is just a directory with a certain structure as
shown below:
repo_dir
|
+-> services/
| |
| +-> foo.aar
| +-> bar.aar
|
|-> modules/
| |
| +-> a.mar
| +-> b.mar
|
|-> conf/
|
+->axis2.xml
I addition to the above you can have optional 'lib' directories at
each service, module and repo level holding the common jars to be used
in each scope.
Thanks,
Ruchith
On 3/20/06, Rob Henley <[EMAIL PROTECTED]> wrote:
Hi Ruchith,
thanks! I'll try a later version.
Just to clarify, I was thinking a repository was just a directory which
conformed to a specific structure, for instance with sub-directories
called
modules, lib etc. It sounds like I haven't understood this properly.
Can you
tell me where it is described?
Many thanks
Rob
----- Original Message -----
From: "Ruchith Fernando" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, March 20, 2006 12:53 PM
Subject: Re: [Axis2] wss4j
Hi Rob,
>
> java.lang.ClassNotFoundException:
> org.apache.ws.security.transform.STRTransform
>
> I can see that this class is in wss4j-SNAPSHOT.jar, which in turn
is in > my
> security.mar in the modules directory. Extracting the jar into the lib
> directory seems to solve the problem, but presumably that isn't the
> right
> thing to do?
No, you should not have to do that.
In your scenario only the security module should contain the
wss4j-SNAPSHOT.jar in its 'lib' directory and you should not be
required to add it to your classpath separately. This sounds like a
module classloading problem.... Deepal what do you think?
Also can you send the complete stack trace of
> java.lang.ClassNotFoundException:
> org.apache.ws.security.transform.STRTransform
>
> The client code to set the configurationContext seemed to be for a
> version
> other than 0.94. My attempt looks like this:
>
> ConfigurationContextFactory ccf = new ConfigurationContextFactory();
> ConfigurationContext ctx =
> ccf.createConfigurationContextFromFileSystem("C:/axis2");
> _serviceClient = new org.apache.axis2.client.ServiceClient(ctx,
> _service);
>
> (Just to get things working, I dropped this straight into the
> PurchasingStub
> constructor generated by wsdl2java. C:/axis2 is where I unzipped
axis. > It
> contains axis2.xml and subdirectories lib, modules etc.)
>
> The client classpath includes all the jars in the lib directory, but I
> haven't set anything else specifically in the environment when the
> client
> runs.
To create a configuration context you have to give the path to an
axis2 _repository_ to the createConfigurationContextFromFileSystem()
method. NOT the place where you extracted Axis2.
There has been a considerable amount of changes from 0.94 and I'd
strongly recommend you to try the latest SVN head or checkout ht e0.95
release which will be out in a few days.
Thanks,
Ruchith
--
Thanks,
Deepal
................................................................
~Future is Open~