Re: How to access sourceResolver in action configure() method

2003-05-29 Thread Charles Yates
it from ComponentManager by some role? Thank you, Michal -Original Message- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 7:32 PM To: [EMAIL PROTECTED] Subject: Re: How to access sourceResolver in action configure() method Can you put the configuration stuff

Re: Can we stop cocoon logging this as errors?

2003-05-29 Thread Charles Yates
there's a bug report on this: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16218 Tsui, Alban wrote: I have a webapp/site setup using cocoon 2.0.3 but whenever there is a redirection e.g. via action or users clicking hte pages very fast... I get the following: ERROR (2003-05-16)

Re: log level? thought i set it correctly...

2003-05-29 Thread Charles Yates
Tomcat logging is controled by $TOMCAT_HOME/conf/server.xml. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html icewind wrote: Hi, I am running cocoon 2.1-dev in tomcat 4. My log directory, $TOMCAT_HOME/logs is gets really big, so I figured I'd set the log levels from

Re: How to access sourceResolver in action configure() method

2003-05-27 Thread Charles Yates
Can you put the configuration stuff into cocoon.xconf? Then it would be available in configure(). If not you could implement Contextualizable and get the HttpContext like this: public void contextualize(Context aContext) throws ContextException { myContext = (HttpContext)

Re: How to access sourceResolver in action configure() method

2003-05-27 Thread Charles Yates
oops, I mean sitemap.xmap, not cocoon.xconf. Charles Yates wrote: Can you put the configuration stuff into cocoon.xconf? Then it would be available in configure(). If not you could implement Contextualizable and get the HttpContext like this: public void contextualize(Context aContext

Re: tunning Cocoon, Jetty/Tomcat to increase performances ?

2003-04-03 Thread Charles Yates
zze-MORY Nicolas FTRD/DMI/REN wrote: Hello, Anyone know any Web site where i can find informations to tune cocoon to increase significantly performances. Yes :-) http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=cocoon+performancebtnG=Google+Search Same question for Jetty and Tomcat ??

Re: Failed to execute pipeline.: Errors in XSLT transformation

2003-04-01 Thread Charles Yates
sure I was finished. Don * This stream pipeline is able to cache the response, if * ul * lia) the serializer is cacheable/li * lib) the codeEventPipeline/code is cacheable/li * /ul * - Original Message - From: Charles Yates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31

Re: Failed to execute pipeline.: Errors in XSLT transformation

2003-03-31 Thread Charles Yates
In cases like this I do the following: 1) make sure the pipeline is giving the transformer in question the right input. (ie comment out the transformer and any subsequent ones and use XMLSerializer) 2) make sure the stylesheet works outside of cocoon. (you can do step one to get the

Re: How to disable Caching in special Pipelines

2003-03-27 Thread Charles Yates
I'm not sure you can do this with 2.0.4, but if you look at the sitemap.xmap in 2.1-dev you will see that you can designate different kinds of pipelines, I _think_ with a 'type' attribute on the map:pipeline element. http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/webapp/ see The

Re: RSS

2003-03-27 Thread Charles Yates
see http://www.w3.org/TR/xslt#document xsl:apply-templates select=document('http://news.newsfeedsource.com/newsfeed.rss')/*/ or something like that. also consider using XIncludeTransformer or CIncludeTransformer: document stuff/ xi:include xmlns:xi=http://www.w3.org/2001/XInclude;

Re: RSS

2003-03-27 Thread Charles Yates
Cut and Paste ugliness correction: xi:include xmlns:xi=http://www.w3.org/2001/XInclude; href=http://news.newsfeedsource.com/newsfeed.rss/ Charles Yates wrote: see http://www.w3.org/TR/xslt#document xsl:apply-templates select=document('http://news.newsfeedsource.com/newsfeed.rss

Re: Parser role?

2003-03-27 Thread Charles Yates
cocoon.roles says this: !-- This is the usual SAX parser -- role name=org.apache.excalibur.xml.sax.SAXParser shorthand=xml-parser default-class=org.apache.excalibur.xml.impl.JaxpParser/ so you should import org.apache.excalibur.xml.sax.SAXParser and manager.lookup(SAXParser.ROLE)

Re: Source using Component via ECM

2003-03-25 Thread Charles Yates
Hi Peter, I think you need to provide more information, including the version of cocoon, the relevant part of cocoon.xconf, portions of you Source code, and any log error messages. Charles Peter Klotz wrote: Hi, I have a custom source that gets the component manager from the

Re: how instantiate an Action for each session?

2003-03-25 Thread Charles Yates
Component instantiation is handled by the underlying component framework, Avalon. What you would like to do is _might_ be possible by mucking with Avalon (ComponentHandlers and such) but there must be an easier way. For example, your Action could use the Session object to keep an Object

Re: Cocoon/ Java problem?

2003-03-23 Thread Charles Yates
either start tomcat as root: sudo /Tomcat/bin/startup.sh or change ownership of /Tomcat and its subdirectories: sudo chown -R craig /Tomcat Tomcat is trying to use the /Tomcat/work directory or some subdirectory and is unable to because of ownership/permissions problems. Welcome to unix :-) .

