Re: Cocoon 2.1 web application base path

2012-05-16 Thread Andy Stevens
Hi Bob, Assuming you have the request input module in your cocoon.xconf, then you can pass the context path into an xsl:param (or otherwise use in the sitemap) with e.g. map:transform src=mytransform.xslt map:parameter=xslParamName ={request:contextPath}/ /map:transform Regards, Andy On 16 May

Re: XML- PDF bad encoding

2011-12-04 Thread Andy Stevens
It might help if you could include the relevant pipeline code and component configuration that you're using. And which cocoon version it's for. Andy. On 4 Dec 2011 12:02, FunkyDisco funky_disco_fr...@hotmail.com wrote: Appologize in front if this is somewhere explained, but as I'm not guru in

Re: Tomcat 64 bit

2011-10-11 Thread Andy Stevens
Hi Paul, Cocoon can't be compiled in 32 or 64 bit as such; it's java so is compiled to platform-independent java byte code. The byte code is run on a jvm, an architecture-specific application, and if you're using a jvm with a just-in-time compiler that translates the byte code (or parts of

Re: using properties in flowscript

2011-10-03 Thread Andy Stevens
As an alternative to worrying about where the container happens to store the application when you install it, so you can put the property file relative to it, why not use a jvm system property to supply the property file's location? Or a resource-env-ref lookup? Andy. --

Re: Location of I18N catalogs

2011-08-12 Thread Andy Stevens
as a Cocoon relative pipeline call, but neither worked. Do you have a code snippet you could share that shows how you did it? Thanks, Than On 8/11/2011 9:40 AM, Andy Stevens wrote: What version of cocoon? It's certainly possible, as I've done it myself in the past, although I think

Re: Location of I18N catalogs

2011-08-12 Thread Andy Stevens
Hi, Apologies for any typos (and the previous incomplete message) - I'm sending this on my phone in the middle of a forest :-) I believe the relevant code was map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:transformers map:transformer name=i18n

Re: Location of I18N catalogs

2011-08-11 Thread Andy Stevens
What version of cocoon? It's certainly possible, as I've done it myself in the past, although I think that was with version 2.1.something. Can't remember if it was configured on the components setup or the transformer tag in the pipeline, though. One thing to beware of is the catalog is only read

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Andy Stevens
2011/5/9 Grégory Roche webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail     src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test :   

Re: Cocoon 2.2 and sendmail

2011-05-09 Thread Andy Stevens
What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org wrote: So, I have

Re: Cocoon and Single Sign On (Windows Active Directory)

2011-04-20 Thread Andy Stevens
Hi Paul, Rather than ntlm, try searching for spnego instead. E.g. would either of http://spnego.sourceforge.net/ or http://tomcatspnego.codeplex.com/ do what you need? Andy -- http://pseudoq.sourceforge.net/ On 13 Apr 2011 15:24, Paul Joseph pjos...@gmail.com wrote:

Re: Mysterious exception in Tomcat logs : java.net.SocketException: Broken pipe

2009-06-11 Thread Andy Stevens
2009/6/10 Gintare Ragaisiene gintare.ragaisi...@gmail.com: Hello everyone, I've installed cocoon 2.2 webapp on Tomcat 6. For this I deployed .war file in Tomact's webapps directory. After a day I looked at the logs and found this exception: Jun 9, 2009 8:31:51 PM

Re: generating text output

2009-02-26 Thread Andy Stevens
2009/2/26 Mathias Reem m.r...@gmx.net: I've got information about publications as a XML Input. And want to generate bibtex output, therefore I use the following pipeline: map:generate type=file src=in.xml/ map:transform type=xsltc src=bibtex.xslt/ map:serialize type=text/ Looks okay. I

