Help needed with debugging XSP
Hello all, I am using Cocoon 1.8 with iAWS server. I have the following flow in my application. XML - XSP - XSLT XML file processed by XSP(actually an XSL) to add dynamic content. The output of which is transformed by a Stylsheet and the result returned to the user. Now, I want to look at the output generated by the XSP. How can I do that?? Thanks in advance for all the help. cheers Adam - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [C2] Using Oracle as a Producer
Brian, I use SQLTransformer to access Oracle 8.1.7 stored procedures... it works like a breeze. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Brian Topping [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 3:11 AM To: [EMAIL PROTECTED] Subject: [C2] Using Oracle as a Producer Greetings all, I am working with Cocoon 2.0, and I am very impressed with the flexibility of this tool and great documentation. I had numerous problems getting it running under Resin (which is too bad), but I just switched to Tomcat for now. Many thanks to all those that helped make Cocoon what it is today. My question: I am interested in connecting it to a database, Oracle 9i to be exact. I have found DB Prism, but I am finding myself running in circles trying to get it operational. The documentation leaves a lot to be desired. (I dare say it ought to be rewritten from scratch.) Or am I just making this really difficult? I assume that others are running C2 from a database like this, what is the consensus on the best way to handle this? If I get a lot of private responses I will summarize them and post my findings. Many thanks for your consideration of my plight, Brian Topping - 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 can I access XML Native database using cocoon
Praveen, Cocoon 2.1 has support for it. You can use the XML:DB pseudo protocol. For the moment you can get the file or a collection out of dbxml. Look at the cocoon-dev mail archive for more information about it. Stijn -Original Message- From: Kukkapalli PraveenKumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 11:55 AM To: [EMAIL PROTECTED] Subject: How can I access XML Native database using cocoon Hi all, I'm new to cocoon and this mailing list as well. I read that Cocoon is supporting Native Databases and downloaded the Cocoon and installed in my machine but I didn't get any Info. from the site that how to access native database. I'm using dbXML(Xindice).My frontend is XML and using DOM.I've to go to so many pages and fill some forms, all the information I've given is stored as DOM and whenever I submit that should submit to the database. Does it supports.Please let me know.. Best wishes Praveen - 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: XSP page getting called TWICE! (was: Pipeline dependencies)
Hi David, yesterday I send a patch to cocoon-dev (which now was applied to 20-branch) which should solve your problem. See http://marc.theaimsgroup.com/?l=xml-cocoon-devm=100827658927876w=2 for details. Wolfram -Ursprüngliche Nachricht- Von: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 12. Dezember 2001 17:49 An: [EMAIL PROTECTED] Betreff: RE: XSP page getting called TWICE! (was: Pipeline dependencies) Ah, but that's the rub. It's only invoked in one place in the Java code, and yet it gets called twice. Cocoon itself is calling this pipeline twice, for some reason, and I have no idea why. Thanks for the msg, though. DR At 10:04 AM 12/12/01 +0100, you wrote: David, I think what Mitch meant and I'm not sure you mean the same - you may trace down from which point of sitemap_xmap.java your pipelines are invoked. And as soon you found _two_ places of invocation in java code, you may match them back to your sitemap.xmap (you should see what exactly made your matcher to be invoked twice). Best wishes, Nick -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 12:01 AM To: [EMAIL PROTECTED] Subject: RE: XSP page getting called TWICE! (was: Pipeline dependencies) I did. From the trace, it seems like the whole map:match pattern=rtf_merge_data pipeline is getting run twice - which I found even more confusing. Not sure why it should need to run that pipeline twice. Clearly that's happening because of some combination of: a) it's an internal pipeline, b) I'm using the results of that pipeline in a transform in another pipeline. I can't figure out for the life of me why it should be run twice though. Thanks for giving it a shot though and please let me know if you have any other suggestions, as I still haven't solved this. DR At 08:58 AM 12/11/01 -0800, you wrote: Have you tried modifying the code to print a stack trace with each invocation? This might help isolate the source of each call. -Mitch -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 7:37 AM To: [EMAIL PROTECTED] Subject: Re: XSP page getting called TWICE! (was: Pipeline dependencies) I posted this a couple of times here, as well as once to the Dev list. No one's written back with any suggestions so far. I hope y'all don't mind, but I'd like to post this one more time. It's really stumping me! Please help! == Anyone have any thoughts on this? What could cause an XSP page to get called twice in the same request? Tnx! DR At 12:07 PM 12/7/01 -0500, you wrote: Actually, regarding the setup below (which I mentioned in another message), I'm having a problem with it and would appreciate some help. Take a look at the sitemap segment below. And let me clarify it a bit too: The XSL stylesheet that I'm using in the transform on pd/mergedoc.html is generated *dynamically*, from an xsp page (pages/gen_merge_xsl.xsp). This is working just fine, except for one small problem: For some reason, on each request, this XSP page is getting executed TWICE! Although this doesn't technically cause any errors, it's pretty inefficient since it hits the database twice, generates the xsl twice, etc. Any ideas why? Some possible thoughts I had: * perhaps the internal-only=true is causing this? * perhaps an additional aspect of this setup is causing this: the cocoon:/rtf_parse generation step (not listed) is setting an attachment response header (Content-Disposition: attachment; filename=myfile.rtf) so that the file will be downloaded instead of displayed directly in the browser. Could that be causing this? Any help appreciated! TIA! DR At 11:17 AM 12/7/01 -0500, you wrote: It is possible. I'm using that in my site: map:pipeline map:match pattern=pd/mergedoc.html map:generate src=cocoon:/rtf_parse/ map:transform src=cocoon:/rtf_merge_data/ map:serialize type=rtf/ /map:match /map:pipeline map:pipeline internal-only=true map:match pattern=rtf_merge_data map:generate type=serverpages src=pages/gen_merge_xsl.xsp/ map:serialize type=xml/ /map:match /map:pipeline DR - Please check that your
Re: Speed Problem
Hello Peter, recently my colleagues and I had an idea, that I want to submit here. We thought devide our web-applications in two categories: writing and reading activities. The latter are just reading (query) activities already prepared in static html form by the former ones. This files are saved in a special area of apache web server and are organized in a way that the query criteria element are parent directories of each html file. The former are activities that insert/update content into the system. This category of pages must be build with cocoon. The last activities we should insert after every process, is the generation of static above html that will be saved as an element the reading activities. Problem: we cannot use request parameters for reading activities in order to perform a query. For example, instead of having a location like that: http://www.myweb.com/cocoon/myaccount.html?account=23451detailed=yes we should do so: http://www.myweb.com/cocoon/account_23451/detailed_yes/myaccount.html. the file myaccount.html can be generated each time an account value information in DB (or whereever) has been changed. Hope everything is clear. What you thing about it? Cheers Pino Original Message Follows From: Peter Royal [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Speed Problem Date: Thu, 13 Dec 2001 13:32:33 -0500 On Thursday 13 December 2001 01:12 pm, you wrote: We are determining now, whether to use a powerful server application like Cocoon 2 for flexible web/wap/etc. output or not. The only real problem to me is the speed of cocoon. Does somebody have any experience if and (if yes) how Cocoon 2 could be made more efficient in the qay of needing time? I'd like to get to know some ways to make it more performant as it is much to slow for our purposes (just world wide web output) yet. cache cache cache! that makes a huge difference. Also if using tomcat be sure to set reloadable=FALSE for your context. That can literaly shave a second or two off each request under load. There have been quite a few threads on cocoon-dev on this topic recently though, I would suggest checking the archives as well. http://marc.theaimsgroup.com is a good one. -pete -- peter royal - [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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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 on Silver Stream 3.7 and Weblogic 6.1
Hello, As anyone had any success installing and running cocoon 2 on Silver Stream 3.7 and Weblogic 6.1 . I have followed the suggestions on this thread but running into issues. But I have successfully got Cocoon 2 to run on Websphere 4.0 and Websphere Studio Application Developer. Tony - Original Message - From: Giuseppe Di Pierri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 14, 2001 6:20 AM Subject: Re: Speed Problem Hello Peter, recently my colleagues and I had an idea, that I want to submit here. We thought devide our web-applications in two categories: writing and reading activities. The latter are just reading (query) activities already prepared in static html form by the former ones. This files are saved in a special area of apache web server and are organized in a way that the query criteria element are parent directories of each html file. The former are activities that insert/update content into the system. This category of pages must be build with cocoon. The last activities we should insert after every process, is the generation of static above html that will be saved as an element the reading activities. Problem: we cannot use request parameters for reading activities in order to perform a query. For example, instead of having a location like that: http://www.myweb.com/cocoon/myaccount.html?account=23451detailed=yes we should do so: http://www.myweb.com/cocoon/account_23451/detailed_yes/myaccount.html. the file myaccount.html can be generated each time an account value information in DB (or whereever) has been changed. Hope everything is clear. What you thing about it? Cheers Pino Original Message Follows From: Peter Royal [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Speed Problem Date: Thu, 13 Dec 2001 13:32:33 -0500 On Thursday 13 December 2001 01:12 pm, you wrote: We are determining now, whether to use a powerful server application like Cocoon 2 for flexible web/wap/etc. output or not. The only real problem to me is the speed of cocoon. Does somebody have any experience if and (if yes) how Cocoon 2 could be made more efficient in the qay of needing time? I'd like to get to know some ways to make it more performant as it is much to slow for our purposes (just world wide web output) yet. cache cache cache! that makes a huge difference. Also if using tomcat be sure to set reloadable=FALSE for your context. That can literaly shave a second or two off each request under load. There have been quite a few threads on cocoon-dev on this topic recently though, I would suggest checking the archives as well. http://marc.theaimsgroup.com is a good one. -pete -- peter royal - [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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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]
Ant: Cocoon 2 on Silver Stream 3.7 and Weblogic 6.1
jup, i have installed cocoon2 successfully, unjar the big cocoon.war, that helps a lot. bye Huber Bernhard, email: [EMAIL PROTECTED], homepage: members.a1.net/berni_huber/index.html - Ursprüngliche Nachricht - Von: Anthony Bisong [EMAIL PROTECTED] Datum: Freitag, Dezember 14, 2001 16:10 Betreff: Cocoon 2 on Silver Stream 3.7 and Weblogic 6.1 Hello, As anyone had any success installing and running cocoon 2 on Silver Stream 3.7 and Weblogic 6.1 . I have followed the suggestions on this thread but running into issues. But I have successfully got Cocoon 2 to run on Websphere 4.0 and Websphere Studio Application Developer. Tony - Original Message - From: Giuseppe Di Pierri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 14, 2001 6:20 AM Subject: Re: Speed Problem Hello Peter, recently my colleagues and I had an idea, that I want to submit here. We thought devide our web-applications in two categories: writing and reading activities. The latter are just reading (query) activities already prepared in static html form by the former ones. This files are saved in a special area of apache web server and are organized in a way that the query criteria element are parent directories of each html file. The former are activities that insert/update content into the system. This category of pages must be build with cocoon. The last activities we should insert after every process, is the generation of static above html that will be saved as an element the reading activities. Problem: we cannot use request parameters for reading activities in order to perform a query. For example, instead of having a location like that: http://www.myweb.com/cocoon/myaccount.html?account=23451detailed=yes we should do so: http://www.myweb.com/cocoo the file myaccount.html can be generated each time an account value information in DB (or whereever) has been changed. Hope everything is clear. What you thing about it? Cheers Pino Original Message Follows From: Peter Royal [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Speed Problem Date: Thu, 13 Dec 2001 13:32:33 -0500 On Thursday 13 December 2001 01:12 pm, you wrote: We are determining now, whether to use a powerful server applicationlike Cocoon 2 for flexible web/wap/etc. output or not. The only real problem to me is the speed of cocoon. Does somebody have any experience if and (if yes) how Cocoon 2 could be made more efficient in the qay of needing time? I'd like to get to know some ways to make it more performant as it is much to slow for our purposes (just world wide web output) yet. cache cache cache! that makes a huge difference. Also if using tomcat be sure to set reloadable=FALSE for your context. That can literaly shave a second or two off each request under load. There have been quite a few threads on cocoon-dev on this topic recently though, I would suggest checking the archives as well. http://marc.theaimsgroup.com is a good one. -pete -- peter royal - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. target=lhttp://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - Please check that your question has not already been answered in the FAQ before posting. target=lhttp://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. target=lhttp://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]
Error jdbc7.1-1.2.jar on postgresql v7.1.3 with Tomcat3.2.3 and Cocoon1.8.2
HELLO ALL. I have installed: JDK1.3 Apache 1.3.19 Tomcat 3.2.3 Cocoon 1.8.2 Postgresql 7.1.3 I have in my file: .bash_profile PATH=$PATH:/usr/localpgsql/bin MANPATH=$MANPATH:/usr/local/pgsql/man PGLIB=/usr/local/pgsql/lib PGDATA=/usr/local/pgsql/data CLASSPATH=/usr/local/jdbc7.1-1.2.jar tomcat.properties wrapper.bin.parameters=-Djdbc.drivers=org.postgresql.Driver wrapper.classpath=/usr/local/jdbc7.1-1.2.jar I have installed: Because I cannot load my I modulate JDBC with the Postgresql? Like it position, as it would have to form I modulate JDBC so that it works with Tomcat and Postgresql. From already thanks for the aid. _ Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es - 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 can I access XML Native database using cocoon
Anders Conrad wrote: As far as I understand, there are some taglibs supporting relational databases for Cocoon XSP, but I have not come across any direct support for native XML databases. The support is in the 2.1 version: you should get it via CVS and compile it yourself. After that you will have full access to the XML:DB pseudo protocol, which means that you will be able to get documents and/or collection listings by simply using URLs such as xmldb:dbxml:///db/whatever/you/want.xml. Please don't use the XML:DB generators, since we're planning to remove them in favor of the more flexible pseudo-protocol. Ciao, -- Gianugo Rabellino - 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: [C2] Using Oracle as a Producer
Brian Topping wrote: Greetings all, I am working with Cocoon 2.0, and I am very impressed with the flexibility of this tool and great documentation. I had numerous problems getting it running under Resin (which is too bad), but I just switched to Tomcat for now. Many thanks to all those that helped make Cocoon what it is today. My question: I am interested in connecting it to a database, Oracle 9i to be exact. I have found DB Prism, but I am finding myself running in circles trying to get it operational. The documentation leaves a lot to be desired. (I dare say it ought to be rewritten from scratch.) Or am I just making this really difficult? Did you report DB Prism installation problem to DB Prism's Yahoo.groups? DB Prism 2.0.0-alpha is fully operation with Cocoon2. 2.0.0-alpha1 will include - DB Prism CMS using parallel content agregation. - External Cache invalidator a la Oracle's Web Cache. and other features highly integrated with Cocoon 2.0-production. Best regards, Marcelo. -- Marcelo F. Ochoa - [EMAIL PROTECTED] Do you Know DB Prism? Look @ http://www.plenix.com/dbprism/ More info? Chapter 21 of the book Professional XML Databases (Wrox Press http://www.wrox.com/) Chapter 8 of the book Oracle Open Source (O'Reilly http://www.oreilly.com/catalog/oracleopen/) --- Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN Paraje Arroyo Seco - Campus Universitario (7000) Tandil - Bs. AS. - Argentina Te: +54-2293-30 Fax: +54-2293-31 - 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: Help needed with debugging XSP
Note: This response contains C2 terminology (e.g., transformer, serializer). You'll have to convert to C1 terminology yourself. Some options: 1) Insert a log transformer after the XSP page. That will output the SAX events from the XSP page to a log file. 2) Instead of running the XSLT, modify your site to serialize the output right after the XSP file. Either: * set the output for download (set a request header of: Content-disposition: attachment; filename=...), or * declare a new serializer that uses the XMLSerializer, but with mime type text/plain, or * just output as regular XML, and use Microsoft IE to view the doc. It supports XML display. DR At 05:05 PM 12/14/01 +0900, you wrote: Hello all, I am using Cocoon 1.8 with iAWS server. I have the following flow in my application. XML - XSP - XSLT XML file processed by XSP(actually an XSL) to add dynamic content. The output of which is transformed by a Stylsheet and the result returned to the user. Now, I want to look at the output generated by the XSP. How can I do that?? Thanks in advance for all the help. cheers Adam - 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: XSP page getting called TWICE! (was: Pipeline dependencies)
Wow - sweet! Unfortunately I didn't get a quick response on the dev mailing list, and unsubscribed before I saw your post. Thanks very much for taking care of this Wolfram! DR At 11:39 AM 12/14/01 +0100, you wrote: Hi David, yesterday I send a patch to cocoon-dev (which now was applied to 20-branch) which should solve your problem. See http://marc.theaimsgroup.com/?l=xml-cocoon-devm=100827658927876w=2 for details. Wolfram -Ursprüngliche Nachricht- Von: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 12. Dezember 2001 17:49 An: [EMAIL PROTECTED] Betreff: RE: XSP page getting called TWICE! (was: Pipeline dependencies) Ah, but that's the rub. It's only invoked in one place in the Java code, and yet it gets called twice. Cocoon itself is calling this pipeline twice, for some reason, and I have no idea why. Thanks for the msg, though. DR At 10:04 AM 12/12/01 +0100, you wrote: David, I think what Mitch meant and I'm not sure you mean the same - you may trace down from which point of sitemap_xmap.java your pipelines are invoked. And as soon you found _two_ places of invocation in java code, you may match them back to your sitemap.xmap (you should see what exactly made your matcher to be invoked twice). Best wishes, Nick -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 12:01 AM To: [EMAIL PROTECTED] Subject: RE: XSP page getting called TWICE! (was: Pipeline dependencies) I did. From the trace, it seems like the whole map:match pattern=rtf_merge_data pipeline is getting run twice - which I found even more confusing. Not sure why it should need to run that pipeline twice. Clearly that's happening because of some combination of: a) it's an internal pipeline, b) I'm using the results of that pipeline in a transform in another pipeline. I can't figure out for the life of me why it should be run twice though. Thanks for giving it a shot though and please let me know if you have any other suggestions, as I still haven't solved this. DR At 08:58 AM 12/11/01 -0800, you wrote: Have you tried modifying the code to print a stack trace with each invocation? This might help isolate the source of each call. -Mitch -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 7:37 AM To: [EMAIL PROTECTED] Subject: Re: XSP page getting called TWICE! (was: Pipeline dependencies) I posted this a couple of times here, as well as once to the Dev list. No one's written back with any suggestions so far. I hope y'all don't mind, but I'd like to post this one more time. It's really stumping me! Please help! == Anyone have any thoughts on this? What could cause an XSP page to get called twice in the same request? Tnx! DR At 12:07 PM 12/7/01 -0500, you wrote: Actually, regarding the setup below (which I mentioned in another message), I'm having a problem with it and would appreciate some help. Take a look at the sitemap segment below. And let me clarify it a bit too: The XSL stylesheet that I'm using in the transform on pd/mergedoc.html is generated *dynamically*, from an xsp page (pages/gen_merge_xsl.xsp). This is working just fine, except for one small problem: For some reason, on each request, this XSP page is getting executed TWICE! Although this doesn't technically cause any errors, it's pretty inefficient since it hits the database twice, generates the xsl twice, etc. Any ideas why? Some possible thoughts I had: * perhaps the internal-only=true is causing this? * perhaps an additional aspect of this setup is causing this: the cocoon:/rtf_parse generation step (not listed) is setting an attachment response header (Content-Disposition: attachment; filename=myfile.rtf) so that the file will be downloaded instead of displayed directly in the browser. Could that be causing this? Any help appreciated! TIA! DR At 11:17 AM 12/7/01 -0500, you wrote: It is possible. I'm using that in my site: map:pipeline map:match pattern=pd/mergedoc.html map:generate src=cocoon:/rtf_parse/ map:transform src=cocoon:/rtf_merge_data/ map:serialize type=rtf/ /map:match /map:pipeline
[c1] java.lang.NoClassDefFoundError with custom class?
I'm running Cocoon 1.8.2 and I've just upgraded from Tomcat3.x to Tomcat4.0.1. According to Tomcat's documentation, anything in WEB-INF/classes is available (so I dont have to put it in my classpath).I've got my own com.blah.globals package in WEB-INF/classes/com/blah/globals. When I try and import this in my cocoon logicsheet I geta NoClassDefFoundError: java.lang.NoClassDefFoundError: com/rrp/globals/Globals at _home._reedy._docs._production._pcteachit_com._temp.init(_temp.java:33) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) If anyone has any ideas on this I would really appreciate it. I tried adding it to my classpath and restarting everything and I still get the same error. Thanks! - Brent
Re: [c1] java.lang.NoClassDefFoundError with custom class?
Loose classes go in WEB-INF/classes. Jar files go in WEB-INF/lib. If your code is in a jar file then you put it in the wrong place. DR At 12:29 PM 12/14/01 -0500, you wrote: I'm running Cocoon 1.8.2 and I've just upgraded from Tomcat3.x to Tomcat4.0.1. According to Tomcat's documentation, anything in WEB-INF/classes is available (so I dont have to put it in my classpath). I've got my own com.blah.globals package in WEB-INF/classes/com/blah/globals. When I try and import this in my cocoon logicsheet I get a NoClassDefFoundError: java.lang.NoClassDefFoundError: com/rrp/globals/Globals at _home._reedy._docs._production._pcteachit_com._temp.init(_temp.java:33) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) If anyone has any ideas on this I would really appreciate it. I tried adding it to my classpath and restarting everything and I still get the same error. Thanks! - Brent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help needed with debugging XSP
On Fri, Dec 14, 2001 at 05:05:44PM +0900, Adam A R wrote: Hello all, I am using Cocoon 1.8 with iAWS server. I have the following flow in my application. XML - XSP - XSLT XML file processed by XSP(actually an XSL) to add dynamic content. The output of which is transformed by a Stylsheet and the result returned to the user. Now, I want to look at the output generated by the XSP. Just remove the ?cocoon-process type=xslt? PI, and change the MIME type specified in cocoon-format to text/xml. So at the top of your XML you'd have: ?cocoon-process type=xsp? ?cocoon-format type=text/xml? You could also leave the XSLT processor in place, but use either: - an identity transform stylesheet that doesn't alter the incoming XML, - a stylesheet that pretty-prints the XML for viewing in the browser (like IE does). I've attached a simple identity transform xsl. You can find a good view XML as HTML stylesheet in xml-xalan/java/samples/servlet/default.xsl When developing, I like to be able to switch to the debug stylesheet without editing XSPs. You can dynamically select the applied stylesheet with an XSP like this: ?cocoon-process type=xsp? ?cocoon-process type=xslt? xsp:page language=java xmlns:request=http://www.apache.org/1999/XSP/Request; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:util=http://www.apache.org/1999/XSP/Util; page xsp:pi target=xml-stylesheethref= xsp:expr request:get-parameter name=ss default=normal.xsl / /xsp:expr type=text/xsl/xsp:pi /page /xsp:page Then by default, normal.xsl will be applied, but if you append ?ss=identity.xsl, you'll get identity.xsl applied instead. --Jeff cheers Adam ?xml version=1.0? !-- An identity transformation [EMAIL PROTECTED] -- xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml media-type=text/xml indent=yes/ xsl:template match=/ xsl:copy-of select=node()/ /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]