You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Oliver Zeigermann <ol...@gmail.com> on 2004/11/12 23:27:31 UTC

Config file in http://incubator.apache.org/jackrabbit/firststeps.html wrong?

Folks,

the config file in 

http://incubator.apache.org/jackrabbit/firststeps.html

seems to be wrong as lines 131-135 either expect no SearchIndex
element at all or a complete one including a file system. Uncommenting
it out, seems to work, though:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>
    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />
    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
        <!--SearchIndex path="/index"/-->
    </Workspace>
</Repository>

Or am I doing anything wrong?

Oliver

Re: Config file in http://incubator.apache.org/jackrabbit/firststeps.html wrong?

Posted by Stefan Guggisberg <st...@gmail.com>.
hi oliver,
you're right. the example in 'firststeps' is outdated and 
will be fixed asap. thanks for reporting it.

you can find a working repository.xml example in src/conf.

cheers
stefan

On Fri, 12 Nov 2004 23:27:31 +0100, Oliver Zeigermann
<ol...@gmail.com> wrote:
> Folks,
> 
> the config file in
> 
> http://incubator.apache.org/jackrabbit/firststeps.html
> 
> seems to be wrong as lines 131-135 either expect no SearchIndex
> element at all or a complete one including a file system. Uncommenting
> it out, seems to work, though:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Repository>
>    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>        <param name="path" value="${rep.home}/repository"/>
>    </FileSystem>
>    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />
>    <Workspace name="${wsp.name}">
>        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>            <param name="path" value="${wsp.home}"/>
>        </FileSystem>
>        <PersistenceManager
> class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
>        <!--SearchIndex path="/index"/-->
>    </Workspace>
> </Repository>
> 
> Or am I doing anything wrong?
> 
> Oliver
>

Re: Config file in http://incubator.apache.org/jackrabbit/firststeps.html wrong?

Posted by Oliver Zeigermann <ol...@gmail.com>.
Oops, forgot to name the class lines 131-135 refer to:WorkspaceConfig

Oliver  


On Fri, 12 Nov 2004 23:27:31 +0100, Oliver Zeigermann
<ol...@gmail.com> wrote:
> Folks,
> 
> the config file in
> 
> http://incubator.apache.org/jackrabbit/firststeps.html
> 
> seems to be wrong as lines 131-135 either expect no SearchIndex
> element at all or a complete one including a file system. Uncommenting
> it out, seems to work, though:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Repository>
>     <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>         <param name="path" value="${rep.home}/repository"/>
>     </FileSystem>
>     <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />
>     <Workspace name="${wsp.name}">
>         <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>             <param name="path" value="${wsp.home}"/>
>         </FileSystem>
>         <PersistenceManager
> class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
>         <!--SearchIndex path="/index"/-->
>     </Workspace>
> </Repository>
> 
> Or am I doing anything wrong?
> 
> Oliver
>

Re: Config file in http://incubator.apache.org/jackrabbit/firststeps.html wrong?

Posted by "Roy T. Fielding" <fi...@gbiv.com>.
On Nov 12, 2004, at 2:55 PM, Dick Weisinger wrote:
> I have a question about JackRabbit and Internationalization.
> The XML code snippet below refers to ISO-8859-1 encoding.
> Is this encoding being used because this is just a configuration
> file with no real displayable text data?

No, it is because the file is encoded as iso-8859-1.  That is
for the XML parser and has no bearing on jackrabbit itself.
Jackrabbit will only see the strings after they are converted
to Unicode by the parser.

....Roy


RE: Config file in http://incubator.apache.org/jackrabbit/firststeps.html wrong?

Posted by Dick Weisinger <dw...@formtek.com>.
I have a question about JackRabbit and Internationalization.
The XML code snippet below refers to ISO-8859-1 encoding.
Is this encoding being used because this is just a configuration
file with no real displayable text data?

Thanks!

-----Original Message-----
From: Oliver Zeigermann [mailto:oliver.zeigermann@gmail.com]
Sent: Friday, November 12, 2004 2:28 PM
To: jackrabbit-dev@incubator.apache.org
Subject: Config file in
http://incubator.apache.org/jackrabbit/firststeps.html wrong?


Folks,

the config file in

http://incubator.apache.org/jackrabbit/firststeps.html

seems to be wrong as lines 131-135 either expect no SearchIndex
element at all or a complete one including a file system. Uncommenting
it out, seems to work, though:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>
    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"
/>
    <Workspace name="${wsp.name}">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
        <!--SearchIndex path="/index"/-->
    </Workspace>
</Repository>

Or am I doing anything wrong?

Oliver