cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: directorygenerator for a shared drive
Date Tue, 21 Oct 2003 07:28:05 GMT
is this on cocoon 2.1.x ?
Because on 2.0.4 this does not work.

 From sitemap.log
INFO    (2003-10-21) 09:25.13:492   [sitemap] (/app/gfx/remotedir) 
Thread-11/PipelineNode: Resource not found in pipeline at 
file:/D:/servers/jakarta-tomcat-4.1.24-LE-jdk14/webapps/cocoon/sitemap.xmap:77:17
org.apache.cocoon.ResourceNotFoundException: Z:\temp is not a directory.
        at 
org.apache.cocoon.generation.DirectoryGenerator.generate(DirectoryGenerator.java:216)
        at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
        at 
org.apache.cocoon.components.profiler.ProfilingCachingEventPipeline.process(ProfilingCachingEventPipeline.java:131)
        at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:154)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:332)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:124)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:332)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
        at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

Joerg Heinicke wrote:

> 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
>
>


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


Mime
View raw message