Re: CVE-2023-49733: Apache Cocoon's StreamGenerator is vulnerable to XXE injection

2023-11-30 Thread warrell harries
Hi Cedric,

Does this build still use the infamous Log4J v1. 2 jar I know it's
actually benign due to no use of the jndi but security vulnerability
scanners usually complain.

Thanks for your work on this.

Best regards

Warrell

On Thu, 30 Nov 2023, 11:16 Cédric Damioli,  wrote:

> Severity: important
>
> Affected versions:
>
> - Apache Cocoon 2.2.0 before 2.3.0
>
> Description:
>
> Improper Restriction of XML External Entity Reference vulnerability in
> Apache Cocoon.This issue affects Apache Cocoon: from 2.2.0 before 2.3.0.
>
> Users are recommended to upgrade to version 2.3.0, which fixes the issue.
>
> References:
>
> https://cocoon.apache.org/
> https://www.cve.org/CVERecord?id=CVE-2023-49733
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: using cocoon 2.1 in the long-term, security concerns

2021-07-19 Thread warrell harries
The Tomcat version must be updated to address these concerns.

That should do it

On Mon, 19 Jul 2021, 13:03 Vincent Neyt,  wrote:

> Hi Cocoon users,
>
> I'd like to ask your opinion on the long-term security risks of running
> Cocoon on a server. The colleague responsible for the servers at my
> university is inquiring if the software I'm using for my website is up to
> date and is concerned that I'm using outdated software that could in the
> future pose a security risk.
>
> I'm using cocoon 2.1.11, which I could probably upgrade to 2.1.13 without
> many problems. But I'm concerned about the long-term, and wondering if it
> would perhaps be better to reprogram the website I've been working on for
> 10 years into eXist DB (which would be a huge time investment). I like
> cocoon very much and would love to continue using it if it's possible.
>
> I'm curious to hear your thoughts about using Cocoon 2.1 for the long
> term: will it still work well inside future versions of servlet containers
> like Tomcat? What about the java dependencies? And will cocoon 2.1 continue
> to put out updates when security risks are identified?
>
> thanks very much,
> Vincent
>


Re: [ANN] Apache Cocoon 2.1.13 Released

2020-07-30 Thread warrell harries
Great news!

Well done!

The download is still showing version 2.12

Many thanks from a die-hard cocooner

On Thu, 30 Jul 2020 at 11:12, Cédric Damioli  wrote:

> Apache Cocoon 2.1.13 Released
> -
>
> The Apache Cocoon Community is proud to announce the new release
> of Apache Cocoon.
>
>
>
>Apache Cocoon is a web development framework built around the concept
>of separation of concerns (that is: allowing people to do their job
>without having to step on each other toes) and component-oriented web
>RAD.
>
>
>
>Cocoon implements these concepts around the notion of 'component
>pipelines' modelled after the 'process chain' concept where each
>worker specializes on a particular operation. This makes it possible
>to use a Lego(tm)-like approach in building web solutions where
>these components can be hooked together into pipelines without
>requiring further programming.
>
>
>
>We like to think at Cocoon as "web glue" for your web application
>development needs. But most important, a glue that can keep
>concerns separate and allow parallel evolution of the two sides,
>improving development pace and reducing the chance of conflicts.
>
>
>
> For more information about Apache Cocoon 2.1.13, please go to
> http://cocoon.apache.org
>
> Changes with Apache Cocoon 2.1.13
>
> *) Starting with 2.1.13 the minimum required Java version will be 1.6.
> [all]
>
> *) Cannot start Cocoon 2.1.12 on Windows [FC]
>
> *) Cannot build with Java 7 [FC]
>
> *) Use ImageIO instead of old com.sun.image.* package in ImageReader [FC]
>
> *) Apache license at the beginning cocoon's dojo widgets templates
> causes: dojo.widget.Parse: error: [FC]
>
> *) XSP not working with Java 8 [FC]
>
> *) Make XMLResourceBundle (and -Factory) more extensible [CD]
>
> *) XMLResourceBundles are not available outside a Request [CD]
>
> *) Escape accolades in i18n messages [CD]
>
> *) ContextSourceFactory calculates the path incorrectly when removing
> the protocol part [FC]
>
> *) XMLEncoder doesn't support Unicode surrogate pairs [FC]
>
> *) Content-Range and Range headers does not respect the HTTP spec [CD]
>
> *) Inconsistent Content-Length header for HEAD requests [CD]
>
> *) Cannot upload a file with name containing a '=' or a ';' [CD]
>
> *) Unsynchronized HashMap.put in ResourceReader and GeneratorSelector
> may lead to infinite loop. [AN]
>
> *) Update to poi-3.14 (requires Java 1.6) [AN]
>
> *) Update to fop-1.1 [AN]
>
> *) Update to commons-httpclient-3.1 [AN]
>
> *) XSP: Use javax.tools.JavaCompiler interface for Javac (available
> since Java 6). [AN]
>
> *) Core: Update to xalan-2.7.2 and add serializer-2.7.2 [AN]
>
> *) Enable 'java' to be found by the build and run shell scripts on a
> modern Mac OS X. [DC]
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: How to configure TraxProcessor in 2.2?

2019-12-04 Thread warrell harries
Hi Mark,

I never could get 2.2 working 😂

However, I'm using 2.12 every day, all over the world - mostly with Saxon
for XSLT 2.0

All I can advise, use 2.12...

Best regards

Warrell





On Wed, 4 Dec 2019, 9:46 pm Mark H. Wood,  wrote:

> I'm using Cocoon 2.2.  I need to pass a custom XSLT transformer
> factory (that wraps Saxon's to configure it) to TraxProcessor, and the
> advice I've found in several places around the Web doesn't seem to be
> working:  my factory class never gets instantiated.
>
> I've got a file META-INF/cocoon/avalon/cocoon-core-saxon-xslt.xconf:
>
> 
> 
>class="org.apache.cocoon.components.xslt.TraxProcessor">
> 
> value="org.dspace.saxon.ConfigurableTransformerFactory"/>
>   
> 
>
> I also tried copying it to WEB-INF/cocoon and it didnt' seem to work
> there either.
>
> I do have  and  in the Spring
> config.
>
> Is there some way to debug component configuration and see if the file
> is even being looked for (and where *is* configuration looking)?  The
> Cocoon site directs me to Excalibur, which directs me to Avalon, which
> says that Avalon is wound up and directs me back to Excalibur
>
>
>
> I've also tried to configure the thing using Spring:
>
>class='org.apache.cocoon.components.xslt.TraxProcessor'
>   init-method='initialize'
>   destroy-method='dispose'>
>   
>value='org.dspace.saxon.ConfigurableTransformerFactory'/>
> 
>
> but so far I'm missing something:  TraxProcessor.sourceToSAX throws an
> NPE.  I'm probably not setting the parameters correctly -- there isn't
> a setter for use-store at all, for example.
>
> I've found any number of pages that tell me Avalon configuration is
> being replaced by Spring, but nothing practical on how to convert
> Avalon configuration (such as the first sample above) to Spring, or
> even how to write fresh Spring configuration for Cocoon components.
> It would be nice to know how to do this even if I wind up using the
> Avalon approach with the present task.
>
> --
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu
>


Re: Matching HTML GET parameters in sitemap

2016-06-30 Thread warrell harries
Great news. Well done!

On Wed, 29 Jun 2016, 23:39 crburd,  wrote:

> Thanks for the suggestion. While I couldn't get the method to work, it did
> lead me, in researching it, to this action:
>
> org.apache.cocoon.acting.RequestParameterExistsAction
>
> Once I figured how to implement it, all was well.
>
> Charles
>
> On Jun 29, 2016, at 1:37 AM, warrell harries-4 [via Cocoon] wrote:
>
> You could use the select matcher which allows you to alter flow through
> the pipeline based on a parameter value
>
> On Wed, 29 Jun 2016, 00:01 Charles Burd, < href="x-msg://17/user/SendEmail.jtp?type=node&node=58674&i=0"
> target="_top" rel="nofollow" link="external">[hidden email]> wrote:
>
> In a Cocoon 2.1 installation, I'm trying to get a sitemap pipeline match
>> to differentiate between a URL that has no HTML GET parameters and one that
>> does.
>>
>> For example, I want two different matches for the following URLs:
>>
>> foo.org
>>
>> foo.org?operation=bar <http://foo.org/?operation=bar>
>>
>> Thanks,
>>
>> Charles Burd
>>
>>
>>
>> -
>>
> To unsubscribe, e-mail: > href="x-msg://17/user/SendEmail.jtp?type=node&node=58674&i=1"
>> target="_top" rel="nofollow" link="external">[hidden email]
>> For additional commands, e-mail: > href="x-msg://17/user/SendEmail.jtp?type=node&node=58674&i=2"
>> target="_top" rel="nofollow" link="external">[hidden email]
>>
>>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://cocoon.10839.n7.nabble.com/Matching-HTML-GET-parameters-in-sitemap-tp58673p58674.html
> To start a new topic under Cocoon - Users, email [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=58675&i=0>
> To unsubscribe from Cocoon - Users, click here.
> NAML
> <http://cocoon.10839.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> --
> View this message in context: Re: Matching HTML GET parameters in sitemap
> <http://cocoon.10839.n7.nabble.com/Matching-HTML-GET-parameters-in-sitemap-tp58673p58675.html>
> Sent from the Cocoon - Users mailing list archive
> <http://cocoon.10839.n7.nabble.com/Cocoon-Users-f3.html> at Nabble.com.
>


Re: Matching HTML GET parameters in sitemap

2016-06-28 Thread warrell harries
You could use the select matcher which allows you to alter flow through the
pipeline based on a parameter value

On Wed, 29 Jun 2016, 00:01 Charles Burd,  wrote:

> In a Cocoon 2.1 installation, I'm trying to get a sitemap pipeline match
> to differentiate between a URL that has no HTML GET parameters and one that
> does.
>
> For example, I want two different matches for the following URLs:
>
> foo.org
>
> foo.org?operation=bar
>
> Thanks,
>
> Charles Burd
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: cocoon and cocoon-webapp together

2016-06-25 Thread warrell harries
What version of Cocoon? Use 2.12 and deploy the web app to Tomcat 7

What's the problem with that?

Best wishes

Warrell

On Sat, 25 Jun 2016, 17:58 Hans-Heinrich Braun,
 wrote:

> I am bringing my application to openshift.
> It seems that i cannot integrate local dependencies in openshift.
> So it try to make one maven project out of cocoon and cocoon-webapp.
> But i didn't succeed after one day of trial.
> Do somebody have an idea how to accomplish it,
> Best regards
> H.H.Braun
>


RE: [2.1] cinclude using a pipeline as a generator source

2016-05-10 Thread warrell Harries
Cocoon 2.1 is a living legend!

-Original Message-
From: "Nico Verwer" 
Sent: ‎10/‎05/‎2016 09:35
To: "users@cocoon.apache.org" 
Subject: Re: [2.1] cinclude using a pipeline as a generator source

On 7-5-2016 15:10, Christopher Schultz wrote:

On 5/7/16 7:38 AM, warrell harries wrote: 
cocoon:// is understood as standard
Awesome. I was hoping it would be something simple like that.
You can use something like



The RequestModule is standard, and the NormalizePathInputModule comes from this 
project.
Doing this will make you project "relocatable" relative to the sitemap root.
This works in Cocoon 2.1, which for me is still preferable over 2.2 or 3.

It is good to see that people are still using Cocoon (2.1)!

Best regards,
Nico

Re: [2.1] cinclude using a pipeline as a generator source

2016-05-07 Thread warrell harries
That's right. As per directories and XPath... Well done! Just keep tinkering
On 7 May 2016 14:10, "Christopher Schultz" 
wrote:

> Warrell,
>
> On 5/7/16 8:58 AM, Christopher Schultz wrote:
> > Warrell,
> >
> > Thanks for the quick reply!
> >
> > On 5/7/16 7:38 AM, warrell harries wrote:
> >> cocoon:// is understood as standard
> >
> > Awesome. I was hoping it would be something simple like that.
> >
> >> Use :/ to go relative to the root
> >
> > I'm having trouble configuring it properly, though.
> >
> > So, my original URL looks like this:
> >
> >> src="https://host/context/foo/bar/baz.html{$jsessionid}"; />
> >
> > My sitemap is actually foo/sitemap.xmap, so it matches all the stuff in
> /foo
> >
> > When I change the URL to this:
> >
> >  
> >
> > I get this error:
> >
> > java.lang.RuntimeException: The current URI
> > (/foo/bar/baz.html;jsessionid=97079C2DC1E19B20F2BEB8303AECF74E) doesn't
> > start with given prefix (foo)
> >
> > If I remove the "extra" leading / :
> >
> >  
> >
> > I get this error:
> >
> > org.apache.cocoon.ResourceNotFoundException: No pipeline matched
> > request: foo/bar/baz.html;jsessionid=97079C2DC1E19B20F2BEB8303AECF74E
> >
> > If I use ./ like this:
> >
> >  
> >
> > I get this error:
> >
> > org.apache.cocoon.ResourceNotFoundException: No pipeline matched
> > request: ./foo/bar/baz.html;jsessionid=97079C2DC1E19B20F2BEB8303AECF74E
> >
> > I'm vry close. Just have to fix the speling, evidently ;)
>
> The last permutation ended up doing it:
>
>   
>
> So since the sitemap currently operating is "foo", the "foo" isn't
> necessary in the URL? This completely solves my problem but I have an
> academic question: what would happen if I wanted to use a pipeline from
> a different sitemap in my URL? Something (conceptually) like this?
>
>  
>
> Since I need to remove the "other-foo" to get this to work, how can I
> address it?
>
> Thanks,
> -chris
>
> >> On 7 May 2016 12:12, "Christopher Schultz" <
> ch...@christopherschultz.net
> >> <mailto:ch...@christopherschultz.net>> wrote:
> >>
> >> All,
> >>
> >> I've got a Cocoon setup with a pipeline whose transformer contains
> >> something like this:
> >>
> >>   https://my-app/get-some-data"; />
> >>
> >> Now, the URL included there is actually coming from Cocoon, and
> actually
> >> I have a certificate that Java doesn't trust, so I get errors about
> PKI
> >> certification paths. I can "easily" solve that (and have been for
> some
> >> time, now) by specifying a truststore for the JVM process that
> contains
> >> my server's TLS certificate in it.
> >>
> >> I'd like to stop doing that for at least two reasons:
> >>
> >> 1. When my server certificate needs an update, I have to update my
> trust
> >> store and bounce Cocoon
> >> 2. It could be more efficient (no loopback HTTP request, no TLS
> >> handshake, etc.)
> >>
> >> Does cinclude understand Cocoon-relative paths?
> >>
> >> I'm looking for something like this:
> >>
> >>   
> >>
> >> Does something like that exist?
> >>
> >> Thanks,
> >> -chris
> >>
> >>
>  -
> >> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> >> <mailto:users-unsubscr...@cocoon.apache.org>
> >> For additional commands, e-mail: users-h...@cocoon.apache.org
> >> <mailto:users-h...@cocoon.apache.org>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> > For additional commands, e-mail: users-h...@cocoon.apache.org
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: [2.1] cinclude using a pipeline as a generator source

2016-05-07 Thread warrell harries
Hi Chris

cocoon:// is understood as standard

Use :/ to go relative to the root

Xpath rules 😁
On 7 May 2016 12:12, "Christopher Schultz" 
wrote:

All,

I've got a Cocoon setup with a pipeline whose transformer contains
something like this:

  https://my-app/get-some-data"; />

Now, the URL included there is actually coming from Cocoon, and actually
I have a certificate that Java doesn't trust, so I get errors about PKI
certification paths. I can "easily" solve that (and have been for some
time, now) by specifying a truststore for the JVM process that contains
my server's TLS certificate in it.

I'd like to stop doing that for at least two reasons:

1. When my server certificate needs an update, I have to update my trust
store and bounce Cocoon
2. It could be more efficient (no loopback HTTP request, no TLS
handshake, etc.)

Does cinclude understand Cocoon-relative paths?

I'm looking for something like this:

  

Does something like that exist?

Thanks,
-chris

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


Re: Help needed moving from 2.1.11

2016-01-06 Thread warrell harries
Hi Peter,

I would recommend moving to 2.12 first (and probably staying there).

IMHO 2.2 isn't worth the candle and 3.0 misses the point of using Cocoon in
the first place.

I have a similar set-up as you although I use a blocks based build so that
my 'applications' are seperate from the core.

I would be happy to help subject to negotiation :)

Best regards,

Warrell

On Wed, 6 Jan 2016 at 11:34 Flynn, Peter  wrote:

> ...I think.
>
> I have an existing Cocoon service running 2.1.11 under Tomcat5 and
> Apache in CentOS5 on a very old server, and I now have a new server
> running CentOS6, Apache2, and Tomcat6 that I want to migrate to, but I
> am held up by my lack of understanding of what has been happening to
> Coocon, and I'm an XML person, not a Java person :-)
>
> The existing service is not an "application" in the normal sense: it's
> just a large collection of directories under /var/www/xml, each with its
> own sitemap.xmap, serving a lot of XML documents as HTML via XSLT. Many
> of the documents are in fact HTML, retrieved in real time from elsewhere
> in our site using Tidy in order to force xhtml or HTML5.  The cocoon.war
> is the stock 2.1.11 with no mods except the substitution of saxon9.jar
> so we can use XSLT2.
>
> I would like to be able to update all this to 2.2, and eventually to
> Cocoon 3.0, but the lack of a prebuilt .war file means I am at a loss as
> to how to do this. The existing service simply serves XML converted with
> XSLT2, nothing more: there are no requirements for authentication (it's
> all public), templates, forms, or FOP (we use XSLT2 and XeLaTeX for
> PDFs), and no "applications" as such. The stock 2.1.11 cocoon.war file
> undoubtedly includes vast amounts of stuff we never even go near using,
> but I have no idea what to exclude or include when it comes to building
> a new one in 2.2 or 3.0. The block examples in the 2.2 Tutorials
> *appear* to be vastly more complex than is needed for what we want to do
> (although this may just be my ignorance: in fact Cocoon 1.x always did
> everything we needed!).
>
> A further requirement is obviously robust and working versions of Ant or
> Maven, as in the past I have never been able to get either of these to
> work on the platform available (there have always been unresolvable
> dependencies for libraries simply unavailable). Has anyone ever
> implemented Cocoon 2.2 or 3 on CentOS6?
>
> I have a small budget for help with this, either for training or
> consultancy or both (preferably both so that I can learn). Or do I just
> pick up the current 2.1.11 cocoon.war file and drop it into the new
> system and leave it alone?
>
> ///Peter
> --
> Peter Flynn | Academic & Collaborative Technologies
> | University College Cork IT Services | ☎ +353 21 490 2609
> | ✉ pfl...@ucc.ie | 🌍 www.ucc.ie
>


Re: Migration from 2.1 to 2.2

2014-07-21 Thread warrell harries
Hi,

One reason that many Cocoon users have stayed with the 2.1x stream is that
some very useful blocks never made the transition to 2.2

Personally, the hassle of migrating to 2.2 was not worth the gains it
offered (Spring meh).

As we are all aware Web application development has evolved in many
directions since the birth of Cocoon in 1999. JQuery and AJAX has moved
much of the burden to the browser. Similarly, Node.js has made server side
development easier. I found a way to easily use Node.js apps as a way to
develop Cocoon 'generators' see
http://warrell.blogspot.co.uk/2014/05/extending-life-of-my-cocoon.html

This provides more benefits to me than moving to 2.2 but, as they say, your
mileage may vary

Cheers

W


On 21 July 2014 11:17,  wrote:

> Hi there :)
>
>
>
> I would like to migrate my cocoon service from 2.1 to 2.2. However, I am
> missing some blocks, which I can’t find on the official page.
>
>
>
> - Block for XSL-FO to RTF
>
> - Block for validation (XSD validation)
>
>
>
> Has someone a matching link?
>
>
>
> best regards
>


