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 Chuck Amadi <ch...@breconbeacons.org> on 2002/10/07 13:42:50 UTC

Re: Cocoon 2 Could not read resource xmldb:xindice://172.*.**.**:4080/db/

My sitemap.xmap
I have tried all three notations localhost,172,**.*.**and 
myaddress.breconbeacons.org .
Any other steps I may have missed as I can see and try out the cocoon2 
examples except my stuff within xmldb:xindice

setup Cocoon 2 ,Tomcat4 and Xindice (Linux Box - Redhat7.3)

Sorry if I have posted to wrong groups albiet I'm desparete as this is 
holding me back a bit getting cocoon2 to publish my xml collections 
within xindice db


<!-- ======================= XML:DB ============================== -->

    <!-- ========= Changed localhost to 172.**.*.** or 
(myaddress.breconbeacons.org) from localhost ====== -->

    <map:match pattern="xmldb/**">
      <map:match pattern="xpath" type="request-parameter">
        <map:generate src="xmldb:xindice://172.**.*.**:4080/db/{../1}#{1}"/>
        <map:serialize type="xml"/>
      </map:match>

      <map:generate src="xmldb:xindice://172.*.**.*:4080/db/{1}"/>
      <map:serialize type="xml"/>
    </map:match>

<source-handler logger="core.source-handler">
    <!-- file protocol : this is a WriteableSource -->
    <protocol 
class="org.apache.cocoon.components.source.FileSourceFactory" name="file"/>

  My cocoon.conf looks like this

    <!-- xmldb pseudo protocol -->
    <protocol 
class="org.apache.cocoon.components.source.XMLDBSourceFactory" name="xmldb">
      <!-- Xindice driver -->
      <driver class="org.apache.xindice.client.xmldb.DatabaseImpl" 
type="xindice"/>
      <!-- Add here other XML:DB compliant databases drivers -->
    </protocol>


    <!-- blob pseudo protocol -->
    <protocol 
class="org.apache.cocoon.components.source.BlobSourceFactory" name="blob"/>

</source-handler>

I still get resource not found after I have started Xindice and Tomcat4
Also example tutorial /db/addresbook & my own project collections  
/db/xmlproject  have been created.

Thus when i try http://172*.**.*:9999/cocoon-dev/xmldb/addressbook/ or
http://172*.**.*:9999/cocoon-dev/xmldb/xmlproject/

I Get this error
Cocoon 2 - Internal server error

--------------------------------------------------------------------------------

type fatal

message Could not read resource xmldb:xindice://172.*.**.**:4080/db/

description org.apache.cocoon.ProcessingException: Could not read 
resource xmldb:xindice://172.*.**.**:4080/db/: 
org.xmldb.api.base.XMLDBException: A connection to the Database instance 
'db' could not be created. Error: Connection refused

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Could not read resource 
xmldb:xindice://172.**.*.**:4080/db/: org.xmldb.api.base.XMLDBException: 
A connection to the Database instance 'db' could not be created. Error: 
Connection refused




-- 
Regards 
Chuck Robert Amadi
ICT Dept Systems Programmer.
Rhaglenydd Systemau Adran ICT.
Power too deliver.
Y gallu i y Dosbarthu.

Before you criticize someone,
you should walk a mile in their shoes.
That way, when you criticize them,
you're a mile away, and you have their shoes.




RE: UTF-8, XINDICE and Chinese - chars corrupted after storing in xindice

Posted by Trevor Leung <tr...@softhome.net>.
Hi,

Do anyone has solved this problem? I had the same problem on Linux for Chinese
Big5 characters, Thanks for help.


Trevor




-----Original Message-----
From: KOZLOV Roman [mailto:r-kozlov@opencascade.com]
Sent: Thursday, October 10, 2002 1:27 PM
To: xindice-users@xml.apache.org
Subject: Re: UTF-8, XINDICE and Chinese - chars corrupted after storing in xindice


Hi,

I had the same problem on NT for french characters in UTF-8 encoded document,
retrieving it from Xindice when non-french system locale is set.

Roman

"Dr. Klemens Waldhör" wrote:

> Hi,
>
> I have a problem with the UTF-8 charset.
>
> I added a (Chinese) xml file (chinese.xml, UTF-8) to Xindice (with the
> commands below). When retrieving them it turned out that xindice has
> corrupted the files. Any idea what's wrong?
>
> xindice.bat ad -c /db/EagleMemex -f chinese.xml -n chinese
> xindice.bat rd -c /db/EagleMemex -f chinesefromxin.xml -n chinese
>
> If you open the file chinese.xml you will see that it correctly displays
> chinese chars, if you open chinesefromxin.xml you will see that the
> chars are edisplayed wrong. I used IE for this. Files are also different
> in size.
>
> Thanks for help !
>
> Klemens
>
>   ------------------------------------------------------------------------
>                   Name: chinese.xml
>    chinese.xml    Type: XML (text/xml)
>               Encoding: quoted-printable
>
>                          Name: chinesefromxin.xml
>    chinesefromxin.xml    Type: XML (text/xml)
>                      Encoding: quoted-printable

