thanks for your answer.

i tried what you say and i create a client repository with "modules" (empty
directory) and "services" directory (empty too)
and a "conf" directory that contain my axis2.xml modified file.

when i run the client with my repository and my xml i obtain the message :


[W][Simple Http Server] constructor
*

org.apache.axis2.deployment.DeploymentException*:
org/apache/commons/fileupload/FileItemFactory

at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(*
AxisConfigBuilder.java:623*)

at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(*
AxisConfigBuilder.java:186*)

at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(*
DeploymentEngine.java:615*)

at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(*
FileSystemConfigurator.java:115*)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(*ConfigurationContextFactory.java:64*)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(*ConfigurationContextFactory.java:180*)

at fr.j2ltho.webcontracthelpdesk.client.WebContractMainClient.main(*
WebContractMainClient.java:14*)

Caused by: java.lang.NoClassDefFoundError: *org*
/apache/commons/fileupload/FileItemFactory

at java.lang.Class.getDeclaredConstructors0(*Native Method*)

at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

at java.lang.Class.getConstructor0(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(*
DescriptionBuilder.java:229*)

at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(*
AxisConfigBuilder.java:620*)
...

i can see that the simpleServerHttp begin to run correctly, but i have an
error after that :(

do you know why...?

thanks.

mathieu Fabre
[EMAIL PROTECTED]




2007/10/17, Upul Godage <[EMAIL PROTECTED]>:
>
> Just like in the server side, there is an axis2.xml to configure the
> client side. It is in the axis2-kernel.jar .
> For example the following line uses that axis2.xml to configure itself by
> default.
> ServiceClient serviceClient = new ServiceClient ();
> Either you can remove that file and put a changed axis2.xml in the
> classpath.
>
> Instead you can give an axis2.xml and repository as follows,
> ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem (
> axis2RepoLocation, axis2XmlLocation);
> ServiceClient serviceClient = new ServiceClient(configContext , null)
>
> When using the stub there will be constructor which takes a given
> configuration object.
> Stub stub = new Stub(configContext, epr);
>
> Good luck
>
> Upul
>
>
> On 10/17/07, mathieu fabre < [EMAIL PROTECTED] > wrote:
> >
> >
> > Hi,
> >
> > i use axis2 with tomcat and i don't know axis2 very well.
> > i have made a simple service, and i wrote a client which use the client
> > stub.
> > i want to use my own transport, so i made a simple jar that contain the
> > minimum
> > files like http protocol.(i begin to copy the http protocol and i will
> > write changes after).
> > I change the axis2.xml file and my server is using my jar for the
> > transport.
> > But i don't know how to do the same thing for the client because the
> > client use the axis2-kernel.jar
> > which contain normal version of the http transport.
> >
> > How could i force the client to use my jar for the transport..?
> >
> > thank in advance.
> >
> > mathieu Fabre
> >
> > (sorry for my english, i'm french)
> >
>
>

Reply via email to