Problem with namespaces
Hi everybody I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name=prefix value=sgcwebxml/ parameter name=uri value=http://sgcwebxml.com/xsp/1.0/ parameter name=href value=resource://sgcwebxml/logicsheets/sgcwebxml.xsl/ /builtin-logicsheet The logicsheet is this ?xml version='1.0'? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsp=http://apache.org/xsp; xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; xsl:template match=sgcwebxml:obtenerDato xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /xsl:stylesheet And in my xsp page, where I want to use the logicsheets (the logicsheet is the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso urce(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline (AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup (CachingEventPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey (CachingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process (CachingStreamPipeline.java:317) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.matchN100FE (C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:1266) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:502) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:397) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN1036A(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:4054) at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:3187) at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:3124) at
Re: Problem with namespaces
Is there another Exception in error.log ?? Just a guess but do you need the xlink namespace ??? if not try taking that out. I think (educated guess) that cocoon is triying to fetch the file http://www.w3.org/1999/xlink as it may not be in cocoons catalog. Hope this helps ?? Scott Warren Saul Rodrigo Zarrate Crdenas wrote: Hi everybody I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version="1.0" encoding="ISO-8859-1"? xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name="prefix" value="sgcwebxml"/ parameter name="uri" value="http://sgcwebxml.com/xsp/1.0"/ parameter name="href" value="resource://sgcwebxml/logicsheets/sgcwebxml.xsl"/ /builtin-logicsheet The logicsheet is this ?xml version='1.0'? xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsp="http://apache.org/xsp" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" xsl:template match="sgcwebxml:obtenerDato" xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /xsl:stylesheet And in my xsp page, where I want to use the logicsheets (the logicsheet is the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso urce(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline (AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup (CachingEventPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey (CachingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process (CachingStreamPipeline.java:317) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.matchN100FE (C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:1266) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:502) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:397) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN1036A(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:4054) at org.apache.cocoon.www.sitemap_xmap.process(C:\Archivos de
Re: Problem with namespaces
Mensaje citado por Scott Warren [EMAIL PROTECTED]: Is there another Exception in error.log ?? No, there isn't Just a guess but do you need the xlink namespace ??? if not try taking that out. I think (educated guess) that cocoon is triying to fetch the file http://www.w3.org/1999/xlink as it may not be in cocoons catalog. Hope this helps ?? mm, thank you, but I did it and the problem is still there. Any idea? Scott Warren Saul Rodrigo Zarrate Cárdenas wrote: Hi everybody I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name=prefix value=sgcwebxml/ parameter name=uri value=http://sgcwebxml.com/xsp/1.0/ parameter name=href value=resource://sgcwebxml/logicsheets/sgcwebxml.xsl/ /builtin-logicsheet The logicsheet is this ?xml version='1.0'? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsp=http://apache.org/xsp; xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; xsl:template match=sgcwebxml:obtenerDato xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /xsl:stylesheet And in my xsp page, where I want to use the logicsheets (the logicsheet is the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xs p sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xs p at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createRes o urce(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline (AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup (CachingEventPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey (CachingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process (CachingStreamPipeline.java:317) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.matchN100FE (C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:1266) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:502) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:397) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
Re: Problem with namespaces
Is there a .java file generated ?? I would check this for errors .. Also check your core.log file for signs of it trying to load sgcwebxml/logicsheets/sgcwebxml.xsl There could be an error there. Regards Scott Warren Saul Rodrigo Zarrate Crdenas wrote: Mensaje citado por Scott Warren [EMAIL PROTECTED]: Is there another Exception in error.log ?? No, there isn't Just a guess but do you need the xlink namespace ??? if not try taking that out. I think (educated guess) that cocoon is triying to fetch the file http://www.w3.org/1999/xlink as it may not be in cocoons catalog. Hope this helps ?? mm, thank you, but I did it and the problem is still there. Any idea? Scott Warren Saul Rodrigo Zarrate Crdenas wrote: Hi everybody I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version="1.0" encoding="ISO-8859-1"? xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name="prefix" value="sgcwebxml"/ parameter name="uri" value="http://sgcwebxml.com/xsp/1.0"/ parameter name="href" value="resource://sgcwebxml/logicsheets/sgcwebxml.xsl"/ /builtin-logicsheet The logicsheet is this ?xml version='1.0'? xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsp="http://apache.org/xsp" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" xsl:template match="sgcwebxml:obtenerDato" xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /xsl:stylesheet And in my xsp page, where I want to use the logicsheets (the logicsheet is the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xs p sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xs p at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createRes o urce(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline (AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup (CachingEventPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey (CachingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process
Problem with namespaces working with logicsheets
Hi everyone I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name=prefix value=sgcwebxml/ parameter name=uri value=http://sgcwebxml.com/xsp/1.0/ parameter name=href value=resource://sgcwebxml/logicsheets/sgcwebxml.xsl/ /builtin-logicsheet And in my xsp page, where I want to use the logicsheets (the logicsheet es the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Exception in creating Transform Handler description org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.ClassCastException: org.apache.xpath.res.XPATHErrorResources_es sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.ClassCastException: org.apache.xpath.res.XPATHErrorResources_es at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler (XSLTProcessorImpl.java:292) at org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler (Logicsheet.java:160) at org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs (Logicsheet.java:142) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicshe etToList(AbstractMarkupLanguage.java:466) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsheet ToList(CocoonMarkupLanguage.java:157) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$Transformer ChainBuilderFilter.startElement(AbstractMarkupLanguage.java:623) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTransfo rmerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:430) at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcessFil ter.startElement(CocoonMarkupLanguage.java:279) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFi lter.startElement(XSPMarkupLanguage.java:126) at org.apache.xerces.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:445) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement (XMLNamespaceBinder.java:832) at org.apache.xerces.impl.XMLNamespaceBinder.startElement (XMLNamespaceBinder.java:568) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement (XMLDTDValidator.java:808) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:752) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher .dispatch(XMLDocumentFragmentScannerImpl.java:1454) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse (StandardParserConfiguration.java:525) at org.apache.xerces.parsers.StandardParserConfiguration.parse (StandardParserConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1157) at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCo de(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCod e(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateRe source(ProgramGeneratorImpl.java:370) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso urce(ProgramGeneratorImpl.java:333) at
RE: Problem with namespaces working with logicsheets
Title: RE: Problem with namespaces working with logicsheets Show us your logicsheets pls. -Mensaje original- De: Saul Rodrigo Zarrate Cárdenas [mailto:[EMAIL PROTECTED]] Enviado el: Viernes, 15 de Noviembre de 2002 12:15 p.m. Para: [EMAIL PROTECTED] Asunto: Problem with namespaces working with logicsheets Hi everyone I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp xmlns:esql=http://apache.org/cocoon/SQL/v2 page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name=prefix value=sgcwebxml/ parameter name=uri value=http://sgcwebxml.com/xsp/1.0/ parameter name=href value=resource://sgcwebxml/logicsheets/sgcwebxml.xsl/ /builtin-logicsheet And in my xsp page, where I want to use the logicsheets (the logicsheet es the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language=java xmlns:xsp=http://apache.org/xsp xmlns:esql=http://apache.org/cocoon/SQL/v2 xmlns:xsp-request=http://apache.org/xsp/request/2.0 xmlns:util=http://apache.org/xsp/util/2.0 xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0 page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Exception in creating Transform Handler description org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.ClassCastException: org.apache.xpath.res.XPATHErrorResources_es sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.ClassCastException: org.apache.xpath.res.XPATHErrorResources_es at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler (XSLTProcessorImpl.java:292) at org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler (Logicsheet.java:160) at org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs (Logicsheet.java:142) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicshe etToList(AbstractMarkupLanguage.java:466) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsheet ToList(CocoonMarkupLanguage.java:157) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$Transformer ChainBuilderFilter.startElement(AbstractMarkupLanguage.java:623) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTransfo rmerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:430) at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcessFil ter.startElement(CocoonMarkupLanguage.java:279) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFi lter.startElement(XSPMarkupLanguage.java:126) at org.apache.xerces.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:445) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement (XMLNamespaceBinder.java:832) at org.apache.xerces.impl.XMLNamespaceBinder.startElement (XMLNamespaceBinder.java:568) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement (XMLDTDValidator.java:808) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:752) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher .dispatch(XMLDocumentFragmentScannerImpl.java:1454) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse (StandardParserConfiguration.java:525) at org.apache.xerces.parsers.StandardParserConfiguration.parse (StandardParserConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1157) at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCo de(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCod e
RE: Problem with namespaces working with logicsheets
Ok, here is the source of the logicsheets ?xml version='1.0'? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsp=http://apache.org/xsp; xsl:template match=sgcwebxml:obtenerDato xsp:expr xsl:value-of select=@dato/ /xsp:expr /xsl:template This logicsheet still not resolve the problem of quit the code of my original xsp page, but only with the declaration of this, I am having the problem. Obviously in the xsp page, I still have the necessary code. I repeat, the problem is when i am doing the declaration of the namespace Thank you Saul Zarrate Cardenas Mensaje citado por Alejandro Raiczyk [EMAIL PROTECTED]: Show us your logicsheets pls. -Mensaje original- De: Saul Rodrigo Zarrate Cárdenas [mailto:s-zarrat;uniandes.edu.co] Enviado el: Viernes, 15 de Noviembre de 2002 12:15 p.m. Para: [EMAIL PROTECTED] Asunto: Problem with namespaces working with logicsheets Hi everyone I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name=prefix value=sgcwebxml/ parameter name=uri value=http://sgcwebxml.com/xsp/1.0/ parameter name=href value=resource://sgcwebxml/logicsheets/sgcwebxml.xsl/ /builtin-logicsheet And in my xsp page, where I want to use the logicsheets (the logicsheet es the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Exception in creating Transform Handler description org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.ClassCastException: org.apache.xpath.res.XPATHErrorResources_es sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.ClassCastException: org.apache.xpath.res.XPATHErrorResources_es at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler (XSLTProcessorImpl.java:292) at org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandle r (Logicsheet.java:160) at org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs (Logicsheet.java:142) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogic she etToList(AbstractMarkupLanguage.java:466) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsh eet ToList(CocoonMarkupLanguage.java:157) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$Transfor mer ChainBuilderFilter.startElement(AbstractMarkupLanguage.java:623) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTran sfo rmerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:430) at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcess Fil ter.startElement(CocoonMarkupLanguage.java:279) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProces sFi lter.startElement(XSPMarkupLanguage.java:126) at org.apache.xerces.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:445) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement (XMLNamespaceBinder.java:832) at org.apache.xerces.impl.XMLNamespaceBinder.startElement (XMLNamespaceBinder.java:568) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement (XMLDTDValidator.java:808) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:752
Re: Problem with namespaces working with logicsheets
Saul Rodrigo Zarrate Cárdenas wrote: Ok, here is the source of the logicsheets ?xml version='1.0'? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version='1.0' xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsp=http://apache.org/xsp; Add the namespace declaration for sgcwebxml: xmlns:sgcwebxml=http://sgcwebxml.com/xsp/1.0; Joerg xsl:template match=sgcwebxml:obtenerDato xsp:expr xsl:value-of select=@dato/ /xsp:expr /xsl:template This logicsheet still not resolve the problem of quit the code of my original xsp page, but only with the declaration of this, I am having the problem. Obviously in the xsp page, I still have the necessary code. I repeat, the problem is when i am doing the declaration of the namespace Thank you Saul Zarrate Cardenas - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]