<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana size=2>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2>Alex,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2> it worked with the following line, but through the getSitePath
method.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2> String filePath = cmsObject.getSitePath(aNews); // aNews of
type cmsResource</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2>Thank you,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=269015817-21022005><FONT face=Verdana
size=2>Rommel</FONT></SPAN></DIV><FONT face=Verdana size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=pt-br dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>Em nome de </B>Alexander
Kandzior<BR><B>Enviada em:</B> segunda-feira, 21 de fevereiro de 2005
14:24<BR><B>Para:</B> 'The OpenCms mailing list'<BR><B>Assunto:</B> RE:
[opencms-dev] Path issue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=415301117-21022005><SPAN
class=461532217-21022005>Try to modify line 3 as
follows:</SPAN></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=415301117-21022005></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=415301117-21022005>3) </SPAN>
String filePath = <SPAN
class=461532217-21022005>cms.getSitePath(</SPAN>listResources.getRootPath()<SPAN
class=461532217-21022005>)</SPAN>;</FONT><!-- Converted from text/plain format --></DIV>
<P><FONT size=2>Best Regards<BR>Alex.<BR><BR>Alexander Kandzior<BR>Alkacon
Software - The OpenCms Experts<BR><A
href="http://www.alkacon.com/">http://www.alkacon.com</A><BR><BR></FONT></P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of
</B>rvc_one@mizar.com.br<BR><B>Sent:</B> Monday, February 21, 2005 6:21
PM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] Path
issue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>I'm trying to
open a xml resource to read its content and there is a problem I cant
understand:</FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>0)
List listResources = collector.getResults(cmsObject, "allInFolder",
"/folder/resources/temp_${number}.xml|33");</FONT></SPAN></DIV><SPAN
class=415301117-21022005>
<DIV><FONT face=Verdana><FONT size=2><SPAN class=415301117-21022005>1)
</SPAN>for (int i = 0; i < listResources.size(); i++) {<BR><SPAN
class=415301117-21022005>2)</SPAN> CmsResource aNews =
(CmsResource)listResources.get(i);<BR><SPAN
class=415301117-21022005>3) </SPAN> String filePath =
listResources.getRootPath();</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>4)
CmsFile sourceFile = cmsObject.readFile(filePath);</FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>The line 3
returns the path "/sites/default/resource/folder/resources/temp_001.xml" and
the line 4 try to read the file at path
"/sites/default/sites/default/resource/folder/resources/temp_001.xml" where
the exception occurs.</FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>Someone could
explain how could I solve this problem???</FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana size=2>Thank in
advance,</FONT></SPAN></DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415301117-21022005><FONT face=Verdana
size=2>Rommel</FONT></SPAN></DIV></BLOCKQUOTE></FONT></DIV></BODY></HTML>