Re: Problems building cocoon-2.1.12

2014-06-15 Thread warrell harries
Hi Peter,

I can't say what your build problem is (except that the error message
indicates a missing file... dependencies again?) but  I am surprised
you are still using Java 1.4. Is there a reason for not moving onto 1.7?
On 15 Jun 2014 16:56, "Peter Sparkes"  wrote:

>  Hi
>
> I am having problems building  cocoon-2.1.12 on my 64 bit windows 7
> system, with j2sdk1.4.2_19
> I had no problems on my old 32 bit windows XP system
>
> I am getting
>
> cocoon-block-html-patch:
> Processing: D:\cocoon-2.1.12-wl -
> Copy\src\blocks\html\conf\html-transformer.xmap
> Processing: D:\cocoon-2.1.12-wl - Copy\src\blocks\html\conf\html.xmap
> Writing: D:\cocoon-2.1.12-wl - Copy\build\webapp\sitemap.xmap
>
> BUILD FAILED
> D:\cocoon-2.1.12-wl - Copy\tools\targets\webapp-build.xml:120: The
> following error occurred while executing this line:
> D:\cocoon-2.1.12-wl - Copy\build\cocoon\temp\blocks-build.xml:2088: The
> following error occurred while executing this line:
> D:\cocoon-2.1.12-wl - Copy\build\cocoon\temp\blocks-build.xml:171:
> FileNotFoundException: java.io.FileNotFoundException: D:\cocoon-2.1.12-wl -
> Copy\build\webapp\sitemap.xmap (The requested operation cannot be performed
> on a file with a user-mapped section open)
>
> Help please
>
> Peter
>


Re: Using Node.js as a Generator

2014-06-04 Thread warrell harries
Thanks Thorsten,

I experimented with your excellent JSSLT work and was impressed and very
tempted to try it out in production. However, I was short on time and
familiarity with Node.js so, to get up to speed, (and avoid abandoning the
good ship Cocoon) , I experimented with the little service in the post
after reading John Resig (the dude) at
http://ejohn.org/blog/node-js-stream-playground

All in all, the future of Node.js is assured and maybe it can help keep the
spirit and body of Cocoon alive.

All the best

Warrell



On 4 June 2014 09:50, Thorsten Scherler  wrote:

> On 06/04/2014 09:22 AM, warrell harries wrote:
> > I have posted a simple way of using Node.js with Cocoon
> >
> > http://warrell.blogspot.co.uk/2014/05/extending-life-of-my-cocoon.html
> >
> > I hope this may be of some help to anyone similarly minded,
> >
> > Thanks
> >
> > Warrell
>
> Hi Warrell, cool stuff!
>
> We are using lots of node.js lately and I always tried to find time to
> actually write a basic cocoon prototype in javascript. For a project we
> did some cocoon inspired pipes, where we transform json into other json
> with xsl inspired transformation language we call jsslt.
>
> salu2
>
> --
> Thorsten Scherler 
> codeBusters S.L. - web based systems
> 
>
> http://www.codebusters.es/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Using Node.js as a Generator

2014-06-04 Thread warrell harries
Many thanks Francesco!


On 4 June 2014 08:27, Francesco Chicchiriccò  wrote:

> On 04/06/2014 09:22, warrell harries wrote:
>
>> I have posted a simple way of using Node.js with Cocoon
>>
>> http://warrell.blogspot.co.uk/2014/05/extending-life-of-my-cocoon.html
>>
>> I hope this may be of some help to anyone similarly minded,
>>
>
> Cool stuff!
> Need to immediately tweet about this: https://twitter.com/
> chicchiricco/status/474089743622623232
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Involved at The Apache Software Foundation:
> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> http://people.apache.org/~ilgrosso/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Using Node.js as a Generator

2014-06-04 Thread warrell harries
I have posted a simple way of using Node.js with Cocoon

http://warrell.blogspot.co.uk/2014/05/extending-life-of-my-cocoon.html

I hope this may be of some help to anyone similarly minded,

Thanks

Warrell


Re: authentication framework

2014-05-27 Thread warrell harries
Hi Peter,

This is an action that should be declared in the root sitemap. Have you
built the war file with the authentication block enabled?

Cheers,

Warrell


On 27 May 2014 14:28, Peter Sparkes  wrote:

>  Hi
>
> I can't get the * authentication framework sample to to work in *Cocoon
> 2.1.12
>
>
> I get the following error
>
> org.apache.avalon.framework.configuration.ConfigurationException: Type 
> 'auth-loggedIn' is not defined for 'act' at 
> file:///D:/cocoon-2.1.12-wl/build/webapp/samples/blocks/authentication-fw/sitemap.xmap:72:39
>
>
> Help please
>
> Peter
>


Re: Upgrade of HSSF to XSSF Excel serializer, anyone?

2014-05-13 Thread warrell harries
Hi Again,

I had a go at upgrading the serializer to XSSF  but there were simply too
many Java class changes for lazy old me. Instead, I had much better mileage
going down the OpenXML road and generating an .xlsx file in the Cocoon
pipeline (it is only a zipped up bunch of XML files after all).

All the files are fairly straightforward XML and it is only the packaging
that would be tricky but for the invaluable Zip serializer.

Inevitably, there is a lot of googling required to find examples but I
recommend
http://blogs.msdn.com/b/brian_jones/archive/2007/05/29/simple-spreadsheetml-file-part-3-formatting.aspx

as a good place to start.

Cheers

Warrell



On 9 May 2014 09:58, warrell harries  wrote:

> Hi Cocooners,
>
> I have just run into the 65535 upper limit on the number of rows in an
> Excel workbook as serialized using the gnumeric schema.
>
> Of course, I tried substituting the latest poi-3.10 jar from the excellent
> POI project for 3.0.2.jar that has worked well so far. Alas, some of the
> methods no longer exist.
>
> I was hoping somebody has done the hard-work necessary to upgrade the
> serializer to the XSSF format. I would be very grateful if they could share
> the code for 2.11
>
> Thanks
>
> Warrell
>


Re: compile-build.xml:79: java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI

2014-05-13 Thread warrell harries
Try the standalone pure ant build outside of Eclipse environment e.g. from
a command line

Cheers

W


On 13 May 2014 13:55, Paul G. Joseph  wrote:

> Hi there,
>
> I am trying to compile Cocoon 2.1.11 in Eclipse (Luna, version 4.4).
>
> I get:
> BUILD FAILED
> C:\cocoon-2.1.11\tools\targets\compile-build.xml:79: 
> java.lang.NoClassDefFoundError:
> org/apache/xpath/XPathAPI
>
> The problem is this api is supposed to be in xalan-2.7.1.jar and I do have
> xalan-2.7.1.jar on the build path and the jar file is where it is specified
> to be per the Eclipse build path.
>
> I am using jdk1.6.0_21 from Oracle (Java SE).
>
> Any ideas would be appreciated.
>
> Paul
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Upgrade of HSSF to XSSF Excel serializer, anyone?

2014-05-12 Thread warrell harries
Hi Cocooners,

I have just run into the 65535 upper limit on the number of rows in an
Excel workbook as serialized using the gnumeric schema.

Of course, I tried substituting the latest poi-3.10 jar from the excellent
POI project for 3.0.2.jar that has worked well so far. Alas, some of the
methods no longer exist.

I was hoping somebody has done the hard-work necessary to upgrade the
serializer to the XSSF format. I would be very grateful if they could share
the code for 2.11

Thanks

Warrell


Re: Cocoon 2 - Webservice

2014-04-07 Thread warrell harries
It's as simple as just using the stream generator.








Take Baby Steps and it will become clear

Regards

Warrell



On 7 April 2014 16:48,  wrote:

> Hello,
> Unfortunately, I'm only now to respond. Restful was recommended to me by my
> instructor. I would like to send the XML file via POST to cocoon, recycle
> there and spend as PDF, HTML, or RTF.
> Currently, I have not yet an overview if there is a ready-made opportunity
> to Cocoon XML to accept documents through POST?
>
>
>
>
> Von: Jos Snellings [mailto:jos.snelli...@upperware.biz]
> Gesendet: Samstag, 5. April 2014 15:23
> An: users@cocoon.apache.org
> Betreff: Re: Cocoon 2 - Webservice
>
> Hi Klaus,
>
> As REST is a principle, it is possible to implement a service "in a
> REST-ful
> manner".
> However, is it correct to state, as your message suggests, that the service
> would perform a sort of document conversion of an
> XML document in a specified format, to a PDF file?
>
> If this is the case, my idea would be:
> - cocoon 2 is a good choice, no need to upgrade
> - do not care about the REST religion, and just generate a pdf document
>
> Jos
>
>
>
>
>
> On Sat, Apr 5, 2014 at 3:06 PM, Klaus Nuhr  wrote:
> Hello to everyone in the mailing list :),
>
> I would like to implement a WebService via Cocoon. In this case, the client
> should send a XML file to my service, it will be processed accordingly and
> delivered as a pdf back to the client.
>
> The processing of a local XML works great. Now must be implemented as a
> webservice. I would have preferred RESTful, but seems all so only with
> cocoon 3 to come.
>
> Is there in this respect a tutorial or sample code?
>
>
> Greetings
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
>
>
> --
> La majestueuse égalité des lois, qui interdit au riche comme au pauvre de
> coucher sous les ponts, de mendier dans les rues et de voler du pain.
> -- Anatole France
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Accessing application/json message body of POST request

2014-03-16 Thread warrell harries
Hi Bardo,

The simplest way that I have found to handle json posts is to use the text
generator. Alternatively, you are free to write a json generator which
would convert json to xml as this is the default data format of  cocoon. I
have been successfuly using cocoon to handle json (the contemporary data
format of choice) for a few years now. Very recently I have been using
cocoon as middleware between a datasource and Cube. This Node.js app front
ends mongodb using json as the transport over http. Cocoon still rocks in
this new world. Please get in touch if there is anything I can help with.
Best regards Warrell
On 16 Mar 2014 19:37, "Bardo Nelgen" 
wrote:

>
> Hi all,
>
> has someone ever accessed the message body of a post request to cocoon
> which uses application/json as its content type?
>
> The same request is being handled without issues if posted as
> application/x-www-form-urlencoded.
>
> Though, as soon as the content type is changed to JSON, Cocoon appears to
> skip parsing the message body.
>
> Unfortunately it's not me making these POST calls; which is why just
> "switching it" is not an option.
>
> Is there some setting which can tell cocoon to simply continue parsing,
> either regardless of a post's content type (which, of course might raise
> security issues...) or explicitly for application/json ?
>
> Any suggestions are welcome.
>
> Regards,
>
> Bardo
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Inter Server Communications

2013-05-17 Thread warrell harries
Hi Peter, I use a version of the proxy transformer. If the bundled one
doesn't work for you it is easy to roll your own.

Cheers

Warrell
On 17 May 2013 16:21, "Peter Sparkes"  wrote:

> Hi
>
> I have an application in which I require to send a POST request from the
> server to another non Cocoon website ( to set parameters for a newsletter
> which uses phplist newsletter software) and the response would be in JSON
>
> This would be server to server without any client browser being involved
>
> How do I do this?
>
> Help please
>
> Peter
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@cocoon.**apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: [ANN] Apache Cocoon 2.1.12 Released

2013-03-20 Thread warrell harries
Thanks very much for keeping the Cocoon 2.1 flame burning.

I'm still building on the 2.11 platform so I look forward to upgrading to
this release.

All the best

Warrell

On 20 March 2013 14:41, Cédric Damioli  wrote:

> Apache Cocoon 2.1.12 Released
> -
>
>   The Apache Cocoon Community is proud to announce the new release
>   of Apache Cocoon.
>
>   Apache Cocoon is a web development framework built around the concept
>   of separation of concerns (that is: allowing people to do their job
>   without having to step on each other toes) and component-oriented web
>   RAD.
>
>   The latest version is downloadable from
> http://cocoon.apache.org/**mirror.cgi
>   (Please use the mirrors to download the release - it might take
>   a little bit more time until the latest release is available on
>   all mirrors, so give the mirrors some time - approx. 24h to update.)
>
>   This release includes many bug fixes and smaller enhancements.
>
>   For more information about Apache Cocoon 2.1.12, please go to
> http://cocoon.apache.org. You'll find the whole list of changes at
> http://cocoon.apache.org/2.1/**changes.html
> .
>
> The Apache Cocoon Project
>
> --
> Cédric Damioli
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>


Re: Using FOP 1.1 with Cocoon 2.1.11

2013-02-09 Thread warrell harries
I believe it is. Certainly, I have used 1.0...iirc
On 9 Feb 2013 08:17, "Peter Sparkes"  wrote:

> Hi,
>
> Is it possible to use FOP 1.1 with Cocoon 2.1.11
>
> Thanks
>
> Peter
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@cocoon.**apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: beginner q: possible to set extension .xsl as type='xslt' by default?

2012-10-16 Thread warrell harries
Are those included xsl files where they are supposed to be?

On 16 October 2012 15:42, whatnext  wrote:

>
> Hi Jos:
>
> Thanks for your help. I didn't really change the sitemap.xmap that was
> generated from the instructions mentioned, but here it is:
>
> 
> 
> http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
> http://cocoon.apache.org/schema/sitemap/cocoon-si$
>  xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
>
>   
>   
>
>   
> 
> 
>   
>   
> 
> 
> 
> 
> 
>
>   
>   
>   
> 
>   
> 
> 
>   
>   
> 
> 
>   
> 
>
> 
> 
>   
>   
> 
>   
> 
>
> 
>   
>   
> 
>   
> 
>
> 
>   
> 
>   
>
> 
>
>
>
> Warrell: I don't think there was a  at
> all.
> I tried adding one but it doesn't seem to make a difference.
>
> Our .xsl files have e.g.
>
> 
> 
> 
> 
>
> Is this what you mean by chaining? I would imagine you mean don't transform
> the transform which I think is not the same thing?
>
> Tom
>
>
>
> Jos Snellings-2 wrote:
> >
> > Dear Tom,
> >
> > Can you send your sitemap.xmap over?
> > For cocoon, the default transformation is an xslt.
> >
> > If you are just starting with a migration, you may want to consider using
> > cocoon 3, which is at the moment in beta,
> > but soon the production version will be ready (@others: isn't it ? :-)
> >
> > Kind regards,
> > Jos
> >
> >
> > On Tue, Oct 16, 2012 at 3:55 PM, whatnext 
> wrote:
> >
> >>
> >> Dear learned cocoon users,
> >>
> >> Very sorry for the ignorance of this question. Our company has recently
> >> decided it might be time to move away from AxKit (!) and we are looking
> >> at
> >> the alternatives. Cocoon is an obvious choice. However, I know
> absolutely
> >> nothing about it other than a broad idea of what it does.
> >>
> >> I have been trying to get Cocoon to serve some of our pages to see whats
> >> involved.
> >>
> >> I followed the instructions at
> http://cocoon.apache.org/2.2/1159_1_1.html
> >> and sure enough could display the welcome page.
> >>
> >> Next up I tried to display one of our web pages by copying over an .xml
> >> and
> >> related .xsl stylesheets and modifying the sitemap.xmap file.
> >>
> >> So then it falls over saying:
> >>
> >> Unable to get transformer handler for file:///path/example.xsl ...
> >>
> >> If I go into sitemap.xmap and add type="xslt" to the  =
> >> '...'> line then this error seems resolved but then it falls over with
> >>
> >> Unable to get transformer handler for file:///path/another.xsl
> >>
> >> where another.xsl is referred to by example.xsl. What can be done in
> this
> >> case? Is there a way of telling cocoon that it needs to use the xslt
> >> transformer anywhere it sees .xsl... ? Or am i approaching this in all
> >> the
> >> wrong way etc.?
> >>
> >> Many apologies for the elementary nature of this question - I freely
> >> admit
> >> I
> >> have no idea what I am doing!
> >>
> >> Any help appreciated...
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/beginner-q%3A-possible-to-set-extension-.xsl-as-type%3D%27xslt%27-by-default--tp34563508p34563508.html
> >> Sent from the Cocoon - Users mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> >> For additional commands, e-mail: users-h...@cocoon.apache.org
> >>
> >>
> >
> >
> > --
> > All generous minds have a horror of what are commonly called "Facts".
> They
> > are the brute beasts of the intellectual domain.
> > -- Thomas Hobbes
> >  
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/beginner-q%3A-possible-to-set-extension-.xsl-as-type%3D%27xslt%27-by-default--tp34563508p34563738.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: beginner q: possible to set extension .xsl as type='xslt' by default?

2012-10-16 Thread warrell harries
meant 'chaining' :)

On 16 October 2012 15:12, warrell harries  wrote:

> Hi,
>
> Depending on your sitemap components set-up (see the top of the file
> e.g. )
> the default Transformer should be the XSLT one.
>
> Try omitting the type altogether.
>
> Remember that the Pipeline is key so don't try 'chaing' xslt from within
> your .XSLT file.
>
> Attaching the files to your question would help.
>
> Regards
>
> Warrell
>
>
> On 16 October 2012 14:55, whatnext  wrote:
>
>>
>> Dear learned cocoon users,
>>
>> Very sorry for the ignorance of this question. Our company has recently
>> decided it might be time to move away from AxKit (!) and we are looking at
>> the alternatives. Cocoon is an obvious choice. However, I know absolutely
>> nothing about it other than a broad idea of what it does.
>>
>> I have been trying to get Cocoon to serve some of our pages to see whats
>> involved.
>>
>> I followed the instructions at http://cocoon.apache.org/2.2/1159_1_1.html
>> and sure enough could display the welcome page.
>>
>> Next up I tried to display one of our web pages by copying over an .xml
>> and
>> related .xsl stylesheets and modifying the sitemap.xmap file.
>>
>> So then it falls over saying:
>>
>> Unable to get transformer handler for file:///path/example.xsl ...
>>
>> If I go into sitemap.xmap and add type="xslt" to the > '...'> line then this error seems resolved but then it falls over with
>>
>> Unable to get transformer handler for file:///path/another.xsl
>>
>> where another.xsl is referred to by example.xsl. What can be done in this
>> case? Is there a way of telling cocoon that it needs to use the xslt
>> transformer anywhere it sees .xsl... ? Or am i approaching this in all the
>> wrong way etc.?
>>
>> Many apologies for the elementary nature of this question - I freely
>> admit I
>> have no idea what I am doing!
>>
>> Any help appreciated...
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/beginner-q%3A-possible-to-set-extension-.xsl-as-type%3D%27xslt%27-by-default--tp34563508p34563508.html
>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
>>
>>
>