Re: How to serialize a XML file to disk?

2003-03-22 Thread Charles Yates
Cocoon is a server application, what you have described is a http client application. Cocoon does have http client functionality and you can customize it all you like, so the answer to your question is yes, but from what you have described it does not sound like the best tool for the job.

Re: How to serialize a XML file to disk?

2003-03-22 Thread Charles Yates
retrieved, using XSL transformations to SVG/PDF etc.. So what's the best way to store the grabbed XML into local hardrive, and merge the existing repository with the new id grabbed ( that corresponds to the new XML created). TIA - Original Message - From: Charles Yates [EMAIL PROTECTED

Re: Cant get an exception

2003-03-20 Thread Charles Yates
Lionel Crine wrote: I tried the log transformer but it write the getLogger.debug() statements in a file ? Sorry, I was referrring to putting that statement in your generator at strategic points like: public void generate() { getLogger().debug(generate()); //. etc } At 10:23

Re: Cant get an exception

2003-03-18 Thread Charles Yates
Lionel Crine wrote: Hello, I also have created my own transformer, generator, etc ... I didn't had time to use getlogger, so instead of that I use System.err.println to get my message into the console. 1) I recommend you take the time to add the 'getLogger().debug() statements. 2)

Re: Repost: mod_proxy w/ multiple webapps

2003-03-18 Thread Charles Yates
ProxyPass /webapp1/ http://localhost:8080/lwebapp1/ ProxyPassReverse /webapp1/ http://localhost:8080/webapp1/ ProxyPass /webapp2/ http://localhost:8080/webapp2/ ProxyPassReverse /webapp2/ http://localhost:8080/webapp2/ Lorenzo De Sio wrote: Hi all, did anyone succeed in configuring Apache's

Re: xerces version in j2sdk_1.4.1

2003-03-17 Thread Charles Yates
Yury Mikhienko wrote: Hi all! Does anyone know the xerces version in j2sdk_1.4.1 ? j2sdk_1.4.1 does not use xerces. And also: can I set another xerces for using (if I use java1.4)? http://java.sun.com/xml/jaxp/faq.html -

Re: Transforming with XML in database

2003-03-14 Thread Charles Yates
If you've got a AbstractSAXSource that gets stuff from the database how about writing a similar AbstractStreamSource that retrieves your stylesheets and then just use the TraxTransformer? Or modify your existing Source to do both toSAX() and getInputStream() efficiently. (I'm referring to

Re: is this kosher?

2003-03-13 Thread Charles Yates
I'm thinking that you can't do you would like to do because as I understand it, the pipeline is assembled before generation starts. You're talking about putting a pipeline together based on something that happens in the generation component. Cart before the horse. Closing the barn door

Re: XInclude-problems with Cocoon2.0.4

2003-03-12 Thread Charles Yates
Uwe Gerger wrote: Hello, I would like to use xinclude-statements in my xml-file with Cocoon2.0.4 with my own tags for example rpt:data. Specifying such a tag as follows xi:include href=include.xml#xpointer(/p/rpt:data)/ doesn't work. Instead using xi:include href=include.xml#xpointer(/p/rpt)/

Re: Problem writing a BetwixtTransformer

2003-03-12 Thread Charles Yates
Lyall, Keith wrote: Hi Marco, I tried putting try / catch blocks round all of the code in the methods I have overridden but no exceptions were caught. Do you suggest any other ways to debug a transformer? If your Transformer extends AbstractLoggable (cocoon 2.0.4) or AbstractLogEnabled

Re: XInclude recursion

2003-03-11 Thread Charles Yates
Cocoon's pipeline transformation model makes this sort of recursion difficult to implement. You could write a tranformer to do this, but it would be simpler to have multiple XIncludeTransformers in the pipeline. Charles Darren Petrie wrote: Is anybody using XInclude in a recursive manner?

Re: double namespace attribute