Re: UTF-8, XINDICE and Chinese - chars corrupted after storing in xindice

Posted by KOZLOV Roman <r-...@opencascade.com>.
Hi,

I had the same problem on NT for french characters in UTF-8 encoded document,
retrieving it from Xindice when non-french system locale is set.

Roman

"Dr. Klemens Waldhör" wrote:

> Hi,
>
> I have a problem with the UTF-8 charset.
>
> I added a (Chinese) xml file (chinese.xml, UTF-8) to Xindice (with the
> commands below). When retrieving them it turned out that xindice has
> corrupted the files. Any idea what's wrong?
>
> xindice.bat ad -c /db/EagleMemex -f chinese.xml -n chinese
> xindice.bat rd -c /db/EagleMemex -f chinesefromxin.xml -n chinese
>
> If you open the file chinese.xml you will see that it correctly displays
> chinese chars, if you open chinesefromxin.xml you will see that the
> chars are edisplayed wrong. I used IE for this. Files are also different
> in size.
>
> Thanks for help !
>
> Klemens
>
>   ------------------------------------------------------------------------
>                   Name: chinese.xml
>    chinese.xml    Type: XML (text/xml)
>               Encoding: quoted-printable
>
>                          Name: chinesefromxin.xml
>    chinesefromxin.xml    Type: XML (text/xml)
>                      Encoding: quoted-printable


UTF-8, XINDICE and Chinese - chars corrupted after storing in xindice

Posted by "Dr. Klemens Waldhör" <Wa...@t-online.de>.
Hi,

I have a problem with the UTF-8 charset.

I added a (Chinese) xml file (chinese.xml, UTF-8) to Xindice (with the
commands below). When retrieving them it turned out that xindice has
corrupted the files. Any idea what's wrong?
 
xindice.bat ad -c /db/EagleMemex -f chinese.xml -n chinese
xindice.bat rd -c /db/EagleMemex -f chinesefromxin.xml -n chinese
 
If you open the file chinese.xml you will see that it correctly displays
chinese chars, if you open chinesefromxin.xml you will see that the
chars are edisplayed wrong. I used IE for this. Files are also different
in size.

Thanks for help !

Klemens

Use of "legal" URLs for accessing Xindice

Posted by Murray Altheim <m....@open.ac.uk>.
Hi,

Wondering if anyone's had difficulties using the Xindice form of
URLs, where we have seemingly both a namespace identifier ("xmldb:")
and a protocol ("xindice:"). To my understanding this is not a legal
URL and Java throws a MalformedURLException when I attempt to create
one from it ("unknown protocol: xmldb").

Is there a way around this? Perhaps a way of addressing nodes in a
Collection via URL that doesn't run up against this problem?

I think the correct way to manage this is to create a URLStreamHandler
for the "xmldb:" protocol, but then there's still that pesky "xindice:"
waiting to be interpreted, and there's no provision in URL syntax for
layered protocols (unless this has been changed and I need to RTFM
again).

Thanks for any assistance,

Murray

......................................................................
Murray Altheim                  <http://kmi.open.ac.uk/people/murray/>
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK

      Stop the Bush-Cheney Reign of Terror:  no war in Iraq!
      2800 people dead in New York? 1 million in Iraq, about
      half a million of them children. Sanctions against Iraq
      include vaccines and even chlorine -- end the sanctions!
      http://www.globalissues.org/Geopolitics/MiddleEast/Iraq.asp


Re: AW: Cocoon 2 Could not read resource xmldb:xindice://172.*.**.**:4080/db/

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Stefan Lischke wrote:

>Hi chuck
>
>>I have tried all three notations localhost,172,**.*.**and
>>
>
>u can just use one IP or adress, Stars are not supported and i dont think
>that comma seperated values are allowed too
>
>mfg stefan
>
Sorry for my confusion I'm using a valid numerical ipAddress not 
asterisk (start's) Plus I've tried my domain address localhost doesn't 
work for some reason eventhoough I can ping localhost this bleep was 
solved by using my ipAddress and excuse the typo error shoud read 
http://111.111.111.111:4080/

So any other ideas

-- 
Regards 
Chuck Robert Amadi
ICT Dept Systems Programmer.
Rhaglenydd Systemau Adran ICT.
Power too deliver.
Y gallu i y Dosbarthu.

Before you criticize someone,
you should walk a mile in their shoes.
That way, when you criticize them,
you're a mile away, and you have their shoes.





AW: Cocoon 2 Could not read resource xmldb:xindice://172.*.**.**:4080/db/

Posted by Stefan Lischke <li...@novacom.net>.
Hi chuck

> I have tried all three notations localhost,172,**.*.**and

u can just use one IP or adress, Stars are not supported and i dont think
that comma seperated values are allowed too

mfg stefan