Re: beginner q: possible to set extension .xsl as type='xslt' by default?

2012-10-16 Thread warrell harries
Hi,

Depending on your sitemap components set-up (see the top of the file
e.g. )
the default Transformer should be the XSLT one.

Try omitting the type altogether.

Remember that the Pipeline is key so don't try 'chaing' xslt from within
your .XSLT file.

Attaching the files to your question would help.

Regards

Warrell


On 16 October 2012 14:55, whatnext  wrote:

>
> Dear learned cocoon users,
>
> Very sorry for the ignorance of this question. Our company has recently
> decided it might be time to move away from AxKit (!) and we are looking at
> the alternatives. Cocoon is an obvious choice. However, I know absolutely
> nothing about it other than a broad idea of what it does.
>
> I have been trying to get Cocoon to serve some of our pages to see whats
> involved.
>
> I followed the instructions at http://cocoon.apache.org/2.2/1159_1_1.html
> and sure enough could display the welcome page.
>
> Next up I tried to display one of our web pages by copying over an .xml and
> related .xsl stylesheets and modifying the sitemap.xmap file.
>
> So then it falls over saying:
>
> Unable to get transformer handler for file:///path/example.xsl ...
>
> If I go into sitemap.xmap and add type="xslt" to the  '...'> line then this error seems resolved but then it falls over with
>
> Unable to get transformer handler for file:///path/another.xsl
>
> where another.xsl is referred to by example.xsl. What can be done in this
> case? Is there a way of telling cocoon that it needs to use the xslt
> transformer anywhere it sees .xsl... ? Or am i approaching this in all the
> wrong way etc.?
>
> Many apologies for the elementary nature of this question - I freely admit
> I
> have no idea what I am doing!
>
> Any help appreciated...
>
>
>
>
>
>
>
> --
> View this message in context:
> http://old.nabble.com/beginner-q%3A-possible-to-set-extension-.xsl-as-type%3D%27xslt%27-by-default--tp34563508p34563508.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Setting URLConnection User-Agent String

2011-10-11 Thread warrell harries
Yep, do it in the setup

public void setup(SourceResolver resolver, Map objectModel, String src,
Parameters par) throws ProcessingException, SAXException, IOException
{
super.setup(resolver,objectModel,src,par);
try
{
Source inputSource = resolver.resolveURI(super.source);
this.source = inputSource.getURI();
}
catch(SourceException se)
{
throw SourceUtil.handle("Unable to Resolve " + super.source, se);
}
this.customHeader = par.getParameter(WORLD_LOGGER, new String());
this.httpClient = this.getHttpClient();
}


Re: Setting URLConnection User-Agent String

2011-03-01 Thread warrell harries
Hi Chris,

It doesn't make any difference - it's plain old HTTP despite the jargon :)

If you have already seen this
http://www.mail-archive.com/users@cocoon.apache.org/msg34182.html

then investigate the original Generator code at
/cocoon-2.1.11/src/blocks/proxy/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java

It could be that this will be sufficient for your requirements.

Best regards,

Warrell


On 28 February 2011 16:13, Christopher Schultz  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Warrell,
>
> On 2/28/2011 6:41 AM, warrell harries wrote:
> > Please see recent discussion regarding proxying to another server. In
> > brief, I usually deploy a custom transformer based on the web service
> > proxy transformer but setting the user agent header before invoking the
> > web service.
>
> I was talking about a vanilla HTTP request that returns an XML document,
> not a formal web service. Not sure if that changes your suggestion(s).
>
> > Seems like this is a common requirement and it would be good if the
> > desired header could be passed in as a sitemap parameter to an existing
> > component. I am not aware of any existing component that provides this
> > facility.
>
> That would be cool. I've had a hard time penetrating the Cocoon code
> base in the past. Any pointers on where to look to possibly implement this?
>
> Thanks,
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1rybAACgkQ9CaO5/Lv0PAA8wCfWcDOcdJ/U4SiB3X9UTuRBqK0
> FG4AoKsjKpjN4Cdy/msD8N6WmCJ0yMHT
> =U07J
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Setting URLConnection User-Agent String

2011-02-28 Thread warrell harries
Please see recent discussion regarding proxying to another server. In brief,
I usually deploy a custom transformer based on the web service proxy
transformer but setting the user agent header before invoking the web
service.

Seems like this is a common requirement and it would be good if the desired
header could be passed in as a sitemap parameter to an existing component. I
am not aware of any existing component that provides this facility.

Regards,

Warrell
On 25 Feb 2011 16:55, "Christopher Schultz" 
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> All,
>
> I'm using Cocoon 2.1.11 with some pipelines that fetch data from another
> webapp via Apache httpd which logs the requests with the User-Agent
> being "Java/whatever". I'm wondering if Cocoon offers the ability to
> tweak the User-Agent string that is used when fetching data from http://
> resources?
>
> I believe I can set the http.agent system property, but I was wondering
> if anyone has another (better?) technique to do this?
>
> Thanks,
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1n3uIACgkQ9CaO5/Lv0PAjqwCdEeS0fpVuAHhXEeyEXKehyTO6
> 54IAoLWV0wHj6TjiAXihOTUZAwOMHRRB
> =e1Ma
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>


Re: Passing XML to webservice?

2011-02-24 Thread warrell harries
Thanks Andreas,

I would be interested in seeing what you did!

IIRC, I believe Alec needs HTTPS which I hope will be addressed using
research from here
http://stackoverflow.com/questions/1828775/httpclient-and-ssl.

Regards,

Warrell

On 24 February 2011 08:06, Andreas Kuehne  wrote:

> Hi Warrel,
>
> we worked on a related topic, web service security.
> If someone's requiring web service security for SOAP calls / requests in
> Cocoon, we would be glad to share or stuff.
>
> Greetings
>
> Andreas
>
> - original Nachricht 
>
> Betreff: Re: Support / Consultancy for our Cocoon 2.1.9 platform
> Gesendet: Mi, 23. Feb 2011
> Von: warrell harries
>
> Here is the reference to support my posting about your problem with using
> the document function. My reply seems to have been delayed...
> http://www.mail-archive.com/users@cocoon.apache.org/msg34182.html
>
>
> --- original Nachricht Ende 
>


Re: Support / Consultancy for our Cocoon 2.1.9 platform

2011-02-23 Thread warrell harries
Here is the reference to support my posting about your problem with using
the document function. My reply seems to have been delayed...

http://www.mail-archive.com/users@cocoon.apache.org/msg34182.html


Re: Re: Support &amp; Traxtransformers

2011-02-23 Thread warrell harries
Hi Alec,

Having considered this issue my suggestion is to use a custom transformer
which invokes the external content provider with values from the pipeline
document and sets the user agent header from the orginal request. The
response from the external request is then aggregated or replaces the
document in the pipeline.

I developed such a custom transformer for testing and using SOAP services.
In such a scenario the transformer has to set the outgoing HTTP request with
the value of the desired SOAP action instead of the user agent.

I will post the code asap although I have an idea that I put it on this list
some 4 years ago.

Hope this helps,

Warrell


Re: Support / Consultancy for our Cocoon 2.1.9 platform

2011-02-16 Thread warrell harries
I have a company, Cocoon Technology, that could help. My number is
07976232632. I am based near Portsmouth.

Hope to hear from you,

Regards

Warrell


On 12 February 2011 12:36, Alec Bickerton  wrote:

> Can anyone suggest a company that provides support for Cocoon 2.1. I've
> tried the links on
> http://cocoon.apache.org/1271_1_1.html
>
> But so far, no response.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Work Opportunity

2011-01-19 Thread warrell harries
Hi Peter,

I have a company, Cocoon Technology, that could help. My number is
07976232632. I am based near Portsmouth.

Hope to hear from you,

Regards

Warrell
On 17 Jan 2011 11:24, "Peter Sparkes"  wrote:
> Hi,
>
> I maintain a number of websites, for different companies, using the
following technologies - debian
> (lenny), apache2, Multiple instances oftomcat6 each servicing a different
domain and Cocoon 2.1.11.
> Within cocoon I use xml, xslt, javascript etc.
>
> One of the companies I work for is concerned that I am a one man company
and that if I got run over
> by a bus they would have a problem.
>
> What I am looking for is a individual or small company who could take over
in the event that I was
> unable to look after the website.
>
> I am located in Devon, England and the Server is in Yorkshire, England.
>
> If you are interested, please, send me your telephone number so we discuss
the it.
>
> Regards
>
> Peter Sparkes
>
>
>
>


Re: Calling LaTeX from within Cocoon

2010-04-29 Thread warrell harries
Definitely possible. You could have a look at the FINS project as a good
example of how to to this sort of thing. In that case they use XML as an
interface to JFreeChart.

You can write a custom serializer and/or transformer. Of course the
preferred way is to use XSL:FO and a number of people have interfaced the
latest release of the Apache FO project with current version of Cocoon.

Regards

Warrell

On 28 April 2010 14:59, Peter Flynn  wrote:

> 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 from within Cocoon rather than having to call out to a CGI script. As
> Cocoon can only call Java resources, and can only accept XML return, would
> it be possible to write a small Java stub whose classes can be added to
> Cocoon, that would do the business of running LaTeX over the XSLT output in
> the pipeline and returning the PDF?
>
> I don't do Java, so I would be interested to know if this is even possible.
>
> ///Peter
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: File upload without "full" form submit.

2010-01-11 Thread warrell harries
Hi Tomek,

To do this sort of thing I sometimes use bad old showModalDialog and attach
this to a button onclick event. This function is supported by Firefox and IE
and doesn't trigger the submit of a Cocoon form.

Nasty, but it works for intranets...

Cheers

W

2010/1/10 Tomek Piechowicz 

> Hi.
>
> I have form with 3 repeaters, one contains standard text input widgets, and
> the next two contain file upload widgets. User can add file inputs, select
> files, and press submit button which will submit form and redirect from form
> page.
>
> I would like to add separate submit button to each upload widget in
> repeater and upload each file without submitting whole form and redirect
> from page.
>
> Is it possible ? Can anyone give mi some tips how to do it ?
>
> Regards,
> Tomek Piechowicz
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: using Authentication-fw in cocoon 2.1.10! HELP!!!

2009-10-01 Thread warrell harries
Hi Maria,

I have the same problem - I gues one must use multiple matchers and pass
these around from pipeline to pipeline and use the inputmodule {uri}

Did you solve this problem?

2009/9/6 Maria Grigorieva 

>
> The main problem is that pages "first" and "five" open in new window.
>
> And redirection to "index" make dublication of the whole site )))
>
>
>
> Maria Grigorieva wrote:
> >
> > I mean:
> >
> > If I logged in from the page named "first" - I want to redirect to the
> > page "first"
> >
> > If I logged in from page "five" - redirect to "five"... etc
> >
> >
> > Maria Grigorieva wrote:
> >>
> >> Hello, dear mailing-list! :)
> >>
> >> I'm using Authentication-fw and have one problem:
> >>
> >> I have 2 types of resources which have to be protected and 1
> >> authentication handler.
> >>
> >> User may choose:
> >>
> >> 1. pass the login at startup by button ("login")
> >>
> >> 2. try to view resource and login by demand
> >>
> >> When user pass the login, the system redirects to some page. For
> example:
> >>
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>
> >> When user login by button (at startup) I redirect him to "index" page:
> >>
> >> 
> >> 
> >>   
> >>>> value="{request-param:username}"/>
> >>>> value="{request-param:secretword}"/>
> >>   
> >> 
> >> 
> >>   
> >>
> >> 
> >> 
> >>   
> >>   
> >> 
> >> 
> >> 
> >> 
> >> 
> >>
> >> So, the situation.
> >>
> >> I logged-in at site startup by button "Sign In" - go to
> >> "content/index.stat".
> >>
> >> And I can view protected documents.
> >>
> >> But If I haven't logged-in by "Sign In" and want to view protected
> >> resource -
> >>
> >> then the system redirects me to "login" and after that again on
> >> "content/index.stat"!!!
> >>
> >> I need to make redirection to the page, from which I've just wanted to
> >> view, but was
> >>
> >> asked to login.
> >>
> >> Please, help! :)
> >>
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/using-Authentication-fw-in-cocoon-2.1.10%21-HELP%21%21%21-tp25322395p25322475.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Starting out with Cocoon 2.2

2009-09-10 Thread warrell harries
IMHO, developers tend to mirror the general population in that the majority
follow the herd. The habits of imperative Java programming and the
not-invented-here syndrome meant that Cocoon was only ever going to appeal
to a minority of enlightened developers.

Maven is a head f&*ck for the average Joe and so perhaps Cocoon 2.2 is a
bridge too far. The paradigm shift to XML pipelines is enough to cope with.
I'm still working with 2.11 and it works fine for me.

2009/9/10 Ellis Pritchard 

> Lamentable indeed.
>
> Having taken a break from Cocoon 2.1 at work, and returned to 2.2, after
> much pain and frustration at recreating what was in cocoon using 'pure' java
> and spring mvc + freemarker (urgh) + 1000's of lines of horrible java to do
> stuff cocoon did for free, I realize how much I miss the simple power of the
> platform. For XML content, there is simply nothing better.
>
> 2.2 really should have been finished: user docs, the halfway house between
> spring and Avalon, missing blocks (eventcache anyone?)... it's all so close
> and yet so far.
>
> I'd love to get involved in polishing this stuff, but I've never really
> been part of the 'community', just finding and reporting tricky defects!
>
> Is there any interest out there for futher work on 2.2?
>
> Ellis.
>
>
> On 10 Sep 2009, at 12:56, David Legg  wrote:
>
>  Hi David,
>>
>>  I'm just about to embark on a new project... I'd like to use Cocoon 2.2
>>> for this, but I'm concerned about the apparent lack of support for it.
>>>
>>
>> It is true that Cocoon has hit a low point at the moment and I'm sure many
>> of us wonder if it will ever recover.  Many of the original contributors
>> have moved on to other things and officially version 2 (and 2.2) are in
>> 'maintenance mode'.  Version 3 is still being worked on but to be honest it
>> looks so different that you will be starting again from scratch compared to
>> version 2.
>>
>> It's a great shame as I really thought version 2.2 was beginning to gain
>> traction.
>>
>>  Can anyone suggest any resources that will help me get started with
>>> Cocoon 2.2?
>>>
>>
>> I would archive that book on version 2!  It will be of little use to you
>> when working with 2.2.
>>
>> Most of the useful documentation can be found here: -
>>
>> http://cocoon.zones.apache.org/dev-docs/2.2/1159_1_1.html
>>
>> But you should be aware that this is the 'published' version of the
>> documentation.  It may be the case that the 'unpublished' versions are more
>> up to date.  To get to them you can click on the link at the bottom of the
>> page where it mentions 'Errors and Improvements'.  This link will take you
>> to the Daisy CMS which is what Cocoon members use to write and edit
>> documentation before it gets published.
>>
>> Yes!... It is a horrible mess and I have commented about this before but
>> was persuaded it was for the best.
>>
>>  I'm concerned that interest in and support for Cocoon is dying out. Would
>>> I be better off choosing a completely different technology for my project?
>>>
>>
>> I would say think seriously before you commit another year or two of your
>> life to learning it!
>>
>> Regards,
>> David Legg
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: PDF export using cocoon

2009-08-21 Thread warrell harries
Of course, that is the beauty of Cocoon. However, the content that will form
the PDF document has to pass through the the Cocoon pipelines as XML. If the
Cocoon pipeline that is invoked via the Cocoon url were to treat the Ruby
app as a source for that content then that Content could be transformed
within Cocoon to XML and serailized as a PDF but somewhere along the
line the developer would have to use XML.

2009/8/21 Jeroen Reijn 

> Well that depends I guess, since you don't actually have to see the XML,
> because you can let Cocoon serialize the output as a pdf, you could call a
> URL from ruby I guess and cocoon will generate the pdf based on the URL?
>
> Regards,
>
> Jeroen
>
> warrell harries wrote:
>
>> It's an XML framework... so, in short, no :)
>>
>>
>> 2009/8/19 anandhthiyagarajan > anandhthiyagara...@gmail.com>>
>>
>>
>>Hi everyone
>>
>>  Is there any possibility to generate the PDF documents using
>>cocoon
>>without generating xml files. I m working in Ruby on Rails. Any help
>>would
>>be appreciated.
>>
>>Thanks
>>
>>Anandh
>>--
>>View this message in context:
>>http://www.nabble.com/PDF-export-using-cocoon-tp25039896p25039896.html
>>Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>>-
>>To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>><mailto:users-unsubscr...@cocoon.apache.org>
>>For additional commands, e-mail: users-h...@cocoon.apache.org
>><mailto:users-h...@cocoon.apache.org>
>>
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: PDF export using cocoon

2009-08-20 Thread warrell harries
It's an XML framework... so, in short, no :)


2009/8/19 anandhthiyagarajan 

>
> Hi everyone
>
>   Is there any possibility to generate the PDF documents using cocoon
> without generating xml files. I m working in Ruby on Rails. Any help would
> be appreciated.
>
> Thanks
>
> Anandh
> --
> View this message in context:
> http://www.nabble.com/PDF-export-using-cocoon-tp25039896p25039896.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Trouble with Dynamic Chart

2009-08-07 Thread warrell harries
Have you looked at FINS? http://www.lucamorandini.it/fins/faq.html


2009/8/6 sh kh 

> I'm following the Cocoon 2.2 tutorial.  I created a dynamic chart with a
> java class implementing JFreeChart.  I want to view the rendered chart in
> cocoon. I'm using flowscript and map:read, but no luck.  I get a message
> saying the image contains errors when viewing src in Firefox ( I tested that
> the chart does show up fine if I write it to an external file...I could link
> to this file but would prefer not to write the chart to the disk).
>
> I followed the approach from a previous post in the mailing list (
> http://article.gmane.org/gmane.text.xml.cocoon.user/57199)
>
> Here is the relevant method to return InputStream in MyClass
>
> public MyClass {
>
> public static InputStream getInputStream() {
>
> (Code to create chart omitted...)
>
> ByteArrayOutputStream out = new ByteArrayOutputStream();
> JFreeChart chart = ChartFactory.createPieChart("Pie Chart", dataset, true,
> true, false);
> ChartUtilities.writeChartAsPNG(out, chart, 500, 300);
> InputStream is = new ByteArrayInputStream(out.toByteArray());
> return is;
> }
> }
>
> Flowscript
>
> function demo() {
> var inputstream = MyClass.getInputStream();
> cocoon.sendPage("screens/spring-bean",
> {"inputstream": inputstream});
> }
>
> Sitemap:
>
>   
> 
> 
> 
>
>
>   
>   
> 
>mime-type="image/png" />
> 
> 
>
>
> Any hints will be appreciated.  Thanks.
>
> Shailender
>
>


Re: Stand alone Cocoon

2009-06-26 Thread warrell harries
Small is beautiful :) I have a lot to be modest about

