Hi Tibor
I've successfully run Cocoon in these configurations:
- Tomcat 5.5.4 with JDK 1.5 on Windows XP (Cocoon 2.1.6)
- Tomcat 5.0.28 with JDK 1.4.2_03 on Windows Server 2003 (Cocoon 2.1.6)
- Tomcat 5.5.9 with JDK 1.4.2_05 on Mac OSX (Cocoon 2.1.7)
HTH
Adam
On 20 Apr, 2005, at 9:47 AM, oceatoon w
Hi Brent
Yes this is possible, I'm doing it this way with an existing project, for
similar reasons to yours. Longer term you should probably look at moving to
Spring however for your hibernate support.
I'm using the Avalon Hibernate library (which I believe is now deprecated) to do
the work that'
Goers [mailto:[EMAIL PROTECTED]
> Sent: Friday, 15 April 2005 10:49 a.m.
> To: users@cocoon.apache.org
> Subject: Re: Redirect within block
>
>
> FWIW
>
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105231353428562&w=2
>
> Ralph
>
> Adam Ratclif
Hi
I'd like to redirect from within an error handler for certain types of
exception. The cocoon user docs illustrate this example using a redirect action:
>From what I can see this action isn't included with recent cocoon releases and
the site
he 10th of February. Have a look.
regards, Tony
Adam Ratcliffe wrote:
> Hi Phillippe >
> Like you I'm working with flow so neither the sendmail
logicsheet or > action seemed a natural fit.
Most of the messages I'll be generating > will be
in HTML forma
Hi Anna
By different web browser do you mean a new web browser window?
You would need to do that on the client using some javascript:
window.open("myCocoonURL", "windowTitle", "width=400, height=300,
resizable=yes");
Cheers
Adam
> -Original Message-
> From: Anna Bikkina [mailto:[EMAIL P
Hi Elad
I've integrated the Sun XACML library into a cocoon project recently
for handling authorization. It provides policy-based access
for resources, where policy rules are evaluated using subject,
resource, and environment attributes. Let me know if you'd like
further information.
Cheers
Ada
ow of any other approaches to achieve what you're
trying to do other than what we've talked
about already.
Cheers
Adam
On 6 Apr, 2005, at 8:47 PM, [EMAIL PROTECTED] wrote:
Adam Ratcliffe wrote:
Yes the uri that gets passed to processPipelineTo() does need to
reference a
pipeline that w
to be able
to pass i18n transformation before in the pipeline.
Cheers,
Phil
Adam Ratcliffe wrote:
Hi,
I need to add email support to a cocoon application and am wondering
what the
preferred way of doing this is these days.
The sendmail action seems to support all of the features of the Java
Ma
Hi,
I need to add email support to a cocoon application and am wondering what the
preferred way of doing this is these days.
The sendmail action seems to support all of the features of the Java Mail API
that I need to use, would this be my best option?
Cheers
Adam
-
Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, 6 April 2005 3:16 a.m.
> To: users@cocoon.apache.org
> Subject: Re: "redirect-to" result of a transformation
>
>
> Adam Ratcliffe wrote:
> > Try coc
TECTED] Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, 5 April 2005 4:52 a.m.
> To: users@cocoon.apache.org
> Subject: Re: "redirect-to" result of a transformation
>
>
> Adam Ratcliffe wrote:
> > You could do this from flowscript. Basically what you'd need to do
&
You could do this from flowscript. Basically what you'd need to do is process
the request in the flow layer and use the cocoon object's processPipelineTo()
method to retrieve the output of the pipeline and redirect from there.
function processLinks() {
var uri = cocoon.request.
Hi Antonio
Are you aware of xReporter http://cocoondev.org/xreporter/index.html?
Out of the box this is likely to handle your report linking requirements and
will output reports in HTML, PDF, Excel, or CSV formats.
>From memory there has been some discussion of FINS integration on the xReporter
I wasn't aware that the mysql driver was included with the Cocoon
distro.
To add a new driver put the driver JAR file in your
/WEB-INF/lib directory,
declare the driver in web.xml and define the datasource in cocoon.xconf
if you haven't done
so already.
HTH
Adam
On 1 Apr, 2005, at 11:19 PM,
Hi Stefan
Yes Cocoon can do these things, it's both flexible and extensible.
> What little I understand so far, high, high-level:
> - Input
> 1) I create XML/XSLT files that define the input pages
> for the user (web-based for now only), e.g. for a
> summary input page and a detail input page
Ta
er;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceSelector;
import org.apache.avalon.framework.service.Serviceable;
/**
* @author Adam Ratcliffe
*/
public class AbstractDB implements Initializable, Disposable,
Hi Jorg
Setting the 'Vary' response header implicitly when the 'expires' parameter
is not provided
is not IMO correct behaviour.
I submitted a patch for this:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33319
which was applied in February.
HTH
Adam
> -Original Message-
> From: new
ction defining which Java classes are used to resolve which URI
> schemes, as specified by the "name" attribute.
>
> Hope that helps!
>
> Brian
>
> Adam Ratcliffe wrote:
> > I've been looking for some documentation describing the schemes
> &
I've been looking for some documentation describing the schemes supported by
Cocoon's SourceResolver,
can someone point me in the right direction?
Cheers
Adam
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
n't send the right answer... at least i think so :-)
>
> do you have any specific browser cache configuration on the login page ?
>
> Marc
>
> Adam Ratcliffe a écrit :
>
> >Hi Marc
> >
> >Are you using flowscript based authentication or actions?
> >
&
Hi Marc
Are you using flowscript based authentication or actions?
In my application I use the flowscript authentication functions, see the
flow samples in the
authentication-fw block. My login function, called when the login form is
submitted, looks like this:
function login() {
var handler =
Hi Petko
Although resources are not inherited you can still reuse resource
declarations by declaring them
in a separate file and including that in each sitemap as an XML entity:
]>
http://apache.org/cocoon/sitemap/1.0";>
...
&resources;
...
Cheers
Adam
> -Original Message-
> From: Pe
Hi
Omer
Do you
see the images in the documents created in the fop samples
block?
Cheers
Adam
-Original Message-From: Omer Kamal
[mailto:[EMAIL PROTECTED]Sent: Sunday, 13 March 2005
10:09 a.m.To: users@cocoon.apache.orgSubject:
fo:external-graphics tag problem in Cocoon
Hi Andreas
Have you tried setting the encoding configuration parameter for the
serializer in your
sitemap configuration?
For example:
UTF-8
Cheers
Adam
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Andreas Hartmann
> Sent: Friday, 11 March 2005 3:02
lowscript but I don't want to complicate things
> because I won't develop.
> So I was wondering if the same things exist with action .
> Moreover, I can't use a because I put
> something else in the flow.
>
> If there is another way, let me know.
>
>
> Lionel
>
Hi Lionel
I don't know of such an action, what are you trying to do with the output of
the pipeline? Maybe there's
another way of doing this that will meet your needs.
Cheers
Adam
> -Original Message-
> From: Lionel Crine [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 10 March 2005 5:00 a.m
I've been re-implementing some code to use the flow functions in place of
actions for authentication and
have run into a problem with redirecting vs invoking an internal pipeline
once the user has successfully
logged in.
I have a protected pipeline declared in my sitemap:
You might also want to take a look at the work that I did on calling SOAP
services from flowscript,
http://wiki.apache.org/cocoon/FlowAndWebServices.
By interacting with services in the flow layer you have more choices in how
the response from the
remote server is handled.
Cheers
Adam
> -Ori
Hi
Sharon
Are
you still having problems with this?
I'm
not intimately familiar with the build process, however you could try removing
the STX block from the build if you don't intend
upon
using it.
Uncomment the line: #include.block.stx=false from
/blocks.properties, type 'build clea
I've been re-implementing some code to use the flow functions in place of
actions for authentication and
have run into a problem with redirecting vs invoking an internal pipeline
once the user has successfully
logged in.
I have a protected pipeline declared in my sitemap:
p://apache.org/cocoon/include/1.0"/>The
whole point is to return the src-attribute to the sitemap
and break it up into parameters inside the templateBuilder
match.Kjell
ArneOn Mon, 2005-02-28 at
10:58 +1300, Adam Ratcliffe wrote:
ï Hi Kjell How are you
requesting the
ï
Hi
Kjell
How
are you requesting the 'templateBuilder' resource, from the browser, a sitemap
redirect, or flowscript?
Cheers
Adam
-Original Message-From: Kjell Arne BrÃdreskift
[mailto:[EMAIL PROTECTED]Sent: Monday, 28 February 2005 6:48
a.m.To: users@cocoon.apache.orgSub
Hi
Claus
Here's
an example of what you would like to do in flowscript:
/** * Returns a file representation of the resource identified
by the uri * parameter, or
null if uri can not be
resolved to a * file resource. * * @param uri the
uri of the resource to be returned as a
file */func
Hi Arsen
It's very straight-forward. If you simply wish to deploy the standard Cocoon
distribution with sample apps
build the Cocoon WAR file by invoking cocoon.bat or cocoon.sh with the 'war'
target, for example:
./cocoon.sh war
Deploy the WAR file as you would any other webapp, Cocoon will be
My company GeoSmart, www.geosmart.co.nz, is looking to hire another
developer to work on the development of our Location Based Services
platform. Our software provides intelligent mapping and routing services
through multiple channels and to multiple devices. The system is, of course,
implemented u
Hi Lionel
I have a class AbstractDB, an Avalon component, that manages the lifecycle
of a connection.
It implements these Avalon interfaces: Initializable, Disposable,
Recyclable, Serviceable.
In initialize() I look up the datasource:
ServiceSelector selector = (ServiceSelector)
this
Hi Aurelien
Try machin.maxAge = maxAgeInSeconds;
maxAge is a property of the cookie object, not a function.
Cheers,
Adam
> -Original Message-
> From: Aurélien DEHAY [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 12 February 2005 9:38 a.m.
> To: users@cocoon.apache.org
> Subject: Cookie in
Hi Sanket
The best recommendation I can offer you is to use a build process that
separates resources from
the Cocoon distro from your project's resources. See
http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16
on the Cocoon wiki as a good starting point for this.
I set up my Eclipse projec
Hi Jaka
Your debugging strategy will require different tools for debugging the
various component types
in Cocoon.
For debugging Java you can use the Sysdeo Tomcat plugin for Eclipse.
Debugging Java classes in Cocoon
works just the same way as debugging any other webapp, set a breakpoint and
invok
t HTTP response status code
>
>
> Adam Ratcliffe wrote:
> > I'm implementing a REST style web service using Cocoon. In the
> event that a
> > consumer of the service
> > requests a resource that doesn't exist the service should return a 404
> > erro
> Performance is acceptable if:
>
> a) you have lots of RAM
> b) you have a fast CPU
> c) you use a 3.1 milestone instead of a 3.0 release
>
> Having said that, I occcasionally use Eclipse on a 1.25GHz, 15"
> PowerBook with 512MB RAM. I can stand it, but I wouldn't use it as my
> primary developmen
Hi,
I'm switching to Mac OSX as my primary development platform. Does anyone
have any tips relating to Cocoon
development on the mac?
In particular I'm interested in recommendations on an IDE, I've been a
devoted Eclipse user for some
time on Windows and Linux and would probably stick with it if
I'm implementing a REST style web service using Cocoon. In the event that a
consumer of the service
requests a resource that doesn't exist the service should return a 404
error.
Ideally I would do this from within the flow layer, something like:
cocoon.sendError(404, "No resource exists for URI:
Opera supports WML out of the box.
Cheers
Adam
> -Original Message-
> From: Andres Taborda [mailto:[EMAIL PROTECTED]
> Sent: Sunday, 23 January 2005 12:08 p.m.
> To: cocoon-u
> Subject: browser for wml
>
>
> some users can help.
>
> I need test wml generated in cocoon.
>
> some can show/r
2005 5:47 p.m.
> To: users@cocoon.apache.org
> Subject: Re: [flow] global variable values lost between invocations
>
>
>
> On Jan 19, 2005, at 8:31 PM, Adam Ratcliffe wrote:
>
> > I have a flowscript where I set the value of a global variable, call
> > cocoon.sess
hursday, 20 January 2005 5:47 p.m.
> To: users@cocoon.apache.org
> Subject: Re: [flow] global variable values lost between invocations
>
>
>
> On Jan 19, 2005, at 8:31 PM, Adam Ratcliffe wrote:
>
> > I have a flowscript where I set the value of a global variable, call
&g
I have a flowscript
where I set the value of a global variable, call cocoon.session to create a
session, but find
that it's value is
undefined when I next invoke a top-level function in the
script.
An excerpt from the
script where the variable's value is set is:
var mapContext;
> That's pretty much what document.load() does, and you can create a
> document using document.implementation.createDocument... except
> Internet Exploder used to not be able to do this, maybe it does now...
> see http://www.quirksmode.org/dom/importxml.html for how to do it
> differently in IE if
> This point is moot. Hibernate can use Apache DBCP or a pooled
> DataSource provided by your container, there's no reason to use either
> Hibernate's pooling or Excalibur's.
Thanks for clarifying this point Ugo.
Cheers
Adam
quist [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 January 2005 10:50 a.m.
To: users@cocoon.apache.org
Subject: Re: Conversion of complex form to cforms
On Jan 16, 2005, at 3:51 PM, Adam Ratcliffe wrote:
> Hi,
>
> I have a reasonably complex form design that I'd like to convert t
yself, see http://new.cocoondev.org/main/117/43.html
Cheers
Adam
-Original Message-
From: beyaRecords [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 January 2005 10:00 a.m.
To: users@cocoon.apache.org
Subject: Re: Using business objects instead of XML
On 17 Jan 2005, at 20:32, Adam Ratcliffe wrote:
Hi Brian,
Building on Mark's code snippets, if bizObject was an instance of a
persistable object
you would retrieve it using a Java class that created Hibernate sessions,
this class should
implement the appropriate Avalon lifecycle interfaces so that it can be
managed by the
Cocoon component manag
Hi Murray
I'm assuming you're using CForms in which case your flowscript would look
something like
this:
var form = new Form("forms/formModel.xml");
form.showForm("form-display-pipeline");
if(form.isValid) {
var model = form.getModel();
var field1 = model.field1;
var fiel
A typo, but it might come to that yet ;-)
Cheers
Adam
-Original Message-
From: Mark Lundquist [mailto:[EMAIL PROTECTED]
Sent: Monday, 17 January 2005 7:49 p.m.
To: users@cocoon.apache.org
Subject: Re: Help with redestructuring of sitemaps and URI space
BTW, I like your Subject: line...
n Jan 16, 2005, at 2:18 PM, Adam Ratcliffe wrote:
>
> Another issue occurs with sendPageAndWait() and showForm() calls where
> the pipeline matching the continuation URI in the customer
> sitemap needs to redirect to a pipeline in the top-level sitemap where
> the fl
Hi,
I have a reasonably
complex form design that I'd like to convert to cforms. Being new to cforms I'm
not sure how
much work is
involved in doing this, can anyone give me an idea as to A) whether this is
possible using cforms;
and B) if using
cforms is a good choice for this use case.
I'm looking to
restructure my application URI space/sitemap
hierarchy to address some of the more awkward
features of the
existing design. As it's possible I'm not the first person to come up
against these issues I'm sharing them
with the
list in the hope of getting some comment on refac
ff.
Thanks again,
Justin
On Thursday 13 January 2005 19:05, Adam Ratcliffe wrote:
> Hi Justin
>
> The Cocoon wiki has some good resources on tailoring the Cocoon webapp and
> developing your project
> against it, see http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16
> an
Hi Justin
The Cocoon wiki has some good resources on tailoring the Cocoon webapp and
developing your project
against it, see http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16
and http://wiki.apache.org/cocoon/ProjectBuilding
The first doc has a link to an Ant build script that will help w
Hi Bhaskar
Because the variable that you're trying to access within your action belongs
to the enclosing
matcher and not the action itself you need to reference it as {../1}.
HTH
Adam
-Original Message-
From: Bhaskar Rathod [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 January 2005 12:00
It
looks like you are missing the Cocoon/Avalon jar files, they should be in your
application's WEB-INF/lib directory.
Can
you run the webapp in your Cocoon build directory, using the command
'cocoon servlet' on Windows or
'./cocoon.sh servlet' on *nix?
Cheers
Adam
-Original Messa
Hi Stavros
Try this:
or alternatively you could use the '+' operator which is overloaded by the
Jexl expression language
to be used for String concatenation.
Jexl allows you to access bean properties using dot notation, the String
concatenation
expression needs to be contained within the curly
The
problem was all mine. I was trying to access the FOM object in a jx
template when the pipeline it belonged to was not being called from flowscript,
hence
the
object was not in context.
Cheers
Adam
-Original Message-From: Adam Ratcliffe
[mailto:[EMAIL PROTECTED]Sent
e XML namespace???). It has the advantage of
serializing a lot of special characters as entities (i.e. £
instead of £ - good for Mac IE), but, these characters include '
which IE renders as ', not '.
Hope this helps,
Mark
On 22 Dec 2004, at 23:09, Adam Ratcliffe wrote:
> Hi,
>
Hi,
I've just upgraded
from Cocoon 2.1.5 to 2.1.6. I now have a problem with the output of a
pipeline that uses the XML serializer including tab
character
references,
The pipeline that
generates the output looks like this:
The pipeline is
called
Does your login form action specify your login pipeline 'do-register'?
The login pipeline's auth-login action needs to be invoked so that the
handler's
authentication resource, your custom Authenticator, can be called.
If the login pipeline is being triggered and you're having problems within
you
I've got a
problem with the user session being lost after successful with authentication
via a custom Java authenticator.
In my
authenticator class I create a user bean and put it in the user's session like
this:
SessionManager sm = (SessionManager)
manager.lookup(org.apache.coco
Hi Julien !
In your stylesheet you overlooked a step, it should look like:
dop!
For a fuller explanation take a look at the session docs at the URL you
provided.
Cheers
Adam
-Original Message-
From: Julien, Heryk [mailto:[EMAIL PROTECTED]
Sent: Frida
Hi Laurent
You can use the java.util.Collections class to sort a list using either the
natural ordering of the elements or by supplying a Comparator. You just
need to import these classes into your flowscript to use them.
Cheers
Adam
-Original Message-
From: Laurent Perez [mailto:[EMAIL
n
your view.
Cheers
Adam
-Original Message-
From: Jorg Heymans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 7 December 2004 6:11 a.m.
To: [EMAIL PROTECTED]
Subject: Re: Cocoon-centric approach to customer configuration
Adam Ratcliffe wrote:
> Hi there,
>
> I'm working on a
ng on but not
for my target.
Any suggestion?
Thanx in advance
Ciao
ROb
- Original Message -
From:
Adam
Ratcliffe
To: [EMAIL PROTECTED]
Sent: Saturday, December 04, 2004 9:31
PM
Subject: RE: Cocoon 2.1.2 sitemap
IIUC you'd lik
Hi Laurent
Your problem is likely due to ${lang} not referencing a string type.
Have a look at this post and see if it helps
http://www.mail-archive.com/users@cocoon.apache.org/msg21031.html
Cheers
Adam
-Original Message-
From: Laurent Perez [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2
Hi Dani !
I have the same issue on both cocoon 2.1.5 and 2.1.6. Someone else has earlier
suggested adding the following declaration to your web application context
entry in the Tomcat server.xml
I haven't tried this yet myself but it's worth a shot.
Cheers
Adam
-Original Message-
Hi Paul !
Avalon specifies component interfaces for separating the concerns of the
system, for example configuration, logging, execution etc. The lifecycle of
components implementing these interfaces is managed by the container and the
container is responsible for providing the component with its
Title: Cocoon 2.1.2 sitemap
IIUC
you'd like to write the output of a pipeline to a file before sending the
response to the browser.
You
could try the Log Transformer for this purpose: http://cocoon.apache.org/2.1/userdocs/transformers/log-transformer.html
Cheers
Adam
-Original Mess
Hi
there,
I'm working on a
Cocoon application that will be a hosted solution. I need to maintain
independent configuration data for each customer related to such things as
datasources, feature set etc. Because of the need to keep customer specific
configuration separate from general syste
Hi,
I've been procrastinating on sorting out a NotSerializableException that comes
up in the server logs whenever I reload the application context:
- Cannot serialize session attribute FOM JavaScript GLOBAL SCOPE for session
52496799933AC84574840800D502E25E
java.io.NotSerializableException:
org.a
Looks like I confused the function of the EncodeURLTransformer with my need for
urlencoding of url parameter values :(
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I've run into some difficulty with URL encoding some URL parameters using the
EncodeURLTransformer.
The transformer is being invoked but the produced document contains unencoded
URLs. I've tried using the java.net.URLEncoder to explicity encode the URLs in
my stylesheet which works, however
Hi Leszek,
You were right about the whole statement needing to be inside the curly braces.
The more verbose Jexl example works as does the JXPath one :)
Cheers
Adam
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have a JXTemplate document that uses the element to set a variable
> that is the concatenat
Title: Message
I'm writing a Pocket
PC application where I need to provide a progress bar for the user while an
image file is being
loaded. Cocoon is not setting
the Content-Length header so I'm unable to determine
the loading percentage.
I extended
XMLSerializer to return true for the s
Title: Message
My Cocoon
application needs to request an XML document from a remote server. The
server has an
XML-RPC like
interface in that it accepts parameters to the request as a structured XML
document.
A valid request to
the server has the following characteristics:
- The request
C
83 matches
Mail list logo