SVG, JPEG, PNG and Xvfb
Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. I'm running MacOS X so I installed Xfree86, including Xvfb and used the script submitted by someone on the list: if [ "$1" = "stop" ] ; then # kill off any framebuffer running, kill kill kill :-) kill -TERM `/sbin/pidof Xvfb` elif [ "$1"="start" -o "$1"="run" ] ; then # start up a virtual framebuffer for cocoon2's rendering Xvfb :1 -screen 0 320x240x24 fi I called the script xfb and ran it: phil% xfb start All looked good. There was a process Xvfb running. WooHoo. I then trashed the Tomcat work directory for cocoon and started up Tomcat, pointed it at cocoon and waited for the startup. All looked good. I selected the sample "scalable vector graphics - An example of a SVG file rendered to a PNG image. " The following image was produced: (it's been scaled down so as not to annoy, and make the email small enough to make it onto the list) attachment: test.jpg attachment: test.jpg To save you looking at it, the image is rendered the same way it was before running Xvfb - strangely. I'll move everything to aix and try again. Until the dependency problem is resolved, it may be a good idea to put a warning in the documentation that the svg2jpeg and svg2png functionality is limited to specific configurations. I mention this because we'd planned to provide a cocoon-based site to a company that hosts using NT (yes we know that's a stupid idea anyhow) however I'm assuming that there are going to be Xvfb issues under windows - If someone can enlighten me as to cocoon svg/jpeg/png served under windows it would be much appreciated. We only have one client that uses windows so this is not a major issue. Thanks in advance. Have fun, Phil
RE: Stylesheets Logicsheets
Bernie, 1) A Logicsheet is an XSP source file. A logicsheet defines a taglib, which is then used to provide more tags to be included in XML files 2) AStylesheet is a plain XSL file. Mind, a logicsheet is, basically, an XSL + Java file, hence the confusion... my habit is to have logicsheets with the extentsion XSP.XSL (like in mytaglib.xsp.xsl) and stylesheets with the XSL extension (like in mystylesheet.xsl). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bernie Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 5:52 AM To: [EMAIL PROTECTED] Subject: Stylesheets Logicsheets hi can anyone tell me the diff betw a logicsheet and a stylesheet? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stylesheets using Logicsheets
Brent, As far as I know, you can't do this directly, since the XSP generation has to be the first step in a pipeline (generation). Anyhow, what you can do is chaining two pipelines: 1) A pipeline which produces (via transform) an XML file with your tags (like header:loginButton/) embedded into it 2) A pipeline whose input is pipeline 1 and which has serverpages as the first step I know it sounds tricky... but this is the approach I'm using to insert static parameters (taken from an XML file) into XSP tags, and it works. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Brent L Johnson [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 9:04 PM To: Cocoon-Users Subject: Stylesheets using Logicsheets Can a stylesheet use tags from a custom logicsheet? I'm still having the problem with Cocoon generating a NumberFormatException for no apparent reason. To get around this, I'm keeping my HTML tags for the header in the stylesheet (by keeping it there instead of copying it into the logicsheet, I won't get the exception). Problem is, the header should look different depending on some Java logic (i.e. a logicsheet). Here's a sample of the top portion of my stylesheet... ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=header table width=760 border=0 cellpadding=0 cellspacing=0 tr td img src=/images/head_01.gif width=263 height=66 / /td tdheader:loginButton//td /xsl:template /xsl:stylesheet This generates a namespace error, of course. I noticed this and added my custom namespace for my header logicsheet and I no longer got the error. But, the stylesheet isn't actually making the header:loginButton call to my logicsheet. It's simply printing out header:loginButton/header:loginButton in the generated HTML. In my XML document I do have that logicsheet specified - heres a quick sample: ?xml version=1.0? ?cocoon-process type=xsp? ?xml-logicsheet href=aolSchool.xsl/? ?xml-logicsheet href=/common/header-new.xsl/? ?xml-logicsheet href=/common/rightbar.xsl/? ?cocoon-process type=xslt? ?xml-stylesheet href=/common/main2.xsl type=text/xsl? xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:rightbar=http://www.whatever.com/rightbar; xmlns:header=http://www.whatever.com/header; page titleTest Doc/title header/ content /content /page Is there a way I can accomplish this without having to put the logic in the XML doc? Thanks, - Brent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing Tomcat from C2
Hi, i am wondering if it is possible to access Tomcat specfic runtime classes from inside C2. What i want to do is to read to runtime Tomcats configuration from inside C2 . Anyone knows anything? best regards Max - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG, JPEG, PNG and Xvfb
Phil Blake wrote: Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. For Linux the SVG Java libraries (Apache Batik) as used in Cocoon 2 depend on a X display. As Linux can perfectly function without X-Windows this causes some problems for most Linux servers that don't have X-Windows installed. MS Windows and other GUI based os's don't have this problem. I'm running MacOS X so I installed Xfree86, including Xvfb and used the script submitted by someone on the list: AFAIK, MacOS X is a GUI operating system, so there should be no problems using the Batik libraries. if [ $1 = stop ] ; then # kill off any framebuffer running, kill kill kill :-) kill -TERM `/sbin/pidof Xvfb` elif [ $1=start -o $1=run ] ; then # start up a virtual framebuffer for cocoon2's rendering Xvfb :1 -screen 0 320x240x24 fi I called the script xfb and ran it: phil% xfb start All looked good. There was a process Xvfb running. WooHoo. I then trashed the Tomcat work directory for cocoon and started up Tomcat, pointed it at cocoon and waited for the startup. All looked good. I selected the sample scalable vector graphics - An example of a SVG file rendered to a PNG image. The following image was produced: (it's been scaled down so as not to annoy, and make the email small enough to make it onto the list) To save you looking at it, the image is rendered the same way it was before running Xvfb - strangely. This looks more like a problem with a stylesheet or with Batik itself. Regards, Martijn Bouterse - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with Html Generator
Thank's a lot for your interest ! You where right, as I read in the documentation the problem was related with my proxy configuration, so I try your solution. Unfortunalety I think I do something wrong: My proxy host is http://pinedo on port 80, so, I create the environment variable with value: TOMCAT_OPTS :-Dhttp.proxyhost=http://pinedo -Dhttp.proxyport=80 But the problem persist ¿Is the sintax correct? Thanks. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Sebastien Koechlin Enviado el: jueves, 18 de octubre de 2001 17:54 Para: [EMAIL PROTECTED] Asunto: Re: problems with Html Generator Please, do not post in HTML ! When I install Cocoon for the first time I didn't install the html generator, but now I need it so I install it. I get the file Tidy.jar and i put it on the lib's directory, but when i try to use it (even with the cocoon examples ), I get a `can't find file' message It's not a problem with HTMLGenerator, but with your server : java.net.UnknownHostException: www.yahoo.com The JVM can't resolv www.yahoo.com Are you using a proxy ? Did you declare it to the JVM ? if no, can you ping it ? Tomcat can be configured to work with a proxy server by specifying the following directives with the TOMCAT_OPTS system variable: -Dhttp.proxyhost=proxy_address -Dhttp.proxyport=proxy_port -- Sébastien Koechlin - IVision - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon?
Hi, I appologise in advance for posting to this mailing list, but I also think that the answer maybe of interest to the Cocoon community. What I am trying to do is to build a generic form within C2 that is defined in an XSP which is aggregated with another path that will contain the data which is to be plugged into the form, thereby allowing for improved form (UI) reuse across scenarios. In trying to do this, I need the ability to perform run-time XPath evaluation, rather than at programming time. I have found a Xalan extension function (luckily before I wanted to write my own :) that appears to do the trick. Its called xalan:evaluate() and takes an XPath expression as a parameter, which in turn contains an XPath expression, which is then evaluated and returned. I've read the docs, but can't get it to work. The docs say to use the namespace xmlns:xalan=http://xml.apache.org/xalan;. I'm calling the extension function in my xml2html transformation stylesheet as follows: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xalan=http://xml.apache.org/xalan; xmlns:zdam=zenark.com/zdam exclude-result-prefixes=xalan xsl:template ... ... xsl:choose xsl:when test=@bind-to xsl:attribute name=valuexsl:value-of select=xalan:evaluate(@bind-to)//xsl:attribute /xsl:when xsl:otherwisexsl:attribute name=valuexsl:value-of select=normalize-space()//xsl:attribute/xsl:otherwise /xsl:choose ... /xsl:template /xsl:stylesheet The problem is that evaluate() returns '', rather than the expected real value. The returned XPath expression (in @bind-to) is correct. Any thoughts or experiences? Thanks in advance, Adrian - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon?
Hi as long as i knwo you forgotten to define that the namespace xalan is an extension namespace. How to do that you have to read the Xalan documentation. Max -Original Message- From: Adrian Geissel [mailto:[EMAIL PROTECTED]] Sent: Freitag, 19. Oktober 2001 10:34 To: [EMAIL PROTECTED] Subject: [C2.0rc1] SLIGHTLY OFF TOPIC: Has anyone used Xalan extensions in Cocoon? Hi, I appologise in advance for posting to this mailing list, but I also think that the answer maybe of interest to the Cocoon community. What I am trying to do is to build a generic form within C2 that is defined in an XSP which is aggregated with another path that will contain the data which is to be plugged into the form, thereby allowing for improved form (UI) reuse across scenarios. In trying to do this, I need the ability to perform run-time XPath evaluation, rather than at programming time. I have found a Xalan extension function (luckily before I wanted to write my own :) that appears to do the trick. Its called xalan:evaluate() and takes an XPath expression as a parameter, which in turn contains an XPath expression, which is then evaluated and returned. I've read the docs, but can't get it to work. The docs say to use the namespace xmlns:xalan=http://xml.apache.org/xalan;. I'm calling the extension function in my xml2html transformation stylesheet as follows: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xalan=http://xml.apache.org/xalan; xmlns:zdam=zenark.com/zdam exclude-result-prefixes=xalan xsl:template ... ... xsl:choose xsl:when test=@bind-to xsl:attribute name=valuexsl:value-of select=xalan:evaluate(@bind-to)//xsl:attribute /xsl:when xsl:otherwisexsl:attribute name=valuexsl:value-of select=normalize-space()//xsl:attribute/xsl:otherwise /xsl:choose ... /xsl:template /xsl:stylesheet The problem is that evaluate() returns '', rather than the expected real value. The returned XPath expression (in @bind-to) is correct. Any thoughts or experiences? Thanks in advance, Adrian - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2 - JSPGenerator and jsp:include
Hi, I'm having some trouble working with the JSPGenerator. I'm using a JSP to generate the XML representation of an session resident object. However, because this object presents some recursive characteristics, I use the tag jsp:include. The JSP itself works properly. However, when I'm using this JSP as a generator for Cocoon, I've got the following error: I've looked at the source (both Tomcat and Cocoon) and it is obvious that it could not work. Indeed: In org.apache.cocoon.components.jsp.JSPEngineImpl, Cocoon wraps the request in a MyServletRequest implementing HttpServletRequest. However, when working with include, Tomcat expects a request of the class org.apache.tomcat.facade.HttpServletRequestFacade So it generates a ClassCastException. Any idea how to solve that or how to work around that? Maybe there is another solution than using the JSPGenerator but the object I want to render is create by a web application. So I've embedded Cocoon in that application and I pass the object I want to render to Cocoon within the session. I don't want to create an xml file and then call Cocoon because the application is aimed to be used by a lot of concurrent user and I prefer to work with objects in memory rather than written in a file. Thanks for help, Eric P.S.: I'm using Tomcat 3.2.3 and Cocoon 2 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session and xsl
If you look at the Java API for Cocoon, you'll notice that it has its own Session object (org.apache.cocoon.environment.Session), which does not inherit from or otherwise have much to do with javax.servlet.http.HttpSession other than the fact that they have many similar methods. (Actually, I didn't look carefully, but I think the only difference between the two sessions is that Cocoon does not include the deprecated methods from the original Java implementation.) I don't know if that helps at all... Quick links for javadoc: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/ http://xml.apache.org/cocoon2/apidocs/ Liam Morley -Original Message- From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 2:08 PM To: [EMAIL PROTECTED] Subject: RE: session and xsl Marty, I tried your suggestion, but it didn't work. Although cocoon is seeing a session, it does not appear to be the same one that Tomcat(?) created when the user logged in. I put a session.getId() call into my JSP page and also one in the XML file and both returned different values. Now, I assumed (and I know what that means!) that since Tomcat created the session when the user logged in, and Cocoon runs under Tomcat, that both would be the same. Not the case. Can anyone shed light on how these sessions are being defined? From looking at what process is serving the file (Tomcat=JSP, Cocoon=XML), it seems a new session ID value is created for each one. Does that sound right? Or, is the session ID related to where these files reside within a folder structure (webapps\myapp vs. webapps\cocoon) and each call to a different alias in apache starts a new session? I'm confused. I thought Tomcat was handling them all. Mark -Original Message- From: Marty McClelland [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: RE: session and xsl I use C1.8.2 and have the following code to access the session: xsp:logicHttpSession theUserSession = request.getSession(); String theLoginName = (String) theUserSession.getAttribute(loginName); /xsp:logic marty -Original Message- From: Mark S. Kent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 16, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: RE: session and xsl This is what I have in C1 in my XSP code: xsp:logic EmployeeData employeeData = null; try { employeeData = (EmployeeData)session.getAttribute( employee ); } catch( ClassCastException e ) {} Integer empID = null; if( employeeData != null ) { System.out.println( Data ID: + employeeData.getEmployee_id() ); empID = employeeData.getEmployee_id(); } else { System.out.println( Data ID: none ); empID = new Integer( -1 ); } /xsp:logic The line: employeeData = (EmployeeData)session.getAttribute( employee ); is exactly how I do it in my JSP pages. When I test for null on the employeeData object, however, it is always null. It may be a C1 limitation. We are looking at C2 because of the additional features. Is there a request object for the session variable? Currently I retrieve session variables as above and have only done requests for form/URL variables. Mark -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 16, 2001 1:35 PM To: [EMAIL PROTECTED]; Mark Kent Subject: Re: session and xsl On 16.Oct.2001 -- 09:14 AM, Mark S. Kent wrote: I also have an interest on retrieving session values in my XML file to help build the XML data. I thought that XSP would be able to read them as my JSP pages do since both run under Tomcat, but am having trouble seeing them from the XML document. Mark, accessing session attributes from XSP ist piece of cake :-) There's a logicsheet aka taglib for it. Otherwise use the request object and access the data through ordinary java. Chris, is the solution you mention below only available in C2? Which one of the two alternatives? Honestly, I don't know about C1, there might be a session taglib but passing parameters from a non existant sitemap won't do :-) From: Christian Haul [mailto:[EMAIL PROTECTED]] On 15.Oct.2001 -- 04:35 PM, Mohamed Ramzy wrote: hi all, i'm trying to read session variables through .xsl file, if you have any idea how to do that, please tell No way. At least from a stylesheet. Pass parameters from sitemap instead. For a taglib, just use session taglib within your taglib. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
[C2] Help: Unexpected bad XSP/Logicsheet behavior
Hi, My logicsheetprovides XSP support templates, for controllingthe structure of the generated XML. A typical template generates an XML fragment, including the local 'root' (top-level) element, attributes, content and child elements. The strange behavior is that my 'root' element is not being processed (in the example below, my:object/ is never created), but all subsequent attributes, content and child elements are processed as expected. I've looked at the XSPgenerated java file, which does not issue any SAX events relating to the creation of thefirst element, but everything else is there as expected. This logicsheet worked 'perfectly' in Cocoon 1.8.2, and I have made the appropriate namespace changes to C2 enable it. Does anyone know what's happening here? Thanks, Adrian === LOGICSHEET fragment xsl:template match="util:get-object" xsp:element name="my:object" xsp:logic { /* BEGIN: scope */ // mixture of Javacode and xsp:.../ tags } /* END: scope */ /xsp:logic /xsp:element/xsl:template ===XSP fragment xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:session="http://apache.org/xsp/session/2.0" xmlns:util="my.com/xsp/util" language="java" create-session="true" xmlns:my="my.com/my"my:data xsp:logic try { util:get-object !-- parameters omitted for clarity -- /util:get-object } catch(Exception ex) { System.out.println(ex.getMessage()); } /xsp:logic/my:data/xsp:page
Re: SVG, JPEG, PNG and Xvfb
On Fri, Oct 19, 2001 at 04:59:15PM +1000, Phil Blake wrote: Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. I'm running MacOS X so I installed Xfree86, including Xvfb and used the script submitted by someone on the list: if [ $1 = stop ] ; then # kill off any framebuffer running, kill kill kill :-) kill -TERM `/sbin/pidof Xvfb` elif [ $1=start -o $1=run ] ; then # start up a virtual framebuffer for cocoon2's rendering Xvfb :1 -screen 0 320x240x24 ^^ 320x240 is a rather miserable little framebuffer ;) Perhaps try increasing to 1024x768 or something. Just guessing. FYI, here's some Xvfb install notes I wrote for non-Cocoon stuff: http://newgate.socialchange.net.au/~jeff/docs/tomcat/Xvfb.html --Jeff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java 1.4 and Cocoon 2
Not sure if this is the reason, but I know that Batik (svg generator used by cocoon) won't work with Java 1.4 yet, and Batik is registered in the Sitemap. -Original Message- From: Torsten Knodt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 10:37 AM To: cocoon-users Subject: Java 1.4 and Cocoon 2 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, has someone made Cocoon 2rc1a working with Java 1.4 beta 2? Tomcat and jetspeed are working fine, only cocoon seems to fail with errors like this: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in /usr/lib/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. /tmp/tomcat/work/localhost/cocoon/org/apache/cocoon/www/sitemap_xmap.java:12 : Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7zukRvxZktkzSmiwRAmozAJsGwe5ZFh5PR3q9gAKINsxFjvEfqQCgli3N INpyBZXmH+Ir64s429qgccQ= =0GV7 -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java 1.4 and Cocoon 2
I Couldn't get it to work with Java 1.4, probably because Java 1.4 rte includes Jaxp Regards All Mark -Original Message- From: Madel,Kurt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 2:17 PM To: '[EMAIL PROTECTED]' Subject: RE: Java 1.4 and Cocoon 2 Not sure if this is the reason, but I know that Batik (svg generator used by cocoon) won't work with Java 1.4 yet, and Batik is registered in the Sitemap. -Original Message- From: Torsten Knodt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 10:37 AM To: cocoon-users Subject: Java 1.4 and Cocoon 2 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, has someone made Cocoon 2rc1a working with Java 1.4 beta 2? Tomcat and jetspeed are working fine, only cocoon seems to fail with errors like this: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in /usr/lib/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. /tmp/tomcat/work/localhost/cocoon/org/apache/cocoon/www/sitemap_xmap.java:12 : Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7zukRvxZktkzSmiwRAmozAJsGwe5ZFh5PR3q9gAKINsxFjvEfqQCgli3N INpyBZXmH+Ir64s429qgccQ= =0GV7 -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java 1.4 and Cocoon 2
I'm afraid that I don't why you got the message that you describe. But I'm am having no ploblem using Cocoon 2 with Java 1.4 beta 2. I am using Tomcat 4.0, JBoss 2.4.3 and Cocoon 2 on a windoze 2000 sp2 platform. KP Not sure if this is the reason, but I know that Batik (svg generator used by cocoon) won't work with Java 1.4 yet, and Batik is registered in the Sitemap. -Original Message- From: Torsten Knodt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 10:37 AM To: cocoon-users Subject: Java 1.4 and Cocoon 2 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, has someone made Cocoon 2rc1a working with Java 1.4 beta 2? Tomcat and jetspeed are working fine, only cocoon seems to fail with errors like this: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in /usr/lib/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. /tmp/tomcat/work/localhost/cocoon/org/apache/cocoon/www/sitemap_xmap.java:12 : Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7zukRvxZktkzSmiwRAmozAJsGwe5ZFh5PR3q9gAKINsxFjvEfqQCgli3N INpyBZXmH+Ir64s429qgccQ= =0GV7 -END PGP SIGNATURE- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone using Castor with Cocoon2
I would like to use Castor's data binding and pass its Marshalled xml to Cocoon2 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C1] Cocoon SQL vs ESQL
I have been struggling to get ESQL working... I had thought it was the database setup, but turns out that is OK (see below) - now I am stuck again. Following previous suggestions, I have tried to get an equivalent of the sample code shippped wiht Cocoon working. I could not find any ESQL to test, so I used the the SQL code instead - it worked! But the - as far as I can see - equivalent code in ESQL does not work. I hope someone with a sharp pair of eyes can see why the first sample would work, and the next one not?? Thanks! Derek !-- WORKING -- ?xml version=1.0? ?cocoon-process type=sql? page connectiondefs connection name=foo_connection driverorg.gjt.mm.mysql.Driver/driver dburljdbc:mysql://myhost.com/est/dburl usernameest/username passwordest/password /connection /connectiondefs query connection=foo_connection select * from computer /query mysqlSELECT * FROM computer/mysql /page !-- NOT WORKING??? -- ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet type=text/xsl href=one_computer.xsl? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:request=http://www.apache.org/1999/XSP/Request; page esql:connection esql:driverorg.gjt.mm.mysql.Driver/esql:driver esql:dburljdbc:mysql://myhost.com/est/esql:dburl esql:usernameest/esql:username esql:passwordest/esql:password esql:execute-query esql:querySELECT * FROM computer/esql:query esql:results esql:row-results computer systemesql:get-string column=System//system /computer /esql:row-results /esql:results esql:no-results computer systemNo computer/system /computer /esql:no-results /esql:execute-query /esql:connection mysqlSELECT * FROM computer/mysql /page /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone using Castor with Cocoon2
Hi, i'm using the following function to marshal a castor object into cocoon. /** * marshalls an object into cocoon * * @param obj an codeObject/code the Castor generated Object * @param map a codeMapping/code the Castor Mapping Object for the given object * @exception Exception if an error occurs */ private void marshal(Object obj,Mapping map) throws Exception{ Marshaller marshaller = new Marshaller(new DocumentHandlerAdapter(new EmbeddedXMLPipe(this.xmlConsumer))); marshaller.setMapping( map); marshaller.marshal(obj); } you can call this from an xsp-page to render your data. hth, frank - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request Generator examples
Hi Luca: I did something like this in my sitemap: map:match pattern=request map:generate type=request/ map:transform src=stylesheets/request.xsl/ map:serialize/ /map:match My request.xsl looks like this: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; xsl:template match=/ html head titleRequest Test/title /head body bgcolor=#ff h1Request Test/h1 xsl:apply-templates/ /body /html /xsl:template xsl:template match=request:requestHeaders h3Request Headers/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:requestParameters h3Request Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:configurationParameters h3Configuration Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:header lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template xsl:template match=request:parameter lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template /xsl:stylesheet Hope it helps. Lajos galatea.com Luca Morandini wrote: Folks, has any of you been able to use Request Generator ? I tried hard to extract parameters (say, the host name) from a request generator's result via XSL... to no avail: has anyone had more luck (or expertise) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reloading Cocoon2 / Custom Generator
Hello, i was wondering if it is possible to reload cocoon or a custom build generator after its been recompiled without restarting tomcat. If yes, i'd like to know how, and if not, then id like to know if theres another way to speed up the compiling / testing process somehow because always waiting about 30 seconds (restarting tomcat, reloading cocoon..) after changing the java code slows down my dev. cycle quite a bit. Tanks a lot, if you can help, you make my life easiert ;) martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where is context.setAttribute?
How can we set context attributes with cocoon2? Why did the authors implement getAttribute function but not the setAttribute? ByeBye, Paolo Scaffardi AIRVENT SAM S.p.A. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reloading Cocoon2 / Custom Generator
all classes are loaded by a classloader, by creating your own classloader you can nullify it after use and the class will have to load from disk again, included is a example of a custom classloader, here is an example of how to use it: SimpleClassLoader sc = new SimpleClassLoader( /opt/java/classes ); try { somecoolclass cool = (somecoolclass)(sc.loadClass( somecoolclass.class )).newInstance(); cooo.doCoolThings(); } catch (Exception e) { System.out.println( aarr, classloader failed = + e.getMessage() ); e.printStackTrace(); } sc = null; so you will have to wrap the functionality you want to be dynamicaly reloaded in the somecoolclass.class and create a generator wrapper that uses the classloader to load your class and then kill the classloader at the end of each execution run. mvh karl oie -Original Message- From: Martin Kavalar [mailto:[EMAIL PROTECTED]] Sent: 19. oktober 2001 16:50 To: Cocoon Mailing List Subject: Reloading Cocoon2 / Custom Generator Hello, i was wondering if it is possible to reload cocoon or a custom build generator after its been recompiled without restarting tomcat. If yes, i'd like to know how, and if not, then id like to know if theres another way to speed up the compiling / testing process somehow because always waiting about 30 seconds (restarting tomcat, reloading cocoon..) after changing the java code slows down my dev. cycle quite a bit. Tanks a lot, if you can help, you make my life easiert ;) martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] SimpleClassLoader.java - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Anyone using Castor with Cocoon2
ok, stupid question, but I need a little help setting things up. Can you just place the castor jar in your class path, and then make the neccessary include in your xsp page for the marshal function? Sorry to be a bother, but I think this kind of info would really help out Cocoon2 novices, like myself, that are trying to understand in the context of other tools like Castor. thanks -Original Message- From: Frank Taffelt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 9:32 AM To: [EMAIL PROTECTED] Subject: Re: Anyone using Castor with Cocoon2 Hi, i'm using the following function to marshal a castor object into cocoon. /** * marshalls an object into cocoon * * @param obj an codeObject/code the Castor generated Object * @param map a codeMapping/code the Castor Mapping Object for the given object * @exception Exception if an error occurs */ private void marshal(Object obj,Mapping map) throws Exception{ Marshaller marshaller = new Marshaller(new DocumentHandlerAdapter(new EmbeddedXMLPipe(this.xmlConsumer))); marshaller.setMapping( map); marshaller.marshal(obj); } you can call this from an xsp-page to render your data. hth, frank - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2: Where to put xml/xsl files to?
Hi Alexander, You have to configure the sitemap to pick up your files. The cTwIG idiots guide has some basic examples. You can find it at http://www.pigbite.co.uk/ctwig/index.html. HTH. Jez [EMAIL PROTECTED] -Original Message- From: Alexander Schatten [mailto:[EMAIL PROTECTED]] Sent: 18 October 2001 10:32 To: cocoon-users Subject: Cocoon 2: Where to put xml/xsl files to? I used Cocoon 1 to publish XML files using xsl. this worked fine. now I installed Tomcat 4, Cocoon 2 as war in tomcat. basically works (on windows, not on linux...). however: I have no idea where to put the xml/xsl files to. I tried to use the webapps/cocoon directory as in C1, but C2 doesnt find the files?? any ideas? this seems to be a very basic problem. the C2 documentation is very long, but no short introduction covering these basic tasks; at least I didnt find them. thank you for comments in advance Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOW to transform HTML file from XSP file
Hi Sergi, I'm sorry it took a while for me to respond but I've been really busy. I think I have solved the problem - it's the namespace you are using in the xsl file for the stylesheets. Instead of xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" try xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" It worked for me. Regards Jeremy -Original Message-From: sergi [mailto:[EMAIL PROTECTED]]Sent: 18 October 2001 12:24To: [EMAIL PROTECTED]Subject: RE: HOW to transform HTML file from XSP file ok ;-) -Original Message-From: Jeremy Aston [mailto:[EMAIL PROTECTED]]Sent: Thursday, October 18, 2001 10:19 AMTo: sergiSubject: RE: HOW to transform HTML file from XSP file Hi Sergi, I've not had time to do it yet but will try this morning (thats UK time btw - not sure where you are). Jeremy sergi [EMAIL PROTECTED] wrote: Jeremy, what happened? did you look at files i sent u! -Original Message-From: Jeremy Aston [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 17, 2001 3:00 PMTo: sergiSubject: RE: HOW to transform HTML file from XSP file Sergi, Your xsl will need to transform it then. Send me the offending xml/xsl any logicsheets and i'll have a butchers. jez sergi [EMAIL PROTECTED] wrote: no, Jeremy, i need to have html output... i already have xml output (from xsp) i need to have that data from xml in table-like html output... -Original Message-From: Jeremy Aston [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 17, 2001 1:53 PMTo: [EMAIL PROTECTED]Subject: Re: HOW to transform HTML file from XSP file Hi Sergi, I'm not sure if I understand your problem fully but changing the serialize type from html to xml will give you an xml output. Is that what you need? Jeremy sergi [EMAIL PROTECTED] wrote: hi,i have problem with transforming xsp file in html format... it works if iwant to transform xsp into xml, but when i want to transform into html, igot my xsl... what i already did is thischange pipeline in my sub-sitemap, like this:it is, obviously, an error, but i don't know what exactly to do!!!could anyone help???-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]> Nokia Game is on again. Click here to join the new all media adventure before November 3rd. Nokia Game is on again. Click here to join the new all media adventure before November 3rd. Nokia Game is on again. Click here to join the new all media adventure before November 3rd.
Re: Deploying xml pages/resources
Hi Allan: I'm not sure what you are trying to do. If it is simply to process XML files using your old XSLs, look at the examples in the cocoon sitemap.xmap (like the hello.html one). All you have to do is add a similar entry for your own stuff. Then put your files under the cocoon webapp (according to the locations you specified in the sitemap entry) and start testing. If you want to use Cocoon2 in another web application, you'd essentially have to replicate the bulk of what's in your cocoon web app. I'm putting an entry in my Cocoon2 Tips Tricks Flashguide (http://www.galatea.com/flashguides/cocoon-tips-2.xml) describing how I've done this. Check back early next week if you are interested. If I've missed the intent of your question, let me know. Lajos galatea.com Allan Kamau wrote: I've installed C2 successfully now I'd like to know how I can be able to have cocoon serve my xml pages. In C1.x we could instruct TC3 to forward all .xml (and so on) to cocoon.jar. How is it done in C2, does it involve use of site map? Perhaps Lajos Moczar you could help.. Thank you. Allan. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2.0: connection pool/ datasource problem [interbase]
I'm having a similar problem with pooling setup for Interbase. I've used the Cocoon2 sample for ESQL to edit my page, sitemap, etc. but it still won't work. I've defined the datasource cl (that's C and L -- not C and ONE) and in cocoon.xconf as: datasources jdbc name=cl pool-controller min=5 max=10/ dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/dburl useruser/user passwordpass/password /jdbc /datasources and left the default cocoon2 datasource of personnel (so the C2 samples still work): datasources jdbc name=personnel pool-controller min=5 max=10/ dburljdbc:hsqldb:hsql://localhost:9002/dburl usersa/user password/password /jdbc /datasources In my XSP page I have: ?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 pagetitleEmployees Working Report/pagetitle esql:connection esql:poolcl/esql:pool esql:execute-query esql:queryselect * from employee/esql:query esql:results esql:row-results employee lastnameesql:get-string column=last_name//lastname firstnameesql:get-string column=first_name//firstname empidesql:get-string column=employee_id//empid esql:no-results userNo one is working/user /esql:no-results /employee /esql:row-results /esql:results /esql:execute-query /esql:connection /page /xsp:page I am getting this error in my cocoon.log file when my XSP page tries to use the pool: ExcaliburComponentSelector: datasources: ComponentSelector could not find the component for hint: cl working4_xsp: Could not get the datasource org.apache.avalon.framework.component.ComponentException: datasources: ComponentSelector could not find the component for hint: cl If I change the XSP page to use these lines in place of the esql:pool lines, it works: esql:driverinterbase.interclient.Driver/esql:driver esql:dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/esql :dburl esql:usernameuser/esql:username esql:passwordpass/esql:password Russell, did you get yours to work? Thanks! Mark -Original Message- From: Russell Castagnaro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 16, 2001 12:21 PM To: [EMAIL PROTECTED] Subject: C2.0: connection pool/ datasource problem Aloha folks, I'm having a strange problem with C2 for All db connections I've tried using mysql and oracle and they both have the same problem.. I'm preloading the driver classes and I've tested my db connections. The error I get when using the esql taglib is: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:187) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:214) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:364) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40043E(sitemap_xmap.java:57 40) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2593) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2205) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) Why wouldn't any connections be available? I'm using: datasources jdbc name=fun pool-controller min=5 max=10 oradb=true/ dburljdbc:oracle:thin:@localhost:1521:ORCL/dburl userscott/user passwordtiger/password /jdbc and ?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 titleA Database Driven XSP Page/title content esql:connection esql:poolfun/esql:pool esql:execute-query esql:querySelect * from EMP/esql:query esql:results esql:row-results paraesql:get-string column=ename//para esql:get-columns/ /esql:row-results /esql:results /esql:execute-query /esql:connection /content /page /xsp:page /xsp:page any ideas?? -- Best regards, Russell mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems during cocoon installation
Our configuration is: Linux redhat 6.2 Apache 1.3.20 jakarta-tomcat-3.2.3 Cocoon 2 When we try to start cocoon2 for the first time the browser shows this message "the sitemap handler's sitemap is not available". Looking for the reason in the cocoon.log.000.. file I can find these two errors (and errors stacks): --1 ERROR (2001-10-19) 15:23.02:110 [cocoon ] (/cocoon/) Thread-17/Handler: Error compiling sitemap java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:59) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58) at sun.awt.motif.MToolkit.clinit(MToolkit.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:512) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503) at java.awt.SystemColor.updateSystemColors(SystemColor.java:342) at java.awt.SystemColor.clinit(SystemColor.java:335) at org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27) at org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75) at org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMap.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:32) at org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.java:79) at org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation.java:59) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory.java:59) at org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44) at org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:46) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown Source) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown Source) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(Unknown Source) at org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:91) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:231) at org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:1412) at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:829) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown Source) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown Source) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:143) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:348) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:183) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:484) --2 ERROR (2001-10-19) 15:51.46:397 [cocoon ] (/cocoon/) Thread-17/Handler: Error compiling sitemap java.lang.NoClassDefFoundError at org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory.java:59) at org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44) at org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:46) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown Source) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown Source) at
Re[2]: C2.0: connection pool/ datasource problem [interbase]
Hello Mark, Mine did start working when I changed the classes12.zip file to classes12.jar. I guess the class loader only loads jars. Have you confirmed the the url works and the Driver class is loaded? Try an XSP page that loads the driver explicitly to confirm... Friday, October 19, 2001, 6:41:16 AM, you wrote: MSK I'm having a similar problem with pooling setup for Interbase. I've used MSK the Cocoon2 sample for ESQL to edit my page, sitemap, etc. but it still MSK won't work. MSK I've defined the datasource cl (that's C and L -- not C and ONE) and in MSK cocoon.xconf as: MSK datasources MSK jdbc name=cl MSK pool-controller min=5 max=10/ MSK dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/dburl MSK useruser/user MSK passwordpass/password MSK /jdbc MSK /datasources MSK and left the default cocoon2 datasource of personnel (so the C2 samples MSK still work): MSK datasources MSK jdbc name=personnel MSK pool-controller min=5 max=10/ MSK dburljdbc:hsqldb:hsql://localhost:9002/dburl MSK usersa/user MSK password/password MSK /jdbc MSK /datasources MSK In my XSP page I have: MSK ?xml version=1.0 encoding=ISO-8859-1? MSK xsp:page MSK language=java MSK xmlns:xsp=http://apache.org/xsp; MSK xmlns:esql=http://apache.org/cocoon/SQL/v2; MSK page MSK pagetitleEmployees Working Report/pagetitle MSK esql:connection MSK esql:poolcl/esql:pool MSK esql:execute-query MSK esql:queryselect * from employee/esql:query MSK esql:results MSK esql:row-results MSK employee MSK lastnameesql:get-string column=last_name//lastname MSK firstnameesql:get-string MSK column=first_name//firstname MSK empidesql:get-string MSK column=employee_id//empid MSK esql:no-results MSK userNo one is working/user MSK /esql:no-results MSK /employee MSK /esql:row-results MSK /esql:results MSK /esql:execute-query MSK /esql:connection MSK /page MSK /xsp:page MSK I am getting this error in my cocoon.log file when my XSP page tries to use MSK the pool: MSK ExcaliburComponentSelector: datasources: ComponentSelector could not find MSK the component for hint: cl MSK working4_xsp: Could not get the datasource MSK org.apache.avalon.framework.component.ComponentException: datasources: MSK ComponentSelector could not find the component for hint: cl MSK If I change the XSP page to use these lines in place of the esql:pool MSK lines, it works: MSK esql:driverinterbase.interclient.Driver/esql:driver MSK esql:dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/esql :dburl MSK esql:usernameuser/esql:username MSK esql:passwordpass/esql:password MSK Russell, did you get yours to work? MSK Thanks! MSK Mark MSK -Original Message- MSK From: Russell Castagnaro [mailto:[EMAIL PROTECTED]] MSK Sent: Tuesday, October 16, 2001 12:21 PM MSK To: [EMAIL PROTECTED] MSK Subject: C2.0: connection pool/ datasource problem MSK Aloha folks, MSK I'm having a strange problem with C2 for All db connections MSK I've tried using mysql and oracle and they both have the same MSK problem.. MSK I'm preloading the driver classes and I've tested my db connections. MSK The error I get when using the esql taglib is: MSK org.apache.cocoon.ProcessingException: Exception in MSK ServerPagesGenerator.generate(): MSK java.lang.RuntimeException: Could not get the datasource MSK java.sql.SQLException: MSK There are no connections in the pool, check your settings. MSK at MSK org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera MSK tor.java:187) MSK at MSK org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv MSK entPipeline.java:214) MSK at MSK org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS MSK treamPipeline.java:364) MSK at MSK org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40043E(sitemap_xmap.java:57 MSK 40) MSK at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2593) MSK at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2205) MSK at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) MSK Why wouldn't any connections be available? MSK I'm using: MSK datasources MSK jdbc name=fun MSK pool-controller min=5 max=10 oradb=true/ MSK dburljdbc:oracle:thin:@localhost:1521:ORCL/dburl MSK userscott/user MSK passwordtiger/password MSK /jdbc MSK and MSK ?xml version=1.0 encoding=ISO-8859-1? MSK xsp:page MSK language=java MSK xmlns:xsp=http://apache.org/xsp; MSK xmlns:esql=http://apache.org/cocoon/SQL/v2; MSK page MSKtitleA Database Driven XSP Page/title MSKcontent MSK
Re: [C1] Cocoon SQL vs ESQL
You don't say in what way the code is not working; do you get an exception, other error message, or just no data? If the latter, are you sure your XSL stylesheet matches the structure of the XML you are creating? -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: [C1] Cocoon SQL vs ESQL I have been struggling to get ESQL working... I had thought it was the database setup, but turns out that is OK (see below) - now I am stuck again. Following previous suggestions, I have tried to get an equivalent of the sample code shippped wiht Cocoon working. I could not find any ESQL to test, so I used the the SQL code instead - it worked! But the - as far as I can see - equivalent code in ESQL does not work. I hope someone with a sharp pair of eyes can see why the first sample would work, and the next one not?? Thanks! Derek !-- WORKING -- ?xml version=1.0? ?cocoon-process type=sql? page connectiondefs connection name=foo_connection driverorg.gjt.mm.mysql.Driver/driver dburljdbc:mysql://myhost.com/est/dburl usernameest/username passwordest/password /connection /connectiondefs query connection=foo_connection select * from computer /query mysqlSELECT * FROM computer/mysql /page !-- NOT WORKING??? -- ?xml version=1.0? ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet type=text/xsl href=one_computer.xsl? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:request=http://www.apache.org/1999/XSP/Request; page esql:connection esql:driverorg.gjt.mm.mysql.Driver/esql:driver esql:dburljdbc:mysql://myhost.com/est/esql:dburl esql:usernameest/esql:username esql:passwordest/esql:password esql:execute-query esql:querySELECT * FROM computer/esql:query esql:results esql:row-results computer systemesql:get-string column=System//system /computer /esql:row-results /esql:results esql:no-results computer systemNo computer/system /computer /esql:no-results /esql:execute-query /esql:connection mysqlSELECT * FROM computer/mysql /page /xsp:page - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: [C2] Accessing CLOBs as Documents
Hello Marty, Hmm.. So ar you saying that if my clobs didn't have the ?xml version=1.0 encoding=UTF-8? then get-xml would work? When I tried: esql:get-xml column=doc_content/ It didn't work, but perhaps that is because it is a document. Thursday, October 18, 2001, 7:13:50 AM, you wrote: MM I have a similar application - but the clob is an xml fragment ( meaning MM it doesn't have processing instruction tags ). So I can use get-xml MM instead of the get-ascii you use. Then I can access data in the xml MM fragment with the XSL stylesheet. MM marty -Original Message- From: Russell Castagnaro [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: [C2] Accessing CLOBs as Documents Hello cocoon-users, I've got a problem. I have a table that has a few fields and a clob in it. I want to use the esql taglibs or SQLTransfromer to access this as a document. The column 'doc_content' is currently I'm using xml like this: ?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 titleA Database XML DOC Page/title content esql:connection esql:poolfun/esql:pool esql:execute-query esql:querySelect * from XML_DOC where doc_id in (select max(doc_id) from xml_doc) /esql:query esql:results esql:row-results doc_idesql:get-string column=doc_id//doc_id doc_contentesql:get-ascii column=doc_content//doc_content esql:get-columns/ /esql:row-results /esql:results /esql:execute-query /esql:connection /content /page /xsp:page the 'doc_content' field' is returned escaped out: doc_contentlt;?xml version=1.0?gt; lt;Page name=Direct Donationgt; lt;DefaultRootgt;/templates/seattletimes/lt;/DefaultRootgt; lt;Content-Listgt; lt;Content type=include handleError=falsegt;header.jsplt;/Contentgt; lt;MainContent type=include handleError=truegt;donation2.jsplt;/MainContentgt; lt;Content type=include handleError=falsegt;footer.jsplt;/Contentgt; lt;/Content-Listgt; lt;Errorgt;error2.jsplt;/Errorgt; lt;/Pagegt;/doc_content Is there any way to have this content integrated into the document? Thanks, rrc -- Best regards, Russell mailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] MM - MM Please check that your question has not already been answered in the MM FAQ before posting. http://xml.apache.org/cocoon/faqs.html MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Russellmailto:[EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request Generator examples
Lajos, thanks for you reply. Actually, my error was not putting the namespace tag request: in front of my XPatch elements. Since I've put it into the stylesheet header I, wrongly, supposed it ot be redundant. Hence, I've transformed: xsl:template name=get-request-parameter xsl:param name=name/ xsl:value-of select=/page/all-parameters/request/requestParameters/parameter[@name=$name ]/value/ /xsl:template which didn't work, to: xsl:template name=get-request-parameter xsl:param name=name/ xsl:value-of select=/page/all-parameters/request:request/request:requestParameters/reque st:parameter[@name=$name]/request:value/ /xsl:template which works :) Thanks again, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: Re: Request Generator examples Hi Luca: I did something like this in my sitemap: map:match pattern=request map:generate type=request/ map:transform src=stylesheets/request.xsl/ map:serialize/ /map:match My request.xsl looks like this: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:request=http://xml.apache.org/cocoon/requestgenerator/2.0; xsl:template match=/ html head titleRequest Test/title /head body bgcolor=#ff h1Request Test/h1 xsl:apply-templates/ /body /html /xsl:template xsl:template match=request:requestHeaders h3Request Headers/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:requestParameters h3Request Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:configurationParameters h3Configuration Parameters/h3 ul xsl:apply-templates/ /ul br/ /xsl:template xsl:template match=request:header lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template xsl:template match=request:parameter lixsl:value-of select=@name/ = xsl:apply-templates//li /xsl:template /xsl:stylesheet Hope it helps. Lajos galatea.com Luca Morandini wrote: Folks, has any of you been able to use Request Generator ? I tried hard to extract parameters (say, the host name) from a request generator's result via XSL... to no avail: has anyone had more luck (or expertise) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] +39 0744 598 51Office +39 335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Custom Component in Cocoon2
Hi, I have made custom Component and trying to access it from XSP file. It seems that it passes OK all main steps of composition/configuration/initialization, but somehow at the end I getting the next exception: org.apache.avalon.framework.component.ComponentException: Could not access the Component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Unkno wn Source) -- Why ? It seems that it found it ? at org.apache.cocoon.www.xsp.messages_xsp.generate(messages_xsp.java:278) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:175) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:214) ... thats the way how I look for it in XSP file: com.gwvas.manager.Manager myComponent = (com.gwvas.manager.Manager) manager.lookup(com.gwvas.manager.Manager); thats the way how I defined it in cocoon.xconf component role=com.gwvas.manager.Manager class=com.gwvas.manager.DBCoreManager dbpooldocuments/dbpool /component Component itself is attached to this email... Any ideas? Thanks, alex DBCoreManager.java - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Example With Cocoon2
I have the latest and the 2.2b release build of Cocoon2. The JSP example the comes with the release that uses the JspGenerator doesn't work. I have tried it on Windows 2000 with Tomcat4.0 and RedHat Linux with Tomcat4.0 Is there something wrong with the example or do I not have something configured correctly? Best Regards, Earl Bingham _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Aggregate and root elements
Hi all .. I'm trying to do, with cocoon 2rc1, something like this : aggregate some contents, between these there are some which are themself aggregated, these are boxes on the right of my page, and some of them are static and common for all the site, some others are specific to a certain path, some others are based on other parameters. The boxes are in some files, some of this contain only one box, some others contain more that one box. So the structure of this XMl files is like this : boxes box id=1234 titleCiao/title bodyThis is the body of the box/body /box box id=5678 titleCiao/title bodyThis is the body of the box/body /box /boxes When i aggregate them, i can add a root element to the entire aggregation, add a root element to every single aggregated file, but cannot remove the root boxes element in each file to obtain a plain box list. Is there a way to do it ? to remove the root element of an aggregated document? Thanks, ciao, Simone Gianni - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reloading Cocoon2 / Custom Generator
I have a jar with all the classes my generator employs in it. Is there no way to get cocoon to reload every class that has changed from disk in this jar? Karl Oie wrote: all classes are loaded by a classloader, by creating your own classloader you can nullify it after use and the class will have to load from disk again, included is a example of a custom classloader, here is an example of how to use it: SimpleClassLoader sc = new SimpleClassLoader( /opt/java/classes ); try { somecoolclass cool = (somecoolclass)(sc.loadClass( somecoolclass.class )).newInstance(); cooo.doCoolThings(); } catch (Exception e) { System.out.println( aarr, classloader failed = + e.getMessage() ); e.printStackTrace(); } sc = null; so you will have to wrap the functionality you want to be dynamicaly reloaded in the somecoolclass.class and create a generator wrapper that uses the classloader to load your class and then kill the classloader at the end of each execution run. mvh karl oie -Original Message- From: Martin Kavalar [mailto:[EMAIL PROTECTED]] Sent: 19. oktober 2001 16:50 To: Cocoon Mailing List Subject: Reloading Cocoon2 / Custom Generator Hello, i was wondering if it is possible to reload cocoon or a custom build generator after its been recompiled without restarting tomcat. If yes, i'd like to know how, and if not, then id like to know if theres another way to speed up the compiling / testing process somehow because always waiting about 30 seconds (restarting tomcat, reloading cocoon..) after changing the java code slows down my dev. cycle quite a bit. Tanks a lot, if you can help, you make my life easiert ;) martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JUnit Testing Actions with Logging...
Hello everyone, In Cocoon2 has anyone successfully configured a JUnit test case that will run an Action (or any other class) that has logging method calls in it? For example, I have an action that I am able to Unit test with out any problem until I add the following (line 45): getLogger().debug(CheckBoxAggregateAction: parameter useCheckedValue = + params.getParameter(useCheckedValue, FALSE) ); After adding this line, my JUnit tests fail with the following exception: java.lang.NullPointerException at com.test.acting.CheckBoxAggregateAction.act(CheckBoxAggregateAction.java:45) at com.test.acting.test.UnitTest_CheckboxAggregateAction.testUseCheckedValue(Un itTest_CheckboxAggregateAction.java:68) Apparently this is failing because I can't get a Logger. I don't want to create a logger in the Action and I can run the action successfully within the Cocoon2 Framework. How do I setup my TestCase to create a logger so that my Unit Tests will work? Thanks in advance, Aaron - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]