You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Rufus Buschart <Ru...@rtc.bosch.com> on 2003/10/07 02:12:16 UTC
xmlrpc.WebServer stopps without error
Hi,
i wrote a small example application, which is supposed to start a
xml-rpc server:
import org.apache.xmlrpc.WebServer;;
public class NoteServer {
public static void main (String args[]) {
System.out.println("Start NoteServer");
try {
WebServer xmlrpcServer = new WebServer (9117);
System.out.println("Webserver started");
xmlrpcServer.addHandler ("notes", new NoteHandler ());
System.out.println("Handle registered");
} catch (Exception e) {
System.out.println ("Error starting XML-Server" + e);
}
System.out.println("NoteServer started");
}
}
But what it does is:
btr2pal@palpc22 ~/home/Webservices/NoteHandler
$ java NoteServer
Start NoteServer
Webserver started
Handle registered
NoteServer started
btr2pal@palpc22 ~/home/Webservices/NoteHandler
$
Well and that's it. No error message, nothing. It simply quits. Does
somebody of you have any idea?
Thanks,
Rufus
RE: xmlrpc.WebServer stopps without error
Posted by Mauro Canal <de...@canalsystems.net>.
shure it is: WebServer implements the java.lang.Runnable interface.
http://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/WebServer.html
Mauro Canal
mcanal@canalsystems.net
----------------------------------------------------------------------
canal systems GmbH
Kreuzlingerstrasse 132, CH-8587 Oberaach
+41-71 411 10 80
http://canalsystems.net
-----Original Message-----
From: Rufus Buschart [mailto:Rufus.Buschart@rtc.bosch.com]
Sent: Tuesday, October 07, 2003 6:23 PM
To: xmlrpc-user@ws.apache.org
Subject: Re: xmlrpc.WebServer stopps without error
Thank you! Now it works. Is this 'feature' anywhere documented?
/Rufus
developer@canalsystems.net wrote:
>Rufus,
>
>you must start the server as coded in WebServer.main():
>
> try {
> xmlrpcServer.start();
> System.out.println("XML-RPC server started");
> }
> catch (Exception e) {
> System.err.println("Error running server");
> e.printStackTrace();
> System.exit(1);
> }
>
>
>Mauro Canal
>mcanal@canalsystems.net
>----------------------------------------------------------------------
>canal systems GmbH http://canalsystems.net
>Kreuzlingerstrasse 132
>CH-8587 Oberaach Tel. +41-71 411 10 80
>
>
Re: xmlrpc.WebServer stopps without error
Posted by Rufus Buschart <Ru...@rtc.bosch.com>.
Thank you! Now it works. Is this 'feature' anywhere documented?
/Rufus
developer@canalsystems.net wrote:
>Rufus,
>
>you must start the server as coded in WebServer.main():
>
> try {
> xmlrpcServer.start();
> System.out.println("XML-RPC server started");
> }
> catch (Exception e) {
> System.err.println("Error running server");
> e.printStackTrace();
> System.exit(1);
> }
>
>
>Mauro Canal
>mcanal@canalsystems.net
>----------------------------------------------------------------------
>canal systems GmbH http://canalsystems.net
>Kreuzlingerstrasse 132
>CH-8587 Oberaach Tel. +41-71 411 10 80
>
>
RE: xmlrpc.WebServer stopps without error
Posted by de...@canalsystems.net.
Rufus,
you must start the server as coded in WebServer.main():
try {
xmlrpcServer.start();
System.out.println("XML-RPC server started");
}
catch (Exception e) {
System.err.println("Error running server");
e.printStackTrace();
System.exit(1);
}
Mauro Canal
mcanal@canalsystems.net
----------------------------------------------------------------------
canal systems GmbH http://canalsystems.net
Kreuzlingerstrasse 132
CH-8587 Oberaach Tel. +41-71 411 10 80
-----Original Message-----
From: Rufus Buschart [mailto:Rufus.Buschart@rtc.bosch.com]
Sent: Tuesday, October 07, 2003 2:12 AM
To: xmlrpc-user@ws.apache.org
Subject: xmlrpc.WebServer stopps without error
Hi,
i wrote a small example application, which is supposed to start a
xml-rpc server:
import org.apache.xmlrpc.WebServer;;
public class NoteServer {
public static void main (String args[]) {
System.out.println("Start NoteServer");
try {
WebServer xmlrpcServer = new WebServer (9117);
System.out.println("Webserver started");
xmlrpcServer.addHandler ("notes", new NoteHandler ());
System.out.println("Handle registered");
} catch (Exception e) {
System.out.println ("Error starting XML-Server" + e);
}
System.out.println("NoteServer started");
}
}
But what it does is:
btr2pal@palpc22 ~/home/Webservices/NoteHandler
$ java NoteServer
Start NoteServer
Webserver started
Handle registered
NoteServer started
btr2pal@palpc22 ~/home/Webservices/NoteHandler
$
Well and that's it. No error message, nothing. It simply quits. Does
somebody of you have any idea?
Thanks,
Rufus