Re: COCOON-1887 (was: Getting started with C2.2 -- where's the exception information?)

2009-02-23 Thread Andy Stevens
2009/2/23 Joerg Heinicke joerg.heini...@gmx.de: Hey Andy, this particular patch has been applied. Thanks, Joerg That's great; thanks. Andy. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional

Re: Getting started with C2.2 -- where's the exception information?

2009-01-30 Thread Andy Stevens
2009/1/30 Bertrand Delacretaz bdelacre...@apache.org: On Fri, Jan 30, 2009 at 4:41 PM, DAVIGNON Andre - CETE NP/DIODé/PANDOC andre.davig...@developpement-durable.gouv.fr wrote: 2.1 can stay supported as long as people support it ;-) Former colleagues of mine are still maintaining 2.1 apps

Re: Determining the host OS

2009-01-20 Thread Andy Stevens
2009/1/20 Martin Holmes mhol...@uvic.ca: HI Steve, Do you know how to call this in a sitemap? If I pass this into an XSLT transformation: map:parameter name=osName value={system-property:os.name} / the parameter is empty. That looks reasonable to me. I assume you've got the input module

Re: About hadoop

2009-01-09 Thread Andy Stevens
2009/1/9 johnson john...@erp.tw: Hi! Does Cocoon support hadoop! Probably. Andy -- http://pseudoq.sourceforge.net/ Open source java sudoku application - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For

Re: Display tag library with cocoon 2.1

2009-01-06 Thread Andy Stevens
pipeline based on the same data source but with a different transformation and a FOP or HSSF serialiser... Hope this helps, Andy -- http://pseudoq.sourceforge.net/ Excuse my bad english :) Bye On Sun, 4 Jan 2009 15:33:14 +, Andy Stevens insomniacpeng...@googlemail.com wrote: 2009/1/4

Re: Display tag library with cocoon 2.1