2003-03-11 Thread Charles Yates
Don't know why, exactly, but this has been discussed here before and the work around is to use namespace prefixes on all elements, ie don't use a default namespace in the document with the query. Something along those lines anyway. This works for me. Charles Robert Douglass wrote: Does

Re: 2 (should be) easy questions

2003-03-10 Thread Charles Yates
Richard Cunliffe wrote: Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not

Re: 2 (should be) easy questions

2003-03-10 Thread Charles Yates
sheet and sitemap, to aid any suggestions. Thanks, Richard. -Original Message- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 18:04 To: [EMAIL PROTECTED] Subject: Re: 2 (should be) easy questions Richard Cunliffe wrote: Hi, I have two questions: 1. I'm

Re: caching

2003-02-27 Thread Charles Yates
I am curently testing a 'CacheableSource' and 'CacheableSourceFactory' that does these things. Its not ready for prime time yet but it does do the things mentioned here. Used like this: cache://http://www.unreliableserver.com/news.rdf cache://cocoon://resource/that/takes/a/long/time It uses

Re: caching

2003-02-27 Thread Charles Yates
, I've forgotten why I abandoned that effort. Charles Reinhard Pötz wrote: Charles, Nice to hear this! One question: How do you set the cache validity time e.g. 60 minutes if you use a source? Regards, Reinhard -Original Message- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent

Re: caching

2003-02-27 Thread Charles Yates
Reinhard Pötz wrote: As already mentioned I don't know how to set the expiration time. If you use a source the only way to pass a parameter is the source string itself (at least AFAIK). I'm not sure if something like cache:3h//cocoon://resource/that/takes/a/long/time or

Re: mod_proxy and getRemoteHost()

2003-02-25 Thread Charles Yates
Aha! mod_proxy adds some headers to the request, one of them being named x-forwarded-for and contains the ip address of the forwarded request. I'm saved :-) Charles Charles Yates wrote: I've been experimenting with using mod_proxy as a connector as described here: http://wiki.cocoondev.org

Re: memory leak using xsl transformer

2003-02-25 Thread Charles Yates
In the absence of 'pruning' by the transformer, XSL requires the entire document be resident in memory. This is because at any point, a template may refer to any node in the document. This is a serious limitation when transforming large documents. While there has been some discussion of

mod_proxy and getRemoteHost()

2003-02-24 Thread Charles Yates
I've been experimenting with using mod_proxy as a connector as described here: http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy I like it a lot but have run into a snag. All my request.getRemoteHost() calls return 127.0.0.1. Does anyone know a way around this. Otherwise I can't use

Re: [SUMMARY] Complicated setup

2002-12-05 Thread Charles Yates
# Problem: now EVERYTHING is served by cocoon. No way to serve static/legacy content by Apache! A small quibble, but this isn't true. You can set up an alias in httpd.conf, for example: Alias /images/ /usr/java/tomcat/webapps/cocoon/resources/images/ Directory

Link Livesites: Lane Medical Library, Cocoon 2.0.2

2002-08-03 Thread Charles Yates
http://lane.stanford.edu/index.html The Lane Medical Library website provides medical information services to the Stanford Medical Center community. Charles Yates Digital Information Systems Programmer Lane Medical Library, Stanford University

handling errors occuring in aggregate

2002-05-22 Thread Charles Yates
Hello list, Does anyone have a graceful way of handling errors that occur in one map:part of a map:aggregate element? For example a portion of my sitemap.xmap: map:match pattern=**.html map:aggregate element=document map:part src=cocoon://{1}.xml/ map:part src=xdocs/menu.xml/

Re: namespace prefixes in html output

2002-04-24 Thread Charles Yates
exclude-result-prefixes=cinclude see http://www.w3.org/TR/xslt#stylesheet-element Hi, I'm getting namespace prefixes in the html output from Cocoon 2.02 and I can't figure out how to get rid of them. The problem is that I cannot create valid html whilst they are there. The prefixes can

Re: breadcrumb navigation

2002-03-26 Thread Charles Yates
If you mean to show a navigation-path like subdirectories, I would enable sitemap-parameters in the XSLT-Transformer and use the request-url of the user as name(I think they did the same at yahoo changing the '_' to a blank space). Maybe that helped you Axel I included the breadcrumb

breadcrumb navigation

2002-03-25 Thread Charles Yates
Hello List! Has anyone figured out a good way to generate breadcrumb navigation links using XSL and Cocoon? Like the ones at the top of Yahoo! pages. We plan on doing this and I don't want to reinvent the wheel. I'd rather not do it with sessions or cookies . . . Charles