cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2] How can I load logicsheets?
Date Mon, 23 Jul 2001 13:59:21 GMT
Karl,

Am moving this to cocoon-dev@ mailing list. Can you try this with the latest CVS? here's what
i
did. Please let me know if you still see the problem. My environment is Tomcat3.3 Recent Nightly
Build, JDK1.3 on Win2K.

#1. Got the latest CVS. (Checked in some fixes for using SourceResolver in the XSP Engine)
#2. Added the following line in docs/samples/xsp/simple.xsp right after the <?xml ..>
line
    <?xml-logicsheet href="docs/samples/xsp/echo.xsl"?>
#3. Added the following echo.xsl in docs/samples/xsp directory:
    ------------------------ Begin -----------------------
    <xsl:stylesheet 
          xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
      <xsl:template 
          match="@*|*|text()|processing-instruction()">
        <xsl:copy>
          <xsl:apply-templates 
             select="@*|*|text()|processing-instruction()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>
    ------------------------ End -----------------------

Thanks,
dims


--- "HALLOWELL,KARL (HP-Cupertino,ex1)" <karl_hallowell@hp.com> wrote:
> I know how to load "built-in" logicsheets (specify them in the cocoon.xconf
> file and put an entry in the xsp:page tag), but apparently the old way of
> applying a logicsheet via a cocoon processor command is obselete (it
> generates an exception). I.e., the following no longer works (I've tried
> both inside and outside the xsp:page tag, same exception):
> 
> <?xml-logicsheet href="logicsheet.greeting.xsl"?>
> 
> What is the current mechanism for applying logicsheets for XSP pages without
> making an entry in cocoon.xconf? My apologies if this has been discussed
> before. My searches on the mailing lists were quite inconclusive.
> 
> 
> Karl Hallowell                 karl_hallowell@hp.com
> 
> PS, here's the exception.
> 
> ------
> 
> A Servlet Exception Has Occurred
> Exception Report:
> javax.servlet.ServletException: Servlet execution threw an exception
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java, Compiled Code)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java, Compiled Code)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va, Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
> Compiled Code)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va, Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
> Compiled Code)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
> Compiled Code)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> , Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
> Compiled Code)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Compiled Code)
> 	at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java,
> Compiled Code)
> 	at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java,
> Compiled Code)
> 	at java.lang.Thread.run(Thread.java, Compiled Code)
> 
> Root Cause:
> java.lang.IllegalAccessError: try to access method
> org/apache/cocoon/components/language/markup/AbstractMarkupLanguage.addLogic
> sheetToList(Lorg/apache/cocoon/components/language/markup/AbstractMarkupLang
> uage$LanguageDescriptor;Ljava/lang/String;Lorg/apache/cocoon/environment/Sou
> rceRes
> 	at
> org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransf
> ormerChainBuilderFilter.processingInstruction(XSPMarkupLanguage.java:355)
> 	at
> org.xml.sax.helpers.XMLFilterImpl.processingInstruction(XMLFilterImpl.java,
> Compiled Code)
> 	at
> org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProces
> sFilter.processingInstruction(XSPMarkupLanguage.java, Compiled Code)
> 	at
> org.apache.xerces.parsers.SAXParser.processingInstruction(SAXParser.java,
> Compiled Code)
> 	at
> org.apache.xerces.validators.common.XMLValidator.callProcessingInstruction(X
> MLValidator.java, Compiled Code)
> 	at
> org.apache.xerces.framework.XMLDocumentScanner.scanPI(XMLDocumentScanner.jav
> a, Compiled Code)
> 	at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> LDocumentScanner.java, Compiled Code)
> 	at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java, Compiled Code)
> 	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java,
> Compiled Code)
> 	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java,
> Compiled Code)
> 	at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java,
> Compiled Code)
> 	at
> org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat
> eCode(LogicsheetCodeGenerator.java, Compiled Code)
> 	at
> org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
> Code(AbstractMarkupLanguage.java, Compiled Code)
> 	at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
> eResource(ProgramGeneratorImpl.java, Compiled Code)
> 	at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
> ogramGeneratorImpl.java, Compiled Code)
> 	at
> org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
> .java, Compiled Code)
> 	at
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
> stractEventPipeline.java, Compiled Code)
> 	at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
> tPipeline.java, Compiled Code)
> 	at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
> ngEventPipeline.java, Compiled Code)
> 	at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
> treamPipeline.java, Compiled Code)
> 	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java,
> Compiled Code)
> 	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java,
> Compiled Code)
> 	at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled
> Code)
> 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled
> Code)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
> 	at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, Compiled
> Code)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> Code)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java, Compiled Code)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java, Compiled Code)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va, Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
> Compiled Code)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va, Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
> Compiled Code)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
> Compiled Code)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java,
> Compiled Code)
> 	at
> 
=== message truncated ===


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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


Mime
View raw message