Hi Tobias/Christian,

Thanks for your attention.

Right now I turned to use springmodules to connect to jackrabbit and stopped 
trying to make the war application that comes with jackrabbit to work.

The error was that it was trying to substitute the ${wsp*} variables but was 
not receiving the parameter to substitute it. And I could not find anywhere in 
the code where it could be set (as shown in the previous email).

Follow attached the bootstrap.xml and repository.xml.

---

Right now I am getting another issue.

Before explaining - first question: Are you guys using Java 6?

The error right now is related to path building. When I debugged to see the 
variable rep.home it was 
"rep.home=C:\eclipse_workspace\publicador\target\work\webapp\c:/jackrabbit-home}"
 while in the applicationContext-Jcr.xml it was: 
<property name="homeDir" value="c:/jackrabbit"/>.

I was thinking if it could be some different path behaviour between different 
jdk versions.

Thanks!

Marcelo



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Bocanegra
Sent: quarta-feira, 25 de julho de 2007 06:24
To: [email protected]
Subject: Re: ${wsp.name} variable not set

hi marcelo,
please provide your repository.xml, so we can help you.

regards, toby

On 7/25/07, Krenn, Christian <[EMAIL PROTECTED]> wrote:
> Hi Marcelo!
>
> As far as I know the RepositoryConfig.class will only substitute rep.home and 
> never wsp.home. Perhaps you could use a path instead of using the wsp.home 
> variable? Are you using something different then the default workspace?
>
> <Workspaces rootPath="${rep.home}/workspaces" 
> defaultWorkspace="default" /> <Workspace name="${wsp.name}">
>
> Can you find something like that in your repository.xml?  maybe there should 
> a workspace.xml in your workspace path und rep.home/workspaces.
>
> bye
>
>
>
> -----Original Message-----
> From: Marcelo de Barros Alcantara [mailto:[EMAIL PROTECTED]
> Sent: Montag, 23. Juli 2007 21:13
> To: [email protected]
> Subject: RE: ${wsp.name} variable not set
> Importance: High
>
> Hi Tobias,
>
> I did some debbuging on the code, and could get some more info:
>
> At RepositoryConfig.class it creates a Properties object with the variable 
> and put the repository home variable as below:
>
> public static RepositoryConfig create(InputSource xml, String home)
>             throws ConfigurationException {
>         Properties variables = new Properties();
>         variables.setProperty(
>                 RepositoryConfigurationParser.REPOSITORY_HOME_VARIABLE, home);
>         RepositoryConfigurationParser parser =
>             new RepositoryConfigurationParser(variables);
>
>         RepositoryConfig config = parser.parseRepositoryConfig(xml);
>         config.init();
>
>         return config;
>     }
>
> At the ConfigurationParse class it then calls the replaceVaribles method and 
> then it tries to substiture the ${wsp.name} which is not set in the 
> Properties object (just the repo.home is).
>
>     protected Properties parseParameters(Element element)
>             throws ConfigurationException {
>         Properties parameters = new Properties();
>
>         NodeList children = element.getChildNodes();
>         for (int i = 0; i < children.getLength(); i++) {
>             Node child = children.item(i);
>             if (child.getNodeType() == Node.ELEMENT_NODE
>                     && PARAM_ELEMENT.equals(child.getNodeName())) {
>                 Element parameter = (Element) child;
>                 Attr name = parameter.getAttributeNode(NAME_ATTRIBUTE);
>                 if (name == null) {
>                     throw new ConfigurationException("Parameter name not 
> set");
>                 }
>                 Attr value = parameter.getAttributeNode(VALUE_ATTRIBUTE);
>                 if (value == null) {
>                     throw new ConfigurationException("Parameter value not 
> set");
>                 }
>                 parameters.put(
>                         name.getValue(), replaceVariables(value.getValue()));
>             }
>         }
>
> I could not find anywhere in the code where it could have set the value 
> ${wsp.home} inside the Properties variables object.
>
> Am I missing something?
>
> Thanks for your help, that´s making me crazy here.
>
> Marcelo
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias 
> Bocanegra
> Sent: sábado, 21 de julho de 2007 11:28
> To: [email protected]
> Subject: Re: ${wsp.name} variable not set
>
> hi,
> the wsp.name is defined during the parsing of the workspace configs.
> can you provide your configs and the error that is shown?
>
> regards, toby
>
> On 7/21/07, Marcelo de Barros Alcantara <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > My jackrabbit web-app is complaining about the ${wsp.name} value, 
> > which is not set.
> >
> > Someone can please explain me where do I set this variable and the 
> > others ${} variables from the repository.xml file?
> >
> > Thanks!!!
> >
> > Marcelo Alcantara
> >
> >
> > AVISO: A informacao contida neste e-mail, bem como em qualquer de seus 
> > anexos, e CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatario(s) 
> > acima referido(s), podendo conter informacoes sigilosas e/ou legalmente 
> > protegidas. Caso voce nao seja o destinatario desta mensagem, informamos 
> > que qualquer divulgacao, distribuicao ou copia deste e-mail e/ou de 
> > qualquer de seus anexos e absolutamente proibida. Solicitamos que o 
> > remetente seja comunicado imediatamente, respondendo esta mensagem, e que o 
> > original desta mensagem e de seus anexos, bem como toda e qualquer copia 
> > e/ou impressao realizada a partir destes, sejam permanentemente apagados 
> > e/ou destruidos. Informacoes adicionais sobre nossa empresa podem ser 
> > obtidas no site http://sobre.uol.com.br/.
> >
> > NOTICE: The information contained in this e-mail and any attachments 
> > thereto is CONFIDENTIAL and is intended only for use by the recipient named 
> > herein and may contain legally privileged and/or secret information. If you 
> > are not the e-mail?s intended recipient, you are hereby notified that any 
> > dissemination, distribution or copy of this e-mail, and/or any attachments 
> > thereto, is strictly prohibited. Please immediately notify the sender 
> > replying to the above mentioned e-mail address, and permanently delete 
> > and/or destroy the original and any copy of this e-mail and/or its 
> > attachments, as well as any printout thereof. Additional information about 
> > our company may be obtained through the site http://www.uol.com.br/ir/.
> >
>
>
> --
> -----------------------------------------< [EMAIL PROTECTED] 
> >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 
> Basel T +41 61 226 98 98, F +41 61 226 98 97 
> -----------------------------------------------< http://www.day.com 
> >---
>
>
>
>
> AVISO: A informação contida neste e-mail, bem como em qualquer de seus 
> anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) 
> acima referido(s), podendo conter informações sigilosas e/ou legalmente 
> protegidas. Caso você não seja o destinatário desta mensagem, informamos que 
> qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de 
> seus anexos é absolutamente proibida. Solicitamos que o remetente seja 
> comunicado imediatamente, respondendo esta mensagem, e que o original desta 
> mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão 
> realizada a partir destes, sejam permanentemente apagados e/ou destruídos. 
> Informações adicionais sobre nossa empresa podem ser obtidas no site 
> http://sobre.uol.com.br/.
>
> NOTICE: The information contained in this e-mail and any attachments thereto 
> is CONFIDENTIAL and is intended only for use by the recipient named herein 
> and may contain legally privileged and/or secret information. If you are not 
> the e-mail´s intended recipient, you are hereby notified that any 
> dissemination, distribution or copy of this e-mail, and/or any attachments 
> thereto, is strictly prohibited. Please immediately notify the sender 
> replying to the above mentioned e-mail address, and permanently delete and/or 
> destroy the original and any copy of this e-mail and/or its attachments, as 
> well as any printout thereof. Additional information about our company may be 
> obtained through the site http://www.uol.com.br/ir/.
> **********************************************************************
> ***************************** The information in this email is 
> confidential and may be legally privileged. Access to this email by anyone 
> other than the intended addressee is unauthorized. If you are not the 
> intended recipient of this message, any review, disclosure, copying, 
> distribution, retention, or any action taken or omitted to be taken in 
> reliance on it is prohibited and may be unlawful. If you are not the intended 
> recipient, please reply to or forward a copy of this message to the sender 
> and delete the message, any attachments, and any copies thereof from your 
> system.
> **********************************************************************
> *****************************
>
> BearingPoint INFONOVA GmbH
> Sitz: Unterpremstätten bei Graz
> Firmenbuchgericht: Landesgericht für ZRS Graz
> Firmenbuchnummer: FN 44354b
>


--
-----------------------------------------< [EMAIL PROTECTED] >--- Tobias 
Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 
98 98, F +41 61 226 98 97 -----------------------------------------------< 
http://www.day.com >---


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
  -->
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.2//EN"
    "http://jackrabbit.apache.org/dtd/repository-1.2.dtd";>
<Repository>
  <!--
  virtual file system where the repository stores global state
  (e.g. registered namespaces, custom node types, etc.)
  -->
  <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
    <param name="path" value="${rep.home}/repository"/>
  </FileSystem>

  <!--
      security configuration
  -->
  <Security appName="Jackrabbit">
    <!--
        access manager:
        class: FQN of class implementing the AccessManager interface
    -->
    <AccessManager
        class="org.apache.jackrabbit.core.security.SimpleAccessManager">
      <!-- <param name="config" value="${rep.home}/access.xml"/> -->
    </AccessManager>

    <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
      <!-- anonymous user name ('anonymous' is the default value) -->
      <param name="anonymousId" value="anonymous"/>
    </LoginModule>
  </Security>

  <!--
  Example Cluster configuration.
  -->
  <!--
  <Cluster id="node1">
      <Journal class="org.apache.jackrabbit.core.cluster.FileJournal">
          <param name="directory" value="${rep.home}/../shared/journals" />
          <param name="revision" value="${rep.home}/revision.log" />
      </Journal>
  </Cluster>
  -->
  
  <!--
  location of workspaces root directory and name of default workspace
  -->
  <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>

  <!--
  workspace configuration template:
  used to create the initial workspace if there's no workspace yet
  -->
  <Workspace name="${wsp.name}">
    <!--
    virtual file system of the workspace:
    class: FQN of class implementing FileSystem interface
    -->
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
      <param name="path" value="${wsp.home}"/>
    </FileSystem>
    <!--
    persistence of the workspace:
    class: FQN of class implementing PersistenceManager interface
    -->
    <!--
    <PersistenceManager
        class="org.apache.jackrabbit.core.state.obj.ObjectPersistenceManager"/>
    -->
   <PersistenceManager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
       <param name="driver" value="com.mysql.jdbc.Driver"/>
       <param name="url" value="jdbc:mysql://localhost:3306/MySQL"/>
       <param name="schema" value="mysql"/>
       <param name="schemaObjectPrefix" value="${wsp.name}_"/>
       <param name="externalBLOBs" value="false"/>
       <param name="user" value="root"/>
       <param name="password" value="mysql"/>       
   </PersistenceManager>    
    <!--
    Search index and the file system it uses.
    -->
    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
      <param name="path" value="${wsp.home}/index"/>
    </SearchIndex>
  </Workspace>

  <!--
  Configures the versioning
  -->
  <Versioning rootPath="${rep.home}/version">
    <!--
    Configures the filesystem to use for versioning for the respective
    persistence manager
    -->
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
      <param name="path" value="${rep.home}/version"/>
    </FileSystem>

    <!--
    Configures the persistence manager to be used for persisting version state.
    Please note that the current versioning implementation is based on
    a 'normal' persistence manager, but this could change in future
    implementations.
    -->
    <!-- <PersistenceManager
        class="org.apache.jackrabbit.core.state.obj.ObjectPersistenceManager"/>
	-->
	<PersistenceManager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
       <param name="driver" value="com.mysql.jdbc.Driver"/>
       <param name="url" value="jdbc:mysql://localhost:3306/MySQL"/>
       <param name="schema" value="mysql"/>
       <param name="schemaObjectPrefix" value="${wsp.name}_"/>
       <param name="externalBLOBs" value="false"/>
       <param name="user" value="root"/>
       <param name="password" value="mysql"/>       
   </PersistenceManager>
  </Versioning>


  <!--
  Search index for content that is shared repository wide
  (/jcr:system tree, contains mainly versions)

  The same parameters are supported as in the search index configuration
  inside the workspace definition element.

  This element is optional. If omitted, the /jcr:system tree will not be
  indexed and no results will be returned for that tree!
  -->
  <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
    <param name="path" value="${rep.home}/repository/index"/>
  </SearchIndex>
</Repository>

Reply via email to