cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <jheini...@virbus.de>
Subject Re: directorygenerator for a shared drive
Date Mon, 20 Oct 2003 22:52:09 GMT
Tested it, works for me:

<map:generate type="directory" src="file:///z:/temp"/>
<map:generate type="directory" src="z:\temp"/>

Joerg


On 20.10.2003 16:06, Jorg Heymans wrote:

> nope
> 
> neiter do
> src="file:///z:/temp//"
> src="file:///z:/temp//"
> src="file:///z:\temp"
> src="file:///z:\temp\"
> src="file://z:/temp"
> 
> Where can I trace this inputSource = this.resolver.resolve(directory) ? 
> In eclipse it's only pointing to interfaces but i don't know which class 
> is implementing it.
> 
> tnx
> Jorg
> Joerg Heinicke wrote:
> 
>> What about src="file:///z:/temp"/>??
>>
>> Joerg
>>
>> Jorg Heymans wrote:
>>
>>> Hi,
>>>
>>> I am trying to generate a directory listing of a directory on a 
>>> shared drive (windows) without success.
>>>
>>> <map:generate type="directory" src="z:\temp"/>
>>>
>>> Looking at the source in DirectoryGenerator it's easy to see where 
>>> the error comes from
>>>
>>>            inputSource = this.resolver.resolve(directory);
>>>            String systemId = inputSource.getSystemId();
>>>            if (!systemId.startsWith(FILE)) {
>>>              throw new ResourceNotFoundException(systemId + " does 
>>> not denote a directory");
>>>            }
>>>            // This relies on systemId being of the form "file://..."
>>>            File directoryFile = new File(new URL(systemId).getFile());
>>>            if (!directoryFile.isDirectory()) {
>>> -->                throw new ResourceNotFoundException(directory + " 
>>> is not a directory.");
>>>            }
>>>
>>> Something in this "systemid" (and thus in resolver.resolve()) is 
>>> throwing the File object off course, because the following works:
>>>
>>> File directoryFile = new File("z:\\temp\\");
>>> if (!directoryFile.isDirectory()) {
>>>    System.out.println("not a directory");
>>> }
>>>
>>> Any thoughts on this? Tomcat is started as a system user with rights 
>>> to the share (and i know that works because in java-code the access 
>>> is fine)
>>>
>>> Regards
>>> Jorg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message