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
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)
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
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)
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
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 ??
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
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
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
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;
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
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)
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
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
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 :-) .
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.
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
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
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)
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
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
-
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
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
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)/
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
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?
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
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
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
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
, 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
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
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
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
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
# 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
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
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/
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
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
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
41 matches
Mail list logo