Re: Strange encoding problem using forms

2010-02-11 Thread Dominic Mitchell
On Thu, Feb 11, 2010 at 6:40 AM, Jos Snellings wrote: > The two tomcat versions on the machines are the same, but, can you > please make a diff between the two server.xml under $CATALINA_HOME/conf? > Just to be sure ... > > The other thing to check are the system properties file.encoding and sun.j

Re: Notes on getting Cocoon 3.0.0-alpha-2 sample app running

2010-01-29 Thread Dominic Mitchell
You may want to look into getting nexus set up in order to avoid these kind of problems. You can create a repository group which includes both central and java.net. As a bonus you should see faster build times. http://nexus.sonatype.org/ -Dom On 28 Jan 2010 14:25, "David Legg" wrote: Here are

Re: character encoding of a HttpServletRequest

2010-01-11 Thread Dominic Mitchell
On Mon, Jan 11, 2010 at 10:34 AM, Jos Snellings wrote: > That is right! > It is just a confusing situation :-( > The filter works fine. The init() method of a generator does not give a > chance to call setCharacterEncoding, as the parsing already happened. > The good thing is that the code is alre

Re: character encoding of a HttpServletRequest

2010-01-11 Thread Dominic Mitchell
On Mon, Jan 11, 2010 at 9:12 AM, Jos Snellings wrote: > Thanks, I will try CharacterEncodingFilter! > I will lookup in the code were filtering takes place, because the > problem is rather that it looks like the form data are filtered twice. > > In addition, do I remember right that there used to b

Re: character encoding of a HttpServletRequest

2010-01-11 Thread Dominic Mitchell
2010/1/10 Jos Snellings > This is not a specific cocoon issue, I believe. It probably has to do > with Tomcat 5.5.27. > request.setCharacterEncoding simply does not work; it does not change a > thing. > request.getCharacterEncoding returns nothing. > You have to call request.setCharacterEncoding

Re: problem showing pdf as text/plain with resourcereader

2009-12-29 Thread Dominic Mitchell
On Tue, Dec 29, 2009 at 10:16 AM, joao tiago a. m. viegas < jtvie...@gmail.com> wrote: > oh thank you, but I'm not, if you'd read the message till the end you'd see > there's: > > > and if in the javascript function i change the function invocation for >> cocoon.processPipelineTo("pagesave",null,n

Re: problem showing pdf as text/plain with resourcereader

2009-12-28 Thread Dominic Mitchell
On Thu, Dec 24, 2009 at 7:20 AM, joao tiago a. m. viegas wrote: > i want to wish everybody an Happy Christmas and an Astounding Happy New > Year. > > in the meantime, somewhere in the lower left corner of Europe, in a cocoon > 2.1, > > i'm still on the flowscript issue and i can't figure out what

Re: Exception thrown by Cocoon

2009-12-13 Thread Dominic Mitchell
On Mon, Dec 14, 2009 at 3:40 AM, Chipmuns wrote: > > Hi , Could anyone help me on the exception thrown ? Have being try to trace > what is the cause but cant pinpoint the real problem. Suspect could it be > caused by tcp connection > > ClientAbortException: java.net.SocketException: Broken pipe

Re: Add custom servlet on cocoon 2.2.0 startup

2009-11-24 Thread Dominic Mitchell
2009/11/24 Gintare Ragaisiene > Hi, > >I need to initialize a servlet like > > public class TestServlet extends HttpServlet{ > > @Override > public void init(ServletConfig config) throws ServletException { > super.init(config); > > System.out.println("TestServlet"); >

Re: [2.2] Configure logging for tests

2009-11-23 Thread Dominic Mitchell
On Mon, Nov 23, 2009 at 3:41 PM, Andreas Hartmann wrote: > Hi everyone, > > I'm using Cocoon 2.2. > How do I configure the logging output for my unit tests? > > This tutorial helped me a lot for the web application, but it doesn't seem > to work for the tests … > http://happygiraffe.net/blog/2008/

Re: Samples for Cocoon 2.2

2009-11-11 Thread Dominic Mitchell
On Wed, Nov 11, 2009 at 12:22 AM, Kamal Bhatt wrote: > Hang on, when did Cocoon started being hosted on Git? I was going to make > the same suggestion with SVN: > > > http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-forms/cocoon-forms-1/cocoon-forms-sample/ > > Which is where the w

Re: Samples for Cocoon 2.2

2009-11-10 Thread Dominic Mitchell
On Tue, Nov 10, 2009 at 7:19 PM, Peter Hargreaves wrote: > Hi Folks, > > I've followed the 2.2 tutorials and eventually came to this comment "To > have a > feel for the power of CForms, take a look at the examples included included > in the Forms block." > > I simply can't find out how to do this,

Re: Deploying Cocoon 2.2 to tomcat

2009-11-04 Thread Dominic Mitchell
On Wed, Nov 4, 2009 at 10:34 AM, Glen Robson wrote: > I'm trying to deploy cocoon to tomcat but I seem to be getting a conflict > with the packaging type and maven. If I want the cocoon RCL plugin to run > then the package type needs to be jar but if I want to deploy to tomcat the > package type n

Re: User file uploads

2009-10-05 Thread Dominic Mitchell
On Mon, Oct 5, 2009 at 2:36 PM, Peter Flynn wrote: > 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 p

Re: Where are {defaults:} set in cocoon 2.2

2009-09-26 Thread Dominic Mitchell
On Sat, Sep 26, 2009 at 7:06 PM, Steven D. Majewski wrote: > Where are defaults set for the {defaults:} input module, now > that there is no cocoon.xconf ? > Looking through the source code, I'd guess that you need to stuff something like this into src/main/resources/META-INF/cocoon/avalon/defaul

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 9:18 PM, Steven D. Majewski wrote: > Thank You!! > > Both "1.0.0" and "1.0-SNAPSHOT" are mismatched in the documentation. > I was following the instructions a little too exactly! > > I wondered about this mismatch at the time, but I thought that > perhaps "SNAPSHOT" was a k

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 7:57 PM, Steven D. Majewski wrote: > On Sep 23, 2009, at 2:50 PM, Dominic Mitchell wrote: > > On Wed, Sep 23, 2009 at 7:44 PM, Steven D. Majewski >> wrote: >> On Sep 23, 2009, at 2:36 PM, Robby Pelssers wrote: >> >> So if I understand

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 7:44 PM, Steven D. Majewski wrote: > On Sep 23, 2009, at 2:36 PM, Robby Pelssers wrote: > > So if I understand you correctly you have one block depending on the >> other? >> >> Did you also add the dependency of myblock2 in the pom.xml of myblock1? >> > > Yes. ( And if I t

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 6:50 PM, Steven D. Majewski wrote: > Thanks. Yes -- I saw that observation in the other message. > However: it wouldn't build doing just a 'mvn install' on the blocks. > > Was there a particular reason for the failure when you ran "mvn install" in the blocks? > I've just

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 7:22 PM, Steven D. Majewski wrote: > > I can create, 'mvn install' & 'mvn jetty:run' both myBlock1 & myBlock2. > When I try to connect the two blocks as in > http://cocoon.apache.org/2.2/1291_1_1.html, > I get this error on either a jetty:run or an install: > > > myBlock1$

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 5:03 PM, Steven D. Majewski wrote: > myBlock1 & myBlock2 seem to have all the right dependencies (and they work > on their own), > but myCocoonWebapp has only the jars from those two blocks: > > [INFO] > --

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Wed, Sep 23, 2009 at 8:22 AM, Dominic Mitchell wrote: > My first question would have been: are the dependencies correct? What > happens if you run mvn dependency:tree in the webapp? It should include > spring dependencies. > For reference, this is what I get when running mvn dep

Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Dominic Mitchell
On Tue, Sep 22, 2009 at 9:58 PM, Steven D. Majewski wrote: > We've been using Cocoon 2.1.* for some time now, but we haven't really been > doing a proper build. > We've been building the sample app, and using that as a development base, > adding new pipelines > and sitemaps, and eventually, removi

Re: map:match question

2007-01-23 Thread Dominic Mitchell
Martin Holmes wrote: I'm having trouble getting a match to trigger when the URL has a hash followed by a query string. This is my match pattern: It works fine when the url is something like this: ...article.htm?id=EMLS3-2FITTNOCT&searchString=nocturne but not if the URL is like this: ...ar