Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 94122 invoked by uid 500); 17 Mar 2002 15:50:14 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 94111 invoked from network); 17 Mar 2002 15:50:14 -0000 From: "Christofer Dutz" To: Subject: eXist component for Cocoon Date: Sun, 17 Mar 2002 16:50:08 +0100 Message-ID: <000601c1cdcb$6a3e5690$fe78a8c0@marvin> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1CDD3.CC02BE90" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0007_01C1CDD3.CC02BE90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi I have almost finished a first version of a eXist component which allows eXist to be configured and run from within Cocoon. Everything worked absolutely fine except one thing. When starting eXist you are usually able to start up a XML-RPC server for answering XML-RPC requests. When starting this service I get a "java.io.IOException: Address in use: JVM_Bind" no matter what port I configure eXist to use as RPC-Port. I guess that there could be a problem with staring the small Webserver for serving RPC-Calls. Is there already a XML-RPC server running with Cocoon and I can simply connect to It? The code producing the exception is: try { XmlRpc.setEncoding("UTF-8"); WebServer webServer = new WebServer(rpcPort); // create a webserver on a give port RpcServer rpcserv = new RpcServer(config); // create an eXist RPC-server instance webServer.addHandler("$default", rpcserv); // add the eXist RPC handler to the webserver if (this.getLogger().isDebugEnabled()) { this.getLogger().debug("Exist RPC-Server started"); } } catch (IOException ioe) { this.getLogger().debug("IOException - Error starting RPC-Server ", ioe); } Any ideas? Another question. When looking at the logs it looks like the initialisation process of most components is run twice on every start up . why? Thanx in advance, Christofer Dutz ------=_NextPart_000_0007_01C1CDD3.CC02BE90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I have almost finished a first version of a = eXist component which allows eXist to be configured and run from within = Cocoon. Everything worked absolutely fine except one thing. When starting eXist = you are usually able to start up a XML-RPC server for answering XML-RPC = requests. When starting this service I get a “java.io.IOException: Address in = use: JVM_Bind” no matter what port I configure eXist to use as = RPC-Port. I guess that there could be a problem with staring the small Webserver for serving RPC-Calls. Is there already a XML-RPC server running with Cocoon = and I can simply connect to It?

The code producing the exception = is:

 

        = ;            try {

        = ;            =     XmlRpc.setEncoding("UTF-8");

        = ;            =     WebServer webServer =3D new WebServer(rpcPort);       // create a = webserver on a give port

        = ;            =     RpcServer rpcserv =3D new RpcServer(config);         &= nbsp;      // create an eXist RPC-server instance

        = ;            =     webServer.addHandler("$default", = rpcserv);          &nbs= p;       // add the eXist RPC handler to the webserver

        = ;            =     if (this.getLogger().isDebugEnabled()) {

        = ;            =         this.getLogger().debug("Exist RPC-Server = started");

        = ;            =     }

        = ;            } catch (IOException ioe) {

        = ;            =     this.getLogger().debug("IOException - Error starting RPC-Server = ", ioe);

        = ;            }

 

Any ideas?

 

Another question. When looking at the logs it = looks like the initialisation process of most components is run twice on every = start up … why?

 

Thanx in advance,

 

Christofer Dutz

 

------=_NextPart_000_0007_01C1CDD3.CC02BE90--