RE: wiki.cocoondev.org - is cocoon based?
-Original Message- From: Stavros Kounis [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 10:41 To: [EMAIL PROTECTED] Subject: wiki.cocoondev.org - is cocoon based? hi people i have 2 question about wiki in cocoondev 1. is it powered (served) by cocoon or not It's JSP Wiki available at www.jspwiki.org So I guess thi is off-topic ! 2. is it open source ? Yes i need something like this for documentation in our intranet I've used it for exactly the same! i want people here to be able to add update ar delete something You can use tomcat to add realm-based login security thnx stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logger category control
Hi All, I'd like to control the target/catgory of some logging at the level of a map:match, or alternatively, change the target/catgory within a bit of xsp. The most 'atomic' I've managed to control the target it is at map:generator level for the whole (sub)sitemap. I've tried changing logger with log:logger/ but looking at the logicsheet log.xsl, if there's a logger already, then it won't 'override' it. Can anyone offer any advice? Thanks, 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: Microsoft SQLserver with cocoon
Maxime 1) When I last got the drivers there were 3 jars, namely msbase.jar mssqlserver.jar msutil.jar Try putting all 3 jars into cocoon's WEB-INF/lib 2) For mssql add following lines (between ... ...) to in WEB-INF/web.xml within init-param param-nameload-class/param-name param-value ... !-- For mssql2000 Driver: -- com.microsoft.jdbc.sqlserver.SQLServerDriver ... 3) Add following jdbc element within datasources/ in cocoon.xconf jdbc name=my_sql2000_cocoon_datasource pool-controller min=5 max=10/ dburljdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydatabase /dburl usersa/user passwordmypassword/password /jdbc assuming database on Server: localhost Port: 1433 Database: mydatabase and user and password as specified please edit as necessary 4) You can now (after restarting servlet engine) do something like ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; page esql:connection esql:poolmy_sql2000_cocoon_datasource/esql:pool my_table_element esql:execute-query esql:query select fld1 as myfield1, fld1 as myfield2 from mytable /esql:query esql:results esql:row-results my_row_element my_column_one_elementesql:get-string column=myfield1//my_column_one_element my_column_two_elementesql:get-string column=myfield2//my_column_two_element /my_row_element /esql:row-results /esql:results esql:no-results no-resultsno-results/no-results /esql:no-results /esql:execute-query /my_table_element /esql:connection /page /xsp:page Where -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 02 December 2002 10:10 To: [EMAIL PROTECTED] Subject: Microsoft SQLserver with cocoon Hi I want to use a microsoft sql server with cocoon, so I downloaded Microsoft JDBC drivers for MS Sql server, and put the lib (JAR) into cocoon's library dir, restarted cocoon. Now, do I have to modify the cocoon.xconf? Can anybody tell me the way to make a connection and get data? Thanks - 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: Microsoft SQLserver with cocoon
John, I'd be delighted, Please tell me more, e.g. what form it should take, what it should include, etc Contact me off-list if you wish, Christopher -Original Message- From: Morrison, John [mailto:[EMAIL PROTECTED]] Sent: 02 December 2002 11:42 To: '[EMAIL PROTECTED]' Subject: RE: Microsoft SQLserver with cocoon Christopher, Would you consider putting this information into some form of documentation we could include with the code? Thanks, J. - 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]
Another XSP - and no mention of Cocoon
Someone else is using the name XSP and XML Server Pages, and as far as I can tell gives no mention of Apache or Cocoon I'm not sure from what I've seen whether it's the same technology ... Thought we all should know Look at http://xsp.triloggroup.com/flowbuilder/site/f5_1_Tech_XSP.xsp or http://www.flowbuilder.com/xsp as mentioned on p59 of Java Developer's Journal Oct 2002 Vol 7 No 10 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: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?
Thanks, again -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 19:24 To: [EMAIL PROTECTED] Subject: Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas? Christopher Watson wrote: ... These were fixed later on, in 2.0.4-dev. I'd rather use the interpreted sitemap. It seems to improve reload dramatically! Could you tell me what files I would have to update, and how to get them? I looked at http://cvs.apache.org/viewcvs.cgi but don't see a 2.0.4-dev branch ... How would I get 2.0.4-dev ? It's in cocoon_2_0_3_branch Vadim - 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]
Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?
Hello I'm having problems with a sub-sitemap I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with 4.1.10 or 4.1.12 The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same problem. It's a problem of sitemap 'inheritance' as far as I can tell. The error I get from the example URL above is as follows .. Description:org.apache.avalon.framework.configuration.ConfigurationException : Type 'wildcard' is not defined for 'match' at file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26 True, the wildcard matcher component is not declared in the subsitemap, but used to 'inherit' it from the 'root' sitemap at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above example. If I declare the lost wildcard matcher component in the subsitemap then it works, or at least, I get the next error caused by the failed 'inheritance' So I guess I have a workaround in declaring everything in the subsitemap, but this kind of defeats the object !? I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 (doesn't) to check my sanity on this! It's weird that the version of Tomcat should create this different behaviour. Does anyone have any idea what's going on? 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: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?
-Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:51 To: [EMAIL PROTECTED] Subject: Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas? Christopher Watson wrote: Hello I'm having problems with a sub-sitemap I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with 4.1.10 or 4.1.12 The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same problem. It's a problem of sitemap 'inheritance' as far as I can tell. The error I get from the example URL above is as follows .. Description:org.apache.avalon.framework.configuration.Configurati onException : Type 'wildcard' is not defined for 'match' at file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26 True, the wildcard matcher component is not declared in the subsitemap, but used to 'inherit' it from the 'root' sitemap at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above example. If I declare the lost wildcard matcher component in the subsitemap then it works, or at least, I get the next error caused by the failed 'inheritance' So I guess I have a workaround in declaring everything in the subsitemap, but this kind of defeats the object !? I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 (doesn't) to check my sanity on this! It's weird that the version of Tomcat should create this different behaviour. Does anyone have any idea what's going on? Seems you have switched to interpreted sitemap which (IIRC) in 2.0.3 release had some bugs. Vadim, well spotted ! You are as ever, a brick! I reset the compiled sitemap and it worked ... and I thought I'd eliminated that from my enquiries. I had too many machines and versions hanging around ... These were fixed later on, in 2.0.4-dev. I'd rather use the interpreted sitemap. It seems to improve reload dramatically! Could you tell me what files I would have to update, and how to get them? I looked at http://cvs.apache.org/viewcvs.cgi but don't see a 2.0.4-dev branch ... How would I get 2.0.4-dev ? Thanks Again Christopher Vadim 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: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?
Lajos, Many thanks. I'll give it a go. -Original Message- From: Lajos Moczar [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 15:04 To: [EMAIL PROTECTED] Subject: Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas? Which is a matter of editing src/java/org/apache/cocoon/components/ExtendedComponentSelector.java, adding the following method at the end of the file and rebuilding Cocoon. public boolean hasComponent(Object hint) { boolean exists = super.hasComponent( hint ); if ( !exists this.parentSelector != null ) { exists = this.parentSelector.hasComponent( hint ); } return exists; } Lajos Vadim Gritsenko wrote: Christopher Watson wrote: Hello I'm having problems with a sub-sitemap I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with 4.1.10 or 4.1.12 The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same problem. It's a problem of sitemap 'inheritance' as far as I can tell. The error I get from the example URL above is as follows .. Description:org.apache.avalon.framework.configuration.Configuratio nException : Type 'wildcard' is not defined for 'match' at file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26 True, the wildcard matcher component is not declared in the subsitemap, but used to 'inherit' it from the 'root' sitemap at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above example. If I declare the lost wildcard matcher component in the subsitemap then it works, or at least, I get the next error caused by the failed 'inheritance' So I guess I have a workaround in declaring everything in the subsitemap, but this kind of defeats the object !? I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 (doesn't) to check my sanity on this! It's weird that the version of Tomcat should create this different behaviour. Does anyone have any idea what's going on? Seems you have switched to interpreted sitemap which (IIRC) in 2.0.3 release had some bugs. These were fixed later on, in 2.0.4-dev. Vadim 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] -- galatea.com Cocoon training, consulting support - 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: Connecting to MS SQL Server
Lars Best is to buy/beg/steal/borrow the book Cocoon: Building XML Applications by Carsten Ziegeler, Matthew Langham http://www.amazon.com/exec/obidos/ASIN/0735712352/ http://www.newriders.com/books/product.asp?session_id={64B81A3A-2F82-408F-9C DB-DF29BD5567CE}product_id={C3C05052-BE3B-4E06-A60A-13FB40AF58F6} Failing that you can try the online docs, ESQL is part of XSP, so I'd start at http://xml.apache.org/cocoon/userdocs/xsp/index.html or on your installation at http://localhost:8080/cocoon/documents/userdocs/xsp/index.html to get started with XSP. Then try the EQL link http://xml.apache.org/cocoon/userdocs/xsp/esql.html or on your installation at http://localhost:8080/cocoon/documents/userdocs/xsp/esql.html --- OR --- You could use an SQL transformer to get at SQL. See http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html or on your installation at http://localhost:8080/cocoon/documents/userdocs/transformers/sql-transformer .html Christopher -Original Message- From: Lars Martinsen [mailto:[EMAIL PROTECTED]] Sent: 10 September 2002 09:02 To: '[EMAIL PROTECTED]'; 'Christopher Watson' Subject: RE: Connecting to MS SQL Server Thanks a lot Christopher.. In your mail, you mention esql. Do you know any resources on this subject? How would I write SQL statements with esql, when I've used the esql/esql tags that you indicated? Thanks again, .lars martinsen - 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: Connecting to MS SQL Server
Lars Assuming you're using the Microsoft 2000 JDBC driver, 1 Copy the three libraries from the unpacked distribution msbase.jar mssqlserver.jar msutil.jar to WEB-INF/lib 2 Add com.microsoft.jdbc.sqlserver.SQLServerDriver to init-param in WEB-INF/web.xml, ending up with someting like ... init-param param-nameload-class/param-name param-value !-- For MySQL Driver: -- !-- org.gjt.mm.mysql.Driver replaced by -- com.mysql.jdbc.Driver !-- For mssql2000 Driver: -- com.microsoft.jdbc.sqlserver.SQLServerDriver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param 3 Declare the datasource in cocoon.xconf, thus jdbc name=mypool pool-controller min=5 max=10/ dburljdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb/dburl usermyuser/user passwordmypassword/password /jdbc By the way, as far as I can gather, you CAN'T use windows authentication with the JDBC driver, so you must set the server to use mixed security. That might cause your sysadmin to flutter! Now you can use mypool as a pooled connection name, e.g. in esql as esql:poolmypool/esql:pool As for what you can do with esql, that's another story ! Christopher -Original Message- From: Lars Martinsen [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 11:02 To: '[EMAIL PROTECTED]' Subject: Connecting to MS SQL Server Does anyone have a step-by-step on how to connect to a MS SQL Server and do SQL commands on it? I have tried to do it by reading all the help and how-tos that is bundeled with Cocoon, but I didn't manage. .lars martinsen - 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: simple connection to MySQL
Vaskin I'm guessing (from the class name in your web.xml) you've just downloaded the new Connector/J from www.mysql.com ?? In which case ... See my annotations below -Original Message- From: Vaskin Kissoyan [mailto:[EMAIL PROTECTED]] Sent: 06 September 2002 16:22 To: [EMAIL PROTECTED] Subject: simple connection to MySQL I've tried to follow the how-to's and tutorials on the net and in the docs. Someone plase let me know what step I'm missing: 0) * Built 2.0.3 with all the samples and libs, installed war file under Tomcat 4.04, under JDK 1.4 * Built same tables with given sql file in mysql on a default install of 3.23.51 on same machine (localhost), database is cocoon 1) Dropped the zip file into appropriate place: * tried both as zip and renamed to jar * tried in server\lib and also cocoon\WEB-INF\lib The file you need to take out of the zip and put in cocoon\WEB-INF\lib is mysql-connector-java-2.0.14-bin.jar 2) Added the following to cocoon.xconf inside datasources/ under the default built in element jdbc name=personnel/ jdbc name=mypool pool-controller min=1 max=5/ dburljdbc:mysql://localhost/cocoon/dburl userroot/user password/ /jdbc Try dburljdbc:mysql://localhost:3306/cocoon/dburl where cocoon is whatever you've called your mysql database 3306 is the port number used by mysql, and I don't think the driver defaults to use 3306 - you have to tell it 4) Added the load-class in cocoon's web.xml as follows 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 That's right for the new Connector/J (The old Mark Matthews JDBC library - from wich Connector/J was derived - used a class name org.gjt.mm.mysql.Driver, which is what some other people who've replied to you are referring to.) !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param 4) Getting the following error: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: No suitable driver When I try to pull up the ESQL sample Have you changed the ESQL sample to use YOUR pool, which, from the above, you've called mypool ? You'll also need to have populated your mysql database, which, from the above, you've called cocoon ... Any help would be appreciated. I've tried. Hope it works! Christopher Watson - 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: simple connection to MySQL
Vaskin I'm guessing (from the class name in your web.xml) you've just downloaded the new Connector/J from www.mysql.com ?? In which case ... See my annotations below -Original Message- From: Vaskin Kissoyan [mailto:[EMAIL PROTECTED]] Sent: 06 September 2002 16:22 To: [EMAIL PROTECTED] Subject: simple connection to MySQL I've tried to follow the how-to's and tutorials on the net and in the docs. Someone plase let me know what step I'm missing: 0) * Built 2.0.3 with all the samples and libs, installed war file under Tomcat 4.04, under JDK 1.4 * Built same tables with given sql file in mysql on a default install of 3.23.51 on same machine (localhost), database is cocoon 1) Dropped the zip file into appropriate place: * tried both as zip and renamed to jar * tried in server\lib and also cocoon\WEB-INF\lib The file you need to take out of the zip and put in cocoon\WEB-INF\lib is mysql-connector-java-2.0.14-bin.jar 2) Added the following to cocoon.xconf inside datasources/ under the default built in element jdbc name=personnel/ jdbc name=mypool pool-controller min=1 max=5/ dburljdbc:mysql://localhost/cocoon/dburl userroot/user password/ /jdbc Try dburljdbc:mysql://localhost:3306/cocoon/dburl where cocoon is whatever you've called your mysql database 3306 is the port number used by mysql, and I don't think the driver defaults to use 3306 - you have to tell it 4) Added the load-class in cocoon's web.xml as follows 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 That's right for the new Connector/J (The old Mark Matthews JDBC library - from wich Connector/J was derived - used a class name org.gjt.mm.mysql.Driver, which is what some other people who've replied to you are referring to.) !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param 4) Getting the following error: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: No suitable driver When I try to pull up the ESQL sample Have you changed the ESQL sample to use YOUR pool, which, from the above, you've called mypool ? You'll also need to have populated your mysql database, which, from the above, you've called cocoon ... Any help would be appreciated. I've tried. Hope it works! Christopher Watson - 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]
Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Could anyone help with this cache problem ... I seem to get these errors creep into existence for certain static document (e. g. images). Everything is fine for a couple of days, then I start getting cache errors on access to some static files. Once a certain URI starts failing, it keeps failing, then gradually others join in. To restore access to them, I have to stop tomcat, delete the work directory (which includes the cache of course!) and restart tomcat. Then everything is fine for a couple of days again. I've checked the recommendations for heapsize and freememory as far as I understand them. I've done a search of the mailing list, but have not managed to find anything specific to this error. System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1 jdk1.3.1 Here's the error I get. (By the way, /main/ is the name of my cocoon context and directory) ERROR (2002-08-20) 03:05.26:671 [access] (/main/images/banners/Sep02_Kozena.gif) Ajp13Processor[8009][20]/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:234) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:249) at org.apache.cocoon.www.sitemap_xmap.matchN10A3F(sitemap_xmap.java:10143) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3022) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2481) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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 :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Thread.java:484) java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:154) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at
RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Carsten. I think it's not the same problem, since I'm just doing a map:read to get the .gif :-( (The bug you mentioned below seemed to be resolved by a patch to batik, so I guess it was a generated svgjpeg image in their case) I'm just going to look at something Vadim has suggested ... Christopher PS I've just bought yours and Matthew's book. It's VERY helpful, delightfully systematically presented. Wish it had been out there a year ago! Thank you -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: 20 August 2002 13:59 To: [EMAIL PROTECTED] Subject: RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject Perhaps this is the same bug as described here: http://marc.theaimsgroup.com/?t=10293301812r=1w=2 Carsten - 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: Getting XML from request
Deepak I suspect you need xmlns:xsp-request=http://apache.org/xsp/request/2.0; in your opening xsp:page tag along with xmlns:util=http://apache.org/xsp/util/2.0; and the like otherwise the xsp-request: stuff doesn't get translated Christopher -Original Message- From: Deepak Mehta [mailto:[EMAIL PROTECTED]] Sent: 06 June 2002 09:05 To: [EMAIL PROTECTED]; Mike Ash Subject: Re: Getting XML from request Mike, I had the same problem... Deepak, I suspect you've got something like xsp:exprmyStringVariable/xsp:expr try replacing this with util:include-exprutil:exprxsp:exprmyStringVariable/xsp:expr/util:ex pr/util:include-expr Also, to use the util: logicsheet, you'll need to add xmlns:util=http://apache.org/xsp/util/2.0; to your opening xsp:page tag Regards Dp On 5/6/02 18:24, Mike Ash [EMAIL PROTECTED] wrote: Sorry about not using plain text. What I would like to end up with is nodes from the xsp page that contain the nodes from the object i put in the request. page para mynode mychildnode /mychildnode /mynode /para /page What I am getting now is page para xsp-request:attribute name=xmlData !-- these are not nodes but the value of the above node -- lt;mynodegt; lt;mychildnodegt; lt;/mychildnodegt; lt;/mynodegt; /xsp-request:attribute /para /page -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:10 AM To: [EMAIL PROTECTED] Subject: RE: Getting XML from request I need that object back as xml in an xsp page, when I try this xsp:request:get-attribute name=xmlData as=xml Correct syntax is: xsp-request:get-attribute name=xmlData as=xml/ Result will be (IIRC): xsp-request:attribute name=xmlDatavalue of attribute/xsp-request:attribute For: xsp-request:get-attribute name=xmlData as=string/ Result will be: value of attribute For: Object o = xsp-request:get-attribute name=xmlData as=object/; Result will be assigned to object 'o'. The question is then how do I get the data into the xsp as real xml nodes that I can use in a transformation step with xsl? What do you mean? PS PLEASE SEND PLAIN TEXT EMAILS Vadim -Original Message- From: Mike Ash [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:25 AM To: '[EMAIL PROTECTED]' Subject: Getting XML from request I am storing xml data in the request object by using request.setAttribute(xmlData, someObject); I need that object back as xml in an xsp page, when I try this xsp:request:get-attribute name=xmlData as=xml it returns the xml as a node value instead of individual nodes. The question is then how do I get the data into the xsp as real xml nodes that I can use in a transformation step with xsl? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Deepak 'Deep' Mehta E-mail: [EMAIL PROTECTED] URL: http://www.dp.com/ PGP Fingerprint: 837E B8E6 6AF4 6675 2730 0848 7731 09F5 3445 00A5 Money-making is a wonderful thing (Maxin Skin in Carmen Queasy) --- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML generation
-Original Message- From: Deepak Mehta [mailto:[EMAIL PROTECTED]] Sent: 04 June 2002 10:53 To: [EMAIL PROTECTED] Subject: XML generation Hi All, Here is some info on the specs of my setup before I explain the problem: -CPU: MacOSX 10.1.4 running JDK 1.3.1 -EJB: Jonas 2.4.4 with embedded tomcat 3.3.1 and cocoon 2.0.2 -DB: PostgreSQL 7.1.2 with standard JDBC drivers Setup: Jonas runs EJBs and Tomcat has a singleton servlet that connects to the EJB and has methods for the XSP pages to generate dynamic XML. Problem: if I let the singleton generate a String containing the final XML, which is easy, since I do not need to throw a lot of things Cocoon's way, then the problem is that Cocoon converts the '' and '' to gt; and lt;... Deepak, I suspect you've got something like xsp:exprmyStringVariable/xsp:expr try replacing this with util:include-exprutil:exprxsp:exprmyStringVariable/xsp:expr/util:ex pr/util:include-expr Also, to use the util: logicsheet, you'll need to add xmlns:util=http://apache.org/xsp/util/2.0; to your opening xsp:page tag Is there a way to stop Cocoon from messing with the String data in an xsp page? Thanks Dp -- -- - Deepak 'Deep' Mehta E-mail: [EMAIL PROTECTED] URL: http://www.dp.com/ PGP Fingerprint: 837E B8E6 6AF4 6675 2730 0848 7731 09F5 3445 00A5 Money-making is a wonderful thing (Maxin Skin in Carmen Queasy) -- - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to upload a file???
Manish -Original Message- From: manish [mailto:[EMAIL PROTECTED]] Sent: 04 June 2002 10:08 To: [EMAIL PROTECTED] Subject: How to upload a file??? Hello All, How can I upload a file from browser to server using cocoon. I am using the following syntax... form name = test ENCTYPE=multipart/form-data There's an example bundled with cocoon, on my tomcat installation it's at http://localhost:8080/cocoon/xsp/upload (cocoon version 2.0.1) It uses an xsp page which follows. NB, the bit where it 'contextualizes' is basically to get the upload directory name from web.xml - you may not need this, nor may you need the logging it does, but it's there to show you how . = ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-response=http://apache.org/xsp/response/2.0; xmlns:log=http://apache.org/xsp/log/2.0; xsp:structure xsp:includeorg.apache.cocoon.components.language.markup.xsp.XSPUtil/xsp:i nclude xsp:includeorg.apache.avalon.framework.context.ContextException/xsp:inclu de /xsp:structure xsp:logic File uploadDir = null; /** Contextualize this class */ public void contextualize(Context context) throws ContextException { uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR); } /xsp:logic page titleThis form allows you upload files/title content para form method=post enctype=multipart/form-data action=upload File: input type=file name=uploaded_file size=50 / pinput type=submit value=Upload File //p /form /para para ul xsp:logic getLogger().debug(Dir= + uploadDir); String[] filelist = uploadDir.list(); ![CDATA[ getLogger().debug(List= + filelist.length); for (int i = 0; i filelist.length; i++) { getLogger().debug(File [ + i + ]= + filelist[i]); ]] li xsp:exprfilelist[i]/xsp:expr /li ![CDATA[ } ]] /xsp:logic /ul /para paraBrought to you by Cocoon at xsp:exprnew Date()/xsp:expr./para /content /page /xsp:page = please let me know how to include this tag on cocoon side to accept file type data from anurag - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML generation
The EJB bit is beyond me, I guess yes if it's in the same JVM ...? You can actually use request.getParameter within a bit of xsp:logic/ rather than the request logicsheet, though the latter is an option. Good Luck Christopher -Original Message- From: Deepak Mehta [mailto:[EMAIL PROTECTED]] Sent: 04 June 2002 15:32 To: [EMAIL PROTECTED] Subject: Re: XML generation Thanks, This worked! Now I have the output part working, now I need to work on a form that creates a record in an entity EJB. I assume I use the request logicsheet to get the parameters from the form post and then invoke a method on my singleton to invoke a create on the EJB... Could it be so simple? Regards Dp On 4/6/02 16:27, Christopher Watson [EMAIL PROTECTED] wrote: -Original Message- From: Deepak Mehta [mailto:[EMAIL PROTECTED]] Sent: 04 June 2002 10:53 To: [EMAIL PROTECTED] Subject: XML generation Hi All, Here is some info on the specs of my setup before I explain the problem: -CPU: MacOSX 10.1.4 running JDK 1.3.1 -EJB: Jonas 2.4.4 with embedded tomcat 3.3.1 and cocoon 2.0.2 -DB: PostgreSQL 7.1.2 with standard JDBC drivers Setup: Jonas runs EJBs and Tomcat has a singleton servlet that connects to the EJB and has methods for the XSP pages to generate dynamic XML. Problem: if I let the singleton generate a String containing the final XML, which is easy, since I do not need to throw a lot of things Cocoon's way, then the problem is that Cocoon converts the '' and '' to gt; and lt;... Deepak, I suspect you've got something like xsp:exprmyStringVariable/xsp:expr try replacing this with util:include-exprutil:exprxsp:exprmyStringVariable/xsp:expr /util:ex pr/util:include-expr Also, to use the util: logicsheet, you'll need to add xmlns:util=http://apache.org/xsp/util/2.0; to your opening xsp:page tag Is there a way to stop Cocoon from messing with the String data in an xsp page? Thanks Dp -- -- - Deepak 'Deep' Mehta E-mail: [EMAIL PROTECTED] URL: http://www.dp.com/ PGP Fingerprint: 837E B8E6 6AF4 6675 2730 0848 7731 09F5 3445 00A5 Money-making is a wonderful thing (Maxin Skin in Carmen Queasy) -- - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- - Deepak 'Deep' Mehta E-mail: [EMAIL PROTECTED] URL: http://www.dp.com/ PGP Fingerprint: 837E B8E6 6AF4 6675 2730 0848 7731 09F5 3445 00A5 Money-making is a wonderful thing (Maxin Skin in Carmen Queasy) -- - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection PoolingDoesn't Work (for me) - any ideas
Dear Spinnerettes, Every so often I get a reply to my (much earlier) list message about this subject. Later follows my reply to the latest one, which someone may want to correct or complement ... but it has prompted me to ask again .. I want to get JDK1.4 and connection pooling working. 1) Can I? 2) What CVS (HEAD or 2.0.3) do I need? 3) Is a 2.0.3 or other dist where this works forthcoming? Sorry to be a nag. For completeness, I think Cocoon is marvellous! My reply . == I kind of gave up and went back to Cocoon 2.0.1 , Tomcat 4.0.1 and jdk 1.3, since I've no pressing need to get to jdk1.4 ! There was a recent 'howto jdk1.4' in the users mailing list, in response to which I asked if connection pooling worked with it but got no response. Last I saw on the developers list was talk of a forthcoming 2.0.3 release. There's a branch ready for this on the CVS, but it's not been put into the dist You MAY find that the latest (HEAD) CVS works, albeit with perhaps a bit of judicious editing of EsqlConnection.java to get it co compile. (I.E. Just take the /* */ to uncomment the JDBC3 specific stuff) Also, in 2.0.2 there was a bug in AbstractValidatorAction.java (Thanks Vadim for helping me with this bit! ) so get that from the CVS - Frankly, I can't completely remember how my last try with jdk1.4 worked. I think ESQL Connection Pooling was OK ! But going to whatever the CVS version I last tried had unconnected side-effects for what I had done, which, although probably more correct, would have meant me changing what I had done ... (Aggregation on 2.0.1 with a missing map:part URI would just leave the missing part out of the aggregate, on whatever CVS it was I tried with jdk1.4, it did a 404 resource not found) I'm going to forward this to the user and dev lists since there's been nothing about progress on this for a while. I'll change your name in case you don't want it Sorry I can't be of more immediate help Christopher Original Message read : I recently downloaded the cocoon 2.0.2 from the apache web site. I have the same problem of all the people trying to build Cocoon on the Java 1.4. The only diference: I am using Tomcat 4.0.3 I saw also some comments about remove the Esql files. But I will need SQL connection to Firebird or PostgreSQL. I review also all the mailing list and it appears nobody had resolved this problem. Please tell me if we can do something to get working Cocoon2. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOWTO install cocoon under JDK 1.4
Robert, Well done getting it to compile. Now that it has, do you know if Connection Pooling works for ESQL etc? By the way, when I've tried jdk1.4 before, with Michael Enke's help I believe, the _first_ time I used a pooled connection it was OK, but if I tried it _again_ then it failed? If you get a chance to test it, please let us know. Christopher -Original Message- From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]] Sent: 02 May 2002 21:50 To: [EMAIL PROTECTED] Subject: Re: HOWTO install cocoon under JDK 1.4 Of course, I forgot one small detail that I culled from earlier messages. When compiling the cocoon sources for release 2.02, several errors will appear in conjunction with the ESQLConnection.java class. Towards the bottom of the file are a number of methods that are commented out in order to make the source compile under JDK 1.3.1. You'll have to uncomment these to get it to compile under JDK 1.4. Rob - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon installation on JDK 1.4
Leszek, I gave up too. Anyone have any news on rumoured 2.0.3 release which would fix this for us non-CVS folks ? Christopher Watson -Original Message- From: Leszek Gawron [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 17:24 To: [EMAIL PROTECTED] Subject: Cocoon installation on JDK 1.4 has anyone succeeded in this one (on Win32) ? I've spent almost a week digging mailing archives, cocoon website, Even when I succeed to compile and install war file in Tomcat/webapps dir a lot of examples do not work at all. I'm downloading CVS snapshots every day but the effect is quite the same. The latest stable platform I managed to install was Cocoon 2.0.1, JDK 1.3.1_02 and Tomcat 4.0.3, anything higher makes some features unusable ouzo -- -- [EMAIL PROTECTED] Leszek GawronICQ# 19681190 Software development SE consulting Mobile +48 (608) 23 74 55 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does xsl:strip-space work ?
Hi, can anyone help I want to rid my html of whitespace. According to the XSLT spec, if a text node contains just whitespace - tab, space, CR, LF it will be stripped, Also I'm trying belt abd braces, but still I'm getting the whitespace from my XML throuhg into the HTML, using a stylesheet like this ... ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:output indent=no / xsl:strip-space elements=* / xsl:template match=/myelement html head titleMy Page/title /head body ... The xsl:strip-space elements=* / makes no difference Anything else I need to do? Do I somehow need to persuade xalan to take notice? Does it take notice? Christopher Watson - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sendmail xsl problem - singleton mail session?
Hello, I've played with sendmail.xsl a bit recently. I notice that it uses javax.mail.Session.getDefaultInstance I had trouble getting this one to change mail hosts via the parameter: subsequent messages continued to use the host I'd used in the first message I haven't delved into javax.mail far enough to be sure, but my guess from the behaviour is that getDefaultInstance sets up a Singleton session. To get round the not-changing-mailhosts problem I did myself a clone of sendmail.xsl but using javax.mail.Session.getInstance instead of javax.mail.Session.getDefaultInstance and whacked into \WEB-INF\classes\org\apache\cocoon\components\language\markup\xsp\java and now I can use different hosts at will I'm wondering whether it might be a useful improvement to have a parameter to decide between javax.mail.Session.getDefaultInstance and javax.mail.Session.getInstance Hope this is of use to someone Christopher Watson -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 12:07 To: [EMAIL PROTECTED] Subject: Re: sendmail xsl problem On 17.Apr.2002 -- 10:38 AM, Perry Molendijk wrote: Hello, When I run the sendmail logicsheet I get a problem with the transformation of sendmail.xsl. Somewhere in the process the values of sendmail:subject, sendmail:body and sendmail:smtphost are not added to the generated java code. I've just checked a version into CVS that works for me (while the previous showed the errors you see). Please check with CVS version. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with 'large' STATIC pdf files
Mike Using the CVS version made it 'better' ... wget seemed to reliably get all the file. But I was still having intermittent problems when using a browser. The browser problems seemed to go away if I put a dummy query string on the end of the URL, e.g. http://server/something.pdf?a=a That's with IE6, haven't tried it elsewhere Sorry about the use of the word seemed , but then it's an intermittent problem :-? However, other bits of the CVS version functioned differently from release 2.0.1, (see my separate message) so I had to abandon it for now for my own purposes. I ended up defining a new tomcat context (in config/server.xml) to serve the pdf files, which seems (there's that word again) fine. Christopher Watson -Original Message- From: Mike Dewar [mailto:[EMAIL PROTECTED]] Sent: 22 April 2002 10:22 To: [EMAIL PROTECTED] Subject: Re: Problem with 'large' STATIC pdf files I have exactly this problem, which I reported to this list last week. I also tried wget and was surprised to see that it reported the size of the file to be the truncated length, rather than the true length. Looking in core.log I see the content-size reported as -1. Its an intermitant problem - if you can get the whole file cached then everything appears to work normally. Let me know if you find a solution. Mike. On Sat, Apr 20, 2002 at 07:10:51PM +0100, Christopher Watson wrote: Vadim, the plot thickens. I've unearthed cygwin's wget. On the 2.0.2 release build it gets all 175958 bytes ! Shame my browsers don't :- BUT On the current CVS (HEAD branch) it only gets 32768 bytes. The opposite of what I would have expected/hoped Christopher -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 20 April 2002 16:44 To: [EMAIL PROTECTED]; 'Christopher Watson' Subject: RE: Problem with 'large' STATIC pdf files From: Christopher Watson [mailto:[EMAIL PROTECTED]] Can anyone help - from the archives I think there've been a few people down this road, but I haven't see anything very hopeful. I'm trying to serve up static PDF files using map:match pattern=pdf/*.pdf map:read src=pdf/{1}.pdf mime-type=application/pdf/ /map:match These are simply exposed as download/viewable files by a href=pdf/something.pdf If I right click and download, I only get the first 32768 bytes. The .pdf file file is 115Kb. Bizarrely, I can download all of an 82KB one with no problem I did a sanity check with a large (300kb) image file served by map:match pattern=images/*.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match which I could right-click and save OK. What am I doing wrong? Why the different behaviour? Should not be. Reader processes all file types similarly. Is there anywhere where a max file size is set for static .pdf's or other file types? I don't think so. PS I can serve the pdf through another tomcat servlet OK Same behaviour in ie6, opera 6.0.1, ns 4.73 Try with wget -S. Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1 Try Cocoon CVS version (or today's snapshot). Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. _ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Problem with 'large' STATIC pdf files
I'm trying to serve up static PDF files using map:match pattern=pdf/*.pdf map:read src=pdf/{1}.pdf mime-type=application/pdf/ /map:match These are simply exposed as download/viewable files by a href=pdf/something.pdf If I right click and download, I only get the first 32768 bytes. The .pdf file file is 115Kb. Bizarrely, I can download all of an 82KB one with no problem I did a sanity check with a large (300kb) image file served by map:match pattern=images/*.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match which I could right-click and save OK. What am I doing wrong? Why the different behaviour? Is there anywhere where a max file size is set for static .pdf's or other file types? Hope somebody can help. Regards, Christopher PS I can serve the pdf through another tomcat servlet OK Same behaviour in ie6, opera 6.0.1, ns 4.73 Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with 'large' STATIC pdf files
Can anyone help - from the archives I think there've been a few people down this road, but I haven't see anything very hopeful. I'm trying to serve up static PDF files using map:match pattern=pdf/*.pdf map:read src=pdf/{1}.pdf mime-type=application/pdf/ /map:match These are simply exposed as download/viewable files by a href=pdf/something.pdf If I right click and download, I only get the first 32768 bytes. The .pdf file file is 115Kb. Bizarrely, I can download all of an 82KB one with no problem I did a sanity check with a large (300kb) image file served by map:match pattern=images/*.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match which I could right-click and save OK. What am I doing wrong? Why the different behaviour? Is there anywhere where a max file size is set for static .pdf's or other file types? PS I can serve the pdf through another tomcat servlet OK Same behaviour in ie6, opera 6.0.1, ns 4.73 Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with 'large' STATIC pdf files
Thanks for this Vadim, could you tell me what Try with wget -S. means? Some unix thing? I'm on winnt4, I'm going to try and delve into CygWIN... Meanwhile I'll get the latest CVS Christopher PS Any news on a 2.0.3 release? -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 20 April 2002 16:44 To: [EMAIL PROTECTED]; 'Christopher Watson' Subject: RE: Problem with 'large' STATIC pdf files From: Christopher Watson [mailto:[EMAIL PROTECTED]] Can anyone help - from the archives I think there've been a few people down this road, but I haven't see anything very hopeful. I'm trying to serve up static PDF files using map:match pattern=pdf/*.pdf map:read src=pdf/{1}.pdf mime-type=application/pdf/ /map:match These are simply exposed as download/viewable files by a href=pdf/something.pdf If I right click and download, I only get the first 32768 bytes. The .pdf file file is 115Kb. Bizarrely, I can download all of an 82KB one with no problem I did a sanity check with a large (300kb) image file served by map:match pattern=images/*.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match which I could right-click and save OK. What am I doing wrong? Why the different behaviour? Should not be. Reader processes all file types similarly. Is there anywhere where a max file size is set for static .pdf's or other file types? I don't think so. PS I can serve the pdf through another tomcat servlet OK Same behaviour in ie6, opera 6.0.1, ns 4.73 Try with wget -S. Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1 Try Cocoon CVS version (or today's snapshot). Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with 'large' STATIC pdf files
Vadim, the plot thickens. I've unearthed cygwin's wget. On the 2.0.2 release build it gets all 175958 bytes ! Shame my browsers don't :- BUT On the current CVS (HEAD branch) it only gets 32768 bytes. The opposite of what I would have expected/hoped Christopher -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 20 April 2002 16:44 To: [EMAIL PROTECTED]; 'Christopher Watson' Subject: RE: Problem with 'large' STATIC pdf files From: Christopher Watson [mailto:[EMAIL PROTECTED]] Can anyone help - from the archives I think there've been a few people down this road, but I haven't see anything very hopeful. I'm trying to serve up static PDF files using map:match pattern=pdf/*.pdf map:read src=pdf/{1}.pdf mime-type=application/pdf/ /map:match These are simply exposed as download/viewable files by a href=pdf/something.pdf If I right click and download, I only get the first 32768 bytes. The .pdf file file is 115Kb. Bizarrely, I can download all of an 82KB one with no problem I did a sanity check with a large (300kb) image file served by map:match pattern=images/*.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match which I could right-click and save OK. What am I doing wrong? Why the different behaviour? Should not be. Reader processes all file types similarly. Is there anywhere where a max file size is set for static .pdf's or other file types? I don't think so. PS I can serve the pdf through another tomcat servlet OK Same behaviour in ie6, opera 6.0.1, ns 4.73 Try with wget -S. Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1 Try Cocoon CVS version (or today's snapshot). Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Problem with 'large' STATIC pdf files - appears FIXED
Err.. Vadim, Don't know WHAT I did exactly, but when I tried the CVS version again it WORKED. Both with wget AND the browsers ! So, Thanks ! Sorry to trouble you unnecessarily. Christopher -Original Message- From: Christopher Watson [mailto:[EMAIL PROTECTED]] Sent: 20 April 2002 19:11 To: [EMAIL PROTECTED] Subject: RE: Problem with 'large' STATIC pdf files Vadim, the plot thickens. I've unearthed cygwin's wget. On the 2.0.2 release build it gets all 175958 bytes ! Shame my browsers don't :- BUT On the current CVS (HEAD branch) it only gets 32768 bytes. The opposite of what I would have expected/hoped Christopher -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 20 April 2002 16:44 To: [EMAIL PROTECTED]; 'Christopher Watson' Subject: RE: Problem with 'large' STATIC pdf files From: Christopher Watson [mailto:[EMAIL PROTECTED]] Can anyone help - from the archives I think there've been a few people down this road, but I haven't see anything very hopeful. I'm trying to serve up static PDF files using map:match pattern=pdf/*.pdf map:read src=pdf/{1}.pdf mime-type=application/pdf/ /map:match These are simply exposed as download/viewable files by a href=pdf/something.pdf If I right click and download, I only get the first 32768 bytes. The .pdf file file is 115Kb. Bizarrely, I can download all of an 82KB one with no problem I did a sanity check with a large (300kb) image file served by map:match pattern=images/*.jpg map:read src=images/{1}.jpg mime-type=image/jpg/ /map:match which I could right-click and save OK. What am I doing wrong? Why the different behaviour? Should not be. Reader processes all file types similarly. Is there anywhere where a max file size is set for static .pdf's or other file types? I don't think so. PS I can serve the pdf through another tomcat servlet OK Same behaviour in ie6, opera 6.0.1, ns 4.73 Try with wget -S. Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1 Try Cocoon CVS version (or today's snapshot). Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2.0.2 protected area - no longer works out of the box
Vadim I just popped the CVS AbstractValidatorAction.java into the 2.0.2 dist source and rebuild it (installscratchpadwar, jdk1.3.1, tomcat 4.0.1, winNT) That appears to have fixed it Many Thanks Christopher Watson -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: 30 March 2002 17:01 To: [EMAIL PROTECTED] Subject: RE: 2.0.2 protected area - no longer works out of the box It could be because of bug in validator action (AbstractValidatorAction.java) which was introduced in 2.0.2 and fixed recently. On latest CVS, protected area works Ok. Vadim From: Christopher Watson [mailto:[EMAIL PROTECTED]] Could someone confirm, and even better explain why Tomcat 4.0.1 jdk1.3 (I gave up on jdk1.4) Cocoon 2.0.2 The 'protected area' example does NOT log in using Donald Ball :-( Anyone know why not? What has changed? (the sunspot authentication works just fine, and there is an employee named Donald Ball in the personnel datasource) I've just checked that the 'protected area' does work with 2.0.1 with 4.0.1 and jdk1.3 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2.0.2 protected area - no longer works out of the box
Could someone confirm, and even better explain why Tomcat 4.0.1 jdk1.3 (I gave up on jdk1.4) Cocoon 2.0.2 The 'protected area' example does NOT log in using Donald Ball :-( Anyone know why not? What has changed? (the sunspot authentication works just fine, and there is an employee named Donald Ball in the personnel datasource) I've just checked that the 'protected area' does work with 2.0.1 with 4.0.1 and jdk1.3 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas
Title: RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas Thanks, Tom I suspect the problems are not only with cocoon, but excalibur too ! COCOON === The comment lines in the CVS EsqlConnection have @JDBC3_START@ and @JDBC3_END@which the ant task comments out if it FAILS to detect jdbc3 present. In the cocoondist version, these lines are commented out by /* and */ (it's the same in both the src.tar.gz and the src.zip) - so you have to remove them manually to get a clean jdk1.4 compile EXCALIBUR = I noticed one Michael Enke on cocoon-dev asking about recompiling excalibur under jdk1.4 ... There are similar @JDBC3_START@ lines in JdbcConnection and AbstractJdbcConnection in org.apache.avalon.excalibur.datasource I tried myself recompiling the latest excalibur source dist (excluding the scratchpad stuff), having corrected a couple of typos in the parameter resulSetType [sic] on lines 237, 251, 265 of Jdbc3Connection.java but even with that library,http://localhost:8080/cocoon/xsp/esqlstill doesn't work I now get org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: org.apache.avalon.excalibur.datasource.Jdbc3Connection at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:272) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.www.sitemap_xmap.matchN400552(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:6975) at org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3003) at org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) -- Whereas if I use esql:driver etc instead of esql:pool everything works OK as before Interestingly enough, my firewall monitor show port numbers open corresponding to what I would expect if thejdbc connections I've set in cocoon.xconf were active - cocoon just can't seem to get hold of the correct connection objects ?! COCOON-DEV GUYS I'm perhaps cheekily putting this out to cocoon-dev also - sorry to trouble you guys. Am Iright in thinking that jdk1.4 ESQL compatibility will be a while yet? Any ideas how long ? I was encouraged to try jdk1.4 by reading the installing/index.html document which seemed optimistic about jdk1.4 and tomcat4.0.4b1. Having already been to jdk1.4, then back to jdk1.3 and now jdk1.4 again, with all the other hoop-jumping that involves, I'm inclined to stay here - fortunately I have another machine with jdk1.3 ! Yours, hopefully Christopher Watson -Original Message-From: von Schwerdtner, Thomas (GXS, FPI) [mailto:[EMAIL PROTECTED]]Sent: 27 March 2002 18:45To: '[EMAIL PROTECTED]'Subject: RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas I don't know about your compile problems, but I do know that JDBC connections are fairly problematic with jdk1.4 since they changed some things. I had no problems building the CVS a few weeks ago, but the ESQL samples didnt work for me and I could not get the PostgreSQL jdbc driver to work either (despite comments that it would work with 1.4). I had to switch back to 1.3 to get everything I needed to work. HTH, -Tom -Original Message- From: Christopher Watson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 11:46 AM To: Cocoon-Users (E-mail) Subject: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas Hopefully someone can help me ? Followed the advice in cocoon-2.0.2\docs\installing\index.html, i.e. created the endorsed directory, copied xerces xalan and xml-apis Build clean then build installwar Compile falls over EsqlConnection, saying it should be declared abstract due to missing methods. Discovered some commented-out methods which seem to implement the missing methods - e.g. setSavePoint, setHoldability Uncommented those lines Also noticed a line which read
Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas
Hopefully someone can help me ? Followed the advice in cocoon-2.0.2\docs\installing\index.html, i.e. created the endorsed directory, copied xerces xalan and xml-apis Build clean then build installwar Compile falls over EsqlConnection, saying it should be declared abstract due to missing methods. Discovered some commented-out methods which seem to implement the missing methods - e.g. setSavePoint, setHoldability Uncommented those lines Also noticed a line which read /* */ between setLimitMetod and createStatement - wondered about this, whether I should comment out some lines as well as uncommenting those I just mentioned, but could see clearly what I should do so I left it ??!! Build installwar now worked Tomcat now runs cocoon mostly OK, but ESQL example doesn't work. Specifically it's POOLING that doesn't work ! http://localhost:8080/cocoon/xsp/esql results in java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available at org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.docs.sa mples.xsp.esql_xsp.generate(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\ cocoon-files\org/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/c ocoon/docs/samples/xsp\esql_xsp.java:341) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:260) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:399) at org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.sitemap _xmap.matchN400552(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-fi les\org/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/cocoon\sit emap_xmap.java:6975) at org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.sitemap _xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\o rg/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/cocoon\sitemap_ xmap.java:3003) at org.apache.cocoon.www.file_.X_.jakarta_tomcat_4_0_4b1.webapps.cocoon.sitemap _xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\o rg/apache/cocoon/www/file_/X_/jakarta_tomcat_4_0_4b1/webapps/cocoon\sitemap_ xmap.java:2489) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) etc If I replace the esql:pool with ... !-- esql:poolpersonnel/esql:pool-- esql:driverorg.hsqldb.jdbcDriver/esql:driver esql:dburljdbc:hsqldb:hsql://localhost:9002/esql:dburl esql:usernamesa/esql:username esql:password/esql:password ... then the example works. Can anyone help me to get pooing to work ? Is it something I did/didn't do to EsqlConnection.java ?? Something to do with the limitMethod stuff ?? Thanks, Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Namespace problem in cocoon-2.0, IE5,6
Dear 'spinners' I'm forwarding the message below, since, as you will read, the fix it mentions wasn't incorporated. It seems to have helped someone, and may be of use to others. I also refer to Marty McClelland [[EMAIL PROTECTED]] 's fix in the message with Subject: RE: Viewing XSP output with IE5.5 Generate a PI for the root element something like: xsl:template match=/ xsl:processing-instruction name=cocoon-formattype=text/xml /xsl:processing-instruction . . . /xsl:template (which is more of a workaround than a fix) I also repeat the question ... Is IE5.5 right to say The namespace prefix is not allowed to start with the reserved string xml. ? Christopher -Original Message- From: Barbara (further details withheld for privacy, hope that's ok) Sent: 31 January 2002 21:30 To: [EMAIL PROTECTED] Subject: Namespace problem in cocoon-2.0 Christopher I had a big problem with namespaces when I moved from cocoon-2.0rc2 to cocoon-2.0. I found your fix in the archives. I changed source and rebuilt cocoon, just as you did, and it all worked very well. Now there is cocoon-2.0.1 available. I tried it to see if your fix was included in this version but it does not seem to be there. Do you know if it will be included in the future? This is your fix that I am talking about: QUOTE Dear All I've fixed my own problem, but only by changing source and rebuilding cocoon, namely file org.apache.cocoon.components.language.markup.xsp.java.xsp.xsl lines 131 ... changed line 133 added filtering out of xmlns:xml namespace in addition to the one mentioned in the comment, thus - !-- Declare namespaces that also exist on the parent (i.e. not locally declared), and filter out xmlns:xmlns namespace produced by Xerces+Saxon -- xsl:if test=(($ns-prefix != 'xmlns') and ($ns-prefix != 'xml')) and $parent-element/namespace::*[local-name(.) = $ns-prefix and string(.) = $ns-uri] this.contentHandler.startPrefixMapping( xsl:value-of select=$ns-prefix/, xsl:value-of select=$ns-uri/ ); /xsl:if ALSO changed line 148 (the endPrefixMapping call) to follow suite !!! Now I can once more use that lovely IE5.5 pretty-printing to see what my xsp's are doing ; BUT ... Have I just fixed a bug? Or is the bug in IE5.5? Any Answers ? /QUOTE Regards Barbara - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I use request parameter in sitemap redirect ?
Can anyone help? I'd like to use a redirect (yes I know it's probably bad design that's led me here ! :) to a page which uses a request parameter. in other words I'm trying to do something like map:match pattern=myPattern map:act type=myDatabaseAction !-- this bit works fine and uses request.getParameter(myRequestParameterName); fine -- map:parameter name=descriptor value=context://myContextLocation/ /map:act map:redirect-to uri=mytargetpage?myParameter={myRequestParameterName}/ !-- mytargetpage doesn't get anything from request.getParameter--(myParameter); /map:match I'd like to pass the existing request paremeter on to the page being redirected to. Could anyone tell me how to do this, or has any other suggestions. Thanks Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How best to incorporate xml from a string into XSP
Marvellous. I hoped it would be that easy! -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: 11 December 2001 02:52 To: [EMAIL PROTECTED] Subject: Re: How best to incorporate xml from a string into XSP Someone else had this same problem recently. Use util:include-expr. It will parse the text that you pass in to it, and generate SAX calls from it (as opposed to writing the text straight to the output - after escaping all the control chars - like it's doing now). 1) Include the namespace xmlns:util=http://apache.org/xsp/util/2.0; in your XSP or the util:include-expr won't get called properly. 2) the call you need to make this work: util:include-exprutil:exprxsp:exprmyString/xsp:expr/util:expr/uti l:include-expr xsp:exprmyString/xsp:expr takes the value of String myString, which is then passed in to util:include-expr. DR At 11:01 PM 12/10/01 +, you wrote: Could someone help I have a method on an object that produces XML as a string. I wish to incorporate it into an XSP page. xsp:exprmyString/xsp:expr doesn't work, since it kindly changes into lt; etc. I have tried various approaches, each with various unwanted side effects. Could someone tell me what is the BEST way to achieve this? i.e. Parse it? DOM vs SAX? use this.contentHandler? use xsp:exprmyStringAsANode/xsp:expr? some other Cocoon technique/ generator/transformer etc Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.0 release, IE5.5, XML NAMESPACE
Dear All I've fixed my own problem, but only by changing source and rebuilding cocoon, namely file org.apache.cocoon.components.language.markup.xsp.java.xsp.xsl lines 131 ... changed line 133 added filtering out of xmlns:xml namespace in addition to the one mentioned in the comment, thus - !-- Declare namespaces that also exist on the parent (i.e. not locally declared), and filter out xmlns:xmlns namespace produced by Xerces+Saxon -- xsl:if test=(($ns-prefix != 'xmlns') and ($ns-prefix != 'xml')) and $parent-element/namespace::*[local-name(.) = $ns-prefix and string(.) = $ns-uri] this.contentHandler.startPrefixMapping( xsl:value-of select=$ns-prefix/, xsl:value-of select=$ns-uri/ ); /xsl:if ALSO changed line 148 (the endPrefixMapping call) to follow suite !!! Now I can once more use that lovely IE5.5 pretty-printing to see what my xsp's are doing ; BUT ... Have I just fixed a bug? Or is the bug in IE5.5? Any Answers ? -Original Message- From: Christopher Watson [mailto:[EMAIL PROTECTED]] Sent: 01 December 2001 16:05 To: Cocoon-Users (E-mail) Subject: Cocoon 2.0 release, IE5.5, XML NAMESPACE Dear Group I've just started looking at Release 2.0 Looking at the output of xsp pages, they now include the namespace for xml, i.e. xmlns:xml=http://www.w3.org/XML/1998/namespace; This results in the following behaviour in IE5.5 ... The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Line 2, Position 7 page xmlns:xml=http://www.w3.org/XML/1998/namespace; ... whereas before - event with c2rc2 there appeared the helpful nested tree structure. To replicate, try adding map:match pattern=xsp-plain-xml/* map:generate type=serverpages src=docs/samples/xsp/{1}.xsp/ map:serialize type=xml/ /map:match after map:match pattern=xsp-plain/* map:generate type=serverpages src=docs/samples/xsp/{1}.xsp/ map:serialize/ /map:match in the sitemap and try http://localhost:8080/cocoon/xsp-plain-xml/simple A few questions ... Is IE5.5 right to say The namespace prefix is not allowed to start with the reserved string xml. ? Does IE6 or another browser allow xml with this namespace decl to be displayed in a tree structure ? Is there a way of supressing this namespace decl in release 2.0 ? Any thanks gratefully received Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.0 release, IE5.5, XML NAMESPACE
Dear Group I've just started looking at Release 2.0 Looking at the output of xsp pages, they now include the namespace for xml, i.e. xmlns:xml=http://www.w3.org/XML/1998/namespace; This results in the following behaviour in IE5.5 ... The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Line 2, Position 7 page xmlns:xml=http://www.w3.org/XML/1998/namespace; ... whereas before - event with c2rc2 there appeared the helpful nested tree structure. To replicate, try adding map:match pattern=xsp-plain-xml/* map:generate type=serverpages src=docs/samples/xsp/{1}.xsp/ map:serialize type=xml/ /map:match after map:match pattern=xsp-plain/* map:generate type=serverpages src=docs/samples/xsp/{1}.xsp/ map:serialize/ /map:match in the sitemap and try http://localhost:8080/cocoon/xsp-plain-xml/simple A few questions ... Is IE5.5 right to say The namespace prefix is not allowed to start with the reserved string xml. ? Does IE6 or another browser allow xml with this namespace decl to be displayed in a tree structure ? Is there a way of supressing this namespace decl in release 2.0 ? Any thanks gratefully received Christopher - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I use logicsheets parameters
Christopher, Many thanks for a model answer, The missing penny has dropped because of your comment remember that a logicsheet is just an XSL stylesheet that gets applied to your XSP document to transform it into another XSP document. I had forgotten-cum-misunderstood! For your info C2 does things rather differently than C1, namely, instead of using cocoon processing instructions, you define pipelines in a sitemap.xmap file (an xml file that takes over a lot of what was cocoon.properties), which says how the xml file is generated (xsp, jsp, Tidied html, etc) then how it is transformed (generally xslt, but there are also transformers for log, sql, xinclude etc) then how it is serialized (html, xml, wap, svg2png, etc) That was for me the biggest change from the way C1 worked and it took a while to get the hang of, though I sense it has more power but the same thing can be achieved as you suggested from C1. Christopher -Original Message- From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 21:55 To: [EMAIL PROTECTED] Subject: Re: How do I use logicsheets parameters Christopher, first, may I suggest some general strategies for developing logicsheets? - start simple and extend by small increments, e.g., instead of trying to get this working by passing either an attribute or a child element, get it working one way, then get it working *seperately* the other way, then put them together. On another dimension, get it working first using a plain text element, then get it working with a Java variable. - remember that a logicsheet is just an XSL stylesheet that gets applied to your XSP document to transform it into another XSP document. You can take advantage of this for debugging by simply changing your processing instructions to pass your XSP through your logicsheet using the XSLT processor only, then viewing the output. (Some XML editors will also let you do this pretty easily.) This will give you insight into what the final XSP code looks like before conversion to Java. (This is easy to do in C1; I assume you can do it in C2.) - in addition to the above, write a plain XSP first, without using a logicsheet, that produces the expected output. In other words, write and debug an XSP that looks like the XSP you want after your logicsheet is applied. This will help you develop your logicsheet. Okay, so here's what I think you need to do what you are trying to do: XSP - Calling page ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:mytags=http://dummy.org/mytags; xsp:logic String bag=56891; /xsp:logic page rasp xsp:attribute name=bagagexsp:exprbag/xsp:expr/xsp:attribute foo mytags:get_my_param mytags:passedxsp:exprbag/xsp:expr/mytags:passed /mytags:get_my_param /foo goo !-- This just flat won't work, ever. The xsp:attribute doesn't do anything until *after* you run through the XSP processor and get converted to Java. You want this attribute to be transformed by your logicsheet, which happens *before* you are converted to Java. So don't do -- !-- mytags:get_my_param xsp:attribute name=passed23/xsp:attribute /mytags:get_my_param -- !-- Instead, try this: -- mytags:get_my_param passed=bag/ /goo hoo mytags:get_my_param passed=23/ /hoo /rasp /page /xsp:page Logicsheet ?xml version=1.0? xsl:stylesheet xmlns:xsp=http://apache.org/xsp; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:mytags=http://dummy.org/mytags; version=1.0 xsl:template match=mytags:get_my_param myparam !-- Note - you need to use xsp:attribute rather than xsl:attribute here since the xsl is applied *before* Java generation, but the value of the contents isn't available until the Java is running. -- xsp:attribute name=horse xsp:exprxsl:call-template name=value-for-passed//xsp:expr /xsp:attribute /myparam /xsl:template xsl:template name=value-for-passed xsl:choose xsl:when test=@passedxsl:value-of select=@passed//xsl:when xsl:when test=mytags:passed xsl:call-template name=get-nested-content xsl:with-param name=content select=mytags:passed/ /xsl:call-template /xsl:when /xsl:choose /xsl:template xsl:template name=get-nested-content xsl:param name=content/ xsl:choose xsl:when test=$content/* xsl:apply-templates select=$content/*/ /xsl:when xsl:otherwisexsl:value-of select=$content//xsl:otherwise /xsl:choose /xsl:template xsl:template match=@*|node() xsl:copyxsl:apply-templates select=@*|node()//xsl:copy /xsl:template /xsl:stylesheet Results page rasp bagage=56891 foo myparam horse=56891/myparam /foo goo myparam horse=56891/myparam /goo hoo myparam horse=23/myparam /hoo /rasp /page Hope this
How do I use logicsheets parameters
Could someone help me? I could benefit from a logicsheet parameters 101 I want to use my own logicsheet and pass in runtime parameter(s) I have set up a logicsheet with the namespace mytags and a function get_my_param, to which I want to pass an xsp/java variable. In the following xsp I have three goes at passing a String variable called bag - with the value 56891 - but with no success. (The logicsheet is based on guesses from what I found in session.xsl, util.xsl etc.) the results, and the logicsheet follow the listing of the page Note that the xsp:exprbag/xsp:expr gets 'resolved' in the calling page, but its value does not get passed into the logicsheet The hoo element shows that a literal value gets passed OK I guess it's to do with the order in which xsp: and mytags: are 'processed', but I don't know how to control this - any answers? XSP - 'Calling' page ?xml version=1.0? xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:mytags=http://dummy.org/mytags; xsp:logic String bag=56891; /xsp:logic page rasp xsp:attribute name=bagagexsp:exprbag/xsp:expr/xsp:attribute foo mytags:get_my_param mytags:passedxsp:exprbag/xsp:expr/mytags:passed /mytags:get_my_param /foo goo mytags:get_my_param xsp:attribute name=passed23/xsp:attribute /mytags:get_my_param /goo hoo mytags:get_my_param passed=23/ /hoo /rasp /page /xsp:page Results ?xml version=1.0 encoding=UTF-8? page xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:mytags=http://dummy.org/mytags; rasp bagage=56891 foo myparam horse=bag/ /foo goo myparam horse=/ /goo hoo myparam horse=23/ /hoo /rasp /page Results try #2 If I chaneg the priority of the copy over template in the logicsheet (quoted below), thus: xsl:template match=@*|*|text()|processing-instruction() priority=1 then I get ... ?xml version=1.0 encoding=UTF-8? page xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:mytags=http://dummy.org/mytags; rasp bagage=56891 foo mytags:get_my_param mytags:passed56891/mytags:passed /mytags:get_my_param /foo goo mytags:get_my_param passed=23 /mytags:get_my_param /goo hoo mytags:get_my_param passed=23/ /hoo /rasp /page ... which is quite different, but still not what I want !! Logicsheet ?xml version=1.0? xsl:stylesheet xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:mytags=http://dummy.org/mytags; version=1.0 xsl:template match=mytags:get_my_param xsl:variable name=myparam xsl:call-template name=value-for-passed/ /xsl:variable myparam xsl:attribute name=horsexsl:value-of select=$myparam//xsl:attribute !-- myotherparam xsl:attribute name=horse xsl:value-of select=$myotherparam/ /xsl:attribute /myotherparam -- /myparam /xsl:template xsl:template name=value-for-passed xsl:choose xsl:when test=@passedxsl:value-of select=@passed//xsl:when xsl:when test=mytags:passed xsl:call-template name=get-nested-content xsl:with-param name=content select=mytags:passed/ /xsl:call-template /xsl:when /xsl:choose /xsl:template xsl:template name=get-nested-content xsl:param name=content/ xsl:choose xsl:when test=$content/* xsl:apply-templates select=$content/*/ /xsl:when xsl:otherwisexsl:value-of select=$content//xsl:otherwise /xsl:choose /xsl:template xsl:template match=@*|*|text()|processing-instruction() xsl:copy xsl:apply-templates select=@*|*|text()|processing-instruction()/ /xsl:copy /xsl:template /xsl:stylesheet - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]