Re: Adding EXSLT functions

2014-02-28 Thread Peter Flynn
On 27/02/14 21:47, Christopher Schultz wrote: Has anyone ever manually-plugged an EXSLT function into Xalan? No, I changed the processor to Saxon so I can use XSLT2. The date and time functions there are much better and more extensive, and there is no need for plugins. ///Peter -- Peter

Re: Getting the value of the browser selector

2014-02-11 Thread Peter Flynn
Does anyone have any more information about the browser selector? Specifically, how to pass its value into a pipeline as a parameter to the XSLT? ///Peter On 19/12/13 15:51, Peter Flynn wrote: On 19/12/13 12:46, Christopher Schultz wrote: Peter, On Dec 19, 2013, at 4:24, Peter Flynn pfl

Getting the value of the browser selector

2013-12-19 Thread Peter Flynn
Let me try again in a shorter post :-) 1. Has anyone ever used the browser selector? 2. Can it be used to pass the *value* to a transformation as a parameter without resorting to map:when, instead of just doing selection? ///Peter

Re: Getting the value of the browser selector

2013-12-19 Thread Peter Flynn
On 19/12/13 12:46, Christopher Schultz wrote: Peter, On Dec 19, 2013, at 4:24, Peter Flynn pfl...@ucc.ie wrote: Let me try again in a shorter post :-) 1. Has anyone ever used the browser selector? 2. Can it be used to pass the *value* to a transformation as a parameter without resorting

Re: Switching to Saxon

2010-12-22 Thread Peter Flynn
On 17/12/10 08:43, Johan Cwiklinski wrote: Hello, [...] Here is our configuration: [...] Hope that could help you :) Thanks very much, that did it. It was unclear from the docs where you put the name of the .jar file (saxon9) and where you just put the name saxon. One thing that switching to

Re: Too many open files

2010-12-17 Thread Peter Flynn
On 16/12/10 16:49, john muth wrote: I hit this problem not too long ago and decided the o/s default limit of 1024 was too low for what we were trying to do. For me, on Redhat, the solution was to edit /etc/security/limits.conf tomcatuser hard nofile 65535 tomcatuser soft nofile 65535

Encoding

2010-12-17 Thread Peter Flynn
I restored the Xalan settings after (failing to) add Saxon by copying Emacs' ~ backup copies of cocoon.xconf and sitemap.xmap, but now suddenly there are Unicode replacement characters (U+FFFD) appearing for accents in pages which were working before. The data is taken from a feed from an Oracle

Re: Switching to Saxon

2010-12-17 Thread Peter Flynn
Tomcat but I'm not aware of how to restart Cocoon itself. ///Peter -Original Message- From: Peter Flynn [mailto:pfl...@ucc.ie] Sent: Thursday, December 16, 2010 9:58 AM To: users@cocoon.apache.org Subject: Switching to Saxon I just tried this, but there seems to be a lack of up

Re: Encoding

2010-12-17 Thread Peter Flynn
On 17/12/10 15:06, Peter Flynn wrote: [...] The result is that the output at http://publish.ucc.ie/researchprofiles/A005 has Unicode replacement characters instead of accents. Curiouser and curiouser, that page serves as UTF-8 but lower down it says: !DOCTYPE html PUBLIC -//W3C//DTD HTML

Re: Encoding

2010-12-17 Thread Peter Flynn
On 17/12/10 15:37, Laurent Medioni wrote: What is your init-param param-namecontainer-encoding/param-name param-valueUTF-8/param-value /init-param In web.xml ? Interesting. ISO-8859-1, because !-- Set encoding used by the container. If not set the ISO-8859-1 encoding

Too many open files

2010-12-16 Thread Peter Flynn
I'm getting this error in apparently random circumstances on http://publish.ucc.ie/researchprofiles/ using Cocoon 2.1.11 under Tomcat5 on RHEL5. This application is reprocessing some HTML feeds from another server in order to present the information in a different layout, and do some extensive

Re: Too many open files

