You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Shahid Faiz <sh...@gmail.com> on 2006/05/18 09:00:51 UTC

Unable to Setup XML RPC 3.0

I have successfully setup XML RPC server, but when i try to test that it
throws following exception,

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/ws/commons/util/XsDateTimeFormat
    at org.apache.xmlrpc.serializer.DateSerializer.<clinit>(
DateSerializer.java:29)
    at org.apache.xmlrpc.common.TypeFactoryImpl.<clinit>(
TypeFactoryImpl.java:70)
    at org.apache.xmlrpc.common.XmlRpcController.<init>(
XmlRpcController.java:28)
    at org.apache.xmlrpc.client.XmlRpcClient.<init>(XmlRpcClient.java:50)
    at com.edb.jws.test.XmlRpcTest.main(XmlRpcTest.java:28)


I have tried to fine this org.apache.ws.commons.* but no success. Kindly,
tell me where I can find these classes ??

Good Day
Shahid

Re: Unable to Setup XML RPC 3.0

Posted by Andreas Holtz <a....@gmx.net>.
Jochen Wiedmann schrieb:
> What do you mean with "does not work for me"? I have just checked the 
> first
> URL and have got a proper directory listing. I don't know the URL you are
> quoting, but the jar file it contains is outdated.
>
>
> Jochen
I meant that I could not get xml-prc to work properly. It complains 
about missing org/apache/ws/commons/util/XsDateTimeFormat, as mentioned 
by the Threadstarter.
When I put the outdated jar into the classpath, it worked (but complains 
about other things ;-) ).

I now play aorund with version 2.0.1

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Jochen Wiedmann <jo...@gmail.com>.
Andreas Holtz wrote:

>> http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0-SNAPSHOT/
>>
> The snapshot does not work for me. But this one did it:
> http://mirrorspace.org/files/index.php?dir=apache/java-repository/ws-commons-util/jars

What do you mean with "does not work for me"? I have just checked the first
URL and have got a proper directory listing. I don't know the URL you are
quoting, but the jar file it contains is outdated.


Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Jochen Wiedmann <jo...@gmail.com>.
Oliver Cole wrote:

> A documentation and/or forwarding URL on the ws.apache website of
> course :)

Ah. That's the ultimate solution, IMO. :-) If anyone provides a patch, I am
ready to pull it in, though.


> Fair enough... but everyone like to compile from source from time to
> time.

Right, in which case Maven 2 will automatically download the required jar's
for you, doesn't it? :-)


Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Oliver Cole <ol...@f2s.com>.
On Fri, 2006-05-19 at 22:32 +0200, Jochen Wiedmann wrote:
> Oliver Cole wrote:
> 
> > I'm not exactly a regular contributor here, but wouldn't it be possible
> > to do some class loading stuff at some early point to find out if we can
> > actually load org.apache.ws.commons.*, and if not, then print the URL
> > and exit?
> 
> What URL should be printed?

A documentation and/or forwarding URL on the ws.apache website of
course :)

> Besides, I do believe this problem will be done as soon as we start to
> deliver dependencies as part of the next binary release.

Fair enough... but everyone like to compile from source from time to
time.

Oli


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Ted Dunning <td...@san.rr.com>.
That would be fabulous.  I recently tried 3a1 and gave up when I wasn't 
able to find a consistent distribution for the common utils.  My 
evaluation at the time was that the "a" should be larger (i.e., the code 
really was alpha state and not ready to be used widely).  Having 
dependent jars would make things soooo much better and would help make 
first impressions depend on the code rather than the packaging.


Jochen Wiedmann wrote:
> Besides, I do believe this problem will be done as soon as we start to
> deliver dependencies as part of the next binary release.
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Jochen Wiedmann <jo...@gmail.com>.
Oliver Cole wrote:

> I'm not exactly a regular contributor here, but wouldn't it be possible
> to do some class loading stuff at some early point to find out if we can
> actually load org.apache.ws.commons.*, and if not, then print the URL
> and exit?

What URL should be printed?

Besides, I do believe this problem will be done as soon as we start to
deliver dependencies as part of the next binary release.


Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Oliver Cole <ol...@f2s.com>.
I'm not exactly a regular contributor here, but wouldn't it be possible
to do some class loading stuff at some early point to find out if we can
actually load org.apache.ws.commons.*, and if not, then print the URL
and exit?

E.g, this code I saw somewhere:

try {
	String macClassName = “com.apple.eio.FileManager”;
	Class macClass = Class.forName(macClassName);
	Method m = macClass.getMethod("openURL", 
new Class [] { Class.forName("java.lang.String") });
  
	m.invoke(null, new String [] { url });
} catch (Exception e) {
	// Deal (via System.exec()?) with other platforms
}

Hope this helps.

Regards,

Oli

On Fri, 2006-05-19 at 08:23 +0200, Andreas Holtz wrote:
> Jochen Wiedmann schrieb:
> > Shahid Faiz wrote:
> >
> >   
> >> I have tried to fine this org.apache.ws.commons.* but no success. Kindly,
> >> tell me where I can find these classes ??
> >>     
> >
> >
> > http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0-SNAPSHOT/
> The snapshot does not work for me. But this one did it:
> http://mirrorspace.org/files/index.php?dir=apache/java-repository/ws-commons-util/jars
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: xmlrpc-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Andreas Holtz <a....@gmx.net>.
Jochen Wiedmann schrieb:
> Shahid Faiz wrote:
>
>   
>> I have tried to fine this org.apache.ws.commons.* but no success. Kindly,
>> tell me where I can find these classes ??
>>     
>
>
> http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0-SNAPSHOT/
The snapshot does not work for me. But this one did it:
http://mirrorspace.org/files/index.php?dir=apache/java-repository/ws-commons-util/jars

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org


Re: Unable to Setup XML RPC 3.0

Posted by Jochen Wiedmann <jo...@gmail.com>.
Shahid Faiz wrote:

> I have tried to fine this org.apache.ws.commons.* but no success. Kindly,
> tell me where I can find these classes ??


http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-util/1.0-SNAPSHOT/

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-user-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-user-help@ws.apache.org