2009/6/26 Ellis Pritchard 

> Could you just use your working cocoon application as a web-service? e.g.
> Use commons http to call it? Nice scalability implications...
>
> Ellis.
>
>
> On 26 Jun 2009, at 09:38, Steven Dolg  wrote:
>
>  zzkumar schrieb:
>>
>>> Hi All,
>>>
>> Hi,
>>
>>  I am new to Cocoon. We are planning to use Cocoon for report generation
>>> (XML
>>> + excel template passed through Cocoon = Excel file with values filled
>>> in).
>>>
>>> I am able to generate the report when I deploy the cocoon as a web app.
>>> Now the issue is, I want to integrate cocoon into my existing webapp. By
>>> integrating I mean, I should use the web.xml of my current web
>>> application
>>> and not the one from cocoon. i.e. every request should go through my old
>>> web.xml.
>>> and when I say generate report, it should invoke methods from Cocoon and
>>> generate reports.
>>>
>>> For ex. I want to have a method like : public Object
>>> generateReport(String
>>> xlsPath, String excelTemplatePath) and this method should invoke classes
>>> from Cocoon, generate report and return the report.
>>>
>>> Please let me if this is possible. Also please direct me to some
>>> documents,
>>> links on this.
>>>
>>>
>> I am strictly speaking about Cocoon 3.0 here:
>>
>> Yes this is entirely possible. Actually it was one of the goals when
>> designing the new version.
>> And there are people who did exactly what you described above (having a
>> web application and using Cocoon  inside it, just like you would use a
>> templating engine or an O/R-Mapper)
>>
>> However there's a catch: It is still an alpha version.
>>
>> So the basic question is: can you live with an alpha version?
>> If the answer is NO, then Cocoon 3.0 is not what you want - you might as
>> well stop reading this now (I think it will be months before this goes into
>> any king of beta phase).
>>
>>
>> If the answer is YES, then Cocoon 3.0 can probably solve a lot of your
>> problems rather easily.
>> The basic principles are the same as those of Cocoon 2.x and it's rather
>> easy to create new pipeline components or modify behaviour the way you
>> want/need.
>> ("Our" students from the TU Vienna do it all the time, even if it's not
>> part of their project - apparently they think it's fun)
>>
>>
>> Cocoon 3.0 provides an API to create pipelines programmatically and use
>> them basically everywhere you have Java available.
>> You can even use the sitemap on top of that if you want to and still use
>> Coccon inside your own application like any other non-web framework.
>>
>>
>> The system is already used in some commercial applications and AFAIK,
>> Apache Sling is looking at integrating it too. (Again it's the pipeline API
>> that makes certain things possible and interesting).
>> We are continuously working on it, although this may not be very visible
>> or prominent at times.
>>
>> Documentation is another weak point right now. So there isn't much to
>> point you to.
>> The general idea about Cocoon 3.0 is sketched out here:
>> http://cocoon.apache.org/3.0/ and a (slightly) more detailed overview is
>> ready here http://cocoon.apache.org/3.0/features.html.
>> The documentation is for version 3.0.0-alpha-1.
>>
>> The current trunk contains a lot of changes and extensions and thanks to
>> the feedback we got, this version is more consistent, easier to use, and
>> more reliable.
>> IMO a new release should follow rather shortly (1 - 2 months) but maybe
>> I'm a bit optimistic on that.
>>
>>
>> I am not sure whether this is possible at all with Cocoon 2.x.
>> I guess some of the "older" guys have to answer that.
>>
>>
>> I hope this makes sense to you.
>>
>> Cheers,
>> Steven
>>
>>  thank you in advance.
>>> Regards,
>>> Kumar.D
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Stand alone Cocoon

2009-06-26 Thread warrell harries
I haven't looked at version 3.0 but I have done just what you describe using
2.1x and the CLI technique. Have you looked at the process for packaging
Coccon as an offline application. There is some recent comment on the
mailing list about it and thre is plenty of material on the web. Enjoy - it
is very impressive when you get it working :)

2009/6/26 zzkumar 

>
> Hi All,
>
> I am new to Cocoon. We are planning to use Cocoon for report generation
> (XML
> + excel template passed through Cocoon = Excel file with values filled in).
>
> I am able to generate the report when I deploy the cocoon as a web app.
> Now the issue is, I want to integrate cocoon into my existing webapp. By
> integrating I mean, I should use the web.xml of my current web application
> and not the one from cocoon. i.e. every request should go through my old
> web.xml.
> and when I say generate report, it should invoke methods from Cocoon and
> generate reports.
>
> For ex. I want to have a method like : public Object generateReport(String
> xlsPath, String excelTemplatePath) and this method should invoke classes
> from Cocoon, generate report and return the report.
>
> Please let me if this is possible. Also please direct me to some documents,
> links on this.
>
> thank you in advance.
> Regards,
> Kumar.D
> --
> View this message in context:
> http://www.nabble.com/Stand-alone-Cocoon-tp24215561p24215561.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


Re: Cocoon 2.1.11, Java 6 and Maven

2009-06-15 Thread warrell harries
One of the nice things about the Cocoon 2.1x line is that oldies like me can
just use a text editor and the command line. I never found Eclipse was worth
the hassle and I was never quite sure what was going on behind the scenes.
That risk can stifle progress and burn precious time when you start a new
job and your colleagues are wanting to see some results of working on their
codebase. they probably aren't sure how things are set-up either and no-one
wants to look stupid by admitting their lack of knowledge. Sometimes the
niceties of your environment. have to take a back seat to getting a  simple
tool-chain in place.

No help here I'm afraid just the ramblings of an ageing hacker :)

2009/6/12 Peter Horlock 

> Well, that was pretty dumb of me, that actually worked. Dunno why, I
> remeber I read I had to say cocoon.sh only.
>
> However, now it seems like it build a file called "cocoon.jar" - I replaced
> the one I had in my Maven repo with this new one.
> Are there anywhere any other jar files it generated?
>
> E.g.:
> 
> cocoon
> cocoon-xsp
> 2.1.11
> 
> 
> cocoon
> cocoon-chaperon
> 2.1.11
> 
> 
> cocoon
> cocoon-jsp
> 2.1.11
> 
> 
> cocoon
> cocoon-profiler
> 2.1.11
> 
> 
> cocoon
> cocoon-eventcache
> 2.1.11
> 
> 
> cocoon
> cocoon-mail
> 2.1.11
> 
> 
> cocoon
> cocoon-axis
> 2.1.11
> 
> 
> cocoon
> cocoon-taglib
> 2.1.11
> 
> 
> cocoon
> cocoon-forms
> 2.1.11
> 
> 
> cocoon
> cocoon-fop
> 2.1.11
> 
>
>
> Couldn't find any of these files in the build folder. I am not even sure if
> what I am doing makes any sense - all I am trying to do is to get those
> strange XML errors in eclipse disapear - some jars overwrite classes of the
> org.w3c package of Java 6.
>
> I guess I still need a proper pom for cocoon, or so...
>
>
> Thanks,
>
> Peter
>
>
>
>


Re: Cocoon 2.1.11, Java 6 and Maven

2009-06-12 Thread warrell harries
u - what about build.sh

2009/6/12 Peter Horlock 

> uuuhm. I wrote:
>
> cocoon-2.1.11$ cocoon.sh
>
> Which means I am on a Linux system and I ran "cocoon.sh" which is the Linux
> equivalent to build.bat
>


Re: Cocoon 2.1.11, Java 6 and Maven

2009-06-12 Thread warrell harries
Have you tried building Cocoon from the command line using build.bat?

Baby steps...

2009/6/12 Peter Horlock 

> Hi,
>
> I just joined a company using Cocoon 2.1.11. Java 6 and Maven.
> For them everything works fine, for me I get a ton of errors in Eclipse -
> mostly conflicts concerning org.w3c. classes -
>
> Imho these classes were implemented in Java 6, and did not exist before
> that.
> Maybe the reason I get those conflicts but my colleagues do not is that
> their system
> has "grown" in time, they most probably have Java 4, 5 and 6 on their
> system, and so on.
>
> Instead of fiddling, I would like to probably and once and for all fix this
> problem for everyone.
> I am quite new to Cocoon, so I don't know a lot. I read that you have to
> compile Cocoon yourself.
> I tried it on my system, seems to have failed:
> cocoon-2.1.11$ cocoon.sh
> [...]
>
> Processing repository: ./tools/jetty/lib
> Adding jar: ./tools/jetty/lib/servlet-2.3.jar
> Adding jar: ./tools/jetty/lib/jetty-4.2.23.jar
> Processing repository: ./lib/endorsed
> Adding jar: ./lib/endorsed/xml-apis-1.3.04.jar
> Adding jar: ./lib/endorsed/jakarta-regexp-1.5.jar
> Adding jar: ./lib/endorsed/jakarta-bcel-20040329.jar
> Adding jar: ./lib/endorsed/xercesImpl-2.9.1.jar
> Adding jar: ./lib/endorsed/xalan-2.7.1.jar
>  Executing -
> Main Class: org.mortbay.jetty.Server
> 10:37:01.525 EVENT  Checking Resource aliases
> 10:37:01.739 EVENT  Starting Jetty/4.2.23
> 10:37:01.758 WARN!! Web application not found ./build/webapp
> 10:37:01.759 WARN!! Configuration error on ./build/webapp
> java.io.FileNotFoundException: ./build/webapp
> at
> org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:249)
> at
> org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:352)
> at org.mortbay.http.HttpServer.start(HttpServer.java:663)
> at org.mortbay.jetty.Server.main(Server.java:429)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at Loader.invokeMain(Unknown Source)
> at Loader.run(Unknown Source)
> at Loader.main(Unknown Source)
>
> ---
> Does anyone already have a version for JDK 6, or maybe even a Maven pom
> file at hand?
>
> That would be most helpful, any help or comment appreciated.
> P.s.: As I just joined the company, I would like to make them change as few
> things as possible. I doubt it would be a good idea to suggest everyone to
> change their entire system, especially as so far it works for them (but not
> for me :-( )
>
> Thanks in advance,
>
> Peter
>


Re: [2.2] map:generate where the source is an url

2009-02-24 Thread warrell harries
You can! Using different types of generators allow you to consume the
different styles of Web services. This is what makes Cocoon so good for
application development.
Google for some more info on how to do it. I remember writing a few
contributions with regard to version 2.1x

2009/2/24 Magnus Haraldsen Amundsen 

>  Hello,
>
>
>
> Can I use map:generate to get the XML from an external source, such as
> another web site?
>
>
>
> - Magnus
>


Re: mapping xml 2 java using cocoon (block)

2009-02-05 Thread warrell harries
Hi Robby,
Cocoon is about keeping your application model in XML and then transforming
this document model using Java components. It looks like you want to use it
the other way around. That is to say, you would get further with Cocoon if
you intend to transform Product XML elements to XHTML. Reading your
requirement it seems to me that you don't need your Java Product object as
you just need to use the File Generator to read your Product XML and then
you use this to transform to XHTML. If you need to add to the Product XML
you might need to employ some other Transformer or Pipeline but try and
forget about your Product Java object as it seems to be superfluous.

Hope this helps,

Warrell

2009/1/29 Robby Pelssers 

>  Hi all,
>
>
>
> I have a project where I want to read xml from the filesystem and
> unmarshall to Java.
>
>
>
> Suppose I have a request
>
> http://localhost:/myproject/product/xyz-123
>
> where xyz-123 is the product-id.
>
>
>
> Based on this information cocoon I know where to read the product-xml from
> the filesystem.  I would like to map the xml now to my Product Object.
> However, the product-xml contains a reference to for instance a file
> containing company information.
>
>
>
> So I would like this information to be loaded as well.  Anyone done
> something similar already?  Is using Castor an easy option to accomplish
> this or are there easier ways.
>
>
>
> Thx in advance.
>
> Robby Pelssers
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


Re: Inserting XML XMLDB

2008-10-06 Thread warrell harries
Hi Jose,

The way I do it is to have a stylesheet such as this :-

*
http://www.w3.org/1999/XSL/Transform";>








http://apache.org/cocoon/xmldb/1.0";>


http://www.xmldb.org/xupdate";>









*

which will 'update' the changes collection by 'appending' a new note element
with the attributes set to the parameter values once its output document is
passed through the xmldb transformer, as you propose.

I hope this is enough info to get you going:)

Regards,

Warrell

ps BTW - if anyone has a need for a seasoned Cocoon/HIPPO/Java developer I
will be available soon!

2008/10/6 Jose Luis Carmona <[EMAIL PROTECTED]>

> Hi,
>
> I want insert a XML content inside Xindice database after transforming
> other XML using XSL.
> It's something similar to this
>
> Generate xml
> Transformer xsl
> Transformer xmldb <--
> Serialize
>
> I know i have to use XMLDBTransformer but i don't know how. Can you help
> me?
>
> Thanks,
> Jose
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: embedded xindice

2008-08-26 Thread warrell harries
Woops, my apologies, Vadim. Is this the code in Cocoon?

I was referring to the 2.1x distribution - I guess it hasn't made it to 2.2
yet


Re: embedded xindice

2008-08-26 Thread warrell harries
Hi,

>From the distribution have a look at
http://localhost:/samples/blocks/xmldb/welcome

There is enough there to get you started. As this is (I believe) the eXist
codebase you could check out that project site http://exist.sourceforge.net/

Cheers,

Warrell

2008/8/26 takpoli <[EMAIL PROTECTED]>

>
>
> I am new to cocoon.  Could someone point me to the documentation of:
>
> 1. How to enable the embedded xindice?
> 2. How to access it from xslt?
>
> Thanks,
> --
> View this message in context:
> http://www.nabble.com/re%3A-embedded-xindice-tp19154392p19154392.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: External Entity in sitemap

2008-08-20 Thread warrell harries
Do you need to use the Servlet Service? I'm not fully up to speed on 2.2 yet
so I imagine you are using this as a datasource and you just want to add an
extra HTTP header. Can you use one of the Proxy generators instead? I have
some code for a SOAP Proxy Transformer or a Simple HTTP Proxy Transformer
that might fit the bill... I know it steps outside of the XML pluggable
ideal but it might be what you need if you could say a little bit more about
WHAT you are trying to achieve rather than just the HOW you are trying to do
it:)

All the George (best),

Warrell

2008/8/20 Heather Rankin <[EMAIL PROTECTED]>

> Thanks Warrell and Luca,
>
> Just for some background, going the xml entity route wasn't my initial
> preference. I've tried multiple approaches including map:mount and
> servlet service - all to no avail.
>
> Map:mount doesn't let me send parameters to the mounted sitemap (aside
> from global ones which aren't an option here) and Servlet Service
> doesn't allow me to carry out Actions for some reason. Servlet Service
> still feels like the most sensible option here but I need the action
> carried out - maybe someone could help with this.
>
> In my block1 sitemap I have this:
>
> 
> 
>  value="servlet:CentralConfigurationBlock:/method-NA/GET"/>
> 
> 
>
> In my CentralConfigurationBlock sitemap I have this:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  label="Method Not Allowed"/>
> 
> 
>
> Everything works fine except for the addHttpHeader action which is
> defined as:
>
>  src="org.apache.cocoon.acting.HttpHeaderAction"/>
>
> It doesn't do anything. If I call the centralConfigurationBlock pipeline
> directly - ie not through servlet service - the action does what its
> supposed to and sets the Allow header with the appropriate value.
>
> Does anyone have any idea why this wouldn't work with servlet service?
> The xml entity route was just meant to be a temporary workaround - but
> even that's not working so I'd like to go with a more solid approach if
> possible.
>
> Heather
>
>
> 
>
> From: warrell harries [mailto:[EMAIL PROTECTED]
> Sent: 20 August 2008 14:09
> To: users@cocoon.apache.org; [EMAIL PROTECTED]
> Subject: Re: External Entity in sitemap
>
>
> Hi Heather,
>
> You should certainly follow the tutorial on how to use catalogs to make
> the XML Entity known to Cocoon. This worked for me with some large DTDs
> that I needed to make available to Cocoon 2.1x.
>
> On the related question of how to get an XML fragment into your sitemap
> you could invoke a matcher in another block with cocoon://block/matcher
> but this would need to be used as the src for a generator or as part of
> an aggregation at the generator stage and the matcher would have to
> serialize xml at the end of its pipeline.
>
> Hope this helps,
>
> Warrell
>
>
> 2008/8/20 Luca Morandini <[EMAIL PROTECTED]>
>
>
>Heather Rankin wrote:
>
>
>
>I'm using 2.2 and want to include an xml fragment in my
> sitemap using
>entities. The xml fragment I want to include sits inside
> another block.
>Can I use something like blockcontext:/ to access it?
>
>
>
>I would be rather surprised if this was the case.
>AFAIK, external entities are dealt with by the XML parser
> (Xerces) before the Cocoon sitemap engine kicks in.
>
>Regards,
>
>
>  Luca Morandini
>www.lucamorandini.it
>
>
>
>
>
> -
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance
> on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: External Entity in sitemap

2008-08-20 Thread warrell harries
Hi Heather,

You should certainly follow the tutorial on how to use catalogs to make the
XML Entity known to Cocoon. This worked for me with some large DTDs that I
needed to make available to Cocoon 2.1x.

On the related question of how to get an XML fragment into your sitemap you
could invoke a matcher in another block with cocoon://block/matcher but this
would need to be used as the src for a generator or as part of an
aggregation at the generator stage and the matcher would have to serialize
xml at the end of its pipeline.

Hope this helps,

Warrell

2008/8/20 Luca Morandini <[EMAIL PROTECTED]>

> Heather Rankin wrote:
>
>>
>> I'm using 2.2 and want to include an xml fragment in my sitemap using
>> entities. The xml fragment I want to include sits inside another block.
>> Can I use something like blockcontext:/ to access it?
>>
>
> I would be rather surprised if this was the case.
> AFAIK, external entities are dealt with by the XML parser (Xerces) before
> the Cocoon sitemap engine kicks in.
>
> Regards,
>
> 
>   Luca Morandini
> www.lucamorandini.it
> 
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Query Database & Produce Excel Document

2008-05-14 Thread warrell harries
I have done exactly this (even under Cocoon CLI) but don't have the code to
hand. It's quite straightforward except that the sendmail transformer
invoked the pipeline to build the s/s which took so long that the sendmail
connection was dropped. To solve this I ran one CLI to build the s/s and
then scheduled the sendmail one an hour later.

I will dig out the code later.

Regards


Re: Strange XSLT transformer behaviour?

2008-04-22 Thread warrell harries
Hi Heather,

Remember that XSLT is a set of rules to apply to your input XML document.
You have defined a rule whose output will triggered when the root of your
input XML document Since all XML documents have a root then your template
will fire and output the HTML that you have defined.

No odd behaviour there. Think declaratively (pull) rather than procedurally
(push).

Regards,

Warrell

BTW... Are the BCC using Cocoon?

On 22/04/2008, Heather Rankin <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm a newbie. Using Cocoon 2.1.11 and the following simple pipeline:
>
> 
> 
> 
> 
> 
>
> I noticed some strange XSLT behaviour where, on a failed template match,
> the XSL appears to reference *itself* as the input XML doc. In other
> words, let's say I have this xsl template:
>
> 
> 
> some more stuff
> 
>
> The apply-templates fails because I haven't included the xhtml namespace
> in my xpath. But instead of just producing nothing, I get a fragment of
> the xsl template in the serialised output that looks something like
> this:
>
> 
> some more stuff
>
> Bizarre? If I correct the template and reference the xhtml namespace
> properly - no problem. I just thought it was strange that the XSL would
> seemingly call itself like this... Maybe I've observed things wrong?
> Could anyone clarify?
>
> Heather
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: SQL-Transformer: SQL query with multiple statements

2008-03-27 Thread warrell harries
Surely you are joking Dr Feynman! Apologies to the great man
http://www.gorgorat.com/

What about :-

SELECT person_id, age FROM persons  WHERE person_id between $id and $id +
1000

Alternatively, depending on which DBMS and to give you more flexibility put
your SQL in a stored proc and call that

SQL is a very powerful declarative set calculus. Don't underestimate it's
value ;-)