2010-12-16 Thread Peter Flynn
On 16/12/10 13:03, Johan Cwiklinski wrote: Hello, Le 16/12/2010 13:58, Peter Flynn a écrit : Caused by: java.net.SocketException: Too many open files at java.net.Socket.createImpl(Socket.java:388) at java.net.Socket.connect(Socket.java:517) at java.net.Socket.connect

Switching to Saxon

2010-12-16 Thread Peter Flynn
I just tried this, but there seems to be a lack of up-to-date details on doing this in Cocoon 2.1.11 with saxon9. Following the assorted web pages for earlier versions, I got as far as adding saxon9.jar to Cocoon's WEB-INF/lib and editing the two files (commenting out the Xalan entries): -

Re: Too many open files

2010-12-16 Thread Peter Flynn
On 16/12/10 14:39, Andreas Kuehne wrote: Hi all, if you're in a Cocoon environment, it's always a good idea to avoid the document function. Cocoon offers so many better ways like map:aggregate or the CInclude transformer preserving the cache functionalities. Thank you, that sounds like a

Calling LaTeX from within Cocoon

2010-04-28 Thread Peter Flynn
A common solution to the requirement to generate publication-quality PDF is to use XSLT to create LaTeX code and rely on LaTeX's understanding of documents and library of pre-written packages to create the PDF. For real-time web applications it would be very useful to be able to drive this

XHTML via Tidy not making it into XSLT

