cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: servlet service samples
Date Fri, 23 Nov 2007 14:24:39 GMT
Joerg Heinicke wrote:
> I wanted to try the servlet service samples, but I did not find them 
> linked in the samples. So I just tried 
> http://localhost:8888/cocoon-servlet-service-sample/ following the 
> scheme of the other blocks but I get some error messages which I can not 
> really interpret..
> 
> In the browser I see the following exception:
> java.io.FileNotFoundException: 
> /Projekte/Cocoon/trunk/core/cocoon-webapp/target/work/blocks/cocoon-welcome/cocoon-servlet-service-sample/sitemap.xmap

> (No such file or directory)

<snip>/>

> On the console I have a completely different exception though:
> 
> java.lang.IllegalStateException: Committed

<snip/>

> I can't follow why it tries to resolve the request that way.

cocoon-servlet-service-sample was not mounted to the URL which you tried, so 
this request was passed to the cocoon-welcome, which has a "*/**" matcher with 
map:mount instruction.

Check blockServlet.xml file for the cocoon-servlet-service-sample mount point...


> The error message on the console seems to point to an error in the 
> servlet service framework since it tries to reset the response despite 
> it already has been committed.

Yeah... This IllegalStateException - I'm not sure why it is happening, but I 
also see it periodically.

Vadim


> Any ideas?
> 
> Joerg
> 
> PS: There is also an error somewhere with the dependencies I think. XSP 
> block includes Avalon Framework 4.1.3 instead of 4.3.1 which causes 
> bunch of problems in Eclipse. How to trace the dependencies? Grek sent 
> once a mail with "mvn project-info-reports:dependencies" [1] but this 
> does not work for me:
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'project-info-reports'.
> [INFO] 
> ---------------------------------------------------------------------------- 
> 
> [INFO] Building XSP Block Implementation
> [INFO]    task-segment: [project-info-reports:dependencies]
> [INFO] 
> ---------------------------------------------------------------------------- 
> 
> [INFO] Setting property: classpath.resource.loader.class => 
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [project-info-reports:dependencies]
> [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
> [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Fri Nov 23 02:55:29 EST 2007
> [INFO] Final Memory: 16M/30M
> [INFO] 
> ------------------------------------------------------------------------
> 
> [1] http://marc.info/?l=xml-cocoon-dev&m=118763866910663&w=4


Mime
View raw message