Re: C2.0.3 silently ignoring exceptions
Christopher Painter-Wakefield wrote: Since we upgraded to Cocoon 2.0.3, we've been experiencing a very annoying problem, which is that Cocoon seems to silently handle all exceptions. I've tested it now with a couple of exceptions types: RuntimeExceptions (thrown by the ESQL logicsheet) and NullPointerExceptions. The behavior is that we actually get back a page styled by our stylesheet, but with no data. Under C2.0.2, we'd get back a Cocoon error page complete with stacktrace. What's going on? Dunno :-/ Have you tried outputting the xml of teh xsp and error without other steps (remove all xslt also in handle-errors and put the xml serializer)? What do you get? I looked at the new web.xml init-param manage-exceptions, but changing it to false made things even worse - then I wouldn't even get XSP java compile error messages, just a generic internal server error message. manage-exceptions=true should make Cocoon handle the exceptions, while =false it gives them to the servlet engine. This problem (I won't say bug, in case it is something we've done!) is very detrimental to development, since we have to go look in the logs to find out we got an exception. Any help would be appreciated! Please send us the page that is giving you problems, along with the relevant log snippets, and anything that might help us to understand the problem. Thank you. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to encode ISO-8859-1 characters into the Database?
I am using PostgreSQL 7.2.1 If I store a string value, like Olé in the Database without using Cocoon. I can get it back. Without any problem. It is stored correctly. But, In Cocoon 2.03 (Tomcat 4.1.9) I need to store values to the Database like Olé. I saw that the Cocoon manipulate the data like UTF-8 and not in the code ISO-8859-1. How I can change this feature to make Cocoon work in ISO-8859-1 code? Regards, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing mysql JDBC Driver
At 18.51 28/08/2002 +0200, you wrote: I just dropped it into the lib folder. My setup in web.xml and cocoon.xconf are like Jermey Aston desribed in his reply (only difference are the classnames for connector/j). OK I dropped the mysql-connector-java-3.0.0-beta-bin.jar file ( I did not rename it) into my cocoon/WEB-INF/lib folder and add the classname com.mysql.jdbc.Driver to the web.xml file. Cocoon starts up, but in the access.log I got a java exeption ... Try dropping it $CATALINA_HOME/common/lib, that seems to work for some setups. No if a drop the mysql-connector-java-3.0.0-beta-bin.jar file here tomcat will not start. Is there something else that could be wrong ? May be a Java classpath ? The configuration of tomcat ( even if all the examples/applications of tomcat worked fine) ? Cocoon (here also no problems with the standard installation and given examples ). May be some conflict with other drivers. P.ex. I got the jdbc interbase driver in my classpath ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing mysql JDBC Driver
If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib. I got exactly all this. The only point is that there a still the standard driver in my installation. 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 !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- org.gjt.mm.mysql.Driver /param-value /init-param my cocoon.xconf: datasources jdbc logger=core.datasources.personnel name=personnel !-- If you have an Oracle database, and are using the the pool-controller below, you should add the attribute oradb and set it to true. pool-controller min=5 max=10 oradb=true/ That way the test to see if the server has disconnected the JdbcConnection will function properly. -- pool-controller max=10 min=5/ !-- If you need to ensure an autocommit is set to true or false, then create the auto-commit element below. auto-commitfalse/auto-commit The default is true. -- dburljdbc:hsqldb:hsql://localhost:9002/dburl usersa/user password/ /jdbc !-- my mysql driver -- jdbc name=mysql pool-controller max=10 min=5/ dburljdbc:mysql://localhost/test/dburl userroot/user password/password /jdbc /datasources Could there be another problem ? At 16.37 28/08/2002 +0100, you wrote: Hi Jessica, You should have something like this in web.xml init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver /param-value /init-param and something like this in cocoon.xconf datasources jdbc name=mysqlds pool-controller min=5 max=10/ dburljdbc:mysql://127.0.0.1/databasename/dburl userroot/user password/password /jdbc /datasources If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib. Jez - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying cocoon application on IBM Websphere under Z/OS
Hi! Im evaluating Cocoon for using it as presentation frontend in a IBM Websphere environment. The target platform should be WAS 5.0 running on Z/OS. Im rather concerned about the FOP/SVG Batik X-Server issue. As you can imagine no X-Server will be availabe under Z/OS, installing any AWT replacement is also not an option. Is there a way to use Cocoon within this environment or should i stick to struts ? Any insightfull comments would be appreciated! cheers, gernot.--DI Gernot Kollermailto:[EMAIL PROTECTED]phone:+43-676-340 55 52Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
RE: Deploying cocoon application on IBM Websphere under Z/OS
Title: Message If don't need neither FOPnor Barik then you can simply remove all the related entries from your sitemap and remove all the libraries and components from Cocoon. Also, take a look at the Cocoon FAQs, you'll find some answers to your questions. -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message-From: Gernot Koller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 12:21 PMTo: [EMAIL PROTECTED]Subject: Deploying cocoon application on IBM Websphere under Z/OS Hi! Im evaluating Cocoon for using it as presentation frontend in a IBM Websphere environment. The target platform should be WAS 5.0 running on Z/OS. Im rather concerned about the FOP/SVG Batik X-Server issue. As you can imagine no X-Server will be availabe under Z/OS, installing any AWT replacement is also not an option. Is there a way to use Cocoon within this environment or should i stick to struts ? Any insightfull comments would be appreciated! cheers, gernot.--DI Gernot Kollermailto:[EMAIL PROTECTED]phone:+43-676-340 55 52 Do You Yahoo!?Yahoo! Finance - Get real-time stock quotes
Cocoon and ActiveX
How do I set up the pipeline that reads my .cab to be able to include an activeX in the final html page ? It does not show up yet. I don't know which mime type to setup... Thanks, with C 2.0.3, jdk 1.3.1. Barbara - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2.0.2 - 2.0.3
Hi !! Thanks a lot for this explanation... it realy helped me. Remember : I worked with Tomcat 4.0.4, JDK 1.3.1_03 and Cocoon2.0.2 under W2000. I want to use the Cocoon2.0.3 version. I installed it as describe in the Installing Apache Cocoon page. I have now another problem... and the message: type fatal message Generator already set. You can only select one Generator (file) description org.apache.cocoon.ProcessingException: Generator already set. You can only select one Generator (file) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Generator already set. You can only select one Generator (file) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setGenerator (AbstractEventPipeline.java:135) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setGenerator( CachingEventPipeline.java:117) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.matchN10564(H:\j akarta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\org/ap ache/cocoon/www/file_/H_/transrapide\sitemap_xmap.java:3798) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.process(H:\jakar ta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\org/apache /cocoon/www/file_/H_/transrapide\sitemap_xmap.java:1087) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.process(H:\jakar ta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\org/apache /cocoon/www/file_/H_/transrapide\sitemap_xmap.java:782) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) [...] request-uri /cocoon/transrapide/internet/espaceclient/espaceclient.info path-info transrapide/internet/espaceclient/espaceclient.info It appears as I use this part of my sitemap (with the request uri internet/espaceclient/test.bienvenue.acces and no session information): map:match pattern=*/*/*.*.* !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=descriptors/params.xml/ map:parameter name=validate value=identifiant,nom,prenom,id,titre/ !-- generate protected content -- map:generate session=true type=serverpages src=logic/{../2}/{../3}.xsp map:parameter name=lid value={id}/ /map:generate map:transform src=stylesheets/{../1}/{../5}.xsl map:parameter name=xml-file value=../../documents/{../2}/{../4}.xml/ map:parameter name=media value={../1}/ map:parameter name=section value={../2}/ map:parameter name=css-stylesheet value=styles.css/ map:parameter name=css-menu value=menu-{../1}.css/ map:parameter name=toc-file value=../../documents/toc.xml/ map:parameter name=base-url value=/cocoon/transrapide/ map:parameter name=req-page value={../3}.{../4}.{../5}/ /map:transform map:transform src=stylesheets/{../1}/menupage.xsl map:parameter name=titre value={titre}/ map:parameter name=prenom value={prenom}/ map:parameter name=nom value={nom}/ map:parameter name=id value={id}/ map:parameter name=section value={../2}/ map:parameter name=toc-file value=../../documents/toc.xml/ map:parameter name=css-stylesheet value=styles.css/ map:parameter name=css-menu value=menu-{../1}.css/ map:parameter name=base-url value=/cocoon/transrapide/ map:parameter name=barre-logo value=../../documents/logo.xml/ map:parameter name=request-url value={../3}.{../4}/ map:parameter name=media value={../1}/ /map:transform map:serialize session=true/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=espaceclient.info/ /map:match that use the redirect part and this other part of the sitemap: map:match pattern=internet/espaceclient/espaceclient.info map:generate src=documents/espaceclient/login.xml/ map:transform src=stylesheets/internet/info2.xsl map:parameter name=section value=espaceclient/ map:parameter name=base-url value=/cocoon/transrapide/ /map:transform map:call resource=InternetMenuPage map:parameter name=section value=espaceclient/ map:parameter name=request-url value={2}.{3}/ /map:call map:serialize/ /map:match Obviously, this worked with 2.0.2... Thanks, Nicolas !! -Message d'origine- De : Koen Pellegrims [mailto:[EMAIL PROTECTED]] Envoye : mercredi 28 aout 2002 15:54 A : [EMAIL PROTECTED] Objet : RE: 2.0.2 - 2.0.3 I cannot tell you what has changed, but I can help you look for the error. The exception is thrown during the compile phase for the sitemap. When the sitemap (or any
Re: How to encode ISO-8859-1 characters into the Database?
I create the Database now using the following string: createdb -E LATIN1 -e mydb Where, LATIN1 is the encoding used by the database mydb is the name of the database Now When I wrote: Olé When I retrieve the values there are: Olé Please, somebody know how to resolve this problem. I used at the beginning of the XSP pages the string: ?xml version=1.0 encoding=ISO-8859-1? What I am doing wrong? Regards, Antonio Gallardo El Jueves, 29 de Agosto de 2002 01:57, Antonio Gallardo Rivera escribió: I am using PostgreSQL 7.2.1 If I store a string value, like Olé in the Database without using Cocoon. I can get it back. Without any problem. It is stored correctly. But, In Cocoon 2.03 (Tomcat 4.1.9) I need to store values to the Database like Olé. I saw that the Cocoon manipulate the data like UTF-8 and not in the code ISO-8859-1. How I can change this feature to make Cocoon work in ISO-8859-1 code? Regards, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to encode ISO-8859-1 characters into the Database?
go to the sitemap and first ensure that XML and HTML serializers have the following tag : encodingiso-8859-1/encoding What other components could be configured this way ? It solved my problem, so it may help yours, although I don't use XSP. Sitemap overrides XSP/XSL encoding Barbara - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 10:45 AM Subject: Re: How to encode ISO-8859-1 characters into the Database? I create the Database now using the following string: createdb -E LATIN1 -e mydb Where, LATIN1 is the encoding used by the database mydb is the name of the database Now When I wrote: Olé When I retrieve the values there are: Olé Please, somebody know how to resolve this problem. I used at the beginning of the XSP pages the string: ?xml version=1.0 encoding=ISO-8859-1? What I am doing wrong? Regards, Antonio Gallardo El Jueves, 29 de Agosto de 2002 01:57, Antonio Gallardo Rivera escribió: I am using PostgreSQL 7.2.1 If I store a string value, like Olé in the Database without using Cocoon. I can get it back. Without any problem. It is stored correctly. But, In Cocoon 2.03 (Tomcat 4.1.9) I need to store values to the Database like Olé. I saw that the Cocoon manipulate the data like UTF-8 and not in the code ISO-8859-1. How I can change this feature to make Cocoon work in ISO-8859-1 code? Regards, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to encode ISO-8859-1 characters into the Database?
I don't know about Postgres, but with MySQL, you can set a parameter on the jdbc-driver in web.xml eg.: jdbc name=mydb encodingISO-8859-15/encoding dburljdbc:mysql://server/db /jdbc -Oorspronkelijk bericht- Van: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 10:45 Aan: [EMAIL PROTECTED] Onderwerp: Re: How to encode ISO-8859-1 characters into the Database? I create the Database now using the following string: createdb -E LATIN1 -e mydb Where, LATIN1 is the encoding used by the database mydb is the name of the database Now When I wrote: Olé When I retrieve the values there are: Olé Please, somebody know how to resolve this problem. I used at the beginning of the XSP pages the string: ?xml version=1.0 encoding=ISO-8859-1? What I am doing wrong? Regards, Antonio Gallardo El Jueves, 29 de Agosto de 2002 01:57, Antonio Gallardo Rivera escribió: I am using PostgreSQL 7.2.1 If I store a string value, like Olé in the Database without using Cocoon. I can get it back. Without any problem. It is stored correctly. But, In Cocoon 2.03 (Tomcat 4.1.9) I need to store values to the Database like Olé. I saw that the Cocoon manipulate the data like UTF-8 and not in the code ISO-8859-1. How I can change this feature to make Cocoon work in ISO-8859-1 code? Regards, Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bug with javascript ?
c203. My XSL contains some javascript : Is it normal that when I look at the source of my html output I see the full code (in the body part) written out ? i.e. : script language=javascriptif (document.all){ document.writeln('object id=factory classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814 codebase=ActiveX/ScriptX.cab#Version=\'5,0,4,15\'/object'); document.writeln('p align=centerinput name=idPrint type=button value=Print onClick=javascript:printSheet();//p'); }/script I see the Print input but this seems strange. In the xsl I used lt; and gt; tags, but otherwise the bit of code is identical. Thanks, and sorry whether this is off-topic... Babs - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: bug with javascript ?
some snip because this darn antivirus believes that I am seding malicious code !! - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:01 AM Subject: bug with javascript ? c203. My XSL contains some javascript : Is it normal that when I look at the source of my html output I see the full code (in the body part) written out ? i.e. : script language=(java-script)if (document.all){ document.writeln('object id=factory classid=clsid:(something) codebase=(active x)'/object'); document.writeln('p align=centerinput name=idPrint type=button value=Print onClick=javascript:printSheet();//p'); }/script I see the Print input but this seems strange. In the xsl I used lt; and gt; tags, but otherwise the bit of code is identical. Thanks, and sorry whether this is off-topic... Babs - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bug with javascript ?
mmm, I don't see where you need to use lt; and gt; tags. To make sure your javascript remains untouched, you could put the code in a CDATA section: script language=javascript ![CDATA[ if (document.all) { ... } ]] /script Koen. -Oorspronkelijk bericht- Van: Barbara Post [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 11:01 Aan: [EMAIL PROTECTED] Onderwerp: bug with javascript ? c203. My XSL contains some javascript : Is it normal that when I look at the source of my html output I see the full code (in the body part) written out ? i.e. : script language=javascriptif (document.all){ document.writeln('object id=factory classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814 codebase=ActiveX/ScriptX.cab#Version=\'5,0,4,15\'/object'); document.writeln('p align=centerinput name=idPrint type=button value=Print onClick=javascript:printSheet();//p'); }/script I see the Print input but this seems strange. In the xsl I used lt; and gt; tags, but otherwise the bit of code is identical. Thanks, and sorry whether this is off-topic... Babs - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SUMMARY] How to encode ISO-8859-1 characters into the Database?
Barbara: Thank you Very much! It works fine now! Antonio Gallardo * SOLUTION by Barbara Post :) : go to the sitemap and ensure that XML and HTML serializers have the following tag: encodingiso-8859-1/encoding * CAUSE by Barbara Post: Sitemap overrides XSP/XSL encoding * PROBLEM by me :( I create the Database now using the following string: createdb -E LATIN1 -e mydb Where, LATIN1 is the encoding used by the database mydb is the name of the database Now When I wrote: Olé When I retrieve the values there are: Olé Also, I used at the beginning of the XSP pages the string: ?xml version=1.0 encoding=ISO-8859-1? What is wrong? * The first request: PLATAFORM: Cocoon 2.0.3 Tomcat 4.1.9 PostgreSQL 7.2.1. PROBLEM: If I store a string value, like Olé in the Database without using Cocoon. I retrieve it and see Olé. The same string. With Cocoon: I need to store values to the Database like Olé. I saw that the Cocoon manipulate the data like UTF-8 and not in the code ISO-8859-1. How I can change this feature to make Cocoon work in ISO-8859-1 code? I hope it will help anybody :) And thanks again Barbara :) Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bug with javascript ?
I tried your suggestion, Koen, (with and ) but now I see the javascript code on my html. It is not executed at all... I use IE 5.5. Barbara PS : sorry for double-posting I was warned by the antivirus software. - Original Message - From: Koen Pellegrims [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:22 AM Subject: RE: bug with javascript ? mmm, I don't see where you need to use lt; and gt; tags. To make sure your javascript remains untouched, you could put the code in a CDATA section: script language=javascript ![CDATA[ if (document.all) { ... } ]] /script Koen. -Oorspronkelijk bericht- Van: Barbara Post [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 11:01 Aan: [EMAIL PROTECTED] Onderwerp: bug with javascript ? c203. My XSL contains some javascript : Is it normal that when I look at the source of my html output I see the full code (in the body part) written out ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SUMMARY] How to encode ISO-8859-1 characters into the Database?
I guess Carsten helped me finding this out first ;-) So thanks to every guru here :-) Cocoon rules ;-) - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:25 AM Subject: [SUMMARY] How to encode ISO-8859-1 characters into the Database? Barbara: Thank you Very much! It works fine now! Antonio Gallardo * SOLUTION by Barbara Post :) : go to the sitemap and ensure that XML and HTML serializers have the following tag: encodingiso-8859-1/encoding * CAUSE by Barbara Post: Sitemap overrides XSP/XSL encoding * PROBLEM by me :( I create the Database now using the following string: createdb -E LATIN1 -e mydb Where, LATIN1 is the encoding used by the database mydb is the name of the database Now When I wrote: Olé When I retrieve the values there are: Olé Also, I used at the beginning of the XSP pages the string: ?xml version=1.0 encoding=ISO-8859-1? What is wrong? * The first request: PLATAFORM: Cocoon 2.0.3 Tomcat 4.1.9 PostgreSQL 7.2.1. PROBLEM: If I store a string value, like Olé in the Database without using Cocoon. I retrieve it and see Olé. The same string. With Cocoon: I need to store values to the Database like Olé. I saw that the Cocoon manipulate the data like UTF-8 and not in the code ISO-8859-1. How I can change this feature to make Cocoon work in ISO-8859-1 code? I hope it will help anybody :) And thanks again Barbara :) Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fw: bug with javascript ?
Another thing you can do is put the JavaScript in a another file and call it from the XSL. This is my way to kept the most of JavaScript out of the XSL. Let said you have the JavaScript in a file called: myscript.js. You can include it into the XSL with a sentence like: script language=JavaScript type=text/javascript src=resources/myscript.js/ Where, src is pointing to the file you want to include. ** If you are trying to call a function with a string parameter, do something like this: a href=javascript:void(0); onclick= return myfunction(apos;{@an-atribute}apos;, onmouseout=return anotherfunction(); Here myfunction need and parameter written in this format: 'string' (please see the apos) The apos must be changed by this:apos; Antonio Gallardo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bug with javascript ?
All I can do to help is show you the way I do it. I don't use the CDATA-section, because I need xsl-instructions to generate my JavaScript. Below is a snippet that works for sure (for me at least). (I did replace 'script' with 'scropt' in an attempt to fool the virusscan...) xsl:template match=/ *snip* scropt type=text/javascript /* preload images */ xsl:for-each select=products/category xsl:value-of select=concat('image', position())/ = new Image(); xsl:value-of select=concat('image', position())/.src = xsl:value-of select=concat('images/products/', @id, '/', logo/@src)/; /xsl:for-each /scropt *snip* /xsl:template so, no CDATA, not lt;... Hope this helps... Koen -Oorspronkelijk bericht- Van: Barbara Post [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 11:33 Aan: [EMAIL PROTECTED] Onderwerp: Re: bug with javascript ? I tried your suggestion, Koen, (with and ) but now I see the javascript code on my html. It is not executed at all... I use IE 5.5. Barbara PS : sorry for double-posting I was warned by the antivirus software. - Original Message - From: Koen Pellegrims [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:22 AM Subject: RE: bug with javascript ? mmm, I don't see where you need to use lt; and gt; tags. To make sure your javascript remains untouched, you could put the code in a CDATA section: script language=javascript ![CDATA[ if (document.all) { ... } ]] /script Koen. -Oorspronkelijk bericht- Van: Barbara Post [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 11:01 Aan: [EMAIL PROTECTED] Onderwerp: bug with javascript ? c203. My XSL contains some javascript : Is it normal that when I look at the source of my html output I see the full code (in the body part) written out ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
difference between xsp-session and session
Hi, I was browsing Cocoon documentation and wondered what the difference in use and definition was between using xmlns:session=http://apache.org/xsp/session/2.0; and xmlns:xsp-session=http://apache.org/xsp/session/2.0; and also referencing it in code as session:get-attribute name=somename/ or xsp-session:get-attribute name=somename/ Examples are shown at http://xml.apache.org/cocoon/userdocs/xsp/sessions.html Yet the second to last example at : http://xml.apache.org/cocoon/userdocs/xsp/session.html uses xmlns:session=http://apache.org/xsp/session/2.0; yet references it using xsp-session ?xml version=1.0 encoding=iso-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:xsp-request=http://apache.org/xsp/request/2.0; para Session ID = xsp-session:get-id as=xml/ /para /xsp:page Thanks, Geert - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: difference between xsp-session and session
From: Geert Poels [mailto:[EMAIL PROTECTED]] Hi, I was browsing Cocoon documentation and wondered what the difference in use and definition was between using xmlns:session=http://apache.org/xsp/session/2.0; and xmlns:xsp-session=http://apache.org/xsp/session/2.0; There is no difference as long as the namespace URI is the same. The namespace prefix is just a short name for the namespace URI. and also referencing it in code as session:get-attribute name=somename/ or xsp-session:get-attribute name=somename/ You can declare either prefix. As for the documentation, thanks for reporting, it should be fixed. -- Konstantin Examples are shown at http://xml.apache.org/cocoon/userdocs/xsp/sessions.html Yet the second to last example at : http://xml.apache.org/cocoon/userdocs/xsp/session.html uses xmlns:session=http://apache.org/xsp/session/2.0; yet references it using xsp-session ?xml version=1.0 encoding=iso-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:xsp-request=http://apache.org/xsp/request/2.0; para Session ID = xsp-session:get-id as=xml/ /para /xsp:page Thanks, Geert - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing mysql JDBC Driver
Took a closer look on my config, I also have drivercom.mysql.jdbc.Driver/driver in my xconf mysql part. I'm not sure if this could make a difference. Back when I was having problems setting mysql up on a JDK1.3.1 box, someone pointed me to the fact that I'd better use the latest versions possible of required software. Doing so actually solved my mysterious driver problems. Maybe it's worth the effort to try upgrading to JDK1.4... JW -Original Message- From: Jessica Niewint [mailto:[EMAIL PROTECTED]] Sent: donderdag 29 augustus 2002 10:12 To: [EMAIL PROTECTED] Subject: Re: Installing mysql JDBC Driver If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib. I got exactly all this. The only point is that there a still the standard driver in my installation. 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 !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- org.gjt.mm.mysql.Driver /param-value /init-param my cocoon.xconf: datasources jdbc logger=core.datasources.personnel name=personnel !-- If you have an Oracle database, and are using the the pool-controller below, you should add the attribute oradb and set it to true. pool-controller min=5 max=10 oradb=true/ That way the test to see if the server has disconnected the JdbcConnection will function properly. -- pool-controller max=10 min=5/ !-- If you need to ensure an autocommit is set to true or false, then create the auto-commit element below. auto-commitfalse/auto-commit The default is true. -- dburljdbc:hsqldb:hsql://localhost:9002/dburl usersa/user password/ /jdbc !-- my mysql driver -- jdbc name=mysql pool-controller max=10 min=5/ dburljdbc:mysql://localhost/test/dburl userroot/user password/password /jdbc /datasources Could there be another problem ? At 16.37 28/08/2002 +0100, you wrote: Hi Jessica, You should have something like this in web.xml init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver /param-value /init-param and something like this in cocoon.xconf datasources jdbc name=mysqlds pool-controller min=5 max=10/ dburljdbc:mysql://127.0.0.1/databasename/dburl userroot/user password/password /jdbc /datasources If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib. Jez - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fop and extensions ... sorry
Hi folks, Sorry I know this has been posted b4 but I still cant find the answer!!! I am using the following code to pass a request to serialise a pdf for output. Now it works great ... But damn explorer does not recognise the mime type as a pdf doc but it does know its a binary file. It just sees the extension (.xml) and downloads the file but opens it with the app associated with xml files..sheesh. I have seen the fix for applying a ?pdf=.pdf at the end of the uri etc and unfortunately cause I am already passing a parameter it causes an error. Has anyone got a fix?? Please map:match pattern=display_Works/**.xml map:generate src=display_Works/{1}.xml/ map:match type=request pattern=style map:transform src={1}.xsl/ map:serialize / /map:match map:match type=request pattern=pdf map:transform src={1}.xsl/ map:serialize type=fo2pdf / /map:match map:transform src=xsl_display_course.xsl/ map:serialize / /map:match Regards Tim Cavanagh Douglas Mawson Institute of Technology Australia - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Fop and extensions ... sorry
Simple solution: you could match on any extension, so the browser can ask for display_Works/file.pdf?style=green map:match pattern=display_Works/**.* You could use this mapping to remove the 'pdf' request parameter as well. Koen -Oorspronkelijk bericht- Van: Tim Cavanagh [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 12:29 Aan: [EMAIL PROTECTED] Onderwerp: Fop and extensions ... sorry Hi folks, Sorry I know this has been posted b4 but I still cant find the answer!!! I am using the following code to pass a request to serialise a pdf for output. Now it works great ... But damn explorer does not recognise the mime type as a pdf doc but it does know its a binary file. It just sees the extension (.xml) and downloads the file but opens it with the app associated with xml files..sheesh. I have seen the fix for applying a ?pdf=.pdf at the end of the uri etc and unfortunately cause I am already passing a parameter it causes an error. Has anyone got a fix?? Please map:match pattern=display_Works/**.xml map:generate src=display_Works/{1}.xml/ map:match type=request pattern=style map:transform src={1}.xsl/ map:serialize / /map:match map:match type=request pattern=pdf map:transform src={1}.xsl/ map:serialize type=fo2pdf / /map:match map:transform src=xsl_display_course.xsl/ map:serialize / /map:match Regards Tim Cavanagh Douglas Mawson Institute of Technology Australia - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing mysql JDBC Driver
Hi Jessica, Looks OK and you should be able to run the hsqldb driver as well. I have had no problems with mySQL on 2.0.3 and JDK 1.4 so you could try that. You could also comment out all the other driver references and the other pools to check there are no conflicts. I'm not sure that any of this is strictly necessary however. From the log messagesit seems thatthe classloader is attempting to findthe class but cannot. This would typically be because the package name is incorrect or the class is not there. The package name for that version of the JAR should be fine. Have you opened the jar in something like WINRAR or WINZIP? If not do so to check the file is not corrupt or otherwise wrong. You should be able to navigate the folder org/gjt/mm/mysql where Driver.class should exist. HTH a little more. Jez Jessica Niewint [EMAIL PROTECTED] wrote: If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib.I got exactly all this. The only point is that there a still the standard driver in my installation.my web.xmlload-classorg.hsqldb.jdbcDriverorg.gjt.mm.mysql.Drivermy cocoon.xconf:jdbc:hsqldb:hsql://localhost:9002sajdbc:mysql://localhost/testrootCould there be another problem ?At 16.37 28/08/2002 +0100, you wrote:Hi Jessica,You should have something like this in web.xml load-class org.gjt.mm.mysql.Driver and something like this in cocoon.xconfjdbc:mysql://127.0.0.1/databasename root If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib.Jez-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]>Get a bigger mailbox -- choose a size that fits your needs.
Re: Installing mysql JDBC Driver
Oh yeah, I forgot you might want to try extracting the jar into WEB-INF classes to see if that makes a difference. If that works I don't know what it should be able to get the class from classes and not inside the JAR... jez Jeremy Aston [EMAIL PROTECTED] wrote: Hi Jessica, Looks OK and you should be able to run the hsqldb driver as well. I have had no problems with mySQL on 2.0.3 and JDK 1.4 so you could try that. You could also comment out all the other driver references and the other pools to check there are no conflicts. I'm not sure that any of this is strictly necessary however. From the log messagesit seems thatthe classloader is attempting to findthe class but cannot. This would typically be because the package name is incorrect or the class is not there. The package name for that version of the JAR should be fine. Have you opened the jar in something like WINRAR or WINZIP? If not do so to check the file is not corrupt or otherwise wrong. You should be able to navigate the folder org/gjt/mm/mysql where Driver.class should exist. HTH a little more. Jez Jessica Niewint [EMAIL PROTECTED] wrote: If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib.I got exactly all this. The only point is that there a still the standard driver in my installation.my web.xmlload-classorg.hsqldb.jdbcDriverorg.gjt.mm.mysql.Drivermy cocoon.xconf:jdbc:hsqldb:hsql://localhost:9002sajdbc:mysql://localhost/testrootCould there be another problem ?At 16.37 28/08/2002 +0100, you wrote:Hi Jessica,You should have something like this in web.xml load-class org.gjt.mm.mysql.Driver and something like this in cocoon.xconfjdbc:mysql://127.0.0.1/databasename root If there are no config problems then post your web.xml and cocoon.xconf extracts and I'll have a look. the jar should be fine in WEB-INF/lib.Jez-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]> Get a bigger mailbox -- choose a size that fits your needs.Get a bigger mailbox -- choose a size that fits your needs.
RE: cocoon KILLS Tomcat
Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? From: Luca Morandini [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: cocoon KILLS Tomcat Date: Wed, 28 Aug 2002 17:46:31 +0200 Roger, have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ? Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: cocoon KILLS Tomcat I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor.java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector.java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone have any idea? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and ActiveX
Bárbara, Have you already tried to use application/octet-stream? Regards, Igor How do I set up the pipeline that reads my .cab to be able to include an activeX in the final html page ? It does not show up yet. I don't know which mime type to setup... Thanks, with C 2.0.3, jdk 1.3.1. Barbara - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: difference between xsp-session and session
xmlns:xsp-session=http://apache.org/xsp/session/2.0; There is no difference as long as the namespace URI is the same. The namespace prefix is just a short name for the namespace URI. That's what I assumed at first, but as one example showed otherwise. ** How about the necessity of create-session=true ? ** How can I use the session- or request-object within a xsp:logic Like in : xsp:logic boolean isTrue() { boolean result = false; String language = (String)session:get-attribute name=somename/; or (String) session.getAttribute(somename); return ; } xsp:logic This give me a compilation-error because no object session can be found. This method gets compiled as class-method but as session is not defined globally, this doesn't get compiled. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2.0.2 - 2.0.3 - generator
Hi !! Thanks a lot for this explanation... it realy helped me. Remember : I worked with Tomcat 4.0.4, JDK 1.3.1_03 and Cocoon2.0.2 under W2000. I want to use the Cocoon2.0.3 version. I installed it as describe in the Installing Apache Cocoon page. I have now another problem... and the message: type fatal message Generator already set. You can only select one Generator (file) description org.apache.cocoon.ProcessingException: Generator already set. You can only select one Generator (file) sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Generator already set. You can only select one Generator (file) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.se tGenerator (AbstractEventPipeline.java:135) at org.apache.cocoon.components.pipeline.CachingEventPipeline.set Generator( CachingEventPipeline.java:117) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.matchN 10564(H:\j akarta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-fi les\org/apache/cocoon/www/file_/H_/transrapide\sitemap_xmap.java:3798) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.proces s(H:\jakar ta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\ org/apache /cocoon/www/file_/H_/transrapide\sitemap_xmap.java:1087) at org.apache.cocoon.www.file_.H_.transrapide.sitemap_xmap.proces s(H:\jakar ta-tomcat-4.0.4\work\Standalone\localhost\cocoon\cocoon-files\ org/apache /cocoon/www/file_/H_/transrapide\sitemap_xmap.java:782) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) [...] request-uri /cocoon/monsite/internet/espaceclient/espaceclient.info path-info monsite/internet/espaceclient/espaceclient.info It appears as I use this part of my sitemap (with the request uri internet/espaceclient/test.bienvenue.acces and no session information): map:match pattern=*/*/*.*.* !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=descriptors/params.xml/ map:parameter name=validate value=identifiant,nom,prenom,id,titre/ !-- generate protected content -- map:generate session=true type=serverpages src=logic/{../2}/{../3}.xsp map:parameter name=lid value={id}/ /map:generate map:transform src=stylesheets/{../1}/{../5}.xsl map:parameter name=xml-file value=../../documents/{../2}/{../4}.xml/ map:parameter name=media value={../1}/ map:parameter name=section value={../2}/ map:parameter name=css-stylesheet value=styles.css/ map:parameter name=css-menu value=menu-{../1}.css/ map:parameter name=toc-file value=../../documents/toc.xml/ map:parameter name=base-url value=/cocoon/transrapide/ map:parameter name=req-page value={../3}.{../4}.{../5}/ /map:transform map:transform src=stylesheets/{../1}/menupage.xsl map:parameter name=titre value={titre}/ map:parameter name=prenom value={prenom}/ map:parameter name=nom value={nom}/ map:parameter name=id value={id}/ map:parameter name=section value={../2}/ map:parameter name=toc-file value=../../documents/toc.xml/ map:parameter name=css-stylesheet value=styles.css/ map:parameter name=css-menu value=menu-{../1}.css/ map:parameter name=base-url value=/cocoon/transrapide/ map:parameter name=barre-logo value=../../documents/logo.xml/ map:parameter name=request-url value={../3}.{../4}/ map:parameter name=media value={../1}/ /map:transform map:serialize session=true/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=espaceclient.info/ /map:match that use the redirect part and this other part of the sitemap: map:match pattern=internet/espaceclient/espaceclient.info map:generate src=documents/espaceclient/login.xml/ map:transform src=stylesheets/internet/info2.xsl map:parameter name=section value=espaceclient/ map:parameter name=base-url value=/cocoon/transrapide/ /map:transform map:call resource=InternetMenuPage map:parameter name=section value=espaceclient/ map:parameter name=request-url value={2}.{3}/ /map:call map:serialize/ /map:match Obviously, this worked with 2.0.2... Thanks, Nicolas !! -Message d'origine- De : Koen Pellegrims [mailto:[EMAIL PROTECTED]] Envoye : mercredi 28 aout 2002 15:54 A : [EMAIL PROTECTED] Objet : RE: 2.0.2 - 2.0.3 I cannot tell you what has changed, but I can help you look for the error. The exception is thrown during the compile phase for the sitemap. When the sitemap
RE: Making a new Action
Hi, I have a further question on this. Actions are java code which i write seperatly from everything else. right. Do i save this file as a.java or .jsp? .java, and then you compile it. What directories do i have to place in into in order for it to properly compile you can compile it from anywhere, but you need your classpath set up to include anything mentioned in your .java file. and for the sitemap to see it? after it's compiled, place it in WEB-INF/classes (if you've used a package declaration, remember to duplicate the directory structure of the package). Alternatively you can jar it up with any other classes you create and place it in WEB-INF/lib I have made a package, but I don't understand this part: (if you've used a package declaration, remember to duplicate the directory structure of the package) Duplicate the directory structure? I don't know how? And where to place? Does this compiling happen automatically or do i have to do it manually? manually. Hope that helps, Geoff Howard thanks and regards Hans - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing mysql JDBC Driver
Hi, I've been following this thread as I am sitting with the exact same problem. However I think I just got a bit further by unzipping the jar and putting it in the WEB-INF/classes directory.Thanks Jeremy!Tomcat now starts without trouble, but I get a Cocoon error page when requesting any html page (also ones that don't use mysql as a data source). My cocoon.xconf contains: jdbc name="mysql" pool-controller max="10" min="5"/ dburljdbc:mysql://localhost/web/dburl userguslid/user passwordguslid/password /jdbc And the following works command-line-wise: mysql -uguslid -pguslid web - so it shouldn't be a privilege thing? The call stack is below, otherwise I can't see to much useful info in the logs. Anyone see what's wrong? /Gustav javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:946) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:536) root cause java.lang.ClassFormatError: com/mysql/jdbc/Driver (Illegal constant pool type) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88) at org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:842) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1219) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at
RE: Making a new Action
-Oorspronkelijk bericht- Van: praktikant [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 15:10 Aan: [EMAIL PROTECTED] Onderwerp: RE: Making a new Action Hi, I have a further question on this. Actions are java code which i write seperatly from everything else. right. Do i save this file as a.java or .jsp? .java, and then you compile it. What directories do i have to place in into in order for it to properly compile you can compile it from anywhere, but you need your classpath set up to include anything mentioned in your .java file. and for the sitemap to see it? after it's compiled, place it in WEB-INF/classes (if you've used a package declaration, remember to duplicate the directory structure of the package). Alternatively you can jar it up with any other classes you create and place it in WEB-INF/lib I have made a package, but I don't understand this part: (if you've used a package declaration, remember to duplicate the directory structure of the package) Duplicate the directory structure? I don't know how? And where to place? it means: if your class is in a package (eg: com.mysoft.MyClass) (the first line in your java-file will read: package com.mysoft; ) then you'll need to put the class-file (MyClass.class) in WEB-INF/classes/com/mysoft/ (creating these directories as needed) This is common java-practice and is not specific to Cocoon. Does this compiling happen automatically or do i have to do it manually? manually. Hope that helps, Geoff Howard thanks and regards Hans - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon KILLS Tomcat
Hi Roger, Maybe your jasp compiler has a problem or if you use Windows (I guess not) check out the registry : maybe your Current Version of JDK and JRE is not right... key : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and subkeys. java -fullversion should be right too. This was a reason why I ran into major/minor troubles too, but not exactly the same. Babs - Original Message - From: Roger Ting [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:13 PM Subject: RE: cocoon KILLS Tomcat Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? From: Luca Morandini [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: cocoon KILLS Tomcat Date: Wed, 28 Aug 2002 17:46:31 +0200 Roger, have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ? Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: cocoon KILLS Tomcat I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor. java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1 225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector .java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1 158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone have any idea? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Chat with
RE: Unit testing xslt
I have unit tests for all my xslt. I'm not using XSLTUnit (which is a fine program)--in my case, for each xslt file, I have a one or more test input files and corresponding reference files which are the expected result when I run the transform. I use file names/extensions to group them: myScript.xslt myScript.simpleTest.xml myScript.simpleTest.ref myScript.complexTest.xml myScript.complexTest.ref I use a combination of batch jobs and ant scripts to match up the files, run the tests, and compare the results. I don't always do test-first--sometimes it's just easier to test your code inside your app. So what I often do is write the code, test it in the app, and then write the tests. I then back out my change, and run the tests again. The tests should fail--if they don't, I've done something wrong in my test code. I then reintroduce my changes one bit at a time, and make sure sure my tests start to succeed again. I think unit testing xslt's is a great thing. HTH, Steve -Original Message- From: Robert Leftwich [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 9:58 PM To: [EMAIL PROTECTED] Subject: Unit testing xslt Given Cocoon's big focus on transforms, I was wondering if anyone is using unit tests and/or test-first design when developing their xslt? I'd appreciate any comments on its effectiveness and what tools you are using (XSLTunit for example?). Robert - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I get it too !! OutOfMemory error... (Tomcat killed...)
Suddenly my sitemap doesn't compile. I have been doing other things for an hour, cocoon was asleep. I look into Tomcat's output window and read : java.lang.OutOfMemoryError no stack trace available Great ! I never had such a bad thing before ! JDK 1.3.1, C2.0.3, Tomcat 4.0.4 with default catalina options, Windows NT SP6. Task manager says : java.exe: 99408 kb (this was Tomcat), java.exe: 50540 kb. I restart Tomcat (did not clean localhost's files), it compiles my sitemap and goes up to 67056 kb. Now I am loggued in (sunRise) and it uses 73524 kb. Guess I have to change catalina options a bit... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Another article on Cocoon - Web Syndication
That article was published on January 1, 1970 only few days before I was born. Can't believe cocoon is older than I am :) Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing mysql JDBC Driver
At 12.02 29/08/2002 +0100, you wrote: You were so right ! It was the jar file. Somehow it was damaged or because I copied it from my server to my windows desktop ... now I have done every step with unix and everything is fine. So now I got : jdk 1.4.0 tomcat 4.0.4 cocoon 2.0.3 and the mysql-connector 3.0.0 in my web.xml file I got : 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 for the cocoon.conf: !-- my mysql driver -- jdbc name=mymysql pool-controller max=10 min=5/ dburljdbc:mysql://localhost/test/dburl userroot/user password/password /jdbc No error message or exception in the log files. No I have to test everything with a short applications. Thanks again ! You are so great folks !!! :-D Hi Jessica, Looks OK and you should be able to run the hsqldb driver as well. I have had no problems with mySQL on 2.0.3 and JDK 1.4 so you could try that. You could also comment out all the other driver references and the other pools to check there are no conflicts. I'm not sure that any of this is strictly necessary however. From the log messages it seems that the classloader is attempting to find the class but cannot. This would typically be because the package name is incorrect or the class is not there. The package name for that version of the JAR should be fine. Have you opened the jar in something like WINRAR or WINZIP? If not do so to check the file is not corrupt or otherwise wrong. You should be able to navigate the folder org/gjt/mm/mysql where Driver.class should exist. HTH a little more. Jez - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Another article on Cocoon - Web Syndication
Title: RE: [ANN] Another article on Cocoon - Web Syndication a typical Y2k bug in Unix :) -Original Message- From: Artur Bialecki [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 10:00 AM To: [EMAIL PROTECTED] Subject: RE: [ANN] Another article on Cocoon - Web Syndication That article was published on January 1, 1970 only few days before I was born.
Re: cocoon KILLS Tomcat
Hi Babara What do you mean by jdk and jre not right? I am currently logged into a Solaris 5.X system. I installed Cocoon in Windows and it is fine. Just that installing on the Solaris Unix without root perm giving me a hell of time.Can you tell me what exactly happen you last time and how you solved it? BTW, just set catalina_opts=-Xmx128m to give Tomcat more memory to use Cocoon. That's how i got away for my problem From: Barbara Post [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: cocoon KILLS Tomcat Date: Thu, 29 Aug 2002 15:44:23 +0200 Hi Roger, Maybe your jasp compiler has a problem or if you use Windows (I guess not) check out the registry : maybe your Current Version of JDK and JRE is not right... key : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and subkeys. java -fullversion should be right too. This was a reason why I ran into major/minor troubles too, but not exactly the same. Babs - Original Message - From: Roger Ting [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:13 PM Subject: RE: cocoon KILLS Tomcat Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? From: Luca Morandini [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: cocoon KILLS Tomcat Date: Wed, 28 Aug 2002 17:46:31 +0200 Roger, have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ? Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: cocoon KILLS Tomcat I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor. java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1 225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector .java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1 158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone have any idea? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com
RE: Unit testing xslt
Hi, We maintain a base set of XSLs for each client project (similar to Forrest). We have a need to update or 'fix' XSL's. This requires some functional testing. We first transform to an XML document that describes the structure. Here is a snippet of the XSLT: xsl:template match=xsl:stylesheet stylesheet id=basic_1col.xsl docA basic 1 column layout. This is a primary stylesheet. Each primary stylesheet includes global_definitions.xsl, which in turn includes the common XSL pages. Much of the layout can be affected just by changing the /css/project.css. When a page is requested/generated, a source XML (always /WEB-INF/styling/site.xml) is transformed against a primary XSL./doc docglobal_definitions.xsl includes the common XSL templates, gathers parameters sent in from the server and sets up common global variables./doc xsl:choose xsl:when test=boolean(xsl:include[@href='global_definitions.xsl']) include href=global_definitions.xsl present=true/ /xsl:when xsl:otherwise include href=global_definitions.xsl present=false/ /xsl:otherwise /xsl:choose docDepending on the value of this variable paths will be built starting from root relative if true, or document relative if falses./doc xsl:choose xsl:when test=boolean(xsl:variable[@name='root_relative']) variable name=root_relative select={xsl:variable/@select} present=true/ /xsl:when xsl:otherwise variable name=root_relative select={xsl:variable/@select} present=false/ /xsl:otherwise /xsl:choose docmatch the document root to start setting up the HTML page structure/doc xsl:choose xsl:when test=boolean(xsl:template[@match='/']) template match=/ present=true xsl:choose xsl:when test=boolean(xsl:template/html) html present=true doccall to head.xsl to set up the HTML HEAD/doc xsl:choose xsl:when test=boolean(xsl:template/html/xsl:call-template[@name='head']) call-template name=head present=true/ /xsl:when xsl:otherwise call-template name=head present=false/ /xsl:otherwise /xsl:choose etc.. - Then this output is transformed to a report and or used to update/fix existing XSL best, -Rob -Original Message- From: Stephen Ng [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 6:49 AM To: [EMAIL PROTECTED] Subject: RE: Unit testing xslt I have unit tests for all my xslt. I'm not using XSLTUnit (which is a fine program)--in my case, for each xslt file, I have a one or more test input files and corresponding reference files which are the expected result when I run the transform. I use file names/extensions to group them: myScript.xslt myScript.simpleTest.xml myScript.simpleTest.ref myScript.complexTest.xml myScript.complexTest.ref I use a combination of batch jobs and ant scripts to match up the files, run the tests, and compare the results. I don't always do test-first--sometimes it's just easier to test your code inside your app. So what I often do is write the code, test it in the app, and then write the tests. I then back out my change, and run the tests again. The tests should fail--if they don't, I've done something wrong in my test code. I then reintroduce my changes one bit at a time, and make sure sure my tests start to succeed again. I think unit testing xslt's is a great thing. HTH, Steve -Original Message- From: Robert Leftwich [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 9:58 PM To: [EMAIL PROTECTED] Subject: Unit testing xslt Given Cocoon's big focus on transforms, I was wondering if anyone is using unit tests and/or test-first design when developing their xslt? I'd appreciate any comments on its effectiveness and what tools you are using (XSLTunit for example?). Robert - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon KILLS Tomcat
Hi Roger, I mean that I had a registry key conflict about jdk/jre version, and may have had other wrong things. I am sorry I cannot help further. - Original Message - From: Roger Ting [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 4:19 PM Subject: Re: cocoon KILLS Tomcat Hi Babara What do you mean by jdk and jre not right? I am currently logged into a Solaris 5.X system. I installed Cocoon in Windows and it is fine. Just that installing on the Solaris Unix without root perm giving me a hell of time.Can you tell me what exactly happen you last time and how you solved it? BTW, just set catalina_opts=-Xmx128m to give Tomcat more memory to use Cocoon. That's how i got away for my problem From: Barbara Post [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: cocoon KILLS Tomcat Date: Thu, 29 Aug 2002 15:44:23 +0200 Hi Roger, Maybe your jasp compiler has a problem or if you use Windows (I guess not) check out the registry : maybe your Current Version of JDK and JRE is not right... key : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and subkeys. java -fullversion should be right too. This was a reason why I ran into major/minor troubles too, but not exactly the same. Babs - Original Message - From: Roger Ting [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:13 PM Subject: RE: cocoon KILLS Tomcat Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? From: Luca Morandini [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: cocoon KILLS Tomcat Date: Wed, 28 Aug 2002 17:46:31 +0200 Roger, have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ? Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: cocoon KILLS Tomcat I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor. java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1 225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector .java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1 158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at
Re: [ANN] Another article on Cocoon - Web Syndication
Ivelin, very nice article. Are you going to include parts of it within Cocoon documentation? Thanks Michael Ivelin Ivanov wrote: http://www.webservices.org/index.php/article/articleview/613 -=Ivelin=- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- OSCOM - Open Source Content Management Conference September 25th - 27th 2002, Berkeley, California http://www.oscom.org/conferences/berkeley2002/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Another article on Cocoon - Web Syndication
Lol, then Ivelin Ivanov is a really visionary guy. He realize since 1970 all about Cocoon and Web Syndicate! Anyway, very nice article. Antonio Gallardo El Jueves, 29 de Agosto de 2002 08:00, Artur Bialecki escribió: That article was published on January 1, 1970 only few days before I was born. Can't believe cocoon is older than I am :) Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fonts change when using svg2jpeg
Hi all, I have created a simple pipeline to create an svg document which is then serialized using the SVGSerializer. map:match pattern=*.svg map:generate src=buisCard.xml/ map:transform src=card2svg.xsl/ map:serialize type=svg2jpeg/ /map:match The text in the document is Eras, but when it goes through the serializer it is converted to a default font. When I output the document directly to svg, the fonts come out fine, something is happening in the serializer to change the fonts. Is there a parameter or something that has to be set on the serializer like the config file for fonts in fo2pdf, I haven't been able to find any hints in the archives or anywhere, please help. My setup: Tomcat 4.0.4, Cocoon 2.0.3, Jdk 1.4 W2K Thanx, Kyle - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOAP xsp taglib with Axis ?
Hi All, Hope all is well. Was just wondering if anyone has had success using the soap taglib that comes with Cocoon CVS, with Axis CVS ? For some reason I can't seem to get any response from my AxisServlet when using this taglib. Some debugging seems to show that Axis can't quite understand the message the taglib sends it. There are some differenecs in the headers between what the soap taglib generates, and what Axis' client utilities generate (axis client utils set the content length and the 'Host' header includes the port number if its not 80), but the soap-envelopes are the same. Just thought I make a quick sanity check to see if it's just my environment ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Another article on Cocoon - Web Syndication
http://www.webservices.org/index.php/article/articleview/613 -=Ivelin=- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enabling client browser to cache content from cocoon
Hello, I have a pipeline that generates a javascript document. It is referenced and requested by the client from other dynamically-generated html documents. It works fine, but I want to cache the javascript in the client browser and I can't find the way to do it. I tried to set the Expires http header at the beggining of the pipeline with the HttpHeader action but no results. Any information will be very useful as I couldn't find any information on the documentation, faqs nor mail-archives. Thanks, Ivan Rubin Ayma - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2.0.3 silently ignoring exceptions
I agree users shouldn't see the stacktrace, but neither should they get a page that looks basically right but with no data, no errors, and no explanation that a problem has occurred - this might be even worse, as it might lead them to believe something (there is no data matching their search, for instance) that isn't true. The stacktrace is easy to avoid by implementing error handler stylesheets and installing them in your production sitemap, which is what we are doing. The user gets a friendly error message that exposes nothing internal, but lets them know something is wrong. -Christopher On Wednesday, August 28, 2002, at 05:57 , Christopher Painter-Wakefield wrote: This problem (I won't say bug, in case it is something we've done!) is very detrimental to development, since we have to go look in the logs to find out we got an exception. Any help would be appreciated! Although this is indeed annoying when developing, I would tend to view this a A Good Thing(tm) for a production server, as exposing a stacktrace to anyone who gets the error is kinda, err... personal. It seems to me -- I could be wrong on this -- that the more internal information disclosed, the more vulnerable one could be. I'm still using 2.0.2 so I haven't seen this. A. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2.0.3 silently ignoring exceptions
aggh! The listserv host rejected my mail as too large. Okay, I'll try it again without the xconf and web.xml. If these seem relevant, I'll send them separately. - Forwarded by Christopher Painter-Wakefield/mcis/mc/Duke on 08/29/2002 03:06 PM - Thanks for the reply. I've attached some sample code that exhibits the problem, and a sitemap, xconf, and web.xml in case they are relevant. Using this code, if you choose the URL /home (e.g., http://localhost:8080/home , assuming the ROOT webapp), the XSP page attempts to read a parameter named msg, then uppercase its value, and pass it to the next stage. The obvious bug here is that if no parameter is provided, the value is null, and the attempt to call the toUpperCase() method results in a NullPointerException (error.log also attached). Under C2.0.2, this would be reported back to us through the browser along with a stack trace and so forth, which is very important for debugging in development. For production, we merely implemented some simple error handlers in the sitemap so our users would get a friendly message, without all the gore. I did try what you suggested. If I use the XML serializer instead of the default, it makes no change. However, if I remove the stylesheet transform step, I do get the error page as in C2.0.2. So the question is, why is the behavior different, and is it correct? If so, is there any way to get back to the C2.0.2 behavior for development? This led me to wonder whether the error handlers are working correctly in C2.0.3, and I found even more bizarre behavior here. I put in my production error handler, and it did, in fact, pick up the error and display more or less the correct error page. However, it somehow *also* ran the index.xsl on the stream. I'm not sure exactly what went on inside Cocoon, but what displayed in my browser had my production error page on top, and the styled output from index.xsl right below it. Looking at the source, I saw our entire production error page html, followed by the entire html as seen without an error handler, e.g. html body our production error page ... /body /html html body ... output from index.xsl ... /html Which isn't even correct HTML, I think, but IE displayed it anyway. This is certainly not correct behavior! So, I think I feel safe calling it a bug now. It seems that somehow C2.0.3 is applying the transform stage(s) in the original map:match block regardless of whether an error occurs or is handled. -Christopher (See attached file: sitemap.xmap)(See attached file: index.xsl)(See attached file: index.xml)(See attached file: error.log) Christopher Painter-Wakefield wrote: Since we upgraded to Cocoon 2.0.3, we've been experiencing a very annoying problem, which is that Cocoon seems to silently handle all exceptions. I've tested it now with a couple of exceptions types: RuntimeExceptions (thrown by the ESQL logicsheet) and NullPointerExceptions. The behavior is that we actually get back a page styled by our stylesheet, but with no data. Under C2.0.2, we'd get back a Cocoon error page complete with stacktrace. What's going on? Dunno :-/ Have you tried outputting the xml of teh xsp and error without other steps (remove all xslt also in handle-errors and put the xml serializer)? What do you get? I looked at the new web.xml init-param manage-exceptions, but changing it to false made things even worse - then I wouldn't even get XSP java compile error messages, just a generic internal server error message. manage-exceptions=true should make Cocoon handle the exceptions, while =false it gives them to the servlet engine. This problem (I won't say bug, in case it is something we've done!) is very detrimental to development, since we have to go look in the logs to find out we got an exception. Any help would be appreciated! Please send us the page that is giving you problems, along with the relevant log snippets, and anything that might help us to understand the problem. Thank you. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) sitemap.xmap Description: Binary data index.xsl Description: Binary data index.xml Description: Binary data error.log Description: Binary data - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2.0.3 silently ignoring exceptions
did anyone get the mail with the attachments? I had to resend it with fewer attachments because it was rejected as too large the first time. The second time it seemed to go through (I received it from cocoon-users), but I got a different message complaining about the size, plus a separate message saying it was blocked for some reason (like it had a virus, but no virus name was given, and the problem was supposedly in my attached stylesheet). Argh! If nobody received it, I'll send it yet again and send code snippets in the body of the text rather than attachments. -Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2.0.3 silently ignoring exceptions
Title: RE: C2.0.3 silently ignoring exceptions I got it. -Original Message- From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 12:14 PM To: [EMAIL PROTECTED] Subject: Re: C2.0.3 silently ignoring exceptions did anyone get the mail with the attachments? I had to resend it with fewer attachments because it was rejected as too large the first time. The second time it seemed to go through (I received it from cocoon-users), but I got a different message complaining about the size, plus a separate message saying it was blocked for some reason (like it had a virus, but no virus name was given, and the problem was supposedly in my attached stylesheet). Argh! If nobody received it, I'll send it yet again and send code snippets in the body of the text rather than attachments. -Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C2.0.3 silently ignoring exceptions
thank you. I got it. -Original Message- From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 12:14 PM To: [EMAIL PROTECTED] Subject: Re: C2.0.3 silently ignoring exceptions did anyone get the mail with the attachments? I had to resend it with fewer attachments because it was rejected as too large the first time. The second time it seemed to go through (I received it from cocoon-users), but I got a different message complaining about the size, plus a separate message saying it was blocked for some reason (like it had a virus, but no virus name was given, and the problem was supposedly in my attached stylesheet). Argh! If nobody received it, I'll send it yet again and send code snippets in the body of the text rather than attachments. -Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem using XSP in Weblogic
Hi, With reference to this link .. I was able to solve the problem I was struggleing for quiet a bit of time..http://archives2.real-time.com/rte-cocoon/2000/Jan/msg00130.htmlThanks a lot Mr. Russell Castagnaro regards, Sachin AbhyankarGet more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Re: Counting rows in a resultset
If running two queries is not out of the question for some principal reasons, I'd suggest the following: Run a query with LIMIT 1, 1. That query will return results ONLY if there are two or more rows that match. Then run your second query both inside the esql:no-results/esql:no-results and inside esql:results/esql:results. I would suggest using this only if you want to avoid coding Java by hand. Otherwise, using a List would be recommended. Here's an ad hoc example. As usual, there's more than one way to implement anything. xsp:logic List rows = new ArrayList(); /xsp:logic xsp:execute-query xsp:querySELECT id, name FROM names WHERE ..snip../xsp:query xsp:results xsp:row-results xsp:logic rows.add(new Object[] {new Long(esql:get-int name=id/), esql:get-string name=name/}); /xsp:logic /xsp:row-results /xsp:results /xsp:execute-query xsp:logic switch(rows.size()) { case 0: { // handle empty results }; break; case 1: { // handle single row Object[] row = (Object[])rows.get(0); int id = ((Integer)row[0]).intValue(); String name = (String)row[1]; xsp:content single-row xsp:attribute name=idxsp:exprid/xsp:expr/xsp:attribute xsp:attribute name=namexsp:exprname/xsp:expr/xsp:attribute /single-row /xsp:content }; break; default: { // handle multiple rows Iterator iter = rows.iterator(); multi-rows while(iter.hasNext()) { Object[] row = (Object[])iter.next(); int id = ((Integer)row[0]).intValue(); String name = (String)row[1]; row xsp:attribute name=idxsp:exprid/xsp:expr/xsp:attribute xsp:attribute name=namexsp:exprname/xsp:expr/xsp:attribute /single } /multi-rows }; /xsp:logic displaimerThis code was never compiled or run/displaimer -- Ilya Christian Haul wrote: On 28.Aug.2002 -- 10:48 AM, Tuomo Lesonen wrote: On Wed, 28 Aug 2002, Christian Haul wrote: On 28.Aug.2002 -- 10:07 AM, Tuomo Lesonen wrote: Hi, How can I count the rows in my resultset? I'm using esql, but esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*) doesn't work in this case either. Can I do this with XSP? Yes, have a new var declared before the execute-query and ++ it in your row-results Thank you Chris, but in this case I need to know the number of rows _before_ I do esql:row-results, in order to produce the right data. Tuomo, there is nothing in the JDBC API that provides this data that I'm aware of. There are certainly vendor specific procedures to get this information. However, most of the time the output needs to be limited, in order to page through the data. This is supported by esql. Chris. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem compiling WizardAction.java for XMLForms
I'm trying to compile my version of WizardAction.java and get a version error. Can anybody help me figure this one out? Cocoon 2-1.dev on Linux, Tomcat 4.0.2 [root@orion classes]# javac -classpath /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/webapps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar org/apache/cocoon/niac/list/WizardAction.java org/apache/cocoon/niac/list/WizardAction.java:73: cannot access org.apache.cocoon.acting.AbstractXMLFormAction bad class file: /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon/acting/AbstractXMLFormAction.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.apache.cocoon.acting.AbstractXMLFormAction; TIA -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop and extensions ... sorry
Hi Koen, Thanks that is a great solution and works well. But how can I use this to remove the request params? Don¹t hey have to be explicit cause one is serializing with fop and the other is just the default? Cheers Tim On 29/8/02 8:19 PM, Koen Pellegrims [EMAIL PROTECTED] wrote: Simple solution: you could match on any extension, so the browser can ask for display_Works/file.pdf?style=green map:match pattern=display_Works/**.* You could use this mapping to remove the 'pdf' request parameter as well. Koen -Oorspronkelijk bericht- Van: Tim Cavanagh [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 12:29 Aan: [EMAIL PROTECTED] Onderwerp: Fop and extensions ... sorry Hi folks, Sorry I know this has been posted b4 but I still cant find the answer!!! I am using the following code to pass a request to serialise a pdf for output. Now it works great ... But damn explorer does not recognise the mime type as a pdf doc but it does know its a binary file. It just sees the extension (.xml) and downloads the file but opens it with the app associated with xml files..sheesh. I have seen the fix for applying a ?pdf=.pdf at the end of the uri etc and unfortunately cause I am already passing a parameter it causes an error. Has anyone got a fix?? Please map:match pattern=display_Works/**.xml map:generate src=display_Works/{1}.xml/ map:match type=request pattern=style map:transform src={1}.xsl/ map:serialize / /map:match map:match type=request pattern=pdf map:transform src={1}.xsl/ map:serialize type=fo2pdf / /map:match map:transform src=xsl_display_course.xsl/ map:serialize / /map:match Regards Tim Cavanagh Douglas Mawson Institute of Technology Australia - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(SUMMARY)Re: Problem compiling WizardAction.java for XMLForms
Doh. I was using the wrong javac. Bobby Mitchell wrote: I'm trying to compile my version of WizardAction.java and get a version error. Can anybody help me figure this one out? Cocoon 2-1.dev on Linux, Tomcat 4.0.2 [root@orion classes]# javac -classpath /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/webapps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar org/apache/cocoon/niac/list/WizardAction.java org/apache/cocoon/niac/list/WizardAction.java:73: cannot access org.apache.cocoon.acting.AbstractXMLFormAction bad class file: /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon/acting/AbstractXMLFormAction.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.apache.cocoon.acting.AbstractXMLFormAction; TIA -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameter set by user
I was trying to find information on how to pass a parameter from the HTML page down to the XSL, do invoke portions of the stylesheet. From what results to me, this depends on the transforming machine used. I found information on how to pass parameter values to XALAN via the command line. How would this be done instead from an HTML page when using Cocoon? Matthias - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Parameter set by user
Matthias, here's the relevant link in the doc: http://xml.apache.org/cocoon/userdocs/transformers/xslt-transformer.html Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Technik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 11:37 PM To: [LIST] Cocoon Subject: Parameter set by user I was trying to find information on how to pass a parameter from the HTML page down to the XSL, do invoke portions of the stylesheet. From what results to me, this depends on the transforming machine used. I found information on how to pass parameter values to XALAN via the command line. How would this be done instead from an HTML page when using Cocoon? Matthias - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop and extensions ... sorry
Hi Koen, Thanks that is a great solution and works well. But how can I use this to remove the request params? Don¹t hey have to be explicit cause one is serializing with fop and the other is just the default? Cheers Tim On 29/8/02 8:19 PM, Koen Pellegrims [EMAIL PROTECTED] wrote: Simple solution: you could match on any extension, so the browser can ask for display_Works/file.pdf?style=green map:match pattern=display_Works/**.* You could use this mapping to remove the 'pdf' request parameter as well. Koen -Oorspronkelijk bericht- Van: Tim Cavanagh [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 29 augustus 2002 12:29 Aan: [EMAIL PROTECTED] Onderwerp: Fop and extensions ... sorry Hi folks, Sorry I know this has been posted b4 but I still cant find the answer!!! I am using the following code to pass a request to serialise a pdf for output. Now it works great ... But damn explorer does not recognise the mime type as a pdf doc but it does know its a binary file. It just sees the extension (.xml) and downloads the file but opens it with the app associated with xml files..sheesh. I have seen the fix for applying a ?pdf=.pdf at the end of the uri etc and unfortunately cause I am already passing a parameter it causes an error. Has anyone got a fix?? Please map:match pattern=display_Works/**.xml map:generate src=display_Works/{1}.xml/ map:match type=request pattern=style map:transform src={1}.xsl/ map:serialize / /map:match map:match type=request pattern=pdf map:transform src={1}.xsl/ map:serialize type=fo2pdf / /map:match map:transform src=xsl_display_course.xsl/ map:serialize / /map:match Regards Tim Cavanagh Douglas Mawson Institute of Technology Australia - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Another article on Cocoon - Web Syndication
We can include the whole piece in the Cocoon docs. No copyright issues. Willing to help :-? I liked your xdoc on the ServletProxy. My xdocs skills are lagging behind, so I will appreciate assistance. Cheers, Ivelin - Original Message - From: Michael Wechner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 4:16 PM Subject: Re: [ANN] Another article on Cocoon - Web Syndication Ivelin, very nice article. Are you going to include parts of it within Cocoon documentation? Thanks Michael Ivelin Ivanov wrote: http://www.webservices.org/index.php/article/articleview/613 -=Ivelin=- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- OSCOM - Open Source Content Management Conference September 25th - 27th 2002, Berkeley, California http://www.oscom.org/conferences/berkeley2002/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP again.. And html
Hi, Sorry if this is the wrong place to ask this question.. I am using fop to serialize pdf from xml docs. Is it possible to substitute or remove html tags that are mixed in with plain text within an XML element. These tags are only simple ones like bxsx/b and OL's, UL's. Can this be done with fo or xslt? -- Regards Tim Cavanagh DMIT Technical Coordinator MindMedia Douglas Mawson Institute of Technology 1 Mundy St Port Adelaide SA 5015 Phone +618 83032669 Fax +618 83032667 What can be done with fewer assumptions is done in vain with more William of Ockham - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem compiling WizardAction.java for XMLForms
You have a class in the org/apache/cocoon/niac/list/WizardAction.java directory. Did you make sure that the package declared within the class is org.apache.cocoon.niac.list ? - Original Message - From: Bobby Mitchell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 3:14 PM Subject: Problem compiling WizardAction.java for XMLForms I'm trying to compile my version of WizardAction.java and get a version error. Can anybody help me figure this one out? Cocoon 2-1.dev on Linux, Tomcat 4.0.2 [root@orion classes]# javac -classpath /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/weba pps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar org/apache/cocoon/niac/list/WizardAction.java org/apache/cocoon/niac/list/WizardAction.java:73: cannot access org.apache.cocoon.acting.AbstractXMLFormAction bad class file: /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon /acting/AbstractXMLFormAction.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.apache.cocoon.acting.AbstractXMLFormAction; TIA -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Another article on Cocoon - Web Syndication
I think the date is ok now. Although I have to assure you that I have the original idea since 1970 ... ;) - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:35 AM Subject: Re: [ANN] Another article on Cocoon - Web Syndication Lol, then Ivelin Ivanov is a really visionary guy. He realize since 1970 all about Cocoon and Web Syndicate! Anyway, very nice article. Antonio Gallardo El Jueves, 29 de Agosto de 2002 08:00, Artur Bialecki escribió: That article was published on January 1, 1970 only few days before I was born. Can't believe cocoon is older than I am :) Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem compiling WizardAction.java for XMLForms
Yes, but I changed the directory to niac/list and it compiled OK. Ivelin Ivanov wrote: You have a class in the org/apache/cocoon/niac/list/WizardAction.java directory. Did you make sure that the package declared within the class is org.apache.cocoon.niac.list ? - Original Message - From: Bobby Mitchell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 3:14 PM Subject: Problem compiling WizardAction.java for XMLForms I'm trying to compile my version of WizardAction.java and get a version error. Can anybody help me figure this one out? Cocoon 2-1.dev on Linux, Tomcat 4.0.2 [root@orion classes]# javac -classpath /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar:/var/tomcat4/weba pps/cocoon/WEB-INF/lib/excalibur-sourceresolve-20020820.jar org/apache/cocoon/niac/list/WizardAction.java org/apache/cocoon/niac/list/WizardAction.java:73: cannot access org.apache.cocoon.acting.AbstractXMLFormAction bad class file: /var/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.1-dev.jar(org/apache/cocoon /acting/AbstractXMLFormAction.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.apache.cocoon.acting.AbstractXMLFormAction; TIA -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using seletor to test 2 or more request parameter
I have a selector in pipeline map:select type=request-parameter map:parameter name=parameter-name value=cocoon-xmlform-view/ map:when test=confirm map:redirect-to uri=PropForSale(1)/ /map:when /map:select This works just fine, but this tests only one request parameterif someone wants to test 2 or more parameter..how is that done? I also tried something like : map:select type=request-parameter map:parameter name=parameter-name value=cocoon-xmlform-view/ !--map:parameter name=parameter-name value=cocoon-action-next/ -- map:when test=confirm !-- like how to test 2 request parameter condition? -- map:select type=request-parameter map:parameter name=parameter-name value=cocoon-action-next/ map:when test=Next -- map:redirect-to uri=PropForSale(1)/ /map:when /map:select /map:when /map:select does not work. -Apurva Zaveri __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP again.. And html
On Fri, Aug 30, 2002 at 10:23:31AM +0930, Tim Cavanagh wrote: Hi, Sorry if this is the wrong place to ask this question.. I am using fop to serialize pdf from xml docs. Is it possible to substitute or remove html tags that are mixed in with plain text within an XML element. These tags are only simple ones like bxsx/b and OL's, UL's. Can this be done with fo or xslt? Are the tags part of the XML tree, eg: description A bshort/b description /description If so, just copy through the content: xsl:template match=b|ol|ul xsl:value-of select=./ /xsl:template --Jeff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSLT logicsheet parameter issues
Hi, We've got a custom XSLT logicsheet running on Cocoon 2.0.3/Tomcat that for some reason can't seem to read parameters using the request object inside the xsp:logic tags. We've just converted the code in XSP file (which did work but was getting a little big) to an XSLT logicsheet. Do we need to pass on the parameters from the XSP file that is calling the XSLT logicsheet? Thank you Rob Grundel === This email may be confidential and/or privileged. Only the intended recipient may access or use it. We use virus scanning software but exclude all liability for viruses or similar in any attachment. Copyright in this email and any document created by Pitt Sherry Consulting Engineers will remain vested in Pitt Sherry Consulting Engineers and will not transfer to you. If you have received this email by mistake, please telephone (613) 6323 1900 (reverse charges), or forward message to [EMAIL PROTECTED] === - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]