2009-10-23 Thread Peter Flynn
I have a resource in my sitemap which makes a web page available as XHTML: map:match pattern=fetch/** map:generate src=http://{1}; type=html/ map:transform src=xsl/as-is.xsl/ map:serialize type=xhtml/ /map:match I call this from within another XSLT file so that I can screenscrape the

User file uploads

2009-10-05 Thread Peter Flynn
I have a requirement for some of my users to upload documents to a Cocoon server. The files need to be managed by Apache and Tomcat afterwards, so using FTP/sftp won't work because those files will be owned by the user's userid, and I'd prefer not to start messing with the groups. There are

Re: Restricting access by IP address

2009-09-15 Thread Peter Flynn
, String h = new HashMapString, String(); for (int i = 0, j = m.groupCount(); i = j; i++) h.put(String.valueOf(i), m.group(i)); return h; } return null; } } Peter Flynn schrieb: Peter Flynn wrote: Thomas Markus wrote: hi, look at http

Re: Restricting access by IP address

2009-09-14 Thread Peter Flynn
Thomas Markus wrote: hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use a matcher/selector in your sitemap map:select type=parameter map:parameter name=parameter-selector-test value={request:remoteAddr} / map:when test=127.0.0.1 !-- actions for this

Re: Restricting access by IP address

2009-09-14 Thread Peter Flynn
Peter Flynn wrote: Thomas Markus wrote: hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use a matcher/selector in your sitemap map:select type=parameter map:parameter name=parameter-selector-test value={request:remoteAddr} / map:when test=127.0.0.1

Restricting access by IP address

2009-09-09 Thread Peter Flynn
I have developed an RSS feed summarising posts to an internal mailing list, but I need to restrict access to it by IP address so that it is usable only internally to the organisation. I can't see any way to do this using the authentication framework. Are there other ways to implement IP address

Re: Restricting access by IP address

2009-09-09 Thread Peter Flynn
Jeroen Reijn wrote: Hi Peter, have you also considered doing this with a webserver in front of your cocoon application? Yes, we currently front Tomcat with Apache httpd as a virtual host, but it's at the top level, eg VirtualHost *:80 ServerAdmin pfl...@ucc.ie ProxyPreserveHost On

Re: XSLT is Dead ?!

2009-04-30 Thread Peter Flynn
Stephen Winnall wrote: I think a lot of the anti-XSLT sentiment comes from people who don't see the point of XML. Yes, there are many of these. XML and its philosophy are far too complicated for the average designer-cum-website-hacker. This is neither a criticism of XML nor of the d-c-w-h.

Re: Unexpected encoding in output

2009-04-07 Thread Peter Flynn
Petteri Sulonen wrote: (1) Check your web.xml. You should have the init-param form-encoding set to UTF-8. (It's set by default to ISO-8859-1 on at least some versions of Cocoon.) /var/lib/tomcat5/webapps/cocoon/WEB-INF/web.xml says: !-- Set encoding used by the container. If not

Unexpected encoding in output

2009-04-03 Thread Peter Flynn
I have an RSS feed from our home page which is being generated by pulling in the HTML and Tidying it: map:match pattern=ucc map:generate src=http://www.ucc.ie/en/; type=html/ map:transform src=xsl/ucc.xsl/ map:serialize type=xml/ /map:match This works, except that the output starts with

Re: Email connector

2009-02-16 Thread Peter Flynn
David Legg wrote: Hi Peter, In effect it needs to parse the RFC822 headers to get the subject and origin and date, and then reproduce the text-body untouched (replacing and with character entity references), and drop all attachments on the floor. I thought I saw a reference to a

mime-type oddity

2009-02-06 Thread Peter Flynn
In my sitemap I have: map:match pattern=*/*/*/*/*/*.mov map:read mime-type=video/quicktime src=docs/{1}-{2}/{4}-{3}-{1}-{2}-{5}/{6}.mov/ /map:match map:match pattern=*/*/*/*/*/*.pdf map:read mime-type=application/pdf

Email connector

2009-01-29 Thread Peter Flynn
Is there an email connector for Cocoon? I am currently using my .procmailrc to grab some messages of interest to a research community and stick them in a mailbox file. I'd like to expose the n most recent (say 10) in a corner of a web page which is being generated by Cocoon. In effect it

RE: generate pdf from xml with embedded image?

2008-12-24 Thread Peter Flynn
://sitemap.xmap - 1034:92 map:mount Maybe i should try to show the base64 as text in the pdf first to see if it still there. -Oorspronkelijk bericht- Van: Peter Flynn [mailto:pfl...@ucc.ie] Verzonden: donderdag 18 december 2008 10:24 Aan: users@cocoon.apache.org Onderwerp: Re: generate pdf

Re: Configuration oddity

2008-12-22 Thread Peter Flynn
Luca Morandini wrote: Peter Flynn wrote: Whereabouts in the pipeline is that /cocoon veing inserted, and why? I've clearly misunderstood something vital here, but I can't see what. Just one question: do you use Apache HTTPd's mod_proxy or mod_rewrite as a front-ent to Tomcat ? Both

Re: generate pdf from xml with embedded image?

2008-12-18 Thread Peter Flynn
Ken Starks wrote: [...] I did have a few images that were stored also in a database, but I would pre-process them in a seperate stage, generating a local copy, and populating a table of the database with the path. This was a batch process, not an interactive one, and it used python rather than

Configuration oddity

2008-12-18 Thread Peter Flynn
I have a new installation of Cocoon on a new server, so I am slowly configuring it and moving apps across from the old machine. In the process I am trying to rationalise where stuff goes, as the old system was partly experimental and grew organically with very little planning. In Tomcat's

New server recommendations?

2008-01-02 Thread Peter Flynn
After much waiting I am now in a position to install a new Cocoon server for use by several document-serving projects (yay), with Lucene and eXist. I've been running Cocoon for years on antiquated hardware so this is an opportunity to Do It Right and demonstrate to people that this is the One

New server recommendations?

2007-11-26 Thread Peter Flynn
After much waiting I am now in a position to install a new Cocoon server for use by several document-serving projects (yay), with Lucene and eXist. I've been running Cocoon for years on antiquated hardware so this is an opportunity to Do It Right and demonstrate to people that this is the One

Re: re-design of sitemaps

2007-06-07 Thread Peter Flynn
Stephen Winnall wrote: validation is off by default but can be activated, again only in Cocoon 2.2 Correct me if I am wrong, but I thought that it was impossible to write a complete XML schema for the current version of the sitemap. I thought all attempts hitherto were only approximations.

Re: Logs

2007-04-25 Thread Peter Flynn
Grzegorz Kossakowski wrote: Peter Flynn pisze: But none of those files have any information about where the request has come from (eg IP address), which makes them virtually useless. AFAIR, they should contain information you need. Nope. There is no trace of IP addresses anywhere

Re: Logs

2007-04-25 Thread Peter Flynn
Jason Johnston wrote: Since you're using Tomcat you can configure it to create an access log; see http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html for details. I imagine the reason it is not configured to create one out of the box is that usually Tomcat is behind an Apache reverse

Re: Logs

2007-04-24 Thread Peter Flynn
Sebastian Wenzky wrote: Peter Flynn wrote: In my webapps/ROOT there's a logs directory, but none of the logs contain any information about who has visited the site. How do I turn on access logging? Or is it already on but hidden somewhere I don't know about? This is an experimental site, so

Logs

2007-04-23 Thread Peter Flynn
In my webapps/ROOT there's a logs directory, but none of the logs contain any information about who has visited the site. How do I turn on access logging? Or is it already on but hidden somewhere I don't know about? This is an experimental site, so it's running as root. When I switch it

Re: Sitemap schema (Re: [contrib] Cocoon editor)

2007-01-25 Thread Peter Flynn
Mark Lundquist wrote: On Jan 24, 2007, at 2:17 AM, Peter Flynn wrote: I couldn't find a DTD or Schema anywhere though: I'm sure there's one around -- it's just not obvious. The link to sitemap-2.1-draft.xsd on http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html is broken, and all

Re: [contrib] Cocoon editor

2007-01-24 Thread Peter Flynn
Grzegorz Kossakowski wrote: Olivier napisał(a): Hi all happy new year, I' ve started few months ago to build a sitemap cocoon editor as an eclipse plugin. My first goal was to play with eclipse plugins, EMF, WSTTranslator and more ... I think that the proof of concept is done. Is there

Re: Authentication puzzle

2007-01-10 Thread Peter Flynn
Steven D. Majewski wrote: My understanding is that the Authentication Framework is just a framework -- it doesn't itself do any authentication or encryption/decryption of passwords. I understand that it doesn't do any authentication: that's what I wrote the little XML and XSLT files for: to

Re: Authentication puzzle

2007-01-10 Thread Peter Flynn
Armaz Mellati wrote: May I ask you what version of Cocoon you are using? 2.1.8 I ask because the documentation you are refering to is somewhat outdated if you are using 1.2.10 (may be even for 1.2.9). I was going to upgrade to the latest stable (2.1.10?) when I move this from the pilot

Re: Aggregate fields

2007-01-09 Thread Peter Flynn
Mark Lundquist wrote: On Jan 8, 2007, at 5:44 AM, Peter Flynn wrote: [..snip] it understandably complains that there is no widget organiser. What have I misunderstood? Do this: ft:aggregate-widget id=organiser ft:widget id=forename/ ft:widget id=surname/ /ft:aggregate-widget

Authentication puzzle

2007-01-09 Thread Peter Flynn
I am trying to get simple authentication to work for a single document, using local files for the authentication step, but I can't get it to return an authentication success. The following works fine when run using Saxon from the commandline, with userid=peter and password=GHYTFVN.map4h (ie it

Re: Writing form data to an XML file

2007-01-08 Thread Peter Flynn
Ard Schrijvers wrote: Obviously it's a trace from somewhere...but where? My registration_success.jx says: You just need an xsl transformation after the writing of the source. You are now just showing the result of the source writer What markup format is returned by the writing of the

Re: Writing form data to an XML file

2007-01-08 Thread Peter Flynn
Ard Schrijvers wrote: Just change your serializer to xml (or add a cocoon view) Duh. I knew this of course. Thanks...it's a Monday morning...:-( ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Running cocoon as tomcat user on port 80

2007-01-08 Thread Peter Flynn
I've been running Cocoon as root while testing but I clearly don't want to do this for an open production server which will be writing to the server disk. How do I allow running it as the tomcat user but still binding to port 80? ///Peter

Aggregate fields

2007-01-08 Thread Peter Flynn
I'd like to be able to present a single form field (HTML input) for the gathering of a user's full name, but be able to split it into forename and surname. The aggregatefield appears to be designed for this, but the documentation provides no details on templating it. fd:aggregatefield

Syntax of registration.js

2007-01-05 Thread Peter Flynn
I'm trying to get the Cforms demo to pass all the form field values to the success pipeline, but I don't know the syntax of the registration.js file. I have added what is intended to be a second definition to the var viewData command, but it has no effect, and I don't know what delimiter

Re: Syntax of registration.js

2007-01-05 Thread Peter Flynn
Peter Flynn wrote: I'm trying to get the Cforms demo to pass all the form field values to the success pipeline, but I don't know the syntax of the registration.js file. Cancel that...sorry for the bandwidth. Turns out it's a comma; and no, there is no need for a semicolon at the end

Writing form data to an XML file

2007-01-05 Thread Peter Flynn
I'm passing the results of the form demo into some code in registration_success.jx to write the form data to an XML file. Having got it working, I now need to find out how to get rid of the text which appears in the browser after the success message: success entire source overwritten write

unparsed-entity-uri()

2007-01-05 Thread Peter Flynn
Does anyone know when or if the unparsed-entity-uri() function will be implemented in distributions of Cocoon? It's becoming very hard to do serious document publishing without proper entity resolution. ///Peter - To

Re: use-request-parameters with checkboxes

2006-10-03 Thread Peter Flynn
Fred Vos wrote: Hello Peter, On Mon, Oct 02, 2006 at 04:19:44PM +0100, Peter Flynn wrote: Jeroen Reijn wrote: Hi Peter, splitting values based on #'s isn't the best solution imho. I agree, but for a very simple application it's easy enough using contains($ref,@id) to identify the elements

use-request-parameters with checkboxes

2006-10-02 Thread Peter Flynn
I'm trying to handle form data from a plain HTML form which is normally (outside Cocoon) returned in the format http://foo.bar/cgi-bin?field=valuestuff=abc#def#ghimore=bar where the values of selected checkboxes are concatenated with # to separate the values. If I change the action attribute

Re: use-request-parameters with checkboxes

2006-10-02 Thread Peter Flynn
give you the values based on the uri you provide. Ah...I'm missing something there. Is there an example I can see? ///Peter -Original Message- From: Peter Flynn [mailto:[EMAIL PROTECTED] Posted At: maandag 2 oktober 2006 16:48 Posted To: Cocoon User List Conversation: use-request

Re: use-request-parameters with checkboxes

2006-10-02 Thread Peter Flynn
Jeroen Reijn wrote: Yes you can take a look in the documentation: http://cocoon.apache.org/2.1/userdocs/request-generator.html Thanks you, that looks ideal. I have no idea how I have managed to use Cocoon for so long without knowing about it (although not knowing it exists, and therefore

Re: AW: Cforms dates and data destinations

2006-05-23 Thread Peter Flynn
Christofer Dutz wrote: a: The samples-styling xslt looks for a head-tag to insert the javascript. When starting to use CForms I missed that at first. Either change the xslt or add a dummy head element somewhere. You can move the stuff in another transformation ;) Changing the XSLT is easy, but

unparsed-entity-uri

2006-04-27 Thread Peter Flynn
Does anyone have any information on when the unparsed-entity-uri() function is likely to be supported in distributions of Cocoon (eg in whatever parser is distributed by default)? Its absence is a significant problem for text document publishing applications, where it offers a solution to

unparsed-entity-uri

2006-04-17 Thread Peter Flynn
Does anyone have any information on when the unparsed-entity-uri function is likely to be supported in distributions of Cocoon (eg in whatever parser is distributed by default)? ///Peter - To unsubscribe, e-mail: [EMAIL

Re: auth-protect not defined for act

2006-04-09 Thread Peter Flynn
Andrew Stevens wrote: [me] I did the default build, so I had assumed Yes. How would I recognise it? Well, for starters, there'll be a cocoon-authentication-fw-block.jar in build/webapp/WEB-INF/lib... That's there: $ locate cocoon-authentication-fw-block.jar

auth-protect not defined for act

2006-04-05 Thread Peter Flynn
Andrew Stevens wrote: From: Peter Flynn [EMAIL PROTECTED] Date: Tue, 04 Apr 2006 20:03:56 +0100 I added map:action name=auth-login src=org.apache.cocoon.webapps.authentication.acting.LoginAction/ to the map:components section of my sitemap Inside the map:actions, right? Yes

Re: auth-protect not defined for act

2006-04-05 Thread Peter Flynn
[EMAIL PROTECTED] wrote: Peter, I apologize if this has been asked before (I admit to coming somewhat late to this thread). When you built Cocoon, was the authentication-fw block selected for inclusion? I did the default build, so I had assumed Yes. How would I recognise it? ///Peter

Re: auth-login not defined for act

2006-04-04 Thread Peter Flynn
I added map:action name=auth-login src=org.apache.cocoon.webapps.authentication.acting.LoginAction/ to the map:components section of my sitemap but I'm still getting the same error: Message: Type 'auth-login' is not defined for 'act' at

Re: auth-login not defined for act

2006-03-31 Thread Peter Flynn
Andrew Stevens wrote: Do you have a corresponding map:action name=auth-login src=org.apache.cocoon.webapps.authentication.acting.LoginAction/ definition in the map:components section of your sitemap? I didn't but I do now...but the result is unchanged: the same error. Where else should I

wikis

2006-03-30 Thread Peter Flynn
What Cocoon-based wikis are recommended (if any)? ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: auth-login not defined for act

2006-03-28 Thread Peter Flynn
Andrew Stevens wrote: From: peter [EMAIL PROTECTED] Date: Tue, 28 Mar 2006 08:28:17 + I'm getting the following error: Internal Server Error Message: Type 'auth-login' is not defined for 'act' at file:/home/peter/tomcat/webapps/ROOT/sitemap.xmap:554:29 where the relevant lines say:

Authentication via sitemap

2006-03-26 Thread Peter Flynn
I'm just starting to look at very simple authentication, using http://cocoon.apache.org/2.1/developing/webapps/authentication/authenticating_user.html as a guide. It looks straightforward enough, but there's one missing item of information. For Using a URI as the authentication resource it gives

Re: XML-Serializer encoding

2006-01-17 Thread Peter Flynn
On Tue, 2006-01-17 at 12:40, christian bindeballe wrote: Edwin Kapauni schrieb: Also http://de.wikipedia.org/wiki/UTF-8 and http://de.wikipedia.org/wiki/Unicode are good references in German. cheers, I looked here: http://en.wikipedia.org/wiki/Character_encoding ;) it

Re: XCSS?

2006-01-13 Thread Peter Flynn
On Thu, 2006-01-12 at 18:37, Stephen Winnall wrote: I am setting up a website using Cocoon and want to generate XHTML and use CSS to handle the presentation. Like everyone else I am being bitten by the fact that 90% of all browsers conform to the CSS standard, but the browser that 90% of the

Cocoon and eXist

2006-01-05 Thread Peter Flynn
[My apologies for crossposting, but I don't know which community is best placed to answer this one.] I am going to be using Cocoon to serve a large and varied collection of XML documents and I'd like to use eXist as the search system. Cocoon is running happily within Tomcat on port 80 as the

Re: [Exist-open] Re: Cocoon and eXist

2006-01-05 Thread Peter Flynn
On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote: Peter, I think you might want to integrate eXist with your existing Cocoon installation: http://wiki.exist-db.org/comments/CocoonInstall Thanks, I'd somehow missed that page. I'll give it a try. ///Peter

Re: AW: Cocoon and eXist

2006-01-05 Thread Peter Flynn
Webapps. No, that cannot work. If I replace ROOT with cocoon, then all requests (eg localhost/exist) will seek exist in the ROOT (=cocoon) directory. ///Peter -Ursprüngliche Nachricht- Von: Peter Flynn [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 5. Januar 2006 12:34 An: users

Re: [Exist-open] Re: Cocoon and eXist

2006-01-05 Thread Peter Flynn
On Thu, 2006-01-05 at 12:31, Huib Verweij wrote: Peter Flynn wrote: On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote: Peter, I think you might want to integrate eXist with your existing Cocoon installation: http://wiki.exist-db.org/comments/CocoonInstall Thanks, I'd

OT: Signature brands

2006-01-04 Thread Peter Flynn
Sorry, I couldn't resist this one: http://www.newtree.be/en/choco_cocoon.php ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cforms basics

2006-01-04 Thread Peter Flynn
I'm just starting to look at using Cforms and there are a few things that I don't find obvious (and I'm an XML document-head, not a Java programmer :-) I think I've grokked definitions and templates, and the flowscript and pipelines seem do-able. The application will need to gather new data

Re: Running a shell script from Cocoon

2005-12-13 Thread Peter Flynn
On Mon, 2005-12-12 at 11:37, Jorg Heymans wrote: Peter Flynn wrote: On Sun, 2005-12-11 at 11:03, Jorg Heymans wrote: i'm sure you could use Runtime.exec() just about anyware you like to call your shellscript. If you need the output of the shell script then i'ld put this call

Re: Running a shell script from Cocoon

2005-12-12 Thread Peter Flynn
On Sun, 2005-12-11 at 11:03, Jorg Heymans wrote: i'm sure you could use Runtime.exec() just about anyware you like to call your shellscript. If you need the output of the shell script then i'ld put this call in a generator for example. Could you give an example of the syntax for doing this?

Re: Making Cocoon the default

2005-12-08 Thread Peter Flynn
On Thu, 2005-12-08 at 12:59, Edwin Kapauni wrote: Peter Flynn wrote: The FAQ about making Cocoon the default app doesn't seem to have a look at http://wiki.apache.org/cocoon/CocoonEasyInstallation If you don't want to default http://cocoon:8080/ then simply replace

unparsed-entity-uri

2005-12-02 Thread Peter Flynn
Could someone in the know please post the status of this function in Cocoon? Searching turns up numerous posts about it not being available because some parser feature is not implemented, but no information about when or if this is likely to be fixed. Currently it's a major factor in preventing

Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn
Mark Lundquist wrote: It's cocoon.sh servlet. My fault. I keep forgetting to add the .sh to all the script calls... OK Cocoon runs fine at port . Now to find the tomcat logs. ///Peter - To unsubscribe, e-mail: [EMAIL

Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn
Joerg Heinicke wrote: description The requested resource (Servlet Cocoon is not available) is not available. Apache Tomcat/5.0 Hmm, strange. You probably have to look into the log files of Tomcat now (if Cocoon has not been started there should not be Cocoon logs). Having tracked down the

Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn
Joerg Heinicke wrote: Sorry, but I don't know any of these errors, so I can't help you with them directly. Only the suggestion to build a Cocoon with the offending blocks (looks like xmldb and slide) excluded. Nope...I just downloaded a fresh Tomcat 5.5.9 from Apache and installed that.

Re: Missing classes building 2.1.7

2005-08-29 Thread Peter Flynn
Joerg Heinicke wrote: On 29.08.2005 01:12, Peter Flynn wrote: Umm...now that it's built OK, I moved webapps to tomcat/webapps/cocoon and copied the xalan etc, and restarted tomcat, but tomcat says Servlet Cocoon is not available. sigh/ It was sooo much easier with a .war file. (Actually I

Missing classes building 2.1.7

2005-08-28 Thread Peter Flynn
I downloaded 2.1.7 on a fresh installation of FC4 with the Tomcat 5.0 RPM and Sun's JDK 1.5.0_04. When I tried ./build.sh it went through the motions, but came up with two errors: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison

Re: Missing classes building 2.1.7

2005-08-28 Thread Peter Flynn
Joerg Heinicke wrote: On 28.08.2005 21:54, Peter Flynn wrote: Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4 That's the problem. I thought it might be. The ghost of Red Hat strikes again... but build.sh clearly disables it in order to use its own copy

Re: Missing classes building 2.1.7

2005-08-28 Thread Peter Flynn
Joerg Heinicke wrote: package net.php does not exist public class PhpServlet extends net.php.servlet implements Runnable { Also strange. Cocoon comes with mock objects for the case you have not put a php jar into your setup. Normally this works fine. For the case you don't need the php

Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
My newly-installed http://localhost/cocoon (Tomcat 4.1.30 and Cocoon 2.0.4 under Java 1.4.2_05 on FC2) still fails with Cocoon 2 - Internal server error type fatal message Failed to generate program code (this may happen if you use Xalan in incremental processing mode).

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 11:48, Jorg Heymans wrote: did you check the endorsed lib problem? Search the wiki for a howto. Hah! That definitely looks like it. Unfortunately, the Wiki page doesn't say *what* files need to be copied to the endorsed directory: it just says the libraries; and it refers

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 11:48, Jorg Heymans wrote: did you check the endorsed lib problem? Search the wiki for a howto. That seems to work, after a bit of experimenting. Thanks very much. For the record, with Tomcat 4.1.30 and Cocoon 2.0.4 with Java 1.4.2_05 under FC2 you need to copy

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 13:25, Jorg Heymans wrote: Any particular reason why you decided on an old cocoon version? Yes, Cocoon 2.1.5.1 won't compile because ant is apparently being picked up wrongly from FC2, despite what the docs say; and Tomcat 5.5 has issues running under Java

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 15:43, Jorg Heymans wrote: try build webapp as target. Same result. But how on earth you're getting the instantiationexception i don't know... Now you know why I'm using 2.0.4 :-) ///Peter - To

Re: 2.1.5.1 build oddity, 2.0.4 war fails

2004-09-08 Thread Peter Flynn
On Tue, 2004-09-07 at 19:38, Antonio Gallardo wrote: Hi Peter: I use Fedora Core 2 with tomcat 5.0.28, j2sdk 1.4.2_05 and that work OK with Cocoon 2.1.5.1 and cvs version. If you are a new in Cocoon, please try first tomcat 4.1.x with j2sdk 1.4.2_x. This configuration works on Fedora.

Re: 2.1.5.1 build oddity, 2.0.4 war fails

2004-09-08 Thread Peter Flynn
On Wed, 2004-09-08 at 09:57, Ugo Cei wrote: Since Cocoon works fine with JDK 1.4, I guess it's unfair to say that Cocoon is broken. If there's something that's broken is the degree of backward-compatibility offered by Java5 and you can hardly blame anyone for not delivering a release that

Re: 2.1.5.1 build oddity, 2.0.4 war fails

2004-09-08 Thread Peter Flynn
On Wed, 2004-09-08 at 16:03, Carlos Chávez wrote: I had the same problem and was because Fedora Core 2 had installed another versión of Ant, i dont remember which is, i uninstall that version and install Ant 1.6.2. Thanks. That's odd: the docs say that Cocoon ignores any setting of

2.1.5.1 build oddity, 2.0.4 war fails

2004-09-07 Thread Peter Flynn
I just installed a fresh tomcat 5.5.0 on Fedora Core 2, with jdk1.5.0, and that works fine (edited server.xml to make it the default port 80 server). Then I unwrapped Cocoon 2.1.5.1 and typed ./build to get the default set of targets. I immediately get the error: # cd /opt/cocoon/cocoon-2.1.5.1/

Re: Caching ancillary file content

2004-06-04 Thread Peter Flynn
On Fri, 2004-06-04 at 12:02, Joerg Heinicke wrote: On 03.06.2004 14:55, Peter Flynn wrote: [caching] http://issues.apache.org/bugzilla/show_bug.cgi?id=10203 From the bug date you will also see, that there will probably be no short-term fix. That's actually the reverse of this problem

Caching ancillary file content

2004-06-03 Thread Peter Flynn
In my XSLT I extract values from some ancillary files using the document('foo.xml') function. This works fine, but when the foo.xml file is changed (eg by some external agency like a timed script), its old content continues to be served by Cocoon. Eventually it starts to serve the new content