cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Molnar" <mp...@nanasoft.hu>
Subject Re: servlet URLs in the XSL template
Date Tue, 22 Jul 2008 15:27:43 GMT

On Ked, JĂșlius 22, 2008 5:02 pm, Grzegorz Kossakowski wrote:

> Can you show us how exactly the snippet where you use servlet: looks like?
> Additionally, include the
> whole stack trace.
>
> Answering your question directly: no, there is no need to register
> anything, it's done by default.\

My XSL file looks like this:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:include href="servlet:dojo11:/resource/internal/dojo-helper.xsl"/>

  <!-- Location of the resources directories, where JS libs and icons are
stored -->
  <xsl:param name="dojo11-resources"/>
[...]



Stack trace:

javax.servlet.ServletException: org.apache.cocoon.ProcessingException:
Unable to get transformer handler for
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/resource/internal/dojo11.xsl
        at [TransformerException] -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/resource/internal/dojo11.xsl:2:74
        at <map:serialize> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:121:23
        at <map:transform> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:117:57
        at <map:generate type="jx"> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:116:64
        at <map:match> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:114:37
        at
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:230)
        at
org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468)
        at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443)
        at
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy3.service(Unknown Source)
        at
org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:106)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServlet.service(ReloadingServlet.java:91)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
        at
org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:131)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(ReloadingServletFilter.java:51)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
        at
org.apache.cocoon.servlet.DebugFilter.doFilter(DebugFilter.java:167)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(ReloadingServletFilter.java:51)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingSpringFilter.doFilter(ReloadingSpringFilter.java:67)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(ReloadingServletFilter.java:51)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: org.apache.cocoon.ProcessingException: Unable to get
transformer handler for
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/resource/internal/dojo11.xsl
        at [TransformerException] -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/resource/internal/dojo11.xsl:2:74
        at <map:serialize> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:121:23
        at <map:transform> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:117:57
        at <map:generate type="jx"> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:116:64
        at <map:match> -
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/sitemap.xmap:114:37
        at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:315)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
        at $Proxy9.setup(Unknown Source)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:356)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:411)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
        at $Proxy8.process(Unknown Source)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
        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:78)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81)
        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:351)
        at
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169)
        ... 38 more
Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception
when creating Transformer from
file:///home/molnarp/workspace/webuiBlock/./src/main/resources/COB-INF/resource/internal/dojo11.xsl
        at
org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:308)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
        at $Proxy10.getTransformerHandlerAndValidity(Unknown Source)
        at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307)
        ... 66 more
Caused by: javax.xml.transform.TransformerException: Had IO Exception with
stylesheet file: servlet:dojo11:/resource/internal/dojo-helper.xsl
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:904)
        at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:947)
        at
org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:294)
        at
org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:150)
        at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623)
        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at
org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196)
        at
org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204)
        at
org.apache.cocoon.core.xml.avalon.DefaultSAXParser.parse(DefaultSAXParser.java:54)
        at
org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:317)
        at
org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:246)
        ... 73 more
Caused by: java.net.MalformedURLException: unknown protocol: servlet
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
        at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at
org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:284)
        ... 90 more

-- 
Peter Molnar <mpdev@nanasoft.hu>


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


Mime
View raw message