Cocoon sitemap problem on IBM os/390 OMVs and websphere
Hi, Did anyone succeed in installing Cocoon 2 with Websphere 3.5 on OMVS (Unix on OS/390) ? I have character problems in sitemap and i wonder if it comes from my installation or from ftp wrong conversion ... Thanks for your help. Sebastien PLISSON. - 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]
RE: Why this doesn't work???
I think you should use map:parameter to pass parameters to your jsp. -Message d'origine-De: Eduardo Zurita [mailto:[EMAIL PROTECTED]]Envoyé: jeudi 20 février 2003 15:43À: [EMAIL PROTECTED]Objet: Why this doesn't work??? Hello, I am confused about this: The following map runs ok and the file test.jsp exists: map:match pattern="recsal.html" map:generate type="jsp" src=""/map:serialize type="html"//map:match But the following doesn't work: (I have just added a parameter in querystring that does nothing into the .jsp file). (The test.jsp is the same one). map:match pattern="recsal.html" map:generate type="jsp" src=""/map:serialize type="html"//map:match And the following produces exactly same error that previous map: (And the file doesn't exists) map:match pattern="recsal.html" map:generate type="jsp" src=""/map:serialize type="html"//map:match And the error produced by the second and third examples is: (replace test.jsp with whathappen.jsp if you want). (Extracted from core.log): DEBUG (2003-02-20) 14:27.59:659 [core.manager] (/pec/recsal.html) Thread-19/JspGenerator: JspGenerator executing JSP:/services/test.jsp?myparam=helloDEBUG (2003-02-20) 14:27.59:728 [core.manager] (/pec/recsal.html) Thread-19/JspGenerator: SAXException JspGenerator.generate()org.xml.sax.SAXParseException: Premature end of file.at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366)at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1244)at org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(XMLDocumentScannerImpl.java:587)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.apache.avalon.excalibur.xml.XercesParser.parse(XercesParser.java:77)at org.apache.avalon.excalibur.xml.XercesParser.parse(XercesParser.java:50)at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:129)at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)at org.apache.cocoon.www.sitemap_xmap.matchN4000C5(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:908)at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:657)at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:589)at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)at org.apache.cocoon.Cocoon.process(Cocoon.java:579)at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)at
HSSFSerializer / Null Pointer exception
Hi, When i try to use the HSSFSerializer from java, using an XMLReader, i get a NullPointer Exception when i use the parse function. I use POI, Xerces and xalan from cocoon 2.0.3 distribution. All is deployed on Websphere 3.5.6. Any idea how to solve this problem ? Thanks. Seb Here is my code : / Output XML to XLS // // Instantiate a TransformerFactory. javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance(); // Verify that the TransformerFactory implementation you are using // supports SAX input and output (Xalan-Java does!). if (tFactory.getFeature(javax.xml.transform.sax.SAXSource.FEATURE) tFactory.getFeature(javax.xml.transform.sax.SAXResult.FEATURE)) { //System.out.println(sauveXMLToXLS - Debut transformation); // Cast the TransformerFactory to SAXTransformerFactory. javax.xml.transform.sax.SAXTransformerFactory saxTFactory = ((javax.xml.transform.sax.SAXTransformerFactory) tFactory); // Create a Templates ContentHandler to handle parsing of the // stylesheet. javax.xml.transform.sax.TemplatesHandler templatesHandler = saxTFactory.newTemplatesHandler(); // Create an XMLReader and set its ContentHandler. org.xml.sax.XMLReader reader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader(); reader.setContentHandler(templatesHandler); // Parse the stylesheet. reader.parse(xslFilename); // Get the Templates object (generated during the parsing of the stylesheet) // from the TemplatesHandler. javax.xml.transform.Templates templates = templatesHandler.getTemplates(); // Create a Transformer ContentHandler to handle parsing of // the XML Source. javax.xml.transform.sax.TransformerHandler transformerHandler = saxTFactory.newTransformerHandler(templates); // Reset the XMLReader's ContentHandler to the TransformerHandler. reader.setContentHandler(transformerHandler); // Set the ContentHandler to also function as a LexicalHandler, which // can process lexical events (such as comments and CDATA). reader.setProperty(http://xml.org/sax/properties/lexical-handler;, transformerHandler); // Set up a Serializer to serialize the Result to a file. HSSFSerializer ser = new HSSFSerializer(); ser.setOutputStream(xlsFile); //org.apache.cocoon.serialization.XMLSerializer ser = new org.apache.cocoon.serialization.XMLSerializer(); //ser.setOutputStream(System.out); // The Serializer functions as a SAX ContentHandler. javax.xml.transform.Result result = new javax.xml.transform.sax.SAXResult((org.xml.sax.ContentHandler)ser); transformerHandler.setResult(result); // Parse the XML input document. reader.parse(xmlFilename); // Here i get NullPointer Exception Sébastien PLISSON DSIT XS / Infocentre Tél. : 30.13.90 - 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]
TR: HSSFSerializer / Null Pointer exception
-Message d'origine- De : PLISSON Sébastien (DSIT-XS/I) Envoyé : jeudi 1 août 2002 08:11 À : [EMAIL PROTECTED] Objet : HSSFSerializer / Null Pointer exception Hi, When i try to use the HSSFSerializer from java, using an XMLReader, i get a NullPointer Exception when i use the parse function. I use POI, Xerces and xalan from cocoon 2.0.3 distribution. All is deployed on Websphere 3.5.6. Any idea how to solve this problem ? Thanks. Seb Here is my code : / Output XML to XLS // // Instantiate a TransformerFactory. javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance(); // Verify that the TransformerFactory implementation you are using // supports SAX input and output (Xalan-Java does!). if (tFactory.getFeature(javax.xml.transform.sax.SAXSource.FEATURE) tFactory.getFeature(javax.xml.transform.sax.SAXResult.FEATURE)) { //System.out.println(sauveXMLToXLS - Debut transformation); // Cast the TransformerFactory to SAXTransformerFactory. javax.xml.transform.sax.SAXTransformerFactory saxTFactory = ((javax.xml.transform.sax.SAXTransformerFactory) tFactory); // Create a Templates ContentHandler to handle parsing of the // stylesheet. javax.xml.transform.sax.TemplatesHandler templatesHandler = saxTFactory.newTemplatesHandler(); // Create an XMLReader and set its ContentHandler. org.xml.sax.XMLReader reader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader(); reader.setContentHandler(templatesHandler); // Parse the stylesheet. reader.parse(xslFilename); // Get the Templates object (generated during the parsing of the stylesheet) // from the TemplatesHandler. javax.xml.transform.Templates templates = templatesHandler.getTemplates(); // Create a Transformer ContentHandler to handle parsing of // the XML Source. javax.xml.transform.sax.TransformerHandler transformerHandler = saxTFactory.newTransformerHandler(templates); // Reset the XMLReader's ContentHandler to the TransformerHandler. reader.setContentHandler(transformerHandler); // Set the ContentHandler to also function as a LexicalHandler, which // can process lexical events (such as comments and CDATA). reader.setProperty(http://xml.org/sax/properties/lexical-handler;, transformerHandler); // Set up a Serializer to serialize the Result to a file. HSSFSerializer ser = new HSSFSerializer(); ser.setOutputStream(xlsFile); //org.apache.cocoon.serialization.XMLSerializer ser = new org.apache.cocoon.serialization.XMLSerializer(); //ser.setOutputStream(System.out); // The Serializer functions as a SAX ContentHandler. javax.xml.transform.Result result = new javax.xml.transform.sax.SAXResult((org.xml.sax.ContentHandler)ser); transformerHandler.setResult(result); // Parse the XML input document. reader.parse(xmlFilename); // Here i get NullPointer Exception Sébastien PLISSON DSIT XS / Infocentre Tél. : 30.13.90 - 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]
DB2 JDBC driver configuration problem
Hi, I'm using Cocoon 2.0.2 with Websphere 3.5 on Win NT, and i can't success in configuring DB2 jdbc driver. When i set load-class parameter of cocoon servlet with the name of DB2 jdbc classname (COM.ibm.db2.jdbc.app.DB2Driver) the websphere server jvm crashes when i try to start the application server. It only launches DrWatson and i don't have error message in logs. Any idea of how to configure it to be able to use jdbc connection pool and esql ? Thanks Sébastien PLISSON DSIT XS / Infocentre Tél. : 30.13.90 - 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]