You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Joel <re...@ddcom.co.jp> on 2004/07/15 08:58:01 UTC

moving xindice to 8888 on tomcat

> >Well, you know what I'm going to do, I'm going to drop that
> >addressbook.war into TC. My, that was fast. And I try to look at the
> >list of contacts on http://localhost and xindice wants to read from port
> >8888. And I've left xindice on port 8080 because I'm lazy. Arrgghhh.
> >
> 
> You can set environment variable to let Xindice know which port to use. 
> See wiki.

Haven't found this environment variable yet. I have been using the 

    xindice <cmd> -c xmldb:xindice://localhost:8080/db

for a while, and it works just fine for command-line queries.

However, I just tried duplicating the main Connector declaration in
tomcat's server.xml, but removing the redirectPort attribute:

   <Connector port="8888"
       maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
       enableLookups="false" acceptCount="100"
       debug="0" connectionTimeout="20000" 
       disableUploadTimeout="true" />

Restarted Tomcat, and now the addressbook example app works just peachy.

-- 
Joel <re...@ddcom.co.jp>


Re: moving xindice to 8888 on tomcat

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Joel wrote:

>>>Well, you know what I'm going to do, I'm going to drop that
>>>addressbook.war into TC. My, that was fast. And I try to look at the
>>>list of contacts on http://localhost and xindice wants to read from port
>>>8888. And I've left xindice on port 8080 because I'm lazy. Arrgghhh.
>>>
>>>      
>>>
>>You can set environment variable to let Xindice know which port to use. 
>>See wiki.
>>    
>>
>
>Haven't found this environment variable yet. I have been using the 
>
>    xindice <cmd> -c xmldb:xindice://localhost:8080/db
>
>for a while, and it works just fine for command-line queries.
>
>However, I just tried duplicating the main Connector declaration in
>tomcat's server.xml, but removing the redirectPort attribute:
>
>   <Connector port="8888"
>       maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>       enableLookups="false" acceptCount="100"
>       debug="0" connectionTimeout="20000" 
>       disableUploadTimeout="true" />
>
>Restarted Tomcat, and now the addressbook example app works just peachy.
>

Nice.

After quick look into addressbook I found that it always look for 
xindice in default location: on the localhost, port 8888. This demo 
needs to be modified to add collection url configuration parameter.

Vadim