On 27/03/2008, Stephanie Zohner <[EMAIL PROTECTED]> wrote:
>
> Hi all, back in the forum after a long time, but I never left you ;-)
>
> I am stuck with the SQL-Transformer.
>
> I would like to perform the same sql-statement (a complex select-statement
> with a timestamp as a parameter) several times whereupon the timestamp is
> always different. I thought of doing this with a REPEAT or LOOP statement.
> But how to do this with SQL-Transformer?
>
> I would like to do something like:
>
> 
> 
>
> SET @id = 0;
> REPEAT
>
>   SET @id = @id +1;
>   SELECT person_id, age FROM persons
>   WHERE person_id = @id;
>
> UNTIL @id > 1000 END REPEAT
>
> 
> 
>
> This however causes an SQL-Error. I guess the problem is that I can not
> define multiple statements in one sql-query, right?
>
> Does anyone know a way how to accomplish this?
>
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Convert escaped xml back to xml or SAX events

2008-03-03 Thread warrell harries
You could use Saxon e.g. :-


http://www.w3.org/1999/XSL/Transform"; xmlns:saxon="http://saxon.sf.net/";>











On 29/02/2008, dkropotova <[EMAIL PROTECTED]> wrote:
>
>
> Dear all,
>
> I am using SOLR to store my xml files, that have been xml-escaped
> beforehand
> (so that now they are simply treated as text).
>
> When a search is performed and results are back, I now would like to
> restore
> my "escaped" xml. I created a simple transformer, but now I'm stuck on how
> to solve my problem. I got all escaped xml in a field, but now I need to
> convert it to xml or SAX events. I've searched, but couldn't find any
> method
> that would accept string and try to do something useful with it – like
> converting in SAX events or DOM objects.
>
> Does anyone have any tips how to solve this problem??
>
> Many thanks in advance,
> Dasha
>
> --
> View this message in context:
> http://www.nabble.com/Convert-escaped-xml-back-to-xml-or-SAX-events-tp15761385p15761385.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Securing JDBC credentials that are stored in cocoon.xconf

2008-02-22 Thread warrell harries
If you are running under a J2EE App server you can use JNDI to get these
credentials from your application server context manager. I have had to do
this for WebSphere and Tomcat deployments. Probably a bit easier than
changing Java code.

Are you running under the Jetty server?

There is documentation about how to do this but if you need some advice do
give a shout.

On 20/02/2008, Stu Baurmann <[EMAIL PROTECTED]> wrote:
>
>
> Howdy folks,
>
> We are currently using Cocoon 2.1.10, and we have numerous cocoon
> installations that use JDBC.
> We love the convenience of embedding a block like this into our
> cocoon.xconf
> to set up a connection:
>
> 
> jdbc:mysql://localhost:3306/dbname
> dbuser
> dbpass
> 
>
> BUT, using this approach means our SQL login information is stored
> unencrypted in a text file on the server.
> Of course, if we move the user/password to some encrypted storage
> location,
> we are still going to
> have to make a decryption key available to the software, but we might be
> able to hide that key somewhat
> better than this block.  (Place it in a compiled java class, for example.
> If you have a better idea,
> I'd love to hear it).
>
> Has anyone else tried to create a SecurelyConfiguredDatasource, or have
> some
> suggestions on how
> I could most easily build one?
>
> I'm guessing the implementation might have to change a lot for Cocoon 2.2,
> so perhaps I'm better off
> waiting and solving the problem against that codeline?
>
> Stu
>
> --
> View this message in context:
> http://www.nabble.com/Securing-JDBC-credentials-that-are-stored-in-cocoon.xconf-tp15600542p15600542.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: modular database action

2008-02-12 Thread warrell harries
I recommend you look at the sqltransformer component. Try the examples
and you should find this is the most generic approach

On 11/02/2008, Al Brown <[EMAIL PROTECTED]> wrote:
> I'm trying to figure out how to use a mysql database in an cocoon action.
> I'm using cocoon 2.1.10
>
> I have a mysql database and forms for all the attributes of all the
> tables. When the form action returns the new values for
> all the attributes in a table what is the recommended way to get a basic
> sql update to happen.
>
> I found the modulardatabaseAction wiki document and I can see how I can
> make a descriptor file that describes a table but
>
> 1) where does this file go.
> 2) how does the sql update command get created?
>
> I guess I can just put jdbc command in a java class and use the
>  to call the class but it looks likes a
> lot of good folks have already solved this problem but the solution is
> not obvious to me. I found the ModularDatabaseActions wiki pages
> but I have not found a how-to or tutorial and where all the pieced go.
>
> I have seen the database connection stuff and the pooling stuff so it
> seems like I should not create another mysql connection in my java code
> but I do not know how to get at and use the connection in cocoon.
>
>  I can query my database using the sql transform and that works great.
> Now I need to get data back into the tables.
>
> Al
>
> --
>
>
>
> -
> 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]



Re: Export database to XML file

2008-01-09 Thread warrell harries
Hi,

Have you put the JDBC Driver in the CLI config file?

You would have put it in the web.xml but as this is not used in the CLI you
need to put it in there too. I know this is documented somewhere and it may
be the cause of your problem.

Here's hoping...

On 08/01/2008, twinsen <[EMAIL PROTECTED]> wrote:
>
>
> Yes there is a problem. I do not succeed in making CLI working
>
> I do all the stuff of pipelines that work while calling by the URL
>
> When i run cocoon cli (i have modified xconf for adding version="2.1" in
>  since there is a first error), i have antoher errror
>
> FATAL_E 2008-01-08 22:26:46.828 [] (): Exception caught
> org.apache.avalon.framework.component.ComponentException: Could not find
> compone
> nt (key [org.apache.cocoon.Processor])
>
>
>
>
> warrell harries-3 wrote:
> >
> > No problem?
> >
> > First use the Web App version to develop your core pipelines then look
> at
> > the CLI documentation, write your XSLT and SQLTransformer Query and let
> > your
> > config generate the responses to a file.
> >
> > Give it a go and when you have a specific problem the members of this
> list
> > will come to your aid.
> >
> > On 08/01/2008, twinsen <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi
> >> I would like to export table content (in MySQL database) as XML file
> with
> >> some XSLT transformation.
> >>
> >> Even if it is not the most appopriate, I would absolutely use Cocoon
> >> v2.x.
> >>
> >> Ideally i want it to be laucnhed in batch mode
> >>
> >> Thanks you for your help and sorry if it is already discussed.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Export-database-to-XML-file-tp14689331p14689331.html
> >> Sent from the Cocoon - Users mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Export-database-to-XML-file-tp14689331p14699597.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Export database to XML file

2008-01-08 Thread warrell harries
No problem?

First use the Web App version to develop your core pipelines then look at
the CLI documentation, write your XSLT and SQLTransformer Query and let your
config generate the responses to a file.

Give it a go and when you have a specific problem the members of this list
will come to your aid.

On 08/01/2008, twinsen <[EMAIL PROTECTED]> wrote:
>
>
> Hi
> I would like to export table content (in MySQL database) as XML file with
> some XSLT transformation.
>
> Even if it is not the most appopriate, I would absolutely use Cocoon v2.x.
>
> Ideally i want it to be laucnhed in batch mode
>
> Thanks you for your help and sorry if it is already discussed.
> --
> View this message in context:
> http://www.nabble.com/Export-database-to-XML-file-tp14689331p14689331.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Starting with Cocoon

2007-11-18 Thread warrell harries
You can build a deployable war file by building to the target war. I believe
this is documented but, as with all things open-source, you have to be
prepared to dig around until you find the way.

The simplest way to get your head around Cocoon is to use the Jetty based
distribution until you understand the Cocoon paradigm.

BTW, from the tone of your emails it is as if you think that the Cocoon
community is obliged to guide you every step of the way. It would be great
if there were enough resources to do this but time and skills are always in
demand and limited supply. I cannot speak for the many talented and
dedicated people that have built and continue to improve this project,
however, I rather expect that the concensus of their thoughts would be that
you should be prepared to put in a little more effort yourself before trying
to cajole trivial help from the community.

Regards

Warrell


On 18/11/2007, Mansour <[EMAIL PROTECTED]> wrote:
>
> This was not help at all.
> What is the part that is hard to understand in my first question?
> I asked about how to write a small hello world application from scratch
> and dump it in my tomcat/webapp. I Struts2, I include the jars in the
> WEB-INF/lib and configure web.xml and other files.
>
> This is the question ---> How do I do this in Cocoon? And what should go
> in these files?
> The Answer goes here ---> ...
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Starting with Cocoon

2007-11-17 Thread warrell harries
Forgive me, I'm assuming you have read the INSTALL.TXT in the
2.1.10distrubition. For convenience I enclose it here




  +-+
  | I  N  S  T  A  L  L |
  +-+


  Let me guess: you don't like to read verbose docs, right?

  Great, this file is for you.

 1) Unpack the distribution

  Obviously you've done this already, but if you got errors when unpacking
  the archive with tar, you might need to use gnutar instead. Our archives
  contain long paths and filenames which cause problems with some versions
  of the tar command.

 2) Set your JAVA_HOME environment

  You have to set your JAVA_HOME environment to point to the root directory
of
  the Java Virtual Machine (JDK 1.3.x or later) installed on your machine.

  To do this simply type:

[unix] JAVA_HOME=/path/to/java/
[win32] SET JAVA_HOME=c:\path\to\java

  your mileage may vary depending on your shell, but you know how to setup
  environments, right?

  If you're using JDK 1.3.x, you have to exclude the JCR block before
building
  Cocoon. Have a look at the "Choosing the blocks" section below on how to
  exculude a block. Please note that some samples require JDK 1.4 or above.

 3) Build Cocoon by typing "build" or "./build.sh"

 4) Run Cocoon by typing "cocoon" or "./cocoon.sh"

 5) Open http://localhost:/ with your browser


That's it!


Now, you have two choices:

  a) close this file and try to hack something out by yourself

  b) keep reading

Go ahead and choose option a), but don't complain if you can't figure out
how
to use the cocoon build system for your needs.



Still here? good. You won't regret it.


Updating


If you are updating from a previous release of Cocoon, make sure
that you read the installation instructions on updating first.


Choosing the blocks
---

Cocoon is composed by its 'core' and several 'blocks'.

The core (a.k.a. naked cocoon') contains the system with services that
are needed to all cocoon users. Blocks provide services that you might not
need,
therefore the build system allows you to remove them from the build.

Now, do the following steps to configure the blocks you want in your cocoon:

 1) cp blocks.properties local.blocks.properties
 2) edit local.blocks.properties
 3) rebuild (do a "build clean" first if you deactivated some blocks)

do not modify blocks.properties directly!


Tuning the build


Ok, now that you told the build system what services you want assembled
into your distribution, you can tune the build for your personal needs:

 1) cp build.properties local.build.properties
 2) edit local.build.properties

do not modify build.properties directly!

An example of a local.build.properties is the following:

  compiler=jikes
  compiler.debug=off
  build.webapp=/path/to/where/to/build/the/webapp

where you override default compilation parameters and tell the build system
where to place the generated cocoon webapp. Look into build.properties to
find
out what you might want to modify for your own personal needs.


Running Cocoon as a servlet
---

When you do 'cocoon servlet', the servlet container (jetty) is started and
Cocoon
loaded into it. By default, this is attached to port , but you can
change
this by setting the "JETTY_PORT" environment property before launching
cocoon.

Other properties that you can change are:

 JETTY_ADMIN_PORT (defaults to 8889): is the port where the jetty web
 administration is connected to. This is available when you launch
 "cocoon servlet-admin", otherwise its disabled.

 JETTY_WEBAPP (defaults to build/webapp): is the location of the webapp
 that jetty has to execute. modify this to match your
local.build.properties
 if you modified where the build system creates your webapp

 JAVA_DEBUG_PORT (defaults to 8000): is the port where the JVM over-the-wire
 debug interface connects to. This is available only if you launch
 "cocoon servlet-debug", otherwise is disabled. This is used by remote
 debuggers (for example, Eclipse's).


Note that the "standalone-demo" build target prepares a directory that you
can
move elsewhere to run "cocoon servlet" outside of the build tree.



All right, that's it for now.

Happy hacking with Cocoon.



On 17/11/2007, Mansour <[EMAIL PROTECTED]> wrote:
>
> I 've had a look at this page before posting. However, I still need to
> know how things work (the servlet, web.xml, cocoon.xconf,...etc). I need
> to know how to wrap a web application in a war and throw it in the
> tomcat/webapp. Before, I learn how to use blocks I need to be able to
> write a small siplme application and build on top of it.
&g

Re: Starting with Cocoon

2007-11-17 Thread warrell harries
Hi,

Have you followed the threads in the 2.10 release e.g.
http://cocoon.apache.org/2.1/howto/howto-explore-samples.html

One of the advantages of Cocoon is that you do not need to get involved in
the Cocon servlet e.g. web.xml or the conventional configuration  e.g.
cocoon.xconf. You only need concern yourself with your 'block' sitemap. Have
a look at a simple sample e.g. the Hello World example or the request
Generator and you will have an ah-ha moment.

Please put in the effort and you will be rewarded ;-)

