exception-handling url parameter

2008-07-24 Thread Johannes Hoechstaedter
Hi, I try to use map:handle-errors to catch my database exceptions. It works. What doesn't work: I can't access the URL-Patterns anymore by {1}{2}...in this handle errors tag. I think because handle-errors referres only to the whole pipeline, and not to a single match pattern. Is there a

Re: C2.2 - Cannot remove jar files from classpath using Maven

2008-07-24 Thread David Legg
Reinhard Pötz wrote: I'm sorry, I forgot to respond earlier. Find my comments inline. No problem, thanks for responding. I don't understand... if the wrapper web application depends on commons-logging and makes arrangements to load the commons-logging jar into the classpath it should

Questions about migration from cocoon 2.1 to cocoon 2.2

2008-07-24 Thread lingerer huang
Hi,cocooners I have been using cocoon 2.1 for 4 years.Recent weeks I begin thinking about migration to cocoon 2.2.After some research and reading the post mail list like: http://marc.info/?l=xml-cocoon-usersm=121215707010191w=2 I still have some questions about migration. My apps base on cocoon

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

2008-07-24 Thread Philip Fennell
I am making use of the map:select type=request-method for a RESTful Web Service I'm working on. In the case where a method e.g. DELETE is not supported by the service I could include: map:otherwise map:generate type=request/ map:serialize type=application/xml status-code=405 label=Method

Re: Java bean puzzle. using ecliplse plugin or not.

2008-07-24 Thread Grzegorz Kossakowski
David Legg pisze: Ken, Thankyou very much, David. I can confirm that the spring-bean now does work properly. Thanks for confirming that. How do we report this to the developers? Normally, you would open a new item in the bugs database (called JIRA) [1]. However, I've just looked at the

Re: Java bean puzzle. using ecliplse plugin or not.

2008-07-24 Thread Grzegorz Kossakowski
Grzegorz Kossakowski pisze: David Legg pisze: Ken, Thankyou very much, David. I can confirm that the spring-bean now does work properly. Thanks for confirming that. How do we report this to the developers? Normally, you would open a new item in the bugs database (called JIRA) [1].

Re: Java bean puzzle. using ecliplse plugin or not.

2008-07-24 Thread David Legg
Hi Grek, Unfortunately, it's not fixed in trunk. Take a look at the history of this file[1] and you will see that is has not changed for more than a year now. The problem we see here is that archetype plug-in for Maven tries to find all expressions in files that it creates... Unfortunately,

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?

[C2.2] set web.xml params

2008-07-24 Thread Matthias Müller
hi there, i try to migrate my cocoon 2.1 project to 2.2 i need to set the enable-uploads param to true in WEB-INF/web.xml since my upload widgets won't work properly otherwise. but as far as i understand, the web..xml is generated during the deployment process. so, where do i have to set

Re: [C2.2] set web.xml params

2008-07-24 Thread Barbara Slupik
I use maven/jetty in my development environment. I put my web.xml file in myBlock folder and in my pom file I define: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version.../version configuration ...

Re: Questions about migration from cocoon 2.1 to cocoon 2.2

2008-07-24 Thread Barbara Slupik
I am using cocoon with maven and jetty in my development environment. I develop and test individual blocks. Then I build my block jar files and my cocoon application. Once everything works in maven/jetty development environment I build application war file and put it in my test environment

Re: How to stop validating the XML output

2008-07-24 Thread Joerg Heinicke
On 11.07.2008 00:20, Leonid Geller wrote: Does anyone know if there is an easy way to tell cocoon to stop validating the transformed XML output for correctness? E.g. I intentionally want to not close some element tags. As Andre said you are talking about well-formedness rather than validity.

Re: Problem with setCharacterEncoding

2008-07-24 Thread Joerg Heinicke
On 08.07.2008 08:26, Gautam Joshi (jgautam) wrote: We are trying to set character encoding to UTF-8 in the request object (org.apache.catalina.connector.RequestFacade) to ensure that the Danish and some other characters are processed correctly. We observed however that just using

Re: block communication and page fragment

2008-07-24 Thread Joerg Heinicke
On 19.07.2008 19:26, Mansour Al Akeel wrote: Thank you, I am trying it now, but getting errors. I think it's with block communications. When I put this in my site map: map:aggregate element=root map:part src=cocoon:/block1/ /map:aggregate I get java.lang.StackOverflowError If I do this:

Re: test if map:read was successful?

2008-07-24 Thread Joerg Heinicke
On 16.07.2008 16:23, Nick McDonald wrote: I'm using map:read to send a file. I use cocoon.sendPage() in my flowscript to initiate the transfer; once the transfer is complete, I need to return to the flowscript and possibly perform some additional actions, depending on whether the file was

Re: Database connection by cocoon 2.2

2008-07-24 Thread Joerg Heinicke
On 23.07.2008 08:00, Derek Hohls wrote: Not sure if you are speaking for the dev team here? No, that was my opinion. What exactly does kind of obsolete mean - has it been deprecated, or is it still a valid component in 2.2? Or is there is some other meaning? I'm not a native English

Re: hi

2008-07-24 Thread Joerg Heinicke
On 24.07.2008 00:30, student csu wrote: * Question: how to debug xslt in cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML

Re: [C2.2] set web.xml params

2008-07-24 Thread Alessandro Vincelli
Matthias, I migrated my upload-widget without change settings the web.xml. By default upload is enabled, check this[1] I only increased the max size file overriding this properties: org.apache.cocoon.uploads.maxsize=1024 putting this property in a file like this:

Re: block communication and page fragment

2008-07-24 Thread Alessandro Vincelli
If you are using cocoon blocks, the syntax is not correct , try with: map:aggregate element=root map:part src=servlet:/block1/somefile.blck1/ /map:aggregate and check [1]. Ciao Alessandro [1] http://cocoon.apache.org/2.2/1291_1_1.html Mansour Al Akeel wrote: Thank you, I am trying it

Re: Creating a parent POM

2008-07-24 Thread Andre Thenot
On Jun 28, 2008, at 14:15, Benjamin Boksa wrote: when trying to follow the part Creating a parent pom in the Deploying a Cocoon application tutorial [1] I get the following error: snip/ [INFO] Internal error in the plugin manager executing goal