[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    Re: question
From:       "mathieu fabre" <mathieufab () gmail ! com>
Date:       2007-10-17 15:42:49
Message-ID: 429d65070710170842n186e5765qf43e58261dd39ad7 () mail ! gmail ! com
[Download RAW message or body]

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
mathieufab@gmail.com




2007/10/17, Upul Godage <upulg.dev@gmail.com>:
>
> 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 < mathieufab@gmail.com > 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)
> >
>
>

[Attachment #3 (text/html)]

<div>
<div>thanks for your answer.</div>
<div>&nbsp;</div>
<div>i tried what you say and i create a client repository with &quot;modules&quot; \
(empty directory) and &quot;services&quot; directory (empty too)</div> <div>and a \
&quot;conf&quot; directory that contain my axis2.xml modified file.</div> \
<div>&nbsp;</div> <div>when i run the client with my repository and my xml i obtain \
the message : </div> <div>&nbsp;</div>
<p align="left"><font size="2">[W][Simple Http Server] constructor</font></p><u><font \
color="#000080"> <p align="left"><font \
size="2">org.apache.axis2.deployment.DeploymentException</font></p></font></u><font \
color="#ff0000"><font size="2">: org/apache/commons/fileupload/FileItemFactory</font> \
<p align="left"><font size="2">at \
org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(</font></p></font><u><font \
color="#000080"><font size="2">AxisConfigBuilder.java:623</font></font></u><font \
color="#ff0000"> <font size="2">)</font>
<p align="left"><font size="2">at \
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(</font></p></font><u><font \
color="#000080"><font size="2">AxisConfigBuilder.java:186</font></font></u><font \
color="#ff0000"><font size="2"> )</font>
<p align="left"><font size="2">at \
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(</font></p></font><u><font \
color="#000080"><font size="2">DeploymentEngine.java:615</font></font></u><font \
color="#ff0000"> <font size="2">)</font>
<p align="left"><font size="2">at \
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(</font></p></font><u><font \
color="#000080"><font size="2">FileSystemConfigurator.java:115</font></font></u><font \
color="#ff0000"> <font size="2">)</font>
<p align="left"><font size="2">at \
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(</font></p></font><u><font \
color="#000080"><font size="2">ConfigurationContextFactory.java:64</font></font> \
</u><font color="#ff0000"><font size="2">)</font> <p align="left"><font size="2">at \
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(</font></p></font><u><font \
color="#000080"><font size="2">ConfigurationContextFactory.java:180 \
</font></font></u><font color="#ff0000"><font size="2">)</font> <p align="left"><font \
size="2">at fr.j2ltho.webcontracthelpdesk.client.WebContractMainClient.main(</font></p></font><u><font \
color="#000080"><font size="2">WebContractMainClient.java:14</font></font></u><font \
color="#ff0000"> <font size="2">)</font>
<p align="left"><font size="2">Caused by: java.lang.NoClassDefFoundError: \
<u>org</u>/apache/commons/fileupload/FileItemFactory</font></p> <p align="left"><font \
size="2">at java.lang.Class.getDeclaredConstructors0(</font></p></font><u><font \
color="#000080"><font size="2">Native Method</font></font></u><font \
color="#ff0000"><font size="2">)</font> <p align="left"><font size="2">at \
java.lang.Class.privateGetDeclaredConstructors(Unknown Source)</font></p> <p \
align="left"><font size="2">at java.lang.Class.getConstructor0(Unknown \
Source)</font></p> <p align="left"><font size="2">at \
java.lang.Class.newInstance0(Unknown Source)</font></p> <p align="left"><font \
size="2">at java.lang.Class.newInstance(Unknown Source)</font></p> <p \
align="left"><font size="2">at \
org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(</font></p></font><u><font \
color="#000080"><font size="2">DescriptionBuilder.java:229</font></font></u><font \
color="#ff0000"> <font size="2">)</font>
<p><font size="2">at \
org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(</font></p></font><u><font \
color="#000080"><font size="2">AxisConfigBuilder.java:620</font></font></u><font \
color="#ff0000"><font size="2"> )</font>
<div></div></font><font size="2">...</font></div>
<div>&nbsp;</div>
<div>i can see that the simpleServerHttp begin to run correctly, but i have an error \
after that :(</div> <div>&nbsp;</div>
<div>do you know why...?</div>
<div>&nbsp;</div>
<div>thanks.</div>
<div>&nbsp;</div>
<div>mathieu Fabre</div>
<div><a href="mailto:mathieufab@gmail.com">mathieufab@gmail.com</a></div>
<div><br>&nbsp;</div><br>&nbsp;
<div><span class="gmail_quote">2007/10/17, Upul Godage &lt;<a onclick="return \
top.js.OpenExtLink(window,event,this)" href="mailto:upulg.dev@gmail.com" \
target="_blank">upulg.dev@gmail.com</a>&gt;:</span>  <blockquote class="gmail_quote" \
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px \
solid">Just like in the server side, there is an axis2.xml to configure the client \
                side. It is in the axis2-kernel.jar
 .<br>For example the following line uses that axis2.xml to configure itself by \
default.<br><span>ServiceClient serviceClient = new ServiceClient (); \
<br></span>Either you can remove that file and put a changed axis2.xml in the \
classpath.  <br><br>Instead you can give an axis2.xml and repository as \
follows,<br><span>ConfigurationContext configContext \
=</span><br><span>ConfigurationContextFactory.createConfigurationContextFromFileSystem \
(<br>axis2RepoLocation, axis2XmlLocation);  <br></span><span>ServiceClient \
serviceClient = new ServiceClient(</span><span>configContext </span><span>, \
null)<br></span><br>When using the stub there will be constructor which takes a given \
configuration object. <br><span> Stub stub = new Stub(configContext, \
epr);<br></span><br>Good luck<br><br>Upul<br><br><br> <div><span \
class="gmail_quote">On 10/17/07, <b class="gmail_sendername">mathieu fabre</b> &lt;<a \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:mathieufab@gmail.com" target="_blank"> mathieufab@gmail.com  </a>&gt; \
wrote:</span>  <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt \
0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><span \
class="gmail_quote"><br></span> <div>Hi,</div>
<div>&nbsp;</div>
<div>i use axis2 with tomcat and i don&#39;t know axis2 very well.</div>
<div>i have made a simple service, and i wrote a client which use the client \
stub.</div> <div>i want to use my own transport, so i made a simple jar that contain \
the minimum</div> <div>files like http protocol.(i begin to copy the http protocol \
and i will write changes after).</div> <div>I change the axis2.xml file and my server \
is using my jar for the transport.</div> <div>But i don&#39;t know how to do the same \
thing for the client because the client use the axis2-kernel.jar</div> <div>which \
contain normal version of the http transport.</div> <div>&nbsp;</div>
<div>How could i force the client to use my jar for the transport..?</div>
<div>&nbsp;</div>
<div>thank in advance.</div>
<div>&nbsp;</div>
<div>mathieu Fabre</div>
<div>&nbsp;</div>
<div>(sorry for my english, i&#39;m \
french)</div></blockquote></div><br></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic