Hey all, thanks for the replies, it saves me a lot of frustration :) In the application, a transformer will be used to transfer the incoming XML to an FTP server. The resulting XML will contain info about the transfer, such as size, failure/success, ... So it is important that the transfer happens only once... If you have any other suggestions for doing this, it would be appreciated ! (BTW, Cocoon2.1 is not an option at this point)
Thanks again ! >>> [EMAIL PROTECTED] 06/04/03 03:43pm >>> Geert Van Damme wrote: > Hi, > > I'm trying to run Cocoon from the command line, but it seems that the > matching pipeline for the requested URI is executed three times instead > of just one. Look at the Cocoon Wiki (http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine): <snip> In order to follow links and rewrite URLs, Cocoon must generate pages multiple times: * once to extract links from the page, using the links view * once to check the mime type for URL rewriting * once for getting page contents </snip> > Did anyone experience the same problem ? > > I'm running Cocoon2.0.4 using a very simple example which does work > (meaning pipeline processed only once) when running Cocoon as a webapp. > > Following match is executed three times in stand alone mode : > > <map:match pattern="test"> > <map:generate src="welcome/welcome.xhtml"/> > <map:serialize/> > </map:match> > > I'm running following ant task to run the program : > > <java classname="org.apache.cocoon.Main" fork="true" > failonerror="true"> > <arg value="-c./src/webapps/cocoon" /> > <arg value="-C./src/webapps/cocoon/WEB-INF/cocoon.xconf" > /> > <arg value="/test" /> > <classpath refid="batch.classpath" /> > </java> > > The log contains following output three times (with more log output > inbetween): > > [java] REQUEST: /test > > [java] CONTEXT PATH: null > [java] SERVLET PATH: /test > [java] PATH INFO: null > ... > ... > [java] METHOD: get > [java] CONTENT LENGTH: -1 > [java] PROTOCOL: cli > [java] SCHEME: cli > [java] AUTH TYPE: null > > [java] CURRENT ACTIVE REQUESTS: 1 > [java] REQUEST PARAMETERS: > > [java] PARAM: 'accept' VALUES: '[text/html, */*]' > [java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]' > [java] HEADER PARAMETERS: > > > [java] SESSION ATTRIBUTES: > > > Is there anything I miss here ? Any options I need to set ? > > Thanks, > Geert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]