On 17/11/2007, Mansour <[EMAIL PROTECTED]> wrote:
>
> I am trying to write the simplest application using cocoon. Couldn't
> find any tutorial. I would like to know what are the minimum parameters
> to go in the web.xml. All I need is a simple Hello World. Here's what I
> have so far:
>
> 
> http://java.sun.com/xml/ns/j2ee";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>version="2.4">
>
> 
> CocoonServlet 
> org.apache.cocoon.servlet.CocoonServlet
>
>configurations
>/WEB-INF/cocoon.xconf
>
> 
>
> 
>CocoonServlet
>/*
> 
>
> 
>
> ==
> What should go in the cocoon.xconf ?
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Custom DOM transformer

2007-11-16 Thread warrell harries
Surely some mistake (probably a typo) but your pipeline should be :-




   
  



 



On 16/11/2007, Jean-Claude Vogel <[EMAIL PROTECTED]> wrote:
>
> Here is the concerned extract of my sitemap :
> 
> 
>  value="text/xml"/>
> 
> 
> 
> 
> 
> 
>
>
>


Re: Custom DOM transformer

2007-11-16 Thread warrell harries
Hi Jean-Claude,

What generator are you using in your pipeline match? Can you show us the
sitemap? You would need to use the Request generator or another one that
'loads' the pipeline with the contents of the HTTP Request.

Cheers

On 16/11/2007, Jean-Claude Vogel <[EMAIL PROTECTED]> wrote:
>
> Hello guys,
>
> I would like to write my own dom transformer. So I simply wrote the
> following in order to get firstly an identity transformer :
>
> public class TestTransformer extends AbstractDOMTransformer {
> private Request request;
>
> public void setup(SourceResolver resolver, Map objectModel,
>   String src, Parameters par)
>   throws ProcessingException, SAXException,
> IOException {
> super.setup(resolver, objectModel, src, par);
> }
>
> public Document transform(Document document) {
> //  When I log here I see that "document" contains what I want
> it to contain
> return document;
> }
> }
>
>
> To test I send an HTTP post request with an XML in its body, but I my HTTP
> request response body is desesperatly NULL.
>
> I tried to log what happens in the transform method and I can see in my
> XML body sent by HTTP. The post response is ever empty.
>
> What's wrong in my code please ?
>


Re: URL translations/rewriting

2007-08-30 Thread warrell harries
Can you use the {request-param:lon1} input module?

e.g.



On 30/08/2007, Ken Gerrard <[EMAIL PROTECTED]> wrote:
>
> Hello. I've been using Cocoon for a few years and I love it! I'm using
> 2.1.10 on Windows, MacOS X, and SuSE linux.
>
> A web services interface has been written at my work, a public transit
> provider. I find some of the URLs distasteful (queries when they
> should be resources) and would like to create aliases on top of them
> that translate invisibly to the underlying URLs.
>
> For instance:
>
> /stops/10064/schedule
> |
> -> /schedules?stopNumber=10064
>
> /stops/(49.856,-97.149),(49.870,-97.112)
> |
> -> /stops?lat1=49.856&lon1=-97.149&lat2=49.870&lon2=-97.112
>
> I have tried to solve this several ways. The first attempt, for the
> second URL, looked like this:
> 
>  uri="cocoon:/stops?lat1={1}&lon1={2}&lat2={3}&lon2={4}"/>
> 
>
> That didn't work; the URL parameters don't seem to survive into the
> cocoon protocol.
>
> I've also tried CInclude, but since that uses the same cocoon
> protocol, it doesn't work either.
>
> It works with http://, of course, but that requires me to know the
> host I'm on and the directory I'm in.
>
> I've poked around in the CInclude transformer. Might I have to do
> something with the SourceResolver? It accepts parameters, but the
> SitemapSource that comes out never has them.
>
> I hope this question hasn't been asked. I searched various places, but
> the term "URL rewriting" has a different meaning than I expect.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: CInclude POST (by Payload)

2007-08-29 Thread warrell harries
Hi Andrew,

I had a similar need for this sort of component when invoking SOAP Web
Services from Cocoon. I took the WebServiceProxyGenerator code and adapted
it to be a Transformer. I had to change one of the headers to include the
SOAP method but apart from that it is pretty much unchanged. Please find the
code attached.

The pipeline that uses this transformer would contain the XML that you want
to send to your Service; the Transformer will send it and return to the
pipeline the response from the Service.

I hope this is what you were looking for.


On 29/08/2007, Andrew Chamberlain <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Just wondering if anyone can help.  As part of a service I'm
> constructing, I need to send an XML request to an external service by
> HTTP Post.  For this, I'm looking at using the CInclude transformer, but
>
>


WSProxy.java
Description: Binary data


WSProxyUtility.java
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: offline generation

2007-08-17 Thread warrell harries
http://cocoon.apache.org/2.1/userdocs/offline/cli.html

On 16/08/07, Lincoln Mitchell <[EMAIL PROTECTED]> wrote:
>
> Is offline generation much easier these days in cocoon?
> If so, where is the most up to date documentation on it?
>
> Linc
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Novice question

2007-08-08 Thread warrell harries
Hi,

This request is somewhat vague. Cocoon is designed to process XML. I would
suggest keeping your XML and using the the XSL and SQLTransformers to update
the database and possibly write your own Custom transformer to implement
whatever behaviour you require to be triggered. However, you are likely to
find that using existing components will do what you require. We can't be
sure unless you are more explicit in your requirements.

On 06/08/07, thuertas <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I begin in cocoon and perhaps my question has already been answer (thank
> you to redirect me in this case.)
> I have an xml file which I transform into objects (javabeans) in order
> to insert them in base. But before inserting them in base I must apply
> some actions.
> The question is: how to recover my objects after the xml file's
> transformation , then, how to give these objects in entry of my actions.
>
> regards,
>
> tugdual
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with SQLTransformer

2007-07-26 Thread warrell harries

ps, thanks for pointing that out, Florian.

Perhaps it's because I have been (who hasn't?) bewildered by the vagaries of
Xalan and namespaces enough times to always use the sql: prefix ;-)


On 26/07/07, Dev at weitling <[EMAIL PROTECTED]> wrote:




warrell harries wrote:
> From the xml snippet it appears that you have missed out the sql: prefix
>
> One of those infuriating 'can't see for looking' things perhaps

This shouldn't be a problem 'cause the default namespace for
execute-query and below  is set correct.

Florian

> On 26/07/07, Michel Gutierrez <[EMAIL PROTECTED]> wrote:
>> There is certainly a stupid reason but i've spend a few hours to make
>> the SQLTransformer work without success. Hopefully someone will point
me
>> out what i'm doing wrong.
>>
>> I try to use the sql transformation but the xml goes through the
>> transformer sheet unchanged, the  elements are not executed
and
>> reach the serializer.
>>
>> The source XML: sql-select-themes.xml
>> 
>> 
>> http://apache.org/cocoon/SQL/v2";>
>> SELECT nom FROM Theme
>> 
>> 
>>
>> The transformer declaration:
>> > src="org.apache.cocoon.transformation.SQLTransformer"/>
>>
>> The sitemap pipeline:
>> 
>> 
>> 
>> > value="fmshsql"/>
>> 
>> 
>> 
>>
>> I can see from the log that a SQLTransformer component is being
>> instantiated, but it does nothing and i get the exact
>> sql-select-themes.xml at the end of the pipeline.
>>
>> I know my DB setup is ok, as i can access the SQL server using esql in
a
>> serverpages generator.
>>
>> Can someone let me know what my mistake is ?
>>
>> Thanks,
>> Marie
>>
>> -
>> 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]




Re: Problem with SQLTransformer

2007-07-26 Thread warrell harries

From the xml snippet it appears that you have missed out the sql: prefix


One of those infuriating 'can't see for looking' things perhaps

On 26/07/07, Michel Gutierrez <[EMAIL PROTECTED]> wrote:


Hi,

There is certainly a stupid reason but i've spend a few hours to make
the SQLTransformer work without success. Hopefully someone will point me
out what i'm doing wrong.

I try to use the sql transformation but the xml goes through the
transformer sheet unchanged, the  elements are not executed and
reach the serializer.

The source XML: sql-select-themes.xml


http://apache.org/cocoon/SQL/v2";>
SELECT nom FROM Theme



The transformer declaration:


The sitemap pipeline:








I can see from the log that a SQLTransformer component is being
instantiated, but it does nothing and i get the exact
sql-select-themes.xml at the end of the pipeline.

I know my DB setup is ok, as i can access the SQL server using esql in a
serverpages generator.

Can someone let me know what my mistake is ?

Thanks,
Marie

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Fwd: jTDS Sybase Result Set from Stored Procedure call

2007-07-17 Thread warrell harries

-- Forwarded message --
From: warrell harries <[EMAIL PROTECTED]>
Date: Tue, 17 Jul 2007 18:00:07 +0100
Subject: jTDS Sybase Result Set from Stored Procedure call
To: users@cocoon.apache.org

Hi,

Has anyone had this problem (and found a solution)?

I'm using the trusty SQLTransformer on Cocoon 2.10 and jTDS 1.2.1 against
Sybase ASA 12.50

When invoking Sybase stored procedures I don't get the ResultSet back as I
would expect (I don't get them at all). There is a some discussion about
calling getMoreResults() but I don't want to modify the SQLTransformer
unless absolutely necessary. Executing ad-hoc SQL is fine and I haven't had
any trouble with invoking Oracle Stored procs that return ResultSets as
Output parameters.

Has anyone overcome this problem?

Any help very much appreciated,

Regards

Warrell

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jTDS Sybase Result Set from Stored Procedure call

2007-07-17 Thread warrell harries

Hi,

Has anyone had this problem (and found a solution)?

I'm using the trusty SQLTransformer on Cocoon 2.10 and jTDS 1.2.1 against
Sybase ASA 12.50

When invoking Sybase stored procedures I don't get the ResultSet back as I
would expect (I don't get them at all). There is a some discussion about
calling getMoreResults() but I don't want to modify the SQLTransformer
unless absolutely necessary. Executing ad-hoc SQL is fine and I haven't had
any trouble with invoking Oracle Stored procs that return ResultSets as
Output parameters.

Has anyone overcome this problem?

Any help very much appreciated,

Regards

Warrell


Re: Offline Generation and link crawler problem

2007-07-16 Thread warrell harries

Hi Leonardo,

Have you got the following view defined in your sitemap?


   
   
   


As I understand it, this definition must be there to allow the recursion to
wotk,

Cheers

Warrell


On 16/07/07, Leonardo De Stefano <[EMAIL PROTECTED]> wrote:



Hi. I Have a problem with the offline generation.

Im trying to get a offline content of the paginator
demo.

The online execution works fine, but when i try to
generate offline content, it only works for the first
page
* [1/2] [2/2] 2.406s 824b
samples/paginator/list(1)

ERROR   2007-07-15 22:13:09.531 [sitemap.] (): No
pipeline matched request:
samples/paginator/samples/paginator/list(2)

note that the link above isnt correct it must be
samples/paginator/list(2)

When i call
http://localhost:8080/cocoon/samples/paginator/list(1)?cocoon-view=links

I get:
/cocoon/samples/paginator/list(2)
/cocoon/samples/paginator/list

Im calling CLI this way:
cocoon cli -c
C:\leo\desarrollo\workspaces\wap\cocoon\WebContent\
-C
c:\leo\desarrollo\workspaces\wap\cocoon\WebContent\WEB-INF\cocoon.xconf
-u DEBUG
-e false
-d C:\leo\Nueva
-f c:\leo\Nueva\file.txt

And in file.txt I have :
samples/paginator/list(1)




Ready
for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon database access strategy

2007-07-02 Thread warrell harries

Hey Ard,

Please understand that I'm really happy to be having this discussion and
that I could never get annoyed or irritated about such things.

Thanks again1

Warrell

On 02/07/07, Ard Schrijvers <[EMAIL PROTECTED]> wrote:


 If you feel annoyed or irritated, don't, because

1) I was merely joking
2) I do agree with you to quite some extend

I just wouldn't write one single sql statement, that is all (don't take
this one to serious either :-) )

Regards Ard



What a great idea - 20 years ago (or even 10) it might have occurred to
me! Of course, Cocoon wasn't even dream't of then. Your tongue-in-cheek joke
is much appreciated but it does reflect the machismo in the industry where
guys (and it is invariably young'ish men) who compete to invent the most
involved solution to a simple requirement. Unfortunately, sometimes such
heroics, undermine the efforts of the 'rest of us'. Those who just want to
get the job done in the simplest way in the shortest amount of time with the
greatest prospect of some other dumb schmuck understanding what we did. As
I'm sure you recognise, the latter approach is not a mark of laziness, but a
good heuristic to reducing the total cost of corporate software development
over the lifetime of it's use. That's my story and I'm sticking to it!

On 02/07/07, Ard Schrijvers <[EMAIL PROTECTED]> wrote:
>
> "Calendar generator DOM and for each working day element generate a
>  to determine whether appointment entries exist in a database for
> this day"you lazy programmer!! :-)
>
> What about implementing your own caldav implementation with cocoon
> generators and transformers, add jms listeners, and use update events in
> combination with an eventcache to invalidate the correct parts of the
> calendar frontend. Create caldav connectors to your application to combina
> some calendars and import othersyou really missed an opportunity here
> :-)
>
> Ofcourse, I am not serious: Cocoon is an enormeous toolbox, and there
> are like hundreds of ways to achieve the same (though, I really think there
> are only a few proper ones)
>
> Ard
>
>
>
>
> The answet to that one is - it all depends.. on which Application
> Container, DBMS and JDBC driver you are using.
>
> It is good that you have discovered that you can do so much with the
> SQLTransformer. As you know, I am very fond of using this component. I have
> no qualms about generating  elements based upon the shape of the
> XML DOM. As an example of how shameless I can be, I have even been known to
> take the Calendar generator DOM and for each working day element generate a
>  to determine whether appointment entries exist in a database for
> this day. The performance was fine and the solution very comprehensible and
> easy to extend. Of course, the purist might cry foul but I see nothing
> fundamentally wrong with it. I recommend this as a perfectly acceptable way
> of using the Cocoon pipeline as the Model which transforms into the View as
> it's contents pass through it. The alternative of a stored procedure was not
> available and, as you know, I am reluctant to incur the development and
> maintenance overhead that some kind of Java object/relation model would
> require.
>
>
> On 02/07/07, Tobia <[EMAIL PROTECTED]> wrote:
> Andrew Stevens wrote:
> > The problem I was replying to has to do with the caching of prepared
> > statements within the database connection so that running the same
> > statement with different parameters doesn't need the database server
> > to recompile the query each time.  That's what makes it "prepared"
> > rather than just a Statement.
>
> By the way, for the sake of completeness, who or what is responsible for
>
> caching the statements?  The JDBC connector?  The database process?
>
> How does one check that it is actually caching anything, except by crude
> benchmarking?
>
>
> Tobia
>
> -
> 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]
>
>



Re: Cocoon database access strategy

2007-07-02 Thread warrell harries

What a great idea - 20 years ago (or even 10) it might have occurred to me!
Of course, Cocoon wasn't even dream't of then. Your tongue-in-cheek joke is
much appreciated but it does reflect the machismo in the industry where guys
(and it is invariably young'ish men) who compete to invent the most involved
solution to a simple requirement. Unfortunately, sometimes such heroics,
undermine the efforts of the 'rest of us'. Those who just want to get the
job done in the simplest way in the shortest amount of time with the
greatest prospect of some other dumb schmuck understanding what we did. As
I'm sure you recognise, the latter approach is not a mark of laziness, but a
good heuristic to reducing the total cost of corporate software development
over the lifetime of it's use. That's my story and I'm sticking to it!

On 02/07/07, Ard Schrijvers <[EMAIL PROTECTED]> wrote:


"Calendar generator DOM and for each working day element generate a
 to determine whether appointment entries exist in a database for
this day"you lazy programmer!! :-)

What about implementing your own caldav implementation with cocoon
generators and transformers, add jms listeners, and use update events in
combination with an eventcache to invalidate the correct parts of the
calendar frontend. Create caldav connectors to your application to combina
some calendars and import othersyou really missed an opportunity here
:-)

Ofcourse, I am not serious: Cocoon is an enormeous toolbox, and there are
like hundreds of ways to achieve the same (though, I really think there are
only a few proper ones)

Ard




The answet to that one is - it all depends.. on which Application
Container, DBMS and JDBC driver you are using.

It is good that you have discovered that you can do so much with the
SQLTransformer. As you know, I am very fond of using this component. I have
no qualms about generating  elements based upon the shape of the
XML DOM. As an example of how shameless I can be, I have even been known to
take the Calendar generator DOM and for each working day element generate a
 to determine whether appointment entries exist in a database for
this day. The performance was fine and the solution very comprehensible and
easy to extend. Of course, the purist might cry foul but I see nothing
fundamentally wrong with it. I recommend this as a perfectly acceptable way
of using the Cocoon pipeline as the Model which transforms into the View as
it's contents pass through it. The alternative of a stored procedure was not
available and, as you know, I am reluctant to incur the development and
maintenance overhead that some kind of Java object/relation model would
require.


On 02/07/07, Tobia <[EMAIL PROTECTED]> wrote:
Andrew Stevens wrote:
> The problem I was replying to has to do with the caching of prepared
> statements within the database connection so that running the same
> statement with different parameters doesn't need the database server
> to recompile the query each time.  That's what makes it "prepared"
> rather than just a Statement.

By the way, for the sake of completeness, who or what is responsible for
caching the statements?  The JDBC connector?  The database process?

How does one check that it is actually caching anything, except by crude
benchmarking?


Tobia

-
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]




Re: Cocoon database access strategy

2007-07-02 Thread warrell harries

The answet to that one is - it all depends.. on which Application Container,
DBMS and JDBC driver you are using.

It is good that you have discovered that you can do so much with the
SQLTransformer. As you know, I am very fond of using this component. I have
no qualms about generating  elements based upon the shape of the
XML DOM. As an example of how shameless I can be, I have even been known to
take the Calendar generator DOM and for each working day element generate a
 to determine whether appointment entries exist in a database for
this day. The performance was fine and the solution very comprehensible and
easy to extend. Of course, the purist might cry foul but I see nothing
fundamentally wrong with it. I recommend this as a perfectly acceptable way
of using the Cocoon pipeline as the Model which transforms into the View as
it's contents pass through it. The alternative of a stored procedure was not
available and, as you know, I am reluctant to incur the development and
maintenance overhead that some kind of Java object/relation model would
require.

On 02/07/07, Tobia <[EMAIL PROTECTED]> wrote:


Andrew Stevens wrote:
> The problem I was replying to has to do with the caching of prepared
> statements within the database connection so that running the same
> statement with different parameters doesn't need the database server
> to recompile the query each time.  That's what makes it "prepared"
> rather than just a Statement.

By the way, for the sake of completeness, who or what is responsible for
caching the statements?  The JDBC connector?  The database process?

How does one check that it is actually caching anything, except by crude
benchmarking?


Tobia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon database access strategy

2007-06-25 Thread warrell harries

I realise my postings can sound a pompous so I reckon Ard was just saying
"Different Horses for Different Courses" but using Hippo's and the Dutch
Masters as a surreal juxtaposition

On 25/06/07, Derek Hohls <[EMAIL PROTECTED]> wrote:


 Maybe its because I am not Dutch but I really
do not get this story -  anyone care to explain?

>>> "Ard Schrijvers" <[EMAIL PROTECTED]> 2007/06/25 12:27 PM >>>
Claude: "Is like the story of the hippo."
Reuben: "I'm not familiar with that story."
Claude: "The hippopotamus, he is not born going, 'Cool bean, I am a
hippo.' No way, Jose. So he tried to paint the stripe on himself to be like
the, uh, the zebra, bet he fool no one. And then he tried to put the spot on
his skin to be like the leopard, but everyone know he is a hippo. SO at
certain pont, he look himself in the mirror, an he just say, 'Hey, I am a
hippopotamus, and there is nothing I can do about it.' And as soon as he
accepts this, he live life happy. Happy as a hippo. You understand?"
Reuben: "I'm gonna kill you!"
Lisa: "Reuben! No, Reuben!"

As long as everybody is happy :-)

ps movie "Along came polly"


Hi Ard,

I understand your comic sarcasm and I think I know where you are coming
from ;-) In the final analysis, it seems to depend on where you place the
centre of gravity of your application at the o! utset. If you start building
an Object based system and then add persistence you are probably always
going to have to write business logic in Java and use an OR framework to map
this onto a a relational DB. However, most Enterprise systems start with an
ER Model . Various hybrid systems grow around the central DB so it makes
sense to gravitate toward the Enterprise DB for all sorts of engineering and
political reasons. One size does not fit all and in the world of CMS I can
imagine that your approach works for you and your customers. I was just
trying to advise those (possibly the majority0 of Cocoon developers who are
trying to develop relatively small internal Web-applications that work with
Enterprise data. For that kind of thing I endorse the SQLTransformer, JDBI,
FlowScript approach.

Regards


On 25/06/07, Ard Schrijvers <[EMAIL PROTECTED]> wrote:
Hello,

>This leads to start writing
> code before
> > the problem is! fully understood and a reluctance to
> refactor once it
> > is. These are the very tendencies that Cocoon allows us to overcome
> > because it is entirely possible to develop fully fledged
> applications
> > without writing any Java code. These 'pure' XML applications are
> > likely to be much more maintainable, flexible and capable of re-use
> > than those that skew their centre of gravity back towards Java.

I can hardly believe everybody seems to take this statement for granted
(jdo and jcr APIs are ofcourse totally redundant since you can write your
own fine sql statements, and of course, sql is a brilliant strong
specification, so when you have it running for oracle, you can switch
automatically without effort  to mysql, derby, hsqldb, sql server)...anyway,
if everybody wants to write sql, do many xsl transformations and take the
burden of maintaining sql statements, be my guest :-)


Regards Ard






! -
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]


--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice.
Views expressed herein do not necessarily represent the views of the CSIR.


*CSIR E-mail Legal Notice*

*CSIR Copyright, Terms and 
Conditions*

For electronic copies of the CSIR Copyright, Terms and Conditions and the
CSIR Legal Notice
send a blank message with "REQUEST LEGAL" in the subject line to CSIR
CallCentre <[EMAIL PROTECTED]>


This message has been scanned for viruses and dangerous content by *
MailScanner* ,
and is believed to be clean.



Re: Cocoon database access strategy

2007-06-25 Thread warrell harries

Hi Ard,

I understand your comic sarcasm and I think I know where you are coming from
;-) In the final analysis, it seems to depend on where you place the centre
of gravity of your application at the outset. If you start building an
Object based system and then add persistence you are probably always going
to have to write business logic in Java and use an OR framework to map this
onto a a relational DB. However, most Enterprise systems start with an ER
Model . Various hybrid systems grow around the central DB so it makes sense
to gravitate toward the Enterprise DB for all sorts of engineering and
political reasons. One size does not fit all and in the world of CMS I can
imagine that your approach works for you and your customers. I was just
trying to advise those (possibly the majority0 of Cocoon developers who are
trying to develop relatively small internal Web-applications that work with
Enterprise data. For that kind of thing I endorse the SQLTransformer, JDBI,
FlowScript approach.

Regards

On 25/06/07, Ard Schrijvers <[EMAIL PROTECTED]> wrote:


Hello,

>This leads to start writing
> code before
> > the problem is fully understood and a reluctance to
> refactor once it
> > is. These are the very tendencies that Cocoon allows us to overcome
> > because it is entirely possible to develop fully fledged
> applications
> > without writing any Java code. These 'pure' XML applications are
> > likely to be much more maintainable, flexible and capable of re-use
> > than those that skew their centre of gravity back towards Java.

I can hardly believe everybody seems to take this statement for granted
(jdo and jcr APIs are ofcourse totally redundant since you can write your
own fine sql statements, and of course, sql is a brilliant strong
specification, so when you have it running for oracle, you can switch
automatically without effort  to mysql, derby, hsqldb, sql server)...anyway,
if everybody wants to write sql, do many xsl transformations and take the
burden of maintaining sql statements, be my guest :-)


Regards Ard






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon database access strategy

2007-06-22 Thread warrell harries

Hi Derek,Ard and Rob,

This is an interesting thread because it touches on the received wisdom that
'business-logic' belongs in Java classes. This is even promoted on the
web-site under the XSLT FAQ.

At the risk of being heretical, I'm not sure that is something I believe in
any longer (or have done for many years). These days, Business
logic(whatever that is) is usually managed by some implementation of a
pattern e.g. Workflow or a Domain Specific Language. If a Relational DBMS is
at the heart of the system then most of the non-process business logic will
(or should) be inherent in the entity relationship physical model. Therefore
the web-application that Cocoon is being used for is likely to be concerned
mostly with handling the View and Controller components of the MVC pattern.
The pipeline is an implementation of a use-case and the aggregation,
transformation and serialization of XML throughout the life of that
interaction is the realisation of the Process associated with the
interaction (use-case). Personally, I don't have a problem implementing this
with SQL and XSLT.  IMHO these are the best supported mainstream Declarative
languages  (if the underlying documents are properly normalized that is) and
so should be understood by anyone involved in the application development or
maintenance (if only it were so).

I have found that bias towards putting 'business logic' in Java classes
usually comes from those who perhaps do not fully grasp the power of the
relational model and SQL as a Set calculus. Their preference for imperative
programming seems to stem from the very human urge to be in full control of
the environment and to stick with familiar constructs and tools. This leads
to start writing code before the problem is fully understood and a
reluctance to refactor once it is. These are the very tendencies that Cocoon
allows us to overcome because it is entirely possible to develop fully
fledged applications without writing any Java code. These 'pure' XML
applications are likely to be much more maintainable, flexible and capable
of re-use than those that skew their centre of gravity back towards Java.


On 19/06/07, Derek Hohls <[EMAIL PROTECTED]> wrote:


Rob

I too have a copy of the "Cocoon developers handbook"; it occupies
a nice niche on my bookshelf. :-)

Unfortunately, Cocoon is a live framework, not a static language.
The handbook was published in 2003, which means it was probably
written in 2002 ie. 5 years ago.  If, according to a popular
reckoning,
one month of "Internet time" equals three months of "real time",
then the book is 15 years old!  Things move on - fast - during that
time.

More especially, there was a lot of development around the use of
flow and JXtemplates, effectively replacing XSP as the preferred
way for "scripting logic" (of course, be aware that "serious"
Cocoon developers will insist that ALL logic belongs in Java classes).

Suggest you look at newer version of Cocoon, and the samples,
(eg. the "Easy SQL database access" sample in blocks/forms)
as well as some of the more recent documents on the above topics.
This comes up a lot on the mailing list too!


>>> robf <[EMAIL PROTECTED]> 2007/06/18 09:45:09 PM >>>

Derek Hohls wrote:
> "XSL and Database Actions are deprecated"
>
> As far as I know, XSL is not deprecated - perhaps you meant XSP?
> But I am not sure that is deprecated... perhaps one of the
developers
> could address the plans for that technology - will it still be
supported
> in
> versions 2.2 and beyond?
>


XSP's deprecated ?
I recently red a book "Cocoon developers handbook"  where esql embedded

in xsp's
is teached...

I am astonished about the rapid deprecation of cocoon 'techniques' , I

think I can better
fallback to C, xsltproc and some scripting glue logic :-)

So where do I put my esql now?

Rob



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent
the
views of the CSIR.

CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html

CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html

For electronic copies of the CSIR Copyright, Terms and Conditions and the
CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line
to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by
MailScanner,
and is believed to be clean.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon database access strategy

2007-06-18 Thread warrell harries

Ooops, yes I meant XSP... XSL rules

Thanks for pointing out my mistake

On 18/06/07, Derek Hohls <[EMAIL PROTECTED]> wrote:


"XSL and Database Actions are deprecated"

As far as I know, XSL is not deprecated - perhaps you meant XSP?
But I am not sure that is deprecated... perhaps one of the developers
could address the plans for that technology - will it still be supported
in
versions 2.2 and beyond?

>>> "warrell harries" <[EMAIL PROTECTED]> 06/18/07 9:46 AM
>>>
Hi,

Does the database you are using support stored procedures (even MySql
now
does)? If so, write the complex SQL as a strored procedure and then
execute
the stored procedure from the SQLTransformer, possibly using the
ancestor
construct that the SQLTransformer has specifically to support nested
Queries.

Personally, I don't see a problem with doing some XSL transformation
after
one query before doing another based on the output DOM; this is what XML
pipelines are all about. Perhaps you are not very familiar with XSL.
Invest
some time and you will be rewarded!

XSL and Database Actions are deprecated so I would recommend the
pipeline
approach as you will end up with a more maintainable and extensible
solution
because you will seperate the concerns.

Regards,

Warrell

>
>


--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent
the
views of the CSIR.

CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html

CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html

For electronic copies of the CSIR Copyright, Terms and Conditions and the
CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line
to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by
MailScanner,
and is believed to be clean.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon database access strategy

2007-06-18 Thread warrell harries

Hi,

Does the database you are using support stored procedures (even MySql now
does)? If so, write the complex SQL as a strored procedure and then execute
the stored procedure from the SQLTransformer, possibly using the ancestor
construct that the SQLTransformer has specifically to support nested
Queries.

Personally, I don't see a problem with doing some XSL transformation after
one query before doing another based on the output DOM; this is what XML
pipelines are all about. Perhaps you are not very familiar with XSL. Invest
some time and you will be rewarded!

XSL and Database Actions are deprecated so I would recommend the pipeline
approach as you will end up with a more maintainable and extensible solution
because you will seperate the concerns.

Regards,

Warrell

On 16/06/07, Rob Frohwein <[EMAIL PROTECTED]> wrote:



Hi,
For some project I need to make rather deeply nested database queries.
I was looking for the best stategy (I am new to cocoon)

--
1 Doing all nested queries in one xsp or xml page.
But this will be difficult to maintain and test.
--
2 extending queries in one pipeline
In this strategy a resultset is extended by following steps in the
pipeline.

sitemap.xmap:





...




...




query1.xml could do a first level query.
query2.xsl could do some processing and at some point in the tree
do a new query and append the resultset there.(sqltaglib can be used in
xslt)

But this seems not to work, because the first resultset creates
elements like  the second sqltransform step will be
confused by these tags.
I could rename all  tags after the first sqltransform
step, but that is a bit clumsy.

So this does not work.
I also understood from the documentation that it's not possible
to use more then one xsp in a pipeline, so this approach will
also not be possible with esql?

--
3 Call pipeline entries from an xsp/xml sql query loop:

In this case I would like something like:
query1.xsp:


fwstat



select * from customers



Call query2.xsp(


)





query2.xsp would do a new query with the supplied parameters.
query2.xsp could ofcourse do other queries.

But I could not find constructs like this.
--

What is the best approach to separate the nested queries?

Thanks.
Rob

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: DB access without Tomcat

2007-06-15 Thread warrell harries

Hi Mauro,

Yes, it's quite possible. I have done it for DB2 which was a bit of a
challenge as I recall. Remember to put the JDBC Driver classes into the
web.xml - there may be one or two other things, perhaps in the .conf file
that you use for the CLI approach, but it does work. I've had some great
results doing reporting/charting that way. As usual, be prepared to google
around and you will get it to work eventually,

Keep the faith,

Warrell

On 14/06/07, luca piccioni <[EMAIL PROTECTED]> wrote:


Hi to all,
I would like to know if it is possible to access into a DB if I have not
installed Tomcat and with Cocoon called as a command-line application.

Thanks,
Mauro

--
--
L'email della prossima generazione? Puoi averla con la nuova Yahoo! 
Mail




Re: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread Warrell Harries
I have just deployed cocoon.war to IBM WebSphere Application Server, 5.1.1.9 and there was no problem. It is only the Forms block and something else I recall that needs the modifications I described. Have you deployed cocoon as a war file with a context. You don't need to do anything else and the basic cocoon works no problem.- Original Message From: shreya <[EMAIL PROTECTED]>To: users@cocoon.apache.orgSent: Wednesday, 24 May, 2006 1:15:48 PMSubject: Re: Installing cocoon2.1.9 on WSAD5.1I have build cocoon.war In wsad I created a new dynamic web project and imported the war file in theproject folder. I have also set the classloader mode as PARENT_LAST. but
 still the server is not starting. It's giving an error that -*** Starting the server *** Start Display Current Environment WebSphere Platform 5.1 [BASE 5.1.0 b0344.02]  running with process namelocalhost\localhost\server1 and process id 2916Host Operating System is Windows XP, version 5.1Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled:jitc), Java Compiler = jitc, Java VM name = Classic VMwas.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51user.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51Java Home = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51\java\jrews.ext.dirs = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/lib;C:\Program
 Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/lib;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/web/help;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jarClasspath = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphereStudio\Application
 Developer\v5.1.1\runtimes\base_v51/properties;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/j2ee.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xalan-2.7.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xercesImpl-2.8.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xml-apis-1.3.03.jar;C:\cocoon2.1.9\lib\optional\batik-all-1.6.jar;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;C:/ProgramFiles/IBM/WebSphere
 Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jarJava Library path = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/java/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/jre/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphereStudio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;D:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_05\bin;c:\eslo_software\phoenix\dll;C:\j2sdk1.4.2_10\bin;C:\eslo_software\Jamaica\bin;C:\eslo_software\Jamaica\tools;C:\eslo_software\Jamaica\include;C:\eslo_software\Jamaica\lib;C:\eslo_software\Jamaica\components* End Display
 Current Environment *[5/24/06 16:30:41:627 IST] 3e5f99d4 ManagerAdmin  I TRAS0017I: The startuptrace state is *=all=disabled.[5/24/06 16:30:42:470 IST] 3e5f99d4 AdminInitiali A ADMN0015I: AdminServiceinitialized[5/24/06 16:30:43:658 IST] 3e5f99d4 Configuration A SECJ0215I: Successfullyset JAAS login provider configuration class tocom.ibm.ws.security.auth.login.Configuration.[5/24/06 16:30:43:705 IST] 3e5f99d4 SecurityDMI SECJ0231I: The Securitycomponent's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDMregistered successfully: true.[5/24/06 16:30:43:955 IST] 3e5f99d4 SecurityCompo I SECJ0309I: Java 2Security is disabled.[5/24/06 16:30:43:970 IST] 3e5f99d4 SecurityCompo I SECJ0212I: WCCM JAASconfiguration information successfully pushed to login provider cl

Re: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread Warrell Harries
You have to make a shared library of the rhino-continuations jar and there is another fix for the Cache stuff which I can't remember at the moment cos I haven't got my material here. It ain't straightforward by any means (bad old WebSphere) so, as I said, cocncentrate on developing your application before you deploy to WebSphere.In the meantime, I will dig out the additional steps required to get 2.1.9 on WebSphere- Original Message From: shreya <[EMAIL PROTECTED]>To: users@cocoon.apache.orgSent: Wednesday, 24 May, 2006 1:15:48 PMSubject: Re: Installing cocoon2.1.9 on WSAD5.1I have build cocoon.war In wsad I created a new dynamic web project and imported the
 war file in theproject folder. I have also set the classloader mode as PARENT_LAST. but still the server is not starting. It's giving an error that -*** Starting the server *** Start Display Current Environment WebSphere Platform 5.1 [BASE 5.1.0 b0344.02]  running with process namelocalhost\localhost\server1 and process id 2916Host Operating System is Windows XP, version 5.1Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled:jitc), Java Compiler = jitc, Java VM name = Classic VMwas.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51user.install.root = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51Java Home = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51\java\jrews.ext.dirs = C:\Program Files\IBM\WebSphere
 Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/classes;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/lib;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/web/help;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jarClasspath = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/properties;C:\Program
 Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/properties;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/j2ee.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xalan-2.7.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xercesImpl-2.8.0.jar;C:\j2sdk1.4.2_10\jre\lib\endorsed\xml-apis-1.3.03.jar;C:\cocoon2.1.9\lib\optional\batik-all-1.6.jar;C:/ProgramFiles/IBM/WebSphere Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;C:/ProgramFiles/IBM/WebSphere
 Studio/ApplicationDeveloper/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jarJava Library path = C:\Program Files\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphereStudio\Application Developer\v5.1.1\runtimes\base_v51/java/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\runtimes\base_v51/java/jre/bin;C:\ProgramFiles\IBM\WebSphere Studio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphereStudio\ApplicationDeveloper\v5.1.1\eclipse\jre\bin;D:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_05\bin;c:\eslo_software\phoenix\dll;C:\j2sdk1.4.2_10\bin;C:\eslo_software\Jamaica\bin;C:\eslo_software\Jamaica\tools;C:\eslo_software\Jamaica\include;C:\eslo_software\Jamaica\lib;C:\eslo_software\Jamaica\components* End Display
 Current Environment *[5/24/06 16:30:41:627 IST] 3e5f99d4 ManagerAdmin  I TRAS0017I: The startuptrace state is *=all=disabled.[5/24/06 16:30:42:470 IST] 3e5f99d4 AdminInitiali A ADMN0015I: AdminServiceinitialized[5/24/06 16:30:43:658 IST] 3e5f99d4 Configuration A SECJ0215I: Successfullyset JAAS login provider configuration class tocom.ibm.ws.security.auth.login.Configuration.[5/24/06 16:30:43:705 IST] 3e5f99d4 SecurityDMI SECJ0231I: The Securitycomponent's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDMregistered successfully: true.[5/24/06 16:30:43:955 IST] 3e5f99d4 SecurityCompo I SECJ0309I: Java 2Security is disabled.[5/24/06 16:30:43:970 IST] 3e5f99d4 SecurityComp

Re: Installing cocoon2.1.9 on WSAD5.1

2006-05-24 Thread Warrell Harries
Hi Sharda,The simplest way is to build the WAR file as in the INSTALL.TXT and import this into WSAD.You may be better off not bothering with WSAD as the whole point of Cocoon is that you can build fully featured applications without having to develop Java code as you can link components in a pipeline of functionality with XML alone. For this you don't need an IDE. Have a crack at that so that you understand what Cocoon is before trying to use the (marginal) benefits of an IDE,RegardsWarrell- Original Message From: sharda choudhary <[EMAIL PROTECTED]>To: [EMAIL PROTECTED]Cc: users@cocoon.apache.orgSent: Wednesday, 24 May, 2006 11:43:03 AMSubject:
 Installing cocoon2.1.9 on WSAD5.1Hi all can anybody please help me by tellimg the steps toinstall cocoon on WSAD and deploying it. Please giveall the steps as if you are telling to a fresher.Thanks in advance.ShreyaSoftware Engineer.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

Warrell Harries is out of the office.

2006-05-13 Thread Warrell . Harries

I will be out of the office starting  13/05/2006 and will not return until 12/07/2009.

I will respond to your message when I return.

Re: User Management Application in Cocoon, maybe based on CForms

2006-05-09 Thread Warrell . Harries

Hi Torsten,

I had this challenge and implemented
a solution using the LDAPTransformer, CForms with AJAX and a few custom
Transformers that talk to the Novell opens-source LDAP library. I used
the LDAPTransformer to do simple queries and the Novell library to add
and delete users from predefined groups. It's not entirely what you describe
(does not plug into the authentication framework for instance) but is suitable
for asset control people to provision and deprovision systems. You might
find the Custom Transformer source useful if you want it.

Regards




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Torsten Schlabach <[EMAIL PROTECTED]>

08/05/2006 18:48



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
User Management Application in Cocoon,
maybe based on CForms








Dear List!

Does anyone know of a Cocoon application which managed user objects (and

possibly roles and some custom attributes) which are part of an LDAP tree?

I would be looking for something which I can pass a certain LDAP 
context. It should list all user objects found in that context and 
provide functionality to add and edit users and assign them roles?

Shouldn't that be something which a lot of people who have been 
developing all kinds of CMS and portals based on Cocoon had a need for

before? Or am I just missing the obvious?

Just to make it clear: I have understood how to use LDAP and the Cocoon

authentication framework. This is not my question. I am talking about a

(cuszomizable, maybe embeddable) UI!

Regards,
Torsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Re: cocoon 2.1.8 PortalEngine obtaining User/Group Info in the Sitemap

2006-05-08 Thread Warrell . Harries

Thanks Jens,

I have been struggling to find out how
to get this vital nugget of info. I have to admit to be rather bewildered
by the Portal framework and have been clinging to the insight available
from postings like yours.

Any other useful pointers would be much
appreciated as the complexity of this component can put off prospective
users. You are probably aware that the userManagement tools are broken
in 2.1.8/9  The flow script falls over since it can't get hold of
the Cocoon component that has the User data in it. Not surprising since
this seems to have changed significantly when Carsten slipped in the CoWarp
stuff!

Anyway, thanks again, at least I can
now do :-

java.lang.System.err.println("UserId="+cocoon.parameters["user"]);

from some flowscript kicked off from
the portal page. Getting my head around portlets and coplets and events
will take a while but I'm sure it will be worth it.

Regards




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Jens Maukisch <[EMAIL PROTECTED]>

20/04/2006 19:10



Please respond to
users@cocoon.apache.org





To
"[EMAIL PROTECTED]" 


cc



Subject
Re: cocoon 2.1.8 PortalEngine obtaining
User/Group Info in the Sitemap








Hi,

> how can i obtain the User and the Group Information in the Sitemap
?
> I need these Data to pass it as Parameters for a XSLT transformation.

inside the 
you can access the information you want.
e.g. you can get the username via {ID}.

hth

-- 
* best regards
* Jens Maukisch              



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Re: cocoon

2006-05-04 Thread Warrell . Harries

We had a problem with very poor performance
under a similar WebSphere  configuration (not with Cocoon but a Xalan
intensive app) that turned out to be a bug in the IBM JDK 1.4 implementation
of StringBuffer. I'm not sure of the details but upgrading the JDK fixed
it. It might be worth rebuilding Cocoon with the latest IBM JDK and upgrading
the servlet container JDK too.

I'm sorry I can't be more specific but
this might point you in the right direction.




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






"Doug Herold"
<[EMAIL PROTECTED]> 
03/05/2006 16:16



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
cocoon








System information
 
 Servlet Container - websphere 5.1.7
 JDK - JDK 1.4.2
 cocoon - cocoon_2.1.4
 The cocoon war file we are using was built using
the JDK 1.3.1.18
 We use windows XP for development and IBM's iseries
for production
 
We are having performance issues with apps running
under cocoon.
 
Since we are using a cocoon war compiled under the JDK_1.3.1.18
and our servlet container is using the JDK 1.4.2.  Can anybody tell
me if this would cause any performance issues.  Does cocoon run any
fast under the JDK 1.4.2.
 
Thanks for any help you can give
Doug
 
 

-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Re: Question on using CForms with XSLT and aggregation

2006-04-26 Thread Warrell . Harries

Hi,

I followed the tutorial at http://cocoon.apache.org/2.1/userdocs/flow/tutor.html

As I understand it, you should introduce
a _javascript_ function :-

function whatever()
{

.

  cocoon.sendPage("success.jx", {"random" : random,
"guess" : guess, "guesses" : guesses} );
}

which calls sendPage with the variables you want.
It seems to me that you are bypassing this crucial stage by intercepting
the continuation in your pipeline e.g :-

  
    

  


This seems to be the real value of using continuations
because all of your form flow can now be managed in a single simple _javascript_
source file rather than dispersed throughout your xhtml and sitemap.

I think if you take a look at the tutorial and use
the sendPage stuff you should be OK,

Regards





Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Edward Elhauge <[EMAIL PROTECTED]>

26/04/2006 03:15



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
Question on using CForms with XSLT and
aggregation








Hi,

I'm hoping someone can set me straight on this. I must be missing a
crucial concept in getting this to work.

My question is eventually going to be:
    Any idea on how to get the continuation to pass through an
XSLT?

I've had applications working for the last few years that use Cocoon
Aggregation and XSLT. Recently I updated to Cocoon 2.1.8 and moved all
of them from JSP to XSP.

I'm working on processing Forms using the CForms Jx toolkit. So far
so good. I've got the form validating and changing state, etc.

Now I want to run the Jx output through the existing XSLT pipeline to
integrate it into our application. I've figured out how to get the
initial form through the pipeline, but when I applied the same pattern
to the continuation, I get an error.

Here's a fragment of my sitemap.xmap:

== START ==






  
  

  



  
    

  







  
    
      
      
    

    
    
      
    

    
  



  
    
      
      
    

    
    
      
    

    
  


== END ==

When I hit the URL:
    http://.../DebugForm/OrderCulture.frm
I get exactly what I want and the output passed through the XSLT pipeline.

When I press the Submit button on that form, it generates a URL along this
pattern:
    http://.../DebugForm/557e6250263d345a505a514e5b426a7944343600.continue

Which gets picked up by the *.continue aggregator, but then fails
in the internal continue-pipe pipeline with an
Invalid Continue ID error:
    org.apache.cocoon.components.flow.InvalidContinuationException:
The continuation ID 557e6250263d345a505a514e5b426a7944343600.continue is
invalid.

Any idea on how to get the continuation to pass through an XSLT?
-- 
        Edward Elhauge <[EMAIL PROTECTED]>
"I want to be a person like somebody else once was." -- Peter
Handke "Kasper"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Re: Handling SQL Transformer exceptions

2006-03-31 Thread Warrell . Harries

Yikes,

I don't use Actions and prefer custom
transformers so that the 'pipeline' model remains relatively straightforward.
Consequently, I was assuming this was a part of  a matcher pipeline
e.g.


        
        
         
      
         
      
        
           

         
      
        
        


Clearly, you have the support job from
hell! And it is looking that your difficulties are beyond the scope of
this mailing list. Are you in the UK?

Try producing a test matecer as above
and this might get you into the system such that you have a fighting chance
of maintaining it.

Good Luck




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Oleg Konovalov <[EMAIL PROTECTED]>

31/03/2006 15:38



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
Re: Handling SQL Transformer exceptions








Warrell/Askild,

No, I don't get anything in the IE browser (it gives me the same screen
with no errors),
regular HTML in the View Source.

Here is a whole act block:

                    
    
                    
        
                    
    
                    
    
                    
   
                    
       
                    
       
                    
   
                    
   
                    
       
                    
   
                    
       
   
                    
      
                    
                     
     
                    
   
                    
   
                

It is a part of another act.

Also, if I do in the browser: http://localhost/membership/icmap/sql_error_check?debug1
, getting:
The requested URI "/membership/icmap/sql_error_check" was not
found.
although both my new sql_error_check.xsl and convert-icmap.xsl are in the
same directory (membership/xslt/icmap).
Don't understand why I get this error.

Where:
 
            

Could you please answer my question regarding Template name from my last
e-mail.
 
Thank you in advance,
Oleg.


- Original Message 
From: [EMAIL PROTECTED]
To: users@cocoon.apache.org
Sent: Friday, March 31, 2006 3:52:14 AM
Subject: Re: Handling SQL Transformer exceptions


Hi Oleg, 

>>>>>>>>>>>I tried putting I tried putting
 between SQLTransformer and
my SQL checking file - Didn't get anything. between SQLTransformer and
my SQL checking file - Didn't get anything.

In your sitemap pipeline you should try just having three stages :-


1) Set up your sql as the generator, 
2) Transform using the SQLTransformer

3)  terminate the pipeline with 


If you don't see anything (make sure you use the browser view source) then
something more fundamental is amiss, 

Cheers



Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Oleg Konovalov <[EMAIL PROTECTED]>

31/03/2006 05:51





Please respond to
users@cocoon.apache.org






To
users@cocoon.apache.org



cc



Subject
Re: Handling SQL Transformer exceptions










A little correction:
the full path to the error structure I need to populate in case of error
is:
/root/upload/page/content/error (/message)

And I have that root template:
 
           
        
            
          
    
 

But the condition to find SQLException in that template is:
 

So what is a template name I should use, "error"  ?  

Thank you,
Oleg. 


- Original Message 
From: Oleg Konovalov <[EMAIL PROTECTED]>
To: users@cocoon.apache.org
Sent: Thursday, March 30, 2006 3:36:26 PM
Subject: Re: Handling SQL Transformer exceptions

Warrell,

(sorry, was busy with more urgent problems)

No, I don't have mainTemplate XML element, in fact I replaced template
name with:
   
Not sure it is right.  What happens if there are SQL Exceptions from
SQL Transformer, where do Exceptions go in XML?
which template should be used?.

I tried putting  between SQLTransformer
and my SQL checking file - Didn't get anything.

Tried: label="debug1"/> and in URL put ?debug1

Nope, nothing in the browser.

>Then have a look at how the default
system stylesheet transforms errors into html. You can find the file at
build\ webapp\ stylesheets\ system\ >error2html.xslt

I didn't understand that. I don't have any error2html.xslt.  Please
elaborate.

Please help ! 
  
Thank you in advance,
Oleg. 


- Original Message 
From: [EMAIL PROTECTED]
To: users@cocoon.apache.org
Sent: Tuesday, March 28, 2006 3:59:48 AM
Subject: Re: Handling SQL Transformer exceptions


As Askild points out you are triggering on an XML element called mainTemplate.
If you have not output this from your XSL setup stage prior to the SQLTransform
stage you cannot trigger on it.  It might be worth taking some time
to 'get your head around' 

Re: Handling SQL Transformer exceptions

2006-03-31 Thread Warrell . Harries

Hi Oleg,

>>>>>>>>>>>I
tried putting I tried putting 
between SQLTransformer and my SQL checking file - Didn't get anything.
between SQLTransformer and my SQL checking file - Didn't get anything.
In your sitemap pipeline you should
try just having three stages :-

1) Set up your sql as the generator,
2) Transform using the SQLTransformer
3)  terminate the pipeline with


If you don't see anything (make sure
you use the browser view source) then something more fundamental is amiss,

Cheers




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Oleg Konovalov <[EMAIL PROTECTED]>

31/03/2006 05:51



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
Re: Handling SQL Transformer exceptions








A little correction:
the full path to the error structure I need to populate in case of error
is:
/root/upload/page/content/error (/message)

And I have that root template:
  
            
         
             
           
     
  

But the condition to find SQLException in that template is:
 

So what is a template name I should use,
"error"  ?  
 
Thank you,
Oleg.


- Original Message 
From: Oleg Konovalov <[EMAIL PROTECTED]>
To: users@cocoon.apache.org
Sent: Thursday, March 30, 2006 3:36:26 PM
Subject: Re: Handling SQL Transformer exceptions

Warrell,

(sorry, was busy with more urgent problems)

No, I don't have mainTemplate XML element, in fact I replaced template
name with:
   
Not sure it is right.  What happens if there are SQL Exceptions from
SQL Transformer, where do Exceptions go in XML?
which template should be used?.

I tried putting  between SQLTransformer
and my SQL checking file - Didn't get anything.

Tried: label="debug1"/> and in URL put ?debug1

Nope, nothing in the browser.

>Then have a look at how the default
system stylesheet transforms errors into html. You can find the file at
build\ webapp\ stylesheets\ system\ >error2html.xslt

I didn't understand that. I don't have any error2html.xslt.  Please
elaborate.

Please help !
 
Thank you in advance,
Oleg.


- Original Message 
From: [EMAIL PROTECTED]
To: users@cocoon.apache.org
Sent: Tuesday, March 28, 2006 3:59:48 AM
Subject: Re: Handling SQL Transformer exceptions


As Askild points out you are triggering on an XML element called mainTemplate.
If you have not output this from your XSL setup stage prior to the SQLTransform
stage you cannot trigger on it.  It might be worth taking some time
to 'get your head around' the declarative nature of  XSLT and the
way that Cocoon pipelines work. 

The best way to do this is have a look at the content of the pipeline at
each stage by defining a view. You can pass in a parameter from your URL
to make Cocoon halt pipeline processing at any stage and render the pipeline
contents back to the browser. This is how most people debug their pipelines
and is invaluable during development. If you don't know how to define a
view just serialize the output after the SQLTransform as type="xml"
and look at the content. 

Then have a look at how the default system stylesheet transforms errors
into html. You can find the file at build\ webapp\ stylesheets\ system\
error2html.xslt 

Hope this helps and you don't abandon Cocoon because it takes a declarative,
separation of concerns approach which is orthogonal (at right angles) to
the more common imperative one.



Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Askild Aaberg Olsen <[EMAIL PROTECTED]>

28/03/2006 07:36





Please respond to
users@cocoon.apache.org






To
users@cocoon.apache.org



cc



Subject
Re: Handling SQL Transformer exceptions










Oleg Konovalov wrote:
> Warrell,
>
> So what you are saying is that I can not do SQL exception (or error)

> handling inside that SQL transformer
> and have to do it from outside (and after the transformer itself).
Yes, that's what he says. The stylesheet preparing the SQL have no 
knowledge of the actuall call. How could it, since the call has yet to

be made?
> That is a pity, because in the same sql transformer file I have lots

> of column validations
> which call it to show user errors, so it would be very convenient.
>
You can reuse templates in different stylesheets, so it should not be to

much trouble to refactor.
> OK, so here is my new transformer. Please tell me if it looks OK to
you.
> Have inserted it right after SQL Trasformer [before presentation screen.]
> Still doesn't work.
>       
     
> 
>         xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
>         xmlns:sql="http://apache.org/cocoon/SQL/2.0">
&g

Re: Handling SQL Transformer exceptions

2006-03-28 Thread Warrell . Harries

As Askild points out you are triggering
on an XML element called mainTemplate.
If you have not output this from your XSL setup stage prior to the SQLTransform
stage you cannot trigger on it.  It might be worth taking some time
to 'get your head around' the declarative nature of  XSLT and the
way that Cocoon pipelines work.

The best way to do this is have a look
at the content of the pipeline at each stage by defining a view. You can
pass in a parameter from your URL to make Cocoon halt pipeline processing
at any stage and render the pipeline contents back to the browser. This
is how most people debug their pipelines and is invaluable during development.
If you don't know how to define a view just serialize the output after
the SQLTransform as type="xml" and look at the content.

Then have a look at how the default
system stylesheet transforms errors into html. You can find the file at
build\webapp\stylesheets\system\error2html.xslt

Hope this helps and you don't abandon
Cocoon because it takes a declarative, separation of concerns approach
which is orthogonal (at right angles) to the more common imperative one.




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Askild Aaberg Olsen <[EMAIL PROTECTED]>

28/03/2006 07:36



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
Re: Handling SQL Transformer exceptions








Oleg Konovalov wrote:
> Warrell,
>
> So what you are saying is that I can not do SQL exception (or error)

> handling inside that SQL transformer
> and have to do it from outside (and after the transformer itself).
Yes, that's what he says. The stylesheet preparing the SQL have no 
knowledge of the actuall call. How could it, since the call has yet to

be made?
> That is a pity, because in the same sql transformer file I have lots

> of column validations
> which call it to show user errors, so it would be very convenient.
>
You can reuse templates in different stylesheets, so it should not be to

much trouble to refactor.
> OK, so here is my new transformer. Please tell me if it looks OK to
you.
> Have inserted it right after SQL Trasformer [before presentation screen.]
> Still doesn't work.
>       
     
> 
>         xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
>         xmlns:sql="http://apache.org/cocoon/SQL/2.0">
>
> 
>
>
> 
>            
>         
>             
This says: "Process all element-nodes below root"
>         
>     
> 
>
>
> 
This says: "Match an element node named mainTemplate ()".

Do you have this element in your stream?
>     
 
>                
>             ERROR: Can
not insert/update the record into the 
> database (not recorded)        
  
>                
>     
> 
>
> 
>
>  
> Thank you,
> Oleg.
Hope this helps.

Askild
-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Re: Handling SQL Transformer exceptions

2006-03-27 Thread Warrell . Harries

Hi Oleg,

Thanks for clearing that up. Have you
put that error-handling code in the stage of the pipeline that follows
the SQL transform? The XML document after your SQLTrnsformer stage will
consist of Error elements so you will have to provide templates for them
if you want to handle them. That is, if the XSL that outputs the 
elements is in query.xsl then the error handling should be in process.xsl

        
        
         
      
        
        

Of course, you will also provide templates
for the  elements generated when there are no errors!

Hope this helps




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Oleg Konovalov <[EMAIL PROTECTED]>

27/03/2006 15:59



Please respond to
users@cocoon.apache.org





To
users@cocoon.apache.org


cc



Subject
Re: Handling SQL Transformer exceptions








Warrell,

>I don't think that you can call this a 'bug in Cocoon'!
I meant, a bug in my app (DB problem is not shown to the user and not handled,
just fails to insert and let user guess what happened). 
 I use Cocoon 2.0.4, not 2.1. Would it mean any difference for handling
SQLTransformer exceptions ?
 
Thank you,
Oleg.


- Original Message 
From: [EMAIL PROTECTED]
To: users@cocoon.apache.org
Sent: Monday, March 27, 2006 8:54:35 AM
Subject: Re: Handling SQL Transformer exceptions


Hi Oleg, 

I don't think that you can call this a 'bug in Cocoon'! Do you really mean
a Cocoon 2.0 version or just generally version 2 of Cocoon?


It seems you are building a generic DB query tool so I suppose the following
is not appropriate but I would argue that this is not the desired way to
use the SQLTransformer since the overall Application design should prevent
any constraints ever being violated. In my view, such Constraints are fundamental
rules that are there to define the parameters of the system and not just
as a last line of defence or for the creation of indexes. However,  to
handle such Processing Exceptions in Cocoon you should take a look at :-


http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html


if, of course, you are using Cocoon 2.1.


Hope this helps 

Warrell



Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Oleg Konovalov <[EMAIL PROTECTED]>

27/03/2006 14:26





Please respond to
users@cocoon.apache.org






To
cocoon list 



cc



Subject
Handling SQL Transformer exceptions










Hi,

I am trying to fix the bug in the Cocoon 2.0 application:
- it is not handling exceptions from SQLTransformer in the GUI,
need to show user an error that Insert failed.

Here is an exception we often get:
ERROR   (2006-03-24) 15:29.31:855   [sitemap.transformer.sql]
(/myapp) Thread-11/SQLTransformer$Query: Caught a SQLException
java.sql.SQLException: ORA-1: unique constraint (MBRDEV.UKC_ASSOC_COT)
violated
   at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

Here is a simplified version of my XSL:

   
       
modification
       
           
       
   



   
   
   
   
       
           insert into 
           
           .
       
   
   
   
     
       
           
           ERROR:
Can not insert the row into the database (not recorded)
               
   
   
   



Am I doing it right and in correct place ("This is the code...")
?

For some reason it doesn't seem to work (maybe that condition is false:
"count(//sql:error[1]) > 0"  ?)


Sorry for the newbie question. Any help is very appreciated.


Thank you in advance,
Oleg.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Re: Handling SQL Transformer exceptions

2006-03-27 Thread Warrell . Harries

Hi Oleg,

I don't think that you can call this
a 'bug in Cocoon'! Do you really mean a Cocoon 2.0 version or just generally
version 2 of Cocoon?

It seems you are building a generic
DB query tool so I suppose the following is not appropriate but I would
argue that this is not the desired way to use the SQLTransformer since
the overall Application design should prevent any constraints ever being
violated. In my view, such Constraints are fundamental rules that are there
to define the parameters of the system and not just as a last line of defence
or for the creation of indexes. However,  to handle such Processing
Exceptions in Cocoon you should take a look at :-

http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html

if, of course, you are using Cocoon
2.1.

Hope this helps

Warrell




Warrell Harries
| IT Services, West Sussex County Council
| Location: Northleigh House
Office: +44 (0) 1243-756837 | Email:
[EMAIL PROTECTED]






Oleg Konovalov <[EMAIL PROTECTED]>

27/03/2006 14:26



Please respond to
users@cocoon.apache.org





To
cocoon list 


cc



Subject
Handling SQL Transformer exceptions








Hi,

I am trying to fix the bug in the Cocoon 2.0 application:
- it is not handling exceptions from SQLTransformer in the GUI,
need to show user an error that Insert failed.

Here is an exception we often get:
ERROR   (2006-03-24) 15:29.31:855   [sitemap.transformer.sql]
(/myapp) Thread-11/SQLTransformer$Query: Caught a SQLException
java.sql.SQLException: ORA-1: unique constraint (MBRDEV.UKC_ASSOC_COT)
violated
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

Here is a simplified version of my XSL:

    
        
modification
        
            
        
    



    
    
    
    
        
            insert into 
            
            .
        
    
    
    
    
 
        
            
            ERROR:
Can not insert the row into the database (not recorded)
              
     
    
    



Am I doing it right and in correct place ("This is the code...")
?

For some reason it doesn't seem to work (maybe that condition is false:
"count(//sql:error[1]) > 0"  ?)


Sorry for the newbie question. Any help is very appreciated.


Thank you in advance,
Oleg.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
This e-mail and any attachments are confidential and intended solely for
the persons addressed. If it has come to you in error please reply to advise
us but you should not read it, copy it, show it to anyone else nor make
any other use of its content.   West Sussex County Council takes steps
to ensure e-mails and attachments are virus-free but you should carry out
your own checks before opening any attachment. 

Warrell Harries is out of the office.

2006-03-18 Thread Warrell . Harries

I will be out of the office starting  18/03/2006 and will not return until 22/03/2006.

I will respond to your message when I return.

  1   2   >