jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: ${wsp.name} variable not set
Date Wed, 08 Aug 2007 16:32:23 GMT
hi marcelo

sorry for the late response...

On 7/25/07, Marcelo de Barros Alcantara <cad_malcantara@uolinc.com> wrote:
> 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?

once in a while ;) AFAIK there are no known java6-related jackrabbit issues.

>
> 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 quickly checked the relevant parts of the jackrabbit code.
the value of the 'rep.home' variable is the same that was passed in the
'home' method parameter of the RepositoryConfig.create() method.
it's not manipulated by jackrabbit.

i assume the code that invokes the RepositoryConfig.create() method
(spring?) is responsible for the garbled value. i'm not familiar with spring
so you'll have to do some debugging, i am afraid ;)

i can only guess that value in applicationContext-Jcr.xml is supposed to be
a relative path.

cheers
stefan

>
> I was thinking if it could be some different path behaviour between different jdk versions.
>
> Thanks!
>
> Marcelo
>
>
>
> -----Original Message-----
> From: tripod@day.com [mailto:tripod@day.com] On Behalf Of Tobias Bocanegra
> Sent: quarta-feira, 25 de julho de 2007 06:24
> To: users@jackrabbit.apache.org
> 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 <christian.krenn@bearingpoint.com> 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:cad_malcantara@uolinc.com]
> > Sent: Montag, 23. Juli 2007 21:13
> > To: users@jackrabbit.apache.org
> > 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: tripod@day.com [mailto:tripod@day.com] On Behalf Of Tobias
> > Bocanegra
> > Sent: sábado, 21 de julho de 2007 11:28
> > To: users@jackrabbit.apache.org
> > 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 <cad_malcantara@uolinc.com> 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/.
> > >
> >
> >
> > --
> > -----------------------------------------< tobias.bocanegra@day.com
> > >--- 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
> >
>
>
> --
> -----------------------------------------< tobias.bocanegra@day.com >--- 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/.
>
>

Mime
View raw message