2009-01-04 Thread Andy Stevens
2009/1/4 Biondo Francesco Paolo paolofrancesco.bio...@pro-netics.com: Hello, can I use displaytag ( http://displaytag.sourceforge.net/1.2/install.html ) with Apache Cocoon? The Install's tutorial says to define: %@ taglib uri=http://displaytag.sf.net; prefix=display %, using jsp, How can I

Re: How to exclude non-html-elements from HTML serialization

2008-11-15 Thread Andy Stevens
2008/11/14 Smigge [EMAIL PROTECTED]: Hi! I have an HTML serialization, in which I have a structure just for logging purposes like this: log logging stuff /log html HTML-stuff /html However, the logging stuff is visible on the HTML page as well, and I don't want that. I could make

Re: Passing request parameter from the sitemap

2008-08-08 Thread Andy Stevens
2008/8/7 Peter Sparkes [EMAIL PROTECTED]: I am trying to pass various request parameter from the sitemap to a eXist xquery using: map:match pattern=register-with-eXist map:generate src=register.xq type=xquery !--map:parameter name=user value={flow-attribute:user}/-- map:parameter

Re: Firefox 3 and URL

2008-08-04 Thread Andy Stevens
2008/8/4 Alexandre Mazouz [EMAIL PROTECTED]: Okay, My problem is now fixed. Instead of using HEAD request, i have used GET request : this.xmlHttp.open(GET, resourceName, false); this.xmlHttp.send(null); I think that Firefox 2.0 and Firefox 3.0 have different behaviour of how to handle

Re: Finding a new name for Corona (a Cocoon rewrite)

2008-07-31 Thread Andy Stevens
2008/7/31 Hugh Sparks [EMAIL PROTECTED] Pipes According to Google Translate, it seems inoffensive in German, Spanish, and Polish Apache Pipes - It alliterates a bit. -Hugh Sparks However, there's already a Pipes in the web development space - Yahoo Pipes. http://pipes.yahoo.com/pipes/

Re: Rotating log files in Cocoon 2.1.11

2008-07-30 Thread Andy Stevens
2008/7/29 Robert La Ferla [EMAIL PROTECTED]: I would like to configure Cocoon 2.1.11 so that every day (24 hrs), the cocoon.log is written to a new file (cocoon-2008-JUL-29.log) I tried configuring logkit.xconf to do this but it doesn't work. Yes it does, ours are rolling over daily just

Re: Is it possible to set response headers from within a sitemap?

2008-07-24 Thread Andy Stevens
2008/7/24 Philip Fennell [EMAIL PROTECTED]: Is there any way that I can set response headers from the sitemap/Cocoon? ... I'm using Cocoon 2.2 Isn't that what the HttpHeaderAction does?

Re: CSVGenerator separators

2008-07-11 Thread Andy Stevens
2008/7/9 netBrackets [EMAIL PROTECTED]: Is there any way to tell the CSVGenerator to use one or more contiguous spaces as a seperator? You can tell it to use a single space: map:match pattern=importSSV/* map:generate type=csv src=inputs/{1} map:parameter

Re: How to access configuration files and properties after packaging

2008-07-03 Thread Andy Stevens
2008/7/3 Robin Rigby [EMAIL PROTECTED]: Here is one way that seems to work. Make a separate set of configuration for development and the default for production. \src\main\resources\META-INF\cocoon\properties\config.properties

Re: XSLT Version?

2008-07-03 Thread Andy Stevens
2008/7/3 Andrew Chamberlain [EMAIL PROTECTED]: Hi All, Simple question, I hope. How do I find out which version of XSLT I've got? Try using some XSLT 2-only features in a pipeline and see if you get a stack trace instead? ;-) My version of Cocoon is: 2.1.10, if it's related to that.

Re: Debugging sitemap

2008-07-01 Thread Andy Stevens
2008/6/27 Robby Pelssers [EMAIL PROTECTED]: Here is a way to put a little debug information inside your sitemap: ... I will get following output in my console: - Start Pipeline Debugging -- Pipeline executed: static-content Matched pattern:

Re: i18n in JX Template

2008-06-25 Thread Andy Stevens
2008/6/25 Magnus Haraldsen Amundsen [EMAIL PROTECTED]: In my JX Template i've created a system to display menues. c:menu c:menuelement title=menu.topic link=admin/emner/ i18n:attr=title/ ... but it shows as Menu.topic ... How do I fix this? Given that your tokens are all lower case

Re: i18n in JX Template

2008-06-25 Thread Andy Stevens
2008/6/25 Magnus Haraldsen Amundsen [EMAIL PROTECTED]: I added a i18nTransform before the XSLT transform, just for the fun of it, and then the menus is translated correctly. So what does the admin-styling XSLT do? Could it be interfering with the i18n namespace or stripping the i18n:attr

Re: Failing Mysql JDBC connections

2008-06-20 Thread Andy Stevens
2008/6/20 Tobia Conforto [EMAIL PROTECTED]: For the record, this was caused by a deadlock problem, where many simultaneous requests would get a connection for their SQLTransformer, exhausting the connection pool, and then get stuck requesting more connections through an input module I wrote

Re: Cocoon in Eclipse??

2008-06-09 Thread Andy Stevens
migselv46 wrote: Hi I have searched everywhere and tried everything trying to use cocoon in Eclipse/Tomcat (or even better in WSAD 5.x) - that is - not by using ant, maven or jetty server. Is it at all possible? What version - 2.1.x or 2.2? With 2.1.x, the Ant build can generate a simple

Re: Database connection problems

2008-05-12 Thread Andy Stevens
2008/5/8 Derek Hohls [EMAIL PROTECTED]: Andy Also, there does not appear to be ant errors.log or handled-errors.log files in the cocoon/WEB-INF/logs directory ... should there be? Maybe the default configuration (in logkit.xconf) is different in 2.1.8, but that's where it created them for me

Re: Database connection problems

2008-05-07 Thread Andy Stevens
2008/5/7 Derek Hohls [EMAIL PROTECTED]: Using Cocoon 2.1.8 I have an app which has been working fine... up to now. I am now in a situation where: * the plain pages on the website (ie. not accessing the database) display just fine * I can access the database from a 3rd party tool (the MySQL

Re: RegexpRequestParameterSelector unable to get working.

2008-05-07 Thread Andy Stevens
2008/5/6 Gordore [EMAIL PROTECTED]: map:match pattern=test map:generate src=content/group.xml / map:act type=request map:parameter name=parameters value=true / map:select type= request-param-regexp map:parameter

Too many open files (was PDF Image Caching Problem)

2008-05-07 Thread Andy Stevens
2008/5/5 Lehtonen, Mika [EMAIL PROTECTED]: Actually there might be another problem (or bug) lying around if you produce htmls' with 'noncaching' option. Cocoon seems to be leaving files open when using html-serializer with noncaching option in your pipeline. And eventually your application

Re: problem with JSTL import tag on weblogic 9.2

2008-04-29 Thread Andy Stevens
On 28/04/2008, John Lung [EMAIL PROTECTED] wrote: Hi: We're trying to use JSTL 1.1 c:import tag on weblogic 9.2 in an JSP page to import the Cocoon page (Cocoon 2.1.11) under a different context (a different webapp in the same weblogic domain). c:import url=/MyCocoonPage context=/Cocoon /

HTML serializer and Content-Type response header

2008-03-27 Thread Andy Stevens
Hi, I've got a Cocoon (2.1.7!) based app that I'm moving over from Websphere 5 to Websphere 6, which includes Chinese text. Unfortunately, in the new environment all the Chinese characters appear as garbage, because the browser is using Western (ISO-8859-1) as the character encoding. If I switch

Re: IncludeTransformer

2008-02-28 Thread Andy Stevens
Sébastien Geindre wrote: How can i log the http header of a request made by CIcludeTransformer ? One possibility would be to use Axis' tcpmon utility (http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmon)? Just change the CInclude to use localhost and

Re: How to log/trace functional information ??

2008-02-21 Thread Andy Stevens
On 14/02/2008, Sébastien Geindre [EMAIL PROTECTED] wrote: A client send xml data. I need to put it in kind of database. This is ok. But i would like to write in a file (for example) that client A send this datas, this day,... All information i need to trace are in the xml data sent.

Re: Doing string operations over sitemap values

2008-02-15 Thread Andy Stevens
On 15/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: As a policy for this website we are trying avoid doing any custom java programming, only little tiny features added here and there to cocoon itself, and clearing some minor gotchas i've found in my way but apart from that, adding a

Re: Relative paths in fop-0.94

2008-02-06 Thread Andy Stevens
Carlos Martínez wrote: Hello, I'm using a fop-0.94 in my local cocoon site to create PDF. All work properly but the path of the images always have to be absolute. I don't know how to change this. Unless things have changed from the earlier FOP version, you can't. Actually, that's not

Re: cocoon 2.2 jsp... again)

2008-02-06 Thread Andy Stevens
nanomonk wrote: i have an error: javax.servlet.ServletException: org.apache.cocoon.ProcessingException: Exception JSPGenerator.generate() Caused by: org.apache.avalon.framework.service.ServiceException: Component with 'org.apache.cocoon.components.jsp.JSPEngine' is not defined in this

PDF forms

2008-01-29 Thread Andy Stevens
Hi again, Is it possible to produce PDFs containing forms (of the type things into the acrobat reader before printing or submitting electronically AcroForms type, as opposed to just printing some empty boxes) using Cocoon? I can't find any mention of them on either the Cocoon or FOP sites, which

Is it possible to restrict file uploads to certain URLs?

2008-01-28 Thread Andy Stevens
Hi, New year, new webmail; hopefully google mangles embedded xml less than hotmail :-) I have a new requirement for one of our sites to allow the users to upload some files. However, I read in the Cocoon docs/wiki that switching on the enable-uploads init parameter will make it use the