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

Reply via email to