RE: [CRASH] 2.1-Dev with HTMLGenerator Transformer
On 1 Apr 2003, Bruno Dumon wrote: I've tried out your sample, and had the same problem. After putting in a logtransformer, I noticed that the endDocument SAX event was called twice. I've updated CVS to correct this behaviour. Bruno, Thank you so very much for your help!! I was starting to pull my hair out. Now I can get back to my project. Thanks again! Tony -- Tony Collen ICQ: 12410567 IRC: irc.byxnet.net -- Cocoon: Internet Glue (A Cocoon Weblog) http://manero.otrg/weblog/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
escaping, still not clear
Hi all, I searched through the mail archives but can't find the answer to my escaping problem. The thing is that my original xml file has escaped characters like euml; or #235; After going through cocoon it arrives as the ascii 137 character (ë) not the escaped code. This is not valid HTML or XHTML or XML, and what's worse, I can't run the resulting XML through cocoon again, it will translate ë into ë. Puzzled I am. Any clues? disable-output-escaping doesn't help. Greetings from Holland, Jelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unable to serialize XHTML in ISO encoding
WHAT I WANT serialize XHTML in ISO-8859-1 encoding PROBLEM Even if I tell the serializer to use ISO-8859-1 encoding, it keeps generating UTF-8 encoding WHAT I DID 1) Sitemap: Configured a XHTML serializer map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml" pool-grow="2"pool-max="64" pool-min="2" src="" doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer 2) Sitemap: Configured the processing steps to use the XHTML serializer map:match pattern="ccs/**.html" map:generate src=""/ map:transform src=""/ map:serialize type="xhtml"/ /map:match 3) In the related XSL-stylesheet Iexplicitly requested xsl:output method="xml" encoding="iso-8859-1"/ RESULT Cocoon keeps generating UTF-8 output which starts like this ?xml version="1.0" encoding="UTF-8"? !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" html ... /html Any suggestions?
Re: escaping, still not clear
Hi Jelle, It's not a complete answer but not all special characters need encoding. Actually ë is valid UTF8 even I think (137 255 == 2^8 -1 !!). Make sure that your encoding tags are properly set in the files (utf8/iso 88 ...). I've generated a whole book with cocoon last year, with special characters/graphics and all, no problems! Characters like #343; with values over 255 have to be encoded, the rest doesn't necessarily. Mvrgr., Sanne - Original Message - From: Alten, Jelle Paul (sds-sp) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 11:24 AM Subject: escaping, still not clear Hi all, I searched through the mail archives but can't find the answer to my escaping problem. The thing is that my original xml file has escaped characters like euml; or #235; After going through cocoon it arrives as the ascii 137 character (ë) not the escaped code. This is not valid HTML or XHTML or XML, and what's worse, I can't run the resulting XML through cocoon again, it will translate ë into ë. Puzzled I am. Any clues? disable-output-escaping doesn't help. Greetings from Holland, Jelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit test for Cocoon
On Tue, 1 Apr 2003, Pham Thanh Quan wrote: Hi, Do you know any unit-test tool for Cocoon? Please tell me. Thanks and regards What do you prefer to test? There exist a testcase for generators and transformer. And writing a test case for complete pipelines shouldn't be difficult. The only problem, I see, is that you must compare binaries, if you write a test case for serializer or complete pipelines, except if these produce XML. Stephan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon and application configuration (maybe not long but short not also)
I started to learn web development some years ago with PHP. Up till now some habits are still vivid. Some days ago I came up with a problem while developing simple application with cocoon that I cannot overcome. If you ever used php you should be familar with the way that PHP gives you a possibility to customize a web application. The only PHP app I'm using now is MantisBT (a bugtracker) so my explanation will be based on this one. Mantis contains a configuration file called config_inc.php that contains the application options you can change (there are really a lot of them - all config options take 40kB of text). That file is included into every php script. The options configure all aspects of web application. The examples are: - application base url - smtp host - administrative options like - should application present an option to sign up or not - should user be able to reset his/hers password - should email notification be enabled or not - presentation options - should menu bar be displayed at top of the page, bottom or maybe both - colors - available languages - number of entries per page The way described above is ok for a scripting language like PHP. Cocoon is not so I started searching for the way to provide a user with a file with all configuration options. We have different cocoon areas that we have to cover: 1. Data There is no problem if data is generated dynamically with XSP - you can use XMlFileModule and query configuration from external file 2. Logic If logicsheet is being used (or actions) one could also use input modules to read configuration from But then we end up with: 3. Presentation If one wants to use XSL to present data the only way to parametrize the stylesheet is to provide _ALL_ parameters in the sitemap. That is ok if you have 4-5 parameters (you can pass them all using map:parameter and sitemap is still quite readable). Imagine now you have 100 parameters that strictly define presentation aspects. Another example: if you wanted to parametrize administrator's email that could be shown in different application pages you would have to pass this parameter to EVERY stylesheet that renders it. You could aggregate every static/dynamic data with a static configuration file and then filter it out at last transformation but: 1. Is would not be nice for the performance 2. You would have to do a lot of XPath gymnastics 3. There still is a bug with caching pipelines and aggregated dynamic content. It has been reported here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16958 and here http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14348 My idea: is it possible to modify the transformer so it could see all the parameters without declaring them in sitemap? You just pass an input module and it uses all variables it can query in it. ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication - Accessing The Context
Problem with DEBUG message fixed, cvs client still pointing at xml-cocoon2 instead of cocoon2.1 therefore not running on latest version. Thanks Bruno Still have problem trying to access the 'authentication' context With the DEBUG message fixed I can see the following message when my authentication fragment is sent to the authentication-manager -- Date:Tue Apr 01 11:35:27 BST 2003 (1049193327953) Thread:PoolThread-4 Message #:1377 Level:DEBUG NDC: Category:core.authentication-manager Message:BEGIN isValidAuthenticationFragment fragment=?xml version=1.0 encoding=ISO-8859-1? authentication ID1/ID dataPreston/data /authentication Location:org.apache.avalon.framework.logger.LogKitLogger.debug(LogKitLogger.java:86) Thrown: - I also find the a message saying that the user is authenticated Date:Tue Apr 01 11:35:28 BST 2003 (1049193328013) Thread:PoolThread-4 Message #:1382 Level:INFO NDC: Category:core.authentication-manager Message:AuthenticationManager: User authenticated using handler 'global' Location:org.apache.avalon.framework.logger.LogKitLogger.info(LogKitLogger.java:117) Thrown: - But still the the login page shows a context not found error when I try to access it with ?xml version=1.0 encoding=UTF-8? page xmlns:session=http://cocoon.apache.org/session/1.0 session:getxml context=authentication path=/authentication/ID / /page Thanks Tony Bruno Dumon [EMAIL PROTECTED] 31/03/2003 10:08 Please respond to cocoon-users To:[EMAIL PROTECTED] cc: Subject:Re: Authentication - Accessing The Context On Mon, 2003-03-31 at 10:28, [EMAIL PROTECTED] wrote: [...] [NamespaceNormalizingDOMStreamer] Encountered a DOM Element without a localName. DOM Level 1 trees are not supported by this DOMStreamer. Update your Cocoon CVS. This has been fixed for weeks. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP Problem
hi, Can we see the code in the xsp:logic and the pipeline. Lionel At 14:18 31/03/2003 -0800, you wrote: I use Cocoon 2.0.4 for JDK1.3 on Weblogic 7.0 SP1. I need to use Xalan Extensions to write javascript in my XSL. I use Xalan 2.5.D1 and the XercesImpl that comes with it. If I add the xalan.jar, xercesImpl.jar in my weblogic's classpath the Xalan Extensions work, but the Cocoon's XSP fail with the following error: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling source_xsp: Line 101, column 25: unclosed character literal Line 101, column 24: illegal start of expression Line 0, column 0: 2 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling source_xsp: Line 101, column 25: unclosed character literal Line 101, column 24: illegal start of expression Line 0, column 0: 2 errors I would like to know if there are any changes I would have to make to cocoon.conf to make this work. Any ideas? Do you Yahoo!? http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.htmlYahoo! Platinum - Watch CBS' NCAA March Madness, http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.htmllive on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant:NoClassDefFoundError after Cocoon install
Download the newest release of Ant (1.5.1 or higher), install it and set the ANT_HOME environment variable to the installation - dir. In addition you can set the PATH variable to the installation/bin - dir. After that it should (hopefully) work. Helmut On Tue, 01 Apr 2003 10:30:16 +0900, a847356549/mail.h7.dion.ne.jp [EMAIL PROTECTED] wrote: Hello I used Ant1.4.1 with JWSDP-1.0-ea1 under Win98se fairly well until I installed Tomcat4.1.18 Cocoon2.0 and began first Cocoon Lessons. So far, Tomcat4.1.18 Cocoon2.0 work fine. But everytime I want to use Ant1.4.1 by command line input, it fails with Exception in thread 'main' java.lang.NoClassDefFounError:org/apache/tools/ant/Main. To fix it, I updated every ant.jar on my computer with one originally in Tomcat4.1.18\common\lib but in vain. I searched some ANT-maillist archive for this trouble but no clear remedy, finally got an impression, to use Ant1.4.1 like before I may have to cancel Tomcat4.1.18 Cocoon2.0. I hesitated for some time to post this question because it may be off topics. I appreciate slightest hint and any advice will be grateful. ttkaya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SourceWritingTransformer, namespaces problem with Cocoon 2.1
Bruno Dumon wrote: On Sat, 2003-03-01 at 17:52, Mark H wrote: I'm trying to write an XSP to a file using SourceWritingTransformer but the latest DOMStreamer (v2.1) with setNormalizeNamespacesOn to true adds a namespace to every element rather than to the xsp:page element (so that the logicsheets don't work), This problem should be fixed now in cocoon-2.1 This is a test. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts in Cocoon
Have at a look at the wiki page: http://wiki.cocoondev.org/Wiki.jsp?page=Struts (a link to integrating the two) Apart from that, browse through the mail archives; someone may have picked up this specific point before. [EMAIL PROTECTED] 01/04/2003 03:16:11 Hi, I have a loginpage which runs with cocoon 2.0 and Tomcat 4.1.12.But I have problems in restoring the sessions of the users.So I would like to use Struts for solving the session problems.Now I would like to make the Struts work inside Cocoon without affecting my design using xslt.I would like to implement Struts in Cocoon just for solving the session problems and nothing more.It would be so kind if someone could give me some ideas. RegardsKavitha. Do you Yahoo!?Yahoo! Tax Center - File online, calculators, forms, and more-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support.
Re: Struts in Cocoon
Thank you so much,,, Derek Hohls [EMAIL PROTECTED] wrote: Have at a look at the wiki page: http://wiki.cocoondev.org/Wiki.jsp?page=Struts (a link to integrating the two) Apart from that, browse through the mail archives; someone may have picked up this specific point before. [EMAIL PROTECTED] 01/04/2003 03:16:11 Hi, I have a loginpage which runs with cocoon 2.0 and Tomcat 4.1.12.But I have problems in restoring the sessions of the users.So I would like to use Struts for solving the session problems.Now I would like to make the Struts work inside Cocoon without affecting my design using xslt.I would like to implement Struts in Cocoon just for solving the session problems and nothing more.It would be so kind if someone could give me some ideas. RegardsKavitha. Do you Yahoo!?Yahoo! Tax Center - File online, calculators, forms, and more-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more
Re: JSP Again
Newer version of JBoss (JBoss Web) comes with Jetty. I'm using JBoss 3.0.4 and I'm trying to get JSP work in my cocoon. Rest of the Cocoon stuff work fine, only JSP seems to be giving problem. I added jasper-compiler.jar because I read in one of the discussion list that it is needed for JSP to work. It's not helping here though. Sushil This looks like an error in your JSP or in the Jasper compiler. Take a look at the generated source to see what's wrong. And also it's a little strange that the java file for your JSP is generated in a ...\Jetty...\ directory. Are you using Tomcat? I'm not sure that Jasper compiler works with Jetty. Konstantin - Original Message - From: Sushil Bhattarai To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 01:41 Subject: JSP Again Hi all, Previously I've had problem with JSP but I was able to fix it. Then I was using older version of Cocoon and Tomcat as the server. Now I'm using cocoon-2.0.4 on JBoss 3.0.4. Both JSP Generator and JSPReader do not seem to work. I tried adding jasper-compiler.jar and jasper-runtime.jar to WEB-INF/lib in my cocoon. Still it does not like it. Without adding jasper-runtime, I get error regarding jasper-runtime. After adding it I get the following error: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080__ssfxml\ssftalklets\sa mples\jsp\hello$jsp.java:67: Incompatible type for method. Explicit cast needed to convert java.lang.Throwable to java.lang.Exception. if (pageContext != null) pageContext.handlePageException(t); ^ 1 error, 1 warning at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) ... Addition of jasper-compiler.jar makes no difference. Has anyone been able to get JSP to work with cocoon-2.0.4 on JBoss Server ?? Sushil Help STOP SPAM with the new MSN 8 and get 2 months FREE* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant:NoClassDefFoundError after Cocoon install
Thanks for your tip of info. I am getting ready for installing ANT-1.5.3Beta1. In my next mail I will tell the result. ttkaya Helmut Tammen [EMAIL PROTECTED] wrote: Download the newest release of Ant (1.5.1 or higher), install it and set the ANT_HOME environment variable to the installation - dir. In addition you can set the PATH variable to the installation/bin - dir. After that it should (hopefully) work. Helmut On Tue, 01 Apr 2003 10:30:16 +0900, a847356549/mail.h7.dion.ne.jp [EMAIL PROTECTED] wrote: Hello I used Ant1.4.1 with JWSDP-1.0-ea1 under Win98se fairly well until I installed Tomcat4.1.18 Cocoon2.0 and began first Cocoon Lessons. So far, Tomcat4.1.18 Cocoon2.0 work fine. But everytime I want to use Ant1.4.1 by command line input, it fails with Exception in thread 'main' java.lang.NoClassDefFounError:org/apache/tools/ant/Main. To fix it, I updated every ant.jar on my computer with one originally in Tomcat4.1.18\common\lib but in vain. I searched some ANT-maillist archive for this trouble but no clear remedy, finally got an impression, to use Ant1.4.1 like before I may have to cancel Tomcat4.1.18 Cocoon2.0. I hesitated for some time to post this question because it may be off topics. I appreciate slightest hint and any advice will be grateful. ttkaya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Problem with indent
Hello Joerg, March 13, 2003, 08:22:55 AM, you wrote: JH g[R]eK wrote: Hi J.Pietschmann, JP Try JPindentyes/indent It isn't working, the output is same :-( JH Of course it changes nothing with encoding, you wrote Problem with indent JH in the mail subject. I remind to you. I have 2 problems: 1st With encoding 2nd With indent in output (output doesn't have indents) encodingUTF-8/encoding JP This should be the default. And in output I have some chars encoded as entities. How Can JP I force Cocoon to encode my language (polish) chars correctly? JP What is correctly? If you mean you don't want to have JP HTML entities: you can't (unless you are willing to pull JP some tricks which take some time to explain) Look: table class=footer tbody tr td Some footer... bla bla Zaoacute;ci gsi ja/td /tr /tbody /table This is what I get from cocoon HTML Serializer, but I want to have this: table class=footer tbody tr td Some footer... bla bla Zaci gsi ja/td /tr /tbody /table The difference is enity 'oacute;'. Interesting is that the cocoon is encoding some of my language letters (like '', '') correctly. That is to say, it is encoded as char not as entity. JH I know that I often mix the identifiers/correct names, but I will try to JH explain: JH oacute; is only another representation of . oacute; is the character JH entity, while is the character. But they represent the same character and JH a browser correctly parsing the HTML should show both in the same way. But JH there is no problem if Cocoon delivers the HTML in the above way. JH Now remains the question, why the browser isn't doing this. Do you have a JH meta tag specifying the encoding 'UTF-8' in your HTML code? If yes, is the JH browser not UTF-8 aware? Or does it prefer the encoding specified in the JH response header and this is different or/and wrong? This is my meta tag: meta http-equiv=Content-Type content=text/html; charset=UTF-8 I think it is proper. But problem is another that you think. Browser is displaying my page correctly, that is not a problem. Problem is caused by the entites like oacute; because its size is 8 bytes, but character have size 1 or 2 bytes. It is big difference, when character is repeating much times. I hope, you know what I say? JH I think Mozilla is a very good browser to test this. On a page you can have JH a look at the properties of the page via 'view page info' in context menu, JH view/page info in the main menu or ctrl + i via keyboard. There is written JH as which encoding the page was recognized. Furthermore you can force Mozilla JH to show the page in another encoding to see the effects, what happens if JH it's recognized correctly (or not). Encoding is recognized correctly, in IE and Mozilla. Little question... When I start cocoon, I have this text: 'server.properties not found, using command line or default properites' Is it important? JH I don't think, that it is important. server.properties could overwrite the JH mentioned default properties. JH Regards, JH Joerg -- Best regards, g[R]eKmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with indent
g[R]eK wrote: Problem is caused by the entites like oacute; because its size is 8 bytes, but character have size 1 or 2 bytes. It is big difference, when character is repeating much times. I hope, you know what I say? An encoding problem usually refers to mismatches regarding the mapping of Unicode characters to bytes in the output. Your problem, that the serializer maps characters to predefined HTML entities, is somewhat trickier, and there is no standardized way to deal with it. Cocoon uses an identity XML transformation for serialization, usually performed by Xalan (default setting). You can have a look into the Xalan docs and search for extensions to the xsl:output element which might solve your problem, or ask on the Xalan list. There is also a properties file for the HTML entities, you can provide a modified version which may cause Xalan to output UTF-8 encoded bytes or at least character referencces (which are a bit shorter). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question from a newbie
Hi folks, I apologize in advance if this mailing list is not the appropriate place for this question, but I think I've nearly worn out Google trying to find the solution to my problem. I have been asked to locate software that can dynamically create a newsletter from numerous RSS feeds according to individual user preferences and then pass it along to a message transfer agent. Here is the process my boss envisions: 1.. Readers subscribe to a newsletter, and specify the content areas and sub-domains they would like to receive information on. 2.. Each newsletter is dynamically generated with the content specified by the individual subscriber. 3.. The newsletter is emailed to the subscriber. All of my research indicates that Apache Cocoon is practically manna from heaven in this area, except that I can't find any examples of it being used for e-mail applications - just Web applications. Is anyone here aware of whether or not Cocoon can be put to work with dynamic e-mail applications? If so, are there any examples I can show my boss? Any information/advice is appreciated. Regards, Sean McCormick --- Digiteyesed Photography http://www.digiteyesed.com/ Free desktop wallpaper for download. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bug Pdf Serialiser
--- Reçu de INFETUDE.G145193 02/250.96.71 01-04-03 14.22 Hi, I have a application whith cocoon 2.04 and tomcat 4.1.12 When i start whithout user defined in tomcat (web.xml of application) !-- Security Constraints for Testing === -- !-- security-constraint web-resource-collection web-resource-nameThe Entire Web Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameTomcat Supported Realm/realm-name /login-config security-role description An example role defined in conf/tomcat-users.xml /description role-nametomcat/role-name /security-role -- the serialize fo2pdf run fine (the acrobat reader run) map:pipeline map:match pattern=**PDF0*.jsp map:generate src=jsp2pdf/PDF0{2}.jsp type=jsp/ map:transform src=stylesheets/PDF0{2}.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline But When i start whith user defined in tomcat (and the user enter loggin) the serialize fo2pdf not run (the acrobat reader not start) but if serialize xml, it'is ok map:pipeline map:match pattern=**PDF0*.jsp map:generate src=jsp2pdf/PDF0{2}.jsp type=jsp/ map:transform src=stylesheets/PDF0{2}.xsl/ map:serialize type=xml/ /map:match /map:pipeline Many thanks for your reply! Carletta 01-04-03 14.22 Envoyé à - [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. [EMAIL PROTECTED] This footnote also confirms that this email message has been swept for the presence of computer viruses. www.pv.be ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error message when starting cocoon
Title: Error message when starting cocoon Dear helper, When I start cocoon, I get the attached error message (see log). As far as I know, this error was not listed in the faq. Basically, the error root is java.lang.NoClassDefFoundError: org/apache/log/Logger I don't understand how this is possible, knowing that this class is part of the logkit-20020529.jar file I've tried to rebuild cocoon, without any success, including changing the web.xml file to include this file in the tomcat/common/lib folder. What does work is placing the file in the tomcat/common/endorsed folder, but in this case, errors occur when starting up tomcat (but tomcat starts up...) Please find attached the logfile too. Thanks for helping feel free to contact me for more information. Bart Remmerie Tel +32 (014) 60.34.47 Fax +32 (014) 60.61.25 Email [EMAIL PROTECTED] 2003-04-01 15:49:47 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2003-04-01 15:49:51 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2003-04-01 15:49:51 WebappLoader[/manager]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\manager 2003-04-01 15:49:51 ContextConfig[/manager]: Configured an authenticator for method BASIC 2003-04-01 15:49:51 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:51 StandardManager[/manager]: Seeding of random number generator has been completed 2003-04-01 15:49:51 StandardWrapper[/manager:default]: Loading container servlet default 2003-04-01 15:49:51 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2003-04-01 15:49:51 HostConfig[localhost]: Deploying web application directory ROOT 2003-04-01 15:49:51 StandardHost[localhost]: Installing web application at context path from URL file:C:\jakarta-tomcat-4.1.24\webapps\ROOT 2003-04-01 15:49:51 WebappLoader[]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\_ 2003-04-01 15:49:51 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:51 StandardManager[]: Seeding of random number generator has been completed 2003-04-01 15:49:51 StandardWrapper[:default]: Loading container servlet default 2003-04-01 15:49:51 StandardWrapper[:invoker]: Loading container servlet invoker 2003-04-01 15:49:51 HostConfig[localhost]: Deploying web application directory tomcat-docs 2003-04-01 15:49:51 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\jakarta-tomcat-4.1.24\webapps\tomcat-docs 2003-04-01 15:49:52 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\tomcat-docs 2003-04-01 15:49:52 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:52 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed 2003-04-01 15:49:52 StandardWrapper[/tomcat-docs:default]: Loading container servlet default 2003-04-01 15:49:52 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker 2003-04-01 15:49:52 HostConfig[localhost]: Deploying web application directory webdav 2003-04-01 15:49:52 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\jakarta-tomcat-4.1.24\webapps\webdav 2003-04-01 15:49:52 WebappLoader[/webdav]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\webdav 2003-04-01 15:49:52 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:52 StandardManager[/webdav]: Seeding of random number generator has been completed 2003-04-01 15:49:52 StandardWrapper[/webdav:default]: Loading container servlet default 2003-04-01 15:49:52 StandardWrapper[/webdav:invoker]: Loading container servlet invoker 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /manager 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /examples 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /webdav 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /admin 2003-04-01 15:52:23 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2003-04-01 15:52:27 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2003-04-01 15:52:27 WebappLoader[/manager]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\manager 2003-04-01 15:52:27 ContextConfig[/manager]: Configured an authenticator for method
Re: esql not working at all, no connection ever created!
Perhaps this message is inappropriate for this mailing list, but what I want to say is that I wonder why people would participate without showing their real names, but instead conceal their identity by means of fake yahoo or hotmail addresses. I joined recently, so maybe this has always been a common practice anyway. I think there are occasions whenconcealing the identityis appropriate, but this mailing list is composed of frank, honest and motivated individuals that give their best to advance technology. In my opinion, not showing the real name is a lack of respect to the rest of the participants, especially those that have consistently given their best. Again, sorry for this e-mail not beingabout Cocoon... Thanks for your attention. Julio Lerm (Yes, that's my real name, and I am not ashamed or affraid of showing it...) - Original Message - From: Not Available To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 12:28 PM Subject: Re: esql not working at all, no connection ever created! Here is my xsp code: xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" esql:connectionesql:pooldb_pool/esql:pool esql:execute-queryesql:queryselect * from antiques/esql:query esql:results esql:row-results esql:get-int column="id"/ esql:get-string column="name"/ /esql:row-results /esql:results /esql:execute-query/esql:connection/xsp:page Here is my web.xml: init-param param-nameload-class/param-name param-value !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDrivercom.mysql.jdbc.Driver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param Here is my cocoon.config: jdbc name="antiques" pool-controller min="5" max="10"/ dburljdbc:mysql://localhost/databasename?autoReconnect=true/dburl usermyusername/user passwordmypassword/password /jdbc Here is my pipeline for testing: map:pipelinemap:match pattern="content/*.xml"map:generate type="xsp" src=""/map:serialize type="xml"//map:match/map:pipeline Thanks again Christopher Painter-Wakefield [EMAIL PROTECTED] wrote: Please post your xsp code, or at least the portion with esql in it. Veryhard to help, otherwise.-Christopher|-+| | Not Available || | <[EMAIL PROTECTED]|| | hoo.com || | || | 04/01/2003 03:47 || | AM || | Please respond to|| | cocoon-users || | ||-+--|| || To: [EMAIL PROTECTED] || cc: || Subject: esql not working at all, no connection ever created! |--|I have been trying to get esql to work now for about 3 days with no luck. Ibeleive i have configured everything correctly but when I run any xsp pagewith esql it returns a duplicated page of my xsp page except that it stopsat the esql:connection tag. When I look at the error log it says there wasa null pointer exception. After examining the generated java file I thinkit is because a connection object is always null (never set to a validconnection). However I am pretty confident my pool is set up correctly andthe drivers are being loaded ok.Here is the code that it points to in the java file:_esql_query = new EsqlQuery( _esql_connection, String.valueOf(""+ " select * from antiques "+ " ") );No where above this code is the _esql_connection every initialized with aconnection.I am using the latest release for java 1.4.1 and running windows me withmysql.Thanks,Kris-To unsubscribe, e-mail: [EMAIL PROTECTED] pache.or gFor additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!?Yahoo! Tax Center - File online, calculators, forms, and more
Re: esql not working at all, no connection ever created!
Is this the whole XSP program? If so, the problem is that you don't have the required single non-xsp child node of xsp:page. E.g., you have: xsp:page ... esql:connection ... /esql:connection /xsp:page but you need to have: xsp:page ... some-node esql:connection ... /esql:connection /some-node /xsp:page If that isn't the problem, write back and we'll try something else. -Christopher |-+ | | Not Available| | | [EMAIL PROTECTED]| | | hoo.com | | || | | 04/01/2003 01:28 | | | PM | | | Please respond to| | | cocoon-users | | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: esql not working at all, no connection ever created! | --| Here is my xsp code: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; esql:connection esql:pooldb_pool/esql:pool esql:execute-query esql:query select * from antiques /esql:query esql:results esql:row-results esql:get-int column=id/ esql:get-string column=name/ n! bsp;/esql:row-results /esql:results /esql:execute-query /esql:connection /xsp:page Here is my web.xml: init-param param-nameload-class/param-name param-value !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDriver com.mysql.jdbc.Driver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param Here is my cocoon.config: jdbc name=antiques pool-controller min=5 max=10/ dburljdbc:mysql://localhost/databasename?autoReconnect=true/dburl usermyusername/user passwordmypassword/password /jdbc Here is my pipeline for testing: map:pipeline map:match pattern=content/*.xml map:generate type=xsp src=content/{1}.xsp/ map:serialize type=xml/ /map:match /map:pipeline Thanks again Christopher Painter-Wakefield [EMAIL PROTECTED] wrote: Please post your xsp code, or at least the portion with esql in it. Very hard to help, otherwise. -Christopher |-+ | | Not Available | | | | | hoo.com | | | | | | 04/01/2003 03:47 | | | AM | | | Please respond to| | | cocoon-users | | | | |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: esql not working at all, no connection ever created! | --| I have been trying to get esql to work now for about 3 days with no luck. I beleive i have configured ever! ything correctly but when I run any xsp page with esql it returns a duplicated page of my xsp page except that it stops at the esql:connection tag. When I look at the error log it says there was a null pointer exception. After examining the generated java file I think it is because a connection object is always null (never set to a valid connection). However I am pretty confident my pool is set up correctly and the drivers are being loaded ok. Here is the code that it points to in the java file: _esql_query = new EsqlQuery( _esql_connection, String.valueOf( + select * from antiques + ) ); No where above this code is the _esql_connection every initialized with a connection. I am using the latest release for java 1.4.1 and running windows me with mysql. Thanks, Kris --! --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more - To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: 2.1 dev - CVS whats the new steps to build
On Tue, 1 Apr 2003, e nio wrote: Hi Alex, I was able to get a download and was able to compile and created a working samples war file. Thanks for your help. Now when I need to update (for the delta) I type exact same command or is there another option? Also there is no need for the HEAD? I believe CVS works off HEAD by default. When you need to update, you should run: cvs -z9 update -d -P cocoon-2.1 Also, cvs --help is also very useful for figuring out all the options... HTH, Tony -- Tony Collen ICQ: 12410567 IRC: irc.byxnet.net -- Cocoon: Internet Glue (A Cocoon Weblog) http://manero.otrg/weblog/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed to execute pipeline.: Errors in XSLT transformation
Sorry I can't be much help here, but I will say that this Exception and your tale of woe does look vaguely familiar to me. The voices of my memory are whispering 'namespaces'. I find dealing with namespaces one of the more gnarly parts of xml, especially with SAX. My suggestion is (and this is an almost complete shot in the dark) to define a namespace and prefix for your local elements. Charles Don Saxton wrote: Geoff this pipe works and results in the p1.xml attached. generate type=session-attr serialize type=xml result is p1.xml (attached) Yet this pipe does not generate type=session-attr transform src=person.xsl (attached ) serialize type=html (never gets here) result is this error Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer .java:575) at org.apache.cocoon.generation.SessionAttributeGenerator.generate(SessionAttri buteGenerator.java:189) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:395) Yet when I test the transform outside of cocoon, the xsl is fine. And if other working xsl are substituted they will produce this same error. Don you may need to post your xsl. it's unclear from what you say below - if you comment out all transfomers, does the exception go away? Geoff -Original Message- From: Don Saxton [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:22 PM To: [EMAIL PROTECTED] Subject: Re: Failed to execute pipeline.: Errors in XSLT transformation Thanks Charles. I totally agree. and that is why I am stumped. To be sure the request is filled beginning with a map:generate type=session-attr which I map:serialize type=xml/ and save the result as p1.xml. THEN I test several xsl (just to be sure) on p1.xml. The xsl all pass both in xmlspy and xslerator. THEN removng the map:serialize type=xml/ and replacing with one of the tested xsl, map:serialize type=xml/ or map:serialize type=html/ (whichever is appropriate to the xsl) Still resutl in the bad voodoo reported earlier. Incidentally looking at CachingStreamPipeline, I found the below javadoc on the class. Maybe if I switch cacheing off? how? The real blister is that I was so sure I was finished. Don * This stream pipeline is able to cache the response, if * ul * lia) the serializer is cacheable/li * lib) the codeEventPipeline/code is cacheable/li * /ul * - Original Message - From: Charles Yates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:24 PM Subject: Re: Failed to execute pipeline.: Errors in XSLT transformation In cases like this I do the following: 1) make sure the pipeline is giving the transformer in question the right input. (ie comment out the transformer and any subsequent ones and use XMLSerializer) 2) make sure the stylesheet works outside of cocoon. (you can do step one to get the appropriate input) Charles Don Saxton wrote: I have tried several xsl and after double checking each of them I am stumped. I found several zarros in bugzilla. In mail list I have seen several Failed to execute pipeline and a couple related to NPE, but none linking either to Errors in XSLT. Worse these other msgs don't indicate what solved the their problems. I am running 2.04 on w2k and I sure could use a clue. All classes immediately surrounding the error are all cocoon. I have been studiously avoiding 2.1 beta chaos. Is it now time to dive in? will that help? Don org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: java.lang.NullPointerException at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:410) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0 encoding=UTF-8? envelope chiba:css-style=style.css chiba:id=person chiba:name=Person
2.1-dev Logs at WEB-INF/logs/
Hello, How to enable the logs at WEB-ING/logs/ ? I have tried by enabling by setting appendtrue/append for the cocoon id elements sitemap, access, core and error but still nothing is appended in any of these files. Anywhere else I need to enable anything? Also just wondering why the welcome.xslt has the extension of xslt instead of xsl? Not that it matters what extension as long as it matches the structure and namespaces declared in it, but more of curiousity to a changing trend? Regards, enio __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.1-dev Logs at WEB-INF/logs/
On Tue, 1 Apr 2003, e nio wrote: Hello, How to enable the logs at WEB-ING/logs/ ? I have tried by enabling by setting appendtrue/append for the cocoon id elements sitemap, access, core and error but still nothing is appended in any of these files. Anywhere else I need to enable anything? You need to set the log level in logkit.xconf. Most of them are set to ERROR, I believe, so if you want more info I suggest setting them to INFO or DEBUG (== lots of extra info). Also just wondering why the welcome.xslt has the extension of xslt instead of xsl? Not that it matters what extension as long as it matches the structure and namespaces declared in it, but more of curiousity to a changing trend? Not sure about this, perhaps someone else can shed some light. The extension doesn't really matter usually though.. mostly convention. Tony -- Tony Collen ICQ: 12410567 IRC: irc.byxnet.net -- Cocoon: Internet Glue (A Cocoon Weblog) http://manero.otrg/weblog/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.1-dev Logs at WEB-INF/logs/
e nio wrote: Also just wondering why the welcome.xslt has the extension of xslt instead of xsl? Not that it matters what extension as long as it matches the structure and namespaces declared in it, but more of curiousity to a changing trend? It's like *.jpeg vs. *.jpg ... the old DOS 8.3 file naming. Regards, Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed to execute pipeline.: Errors in XSLT transformation
Hello Don, there is nothing wrong the XSLT itself, so Errors in XSLT is not a correct message. But I can't tell you, what the error is. I refactored the stylesheet using templates instead of for-each. If there is a bug in Xalan 2.3.1 (this should be the version used in Cocoon 2.0.4), it will maybe already work. Another suggestion is to update the Xalan version to 2.4.1. This sometimes solves some problems. Regards, Joerg Don Saxton wrote: Geoff this pipe works and results in the p1.xml attached. generate type=session-attr serialize type=xml result is p1.xml (attached) Yet this pipe does not generate type=session-attr transform src=person.xsl (attached ) serialize type=html (never gets here) result is this error Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer .java:575) at org.apache.cocoon.generation.SessionAttributeGenerator.generate(SessionAttri buteGenerator.java:189) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:395) Yet when I test the transform outside of cocoon, the xsl is fine. And if other working xsl are substituted they will produce this same error. Don ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:template match=/ HTML HEAD TITLETitle/TITLE /HEAD BODY xsl:apply-templates select=//person/ /BODY /HTML /xsl:template xsl:template match=person h3xsl:value-of select=@name//h3 i(id=xsl:value-of select=@id/) a href=edit/person/[EMAIL PROTECTED] edit /a/i table border=1 cellspacing=0 trtdborn/tdtdxsl:value-of select=@born//td/tr xsl:apply-templates select=*[not(self::documentref)]/ tr tddocuments/td td ul xsl:for-each select=documentref li a href=[EMAIL PROTECTED]xsl:value-of select=@ref//a /li /xsl:for-each /ul /td /tr /table div align=centera href=?list=personsBack to List/a/div bI need some way to resolve idrefs i.e. get the person's name instead of the id. What is showing here is the text node of the ref element only if it is present./b /xsl:template xsl:template match=*[personref] tr td xsl:value-of select=name()/ xsl:if test=self::marriage xsl:value-of select=concat(' ', @begin, ' to ', @end)/ /xsl:if /td td ul xsl:apply-templates select=personref/ /ul /td /tr /xsl:template xsl:template match=personref li a href=[EMAIL PROTECTED] xsl:if test=not(normalize-space()) xsl:value-of select=@person/ /xsl:if xsl:value-of select=text()/ /a /li /xsl:template xsl:template match=description tr tddescription/td tdxsl:value-of select=text()//td /tr /xsl:template /xsl:stylesheet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql not working at all, no connection ever created!
Haha, I'm sorry about that. My normal email account was down last night and I needed to ask a question quick. My real name is Kris as I have been signing my emails with. I'll unsubscribe from this account and use my regular account in the future ;) Kris jcplerm [EMAIL PROTECTED] wrote: Perhaps this message is inappropriate for this mailing list, but what I want to say is that I wonder why people would participate without showing their real names, but instead conceal their identity by means of fake yahoo or hotmail addresses. I joined recently, so maybe this has always been a common practice anyway. I think there are occasions whenconcealing the identityis appropriate, but this mailing list is composed of frank, honest and motivated individuals that give their best to advance technology. In my opinion, not showing the real name is a lack of respect to the rest of the participants, especially those that have consistently given their best. Again, sorry for this e-mail not beingabout Cocoon... Thanks for your attention. Julio Lerm (Yes, that's my real name, and I am not ashamed or affraid of showing it...) - Original Message - From: Not Available To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 12:28 PM Subject: Re: esql not working at all, no connection ever created! Here is my xsp code: xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" esql:connectionesql:pooldb_pool/esql:pool esql:execute-queryesql:queryselect * from antiques/esql:query esql:results esql:row-results esql:get-int column="id"/ esql:get-string column="name"/ /esql:row-results /esql:results /esql:execute-query/esql:connection/xsp:page Here is my web.xml: init-param param-nameload-class/param-name param-value !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDrivercom.mysql.jdbc.Driver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param Here is my cocoon.config: jdbc name="antiques" pool-controller min="5" max="10"/ dburljdbc:mysql://localhost/databasename?autoReconnect=true/dburl usermyusername/user passwordmypassword/password /jdbc Here is my pipeline for testing: map:pipelinemap:match pattern="content/*.xml"map:generate type="xsp" src=""/map:serialize type="xml"//map:match/map:pipeline Thanks again Christopher Painter-Wakefield [EMAIL PROTECTED] wrote: Please post your xsp code, or at least the portion with esql in it. Veryhard to help, otherwise.-Christopher|-+| | Not Available || | <[EMAIL PROTECTED]|| | hoo.com || | || | 04/01/2003 03:47 || | AM || | Please respond to|| | cocoon-users || | ||-+--|| || To: [EMAIL PROTECTED] || cc: || Subject: esql not working at all, no connection ever created! |--|I have been trying to get esql to work now for about 3 days with no luck. Ibeleive i have configured everything correctly but when I run any xsp pagewith esql it returns a duplicated page of my xsp page except that it stopsat the esql:connection tag. When I look at the error log it says there wasa null pointer exception. After examining the generated java file I thinkit is because a connection object is always null (never set to a validconnection). However I am pretty confident my pool is set up correctly andthe drivers are being loaded ok.Here is the code that it points to in the java file:_esql_query = new EsqlQuery( _esql_connection, String.valueOf(""+ " select * from antiques "+ " ") );No where above this code is the _esql_connection every initialized with aconnection.I am using the latest release for java 1.4.1 and running windows me withmysql.Thanks,Kris-To unsubscribe, e-mail: [EMAIL PROTECTED] pache.or gFor additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!?Yahoo! Tax Center - File online, calculators, forms, and moreDo you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more
RE: Question from a newbie
Sean, This is exaclty the type of application that is demonstrated in the book, Cocoon: Building XML Applications by Matthew Langham and Carsten Ziegeler, published by New Riders. There are 3 versions of a news portal that increase in complexity. I have found the book to be a great resource for Cocoon in general and it should have exactly what you need. I'm sure the book is widely available. Jeff Sallade -Original Message- From: Sean McCormick [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 10:51 AM To: [EMAIL PROTECTED] Subject: Question from a newbie Hi folks, I apologize in advance if this mailing list is not the appropriate place for this question, but I think I've nearly worn out Google trying to find the solution to my problem. I have been asked to locate software that can dynamically create a newsletter from numerous RSS feeds according to individual user preferences and then pass it along to a message transfer agent. Here is the process my boss envisions: 1.. Readers subscribe to a newsletter, and specify the content areas and sub-domains they would like to receive information on. 2.. Each newsletter is dynamically generated with the content specified by the individual subscriber. 3.. The newsletter is emailed to the subscriber. All of my research indicates that Apache Cocoon is practically manna from heaven in this area, except that I can't find any examples of it being used for e-mail applications - just Web applications. Is anyone here aware of whether or not Cocoon can be put to work with dynamic e-mail applications? If so, are there any examples I can show my boss? Any information/advice is appreciated. Regards, Sean McCormick --- Digiteyesed Photography http://www.digiteyesed.com/ Free desktop wallpaper for download. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI datasource from Cocoon
I spent a bit of time getting this to work, so I thought I'd submit it to the list. Can someone add this to the CocoonWiki how-tos list? Switching from Cocoon managed datasource to JBoss JNDI datasource. Up til now, I've used the datasource defined in cocoon which managed pooling, etc. The advantage of having jboss manage the connections is they can be shared across different applications running under jboss. Here is a list of things tha need to be done to make this work. - move the jdbc driver jar file from the cocoon/WEB-INF/lib directory to jboss/server/default/lib. For Oracle, this file is ojdbc14.jar (This makes it availble to all applications, plus jboss) - create your own XXX-service.xml file. You can modify the one for your database found in jboss/docs/examples/jda. I took the oracle.service.xml and changed the "OracleDS" name and put in my own. Also edit the ConnectionURL, UserName, Password config properties to suit your connection. - in the cocoon.xconf file, change your datasource from the jdbc style to the j2ee style. My example shows a datasource named "stevie" refering to the JNDI named source called "mbrdb". j2ee name="stevie" dbnamembrdb/dbname /j2ee - Here is a jboss-web.xml file that needs to go into your cocoon/WEB-INF directory with your web.xml file. just edit your datasource name, replacing "mbrdb" with your source name. ?xml version="1.0"? jboss-web resource-ref res-ref-namejdbc/mbrdb/res-ref-name jndi-namejava:/mbrdb/jndi-name /resource-ref /jboss-web - at the bottom of the web.xml file for your cocoon instance, add this; resource-ref res-ref-namejdbc/mbrdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref It goes just before the /web-app line at the bottom. You'll need to change the "mbrdb" reference here also. - One other change I needed to make was to comment out 3 map:actions in the main sitemap.xmap file for cocoon. The first three actions defined are some "DatabaseXXXAction"s. They need to be commented out. Not sure why, but they caused cocoon to throw exceptions when used the j2ee datasource. That is it! It took me many hours and the help of some co-workers to get this set up right. Now, in your cocoon pipeline, you can just use the datasource name like you did before the change! David
Re: Question from a newbie
Jeff, You've made my day - thank you so much! I've just ordered both Cocoon books that are available from New Riders. Sean --- Digiteyesed Photography http://www.digiteyesed.com/ Free desktop wallpaper for download. - Original Message - From: Jeff Sallade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 2:45 PM Subject: RE: Question from a newbie : Sean, : : This is exaclty the type of application that is demonstrated in : the book, Cocoon: Building XML Applications by Matthew Langham : and Carsten Ziegeler, published by New Riders. There are 3 versions : of a news portal that increase in complexity. I have found the : book to be a great resource for Cocoon in general and it should : have exactly what you need. I'm sure the book is widely available. : : Jeff Sallade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit test for Cocoon
Title: RE: Unit test for Cocoon Dear Stephan, I would like to test on every separate action, generator, transformer... Please show me the test case for that. Thank you. Quan -Original Message- From: Stephan Michels [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 01, 2003 5:14 PM To: [EMAIL PROTECTED] Subject: Re: Unit test for Cocoon On Tue, 1 Apr 2003, Pham Thanh Quan wrote: Hi, Do you know any unit-test tool for Cocoon? Please tell me. Thanks and regards What do you prefer to test? There exist a testcase for generators and transformer. And writing a test case for complete pipelines shouldn't be difficult. The only problem, I see, is that you must compare binaries, if you write a test case for serializer or complete pipelines, except if these produce XML. Stephan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bug Pdf Serialiser
Carletta, there is very little in your message that gives me any clue towards the solution. Are there any stacktraces in the cocoon logs or the tomcat logs? Some other tests you might want to do: - can you let the browser-user do a right-click on the **PDFO*.jsp and then choose to - have you tried with other browsers? Can you make the matcher work on **PDFO*.pdf just out of curiosity? - can you maybe slide in an HTTP tunnel to check the HTTP request and response? (I use http://www.pocketsoap.com/tcpTrace/, Apache Axis and MS SOAP Toolkit have something similar) and register the differences between both cases? -marc= CARLETTA ANGELO wrote: --- Reçu de INFETUDE.G145193 02/250.96.71 01-04-03 14.22 Hi, I have a application whith cocoon 2.04 and tomcat 4.1.12 When i start whithout user defined in tomcat (web.xml of application) !-- Security Constraints for Testing === -- !-- security-constraint web-resource-collection web-resource-nameThe Entire Web Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameTomcat Supported Realm/realm-name /login-config security-role description An example role defined in conf/tomcat-users.xml /description role-nametomcat/role-name /security-role -- the serialize fo2pdf run fine (the acrobat reader run) map:pipeline map:match pattern=**PDF0*.jsp map:generate src=jsp2pdf/PDF0{2}.jsp type=jsp/ map:transform src=stylesheets/PDF0{2}.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline But When i start whith user defined in tomcat (and the user enter loggin) the serialize fo2pdf not run (the acrobat reader not start) but if serialize xml, it'is ok map:pipeline map:match pattern=**PDF0*.jsp map:generate src=jsp2pdf/PDF0{2}.jsp type=jsp/ map:transform src=stylesheets/PDF0{2}.xsl/ map:serialize type=xml/ /map:match /map:pipeline Many thanks for your reply! Carletta 01-04-03 14.22 Envoyé à - [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. [EMAIL PROTECTED] This footnote also confirms that this email message has been swept for the presence of computer viruses. www.pv.be ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Portierhttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog at http://radio.weblogs.com/0116284/ [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database caching
On wto, kwi 01, 2003 at 12:43:29 -0800, Kris Rasmussen wrote: How does cocoon handle caching of xsp pages with esql tags? It seems to me that cocoon would have to generate the xml output of the xsp page every time the page is called, and thus would be unable to cache any xsl translation latter? Is this true? If so would it not be a better idea to have the page be translated into html before all database code is called and then insert the database code at the very end and output as a jsp page or something? Is that the way other server side frameworks do? Remember that the most important thing is data, which is being generated at the beginning and then the presentation is applied. Your approach is completely reversed. Take look at Velocity - maybe it could solve your problems ouzo -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error message when starting cocoon
Bart, at first sight, not that much there to make a sound suggestion only sensible reading about classloaders in tomcat has been http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html but it's not particulary helping me point out what the issue is, it only suggests trying out the shared/lib as well and the common/lib (not endorsed) since the logging API is not in the list of endorsed API's http://java.sun.com/j2se/1.4/docs/guide/standards/index.html You mention that you get errors in starting up tomcat with your 'endorsed' workaround, could you elaborate which ones? anything that sounds like more classloading stuff? [EMAIL PROTECTED] wrote: Dear helper, When I start cocoon, I get the attached error message (see log). cocoon 2.0.4? JDK 1.4.1? As far as I know, this error was not listed in the faq. Basically, the error root is java.lang.NoClassDefFoundError: org/apache/log/Logger I don't understand how this is possible, knowing that this class is part of the logkit-20020529.jar file I've tried to rebuild cocoon, without any success, including changing the web.xml file to include this file in the tomcat/common/lib folder. what did you change in the web.xml? What does work is placing the file in the tomcat/common/endorsed folder, but in this case, errors occur when starting up tomcat (but tomcat starts up...) Please find attached the logfile too. Thanks for helping feel free to contact me for more information. Bart Remmerie Tel +32 (014) 60.34.47 Fax +32 (014) 60.61.25 Email [EMAIL PROTECTED] regards, -marc= 2003-04-01 15:49:47 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2003-04-01 15:49:51 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2003-04-01 15:49:51 WebappLoader[/manager]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\manager 2003-04-01 15:49:51 ContextConfig[/manager]: Configured an authenticator for method BASIC 2003-04-01 15:49:51 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:51 StandardManager[/manager]: Seeding of random number generator has been completed 2003-04-01 15:49:51 StandardWrapper[/manager:default]: Loading container servlet default 2003-04-01 15:49:51 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2003-04-01 15:49:51 HostConfig[localhost]: Deploying web application directory ROOT 2003-04-01 15:49:51 StandardHost[localhost]: Installing web application at context path from URL file:C:\jakarta-tomcat-4.1.24\webapps\ROOT 2003-04-01 15:49:51 WebappLoader[]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\_ 2003-04-01 15:49:51 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:51 StandardManager[]: Seeding of random number generator has been completed 2003-04-01 15:49:51 StandardWrapper[:default]: Loading container servlet default 2003-04-01 15:49:51 StandardWrapper[:invoker]: Loading container servlet invoker 2003-04-01 15:49:51 HostConfig[localhost]: Deploying web application directory tomcat-docs 2003-04-01 15:49:51 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\jakarta-tomcat-4.1.24\webapps\tomcat-docs 2003-04-01 15:49:52 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\tomcat-docs 2003-04-01 15:49:52 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:52 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed 2003-04-01 15:49:52 StandardWrapper[/tomcat-docs:default]: Loading container servlet default 2003-04-01 15:49:52 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker 2003-04-01 15:49:52 HostConfig[localhost]: Deploying web application directory webdav 2003-04-01 15:49:52 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\jakarta-tomcat-4.1.24\webapps\webdav 2003-04-01 15:49:52 WebappLoader[/webdav]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\webdav 2003-04-01 15:49:52 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom 2003-04-01 15:49:52 StandardManager[/webdav]: Seeding of random number generator has been completed 2003-04-01 15:49:52 StandardWrapper[/webdav:default]: Loading container servlet default 2003-04-01 15:49:52 StandardWrapper[/webdav:invoker]: Loading container servlet invoker 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /manager 2003-04-01 15:52:16 StandardHost[localhost]: Removing web application at context path /examples 2003-04-01 15:52:16
Cocoon 2.1 cache
How can i turn off the cache under Cocoon 2.1 ? because : event-pipeline class=org.apache.cocoon.components.pipeline.NonCachingEventPipeline/ stream-pipeline class=org.apache.cocoon.components.pipeline.NonCachingStreamPipeline/ doesn't exist under Cocoon 2.1 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql not working at all, no connection ever created!
On 01.Apr.2003 -- 01:48 PM, Christopher Painter-Wakefield wrote: Is this the whole XSP program? If so, the problem is that you don't have the required single non-xsp child node of xsp:page. E.g., you have: xsp:page ... esql:connection ... /esql:connection /xsp:page but you need to have: xsp:page ... some-node esql:connection ... /esql:connection /some-node /xsp:page If that isn't the problem, write back and we'll try something else. Another one is the missing esql:execute-query tag. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Only use serializers
Title: Message Hello, I've got a java webapp where I've got the DOM object with the XML transformed using XSLT but now I want to be able to serialize it to PDF. I know Cocoon has FOPSerializer etc but how can I call this serializer from java code with the only input being a transformer and a DOM object. Any help is welcome! Regards, Gunter D'Hondt.
Re: DSML Cocoon
On Tue, Apr 01, 2003 at 03:19:53PM +0400, Yury Mikhienko wrote: Hi all! Does anyone know how to implement a DSML(Directory Service Markup Language) into cocoon? There was once an LDAP taglib for Cocoon 1 that returned DSML: http://opensource.socialchange.net.au/ldaptaglib/ Probably wouldn't be hard to port to Cocoon 2. --Jeff -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed to execute pipeline.: Errors in XSLT transformation
Geoff this pipe works and results in the p1.xml attached. generate type=session-attr serialize type=xml result is p1.xml (attached) Yet this pipe does not generate type=session-attr transform src=person.xsl (attached ) serialize type=html (never gets here) result is this error Original exception : java.lang.RuntimeException: Errors in XSLT transformation: Fatal: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer .java:575) at org.apache.cocoon.generation.SessionAttributeGenerator.generate(SessionAttri buteGenerator.java:189) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:395) Yet when I test the transform outside of cocoon, the xsl is fine. And if other working xsl are substituted they will produce this same error. Don you may need to post your xsl. it's unclear from what you say below - if you comment out all transfomers, does the exception go away? Geoff -Original Message- From: Don Saxton [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:22 PM To: [EMAIL PROTECTED] Subject: Re: Failed to execute pipeline.: Errors in XSLT transformation Thanks Charles. I totally agree. and that is why I am stumped. To be sure the request is filled beginning with a map:generate type=session-attr which I map:serialize type=xml/ and save the result as p1.xml. THEN I test several xsl (just to be sure) on p1.xml. The xsl all pass both in xmlspy and xslerator. THEN removng the map:serialize type=xml/ and replacing with one of the tested xsl, map:serialize type=xml/ or map:serialize type=html/ (whichever is appropriate to the xsl) Still resutl in the bad voodoo reported earlier. Incidentally looking at CachingStreamPipeline, I found the below javadoc on the class. Maybe if I switch cacheing off? how? The real blister is that I was so sure I was finished. Don * This stream pipeline is able to cache the response, if * ul * lia) the serializer is cacheable/li * lib) the codeEventPipeline/code is cacheable/li * /ul * - Original Message - From: Charles Yates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:24 PM Subject: Re: Failed to execute pipeline.: Errors in XSLT transformation In cases like this I do the following: 1) make sure the pipeline is giving the transformer in question the right input. (ie comment out the transformer and any subsequent ones and use XMLSerializer) 2) make sure the stylesheet works outside of cocoon. (you can do step one to get the appropriate input) Charles Don Saxton wrote: I have tried several xsl and after double checking each of them I am stumped. I found several zarros in bugzilla. In mail list I have seen several Failed to execute pipeline and a couple related to NPE, but none linking either to Errors in XSLT. Worse these other msgs don't indicate what solved the their problems. I am running 2.04 on w2k and I sure could use a clue. All classes immediately surrounding the error are all cocoon. I have been studiously avoiding 2.1 beta chaos. Is it now time to dive in? will that help? Don org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: java.lang.NullPointerException at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:410) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0 encoding=UTF-8? envelope chiba:css-style=style.css chiba:id=person chiba:name=Person Form xlink:href=forms/person.xml xmlns:chiba=http://chiba.sourceforge.net/2001/09/xforms; xmlns:xforms=http://www.w3.org/2002/08/xforms/cr; xmlns:xlink=http://www.w3.org/1999/xlink;xforms:model xforms:id=model_0xforms:instance xforms:href=http://graphicresponsemedia.net:8080/family/xmldb/family/?person=p5; xforms:id=instance_0person