cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject servlet service samples
Date Fri, 23 Nov 2007 07:56:55 GMT
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)

org.apache.cocoon.ResourceNotFoundException: Resource not found.
	at <map:mount> - 
file:///Projekte/Cocoon/trunk/core/cocoon-webapp/target/work/blocks/cocoon-welcome/sitemap.xmap:301:49
	at <map:match> - 
file:///Projekte/Cocoon/trunk/core/cocoon-webapp/target/work/blocks/cocoon-welcome/sitemap.xmap:300:33
	at 
org.apache.cocoon.components.source.util.SourceUtil.handle(SourceUtil.java:363)
	at 
org.apache.cocoon.components.source.util.SourceUtil.toSAX(SourceUtil.java:185)
	at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.createSitemapProgram(TreeProcessor.java:356)
	at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcreteProcessor(TreeProcessor.java:404)
	at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcreteProcessor(TreeProcessor.java:338)
	at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:246)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:115)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:147)
	at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
	at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:88)
	at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239)
	at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171)
	at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247)
	at 
org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.java:354)
	at 
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:172)
	at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:63)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:569)
	at 
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:545)
	at 
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:230)
	at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy2.service(Unknown Source)
	at 
org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:102)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
         ... some more
Caused by: org.apache.excalibur.source.SourceNotFoundException: 
file:///Projekte/Cocoon/trunk/core/cocoon-webapp/target/work/blocks/cocoon-welcome/cocoon-servlet-service-sample/sitemap.xmap

doesn't exist.
	at 
org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:157)
	at 
org.apache.cocoon.components.source.impl.DelayedRefreshSourceWrapper.getInputStream(DelayedRefreshSourceWrapper.java:69)
	at 
org.apache.cocoon.components.source.util.SourceUtil.toSAX(SourceUtil.java:180)
	... 45 more
Caused by: 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)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at 
org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:153)
	... 47 more


On the console I have a completely different exception though:


java.lang.IllegalStateException: Committed
         at org.mortbay.jetty.Response.resetBuffer(Response.java:855)
         at org.mortbay.jetty.Response.reset(Response.java:834)
         at 
javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:182)
         at 
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:576)
         at 
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:545)
         at 
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:230)
         at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy2.service(Unknown Source)
         at 
org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:102)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)


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

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.

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