Re: Cocoon2: Logger required?

2003-02-27 Thread Uwe Gerger
I want to turn it off because of problems with the logger when porting
to Bea WebLogic5.1! (See my mail from yesterday!)

Uwe

[EMAIL PROTECTED] schrieb:
 
 Uwe,
 
   Hello,
   can I configure Cocoon2 so that it doesn't use the logger?
  
 
  Cocoon logging can be configured in the file WEB-INF/logkit.xconf.
 
  Usually for deployment the log-levels are set to ERROR (instead of
  DEBUG).
 
 
 What Bruno means is - why do you want to turn the logger off? If it is
 because there is too much output - then change the configuration to ERROR
 instead of DEBUG.
 
 Matthew
 
 --
 Open Source Group   Cocoon { Consulting, Training, Projects }
 =
 Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
 -
 Cocoon book:
   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
 Weblogs:
   http://radio.weblogs.com/0103021/
   http://www.oreillynet.com/weblogs/author/1014
 =
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[EMAIL PROTECTED]begin:vcard 
n:Gerger;Uwe Gerger
tel;work:089 382 35687
x-mozilla-html:FALSE
org:BMW AG;TG-53
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing. (FH)
adr;quoted-printable:;;Helene-Mayer-Ring 4=0D=0A=0D=0A01.03/075.0-8;München;Bayern;80809;Bundesrepublik Deutschland
fn:Uwe Gerger
end:vcard

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

RE: Portal: usable now? Usable in future?

2003-02-27 Thread Chris Dietz
On the portal subject...

Has anyone seen a message forum and/or group calendar integrated
with the cocoon portal?

I am starting to evaluate jetspeed.  any thoughts?

-chris


--- Carsten Ziegeler [EMAIL PROTECTED] wrote:
 The portal and authentication framework are used in production since
 years now - I don't have any links handy right now :( So, you can
 call the framework usable and stable.
 
 I can't compare the cocoon portal with jetspeed, because that wouldn't
 be objective enough, I fear. But if you want to use Cocoon anyway, use
 the Cocoon portal; if you want to build your application based on
 XML and XSLT (for example for multi-channel), use the cocoon portal.
 If jetspeed provides everything you need know and in the foreseen future,
 well...aeh...use the jetspeed portal of course.
 
 In general, I guess the cocoon portal is more flexible because of it's
 XML/XSLT nature - so you can add new features, integrate new portlets
 without writing one line java code; it's just a matter of configuration.
 
 The development of the cocoon portal will continue and it will be even
 more powerfull and extensible than it is now. 
 
 Just a teaser: What do you think of a portal that can run cocoon portlets
 and jetspeed based portlets at the same time?
 
 Carsten
 
  -Original Message-
  From: Tony Linde [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 24, 2003 4:35 PM
  To: Cocoon-Users-List
  Subject: Portal: usable now? Usable in future?
  
  
  Hi,
  
  I am PM of a project that needs to deploy a workable but customisable
  portal as one of its components. The team working on this has set up a
  Jetspeed-based solution using the demo site. I was wondering how usable
  the Cocoon portal webapp is and whether anyone has compared it to the
  Jetspeed one.
  
  Also, is work still continuing on the Auth and Portal webapps? And is
  there a release date for them?
  
  We have to release incremental builds of the project but the final
  release isn't until end of 2004 so I'm happy for us to work with beta
  code (and even contribute to it if it adds to our project functionality)
  as long as it seems a viable long-term project. What are the long-term
  prospects of the Portal?
  
  Thanks,
  Tony. 
  
  __
  Tony Linde   Phone:  +44 (0)116 223 1292
  AstroGrid Project ManagerFax:+44 (0)116 252 3311
  Dept of Physics  Astronomy  Mobile: +44 (0)7753 603356
  University of Leicester  Email:  [EMAIL PROTECTED]
  Leicester, UK   LE1 7RH  Web:http://www.astrogrid.org
  
  
  -
  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]
 


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



Re: Xindice query does not produce data that is in a CDATA section

2003-02-27 Thread hgadm
Thanks Yuri, will try 1.1

On Thu, 27 Feb 2003, Yury Mikhienko wrote:

 
 On Wed, 26 Feb 2003 09:22:09 -0800 (PST)
 [EMAIL PROTECTED] wrote:
 
  Yuri,  I currently use v 1.0
 
 I use v1.1 (from CVS) and cocoon v2.0.4,
 and XML data  in CDATA section are retrived properly.
 
 for example:
 
 in document, stored in Xindice I have the next
section:
 ![CDATA[test]]
 the cocoon's XMLDBSource component retrive the
 following data: 
 lt;testgt;
 
 I beleve it is right.
 
  
  Holger
  
  On Wed, 26 Feb 2003, Yury Mikhienko wrote:
  
   
   On Tue, 25 Feb 2003 16:31:56 -0800 (PST)
   [EMAIL PROTECTED] wrote:
   
Dear all,

I am retrieving XML data from Xindice via
Cocoon.
Everything is retrieved OK except what's in a
 CDATA
section - this is completely missing and Cocoon
   returns
this tag as an empty tag, e.g. mytag/

However, when I retrieve the data with an XPath
  query
from the Xindice command line, CDATA is returned
 ??

Any ideas ??

This is my pipeline fragment:
map:match pattern=xindiceselect/**
map:generate type=file
   
  
 

src=xmldb:xindice://localhost:4080/db/EMKnowledgeObjects/#/{1}/
map:serialize type=xml/
/map:match

   
   What is the version Xindice you use?
   
   
   -- 

   Best regards,
   Yury Mikhienko.
   IT engineer, ZAO Mobicom-Kavkaz
   
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  ___
  The ALL NEW CS2000 from CompuServe
   Better!  Faster! More Powerful!
   250 FREE hours! Sign-on Now!
   a
href=http://mail.cswebmail.com/jump/http://www.compuserve.com/trycsrv/cs2000/webmail;http://www.compuserve.com/trycsrv/cs2000/webmail/a/
  
  
  
  
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 -- 
  
 Best regards,
 Yury Mikhienko.
 IT engineer, ZAO Mobicom-Kavkaz
 

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



RE: Portal: usable now? Usable in future?

2003-02-27 Thread hgadm
Chris,

this is an interesting post. 

I am interested in exploring the Cocoon portal for
Knowledge Management purposes, therefore an integration
of a threaded discussion forum (for structured
information exchange) would be great.

Holger


On Wed, 26 Feb 2003, Chris Dietz wrote:

 
 On the portal subject...
 
 Has anyone seen a message forum and/or group calendar
 integrated
 with the cocoon portal?
 
 I am starting to evaluate jetspeed.  any thoughts?
 
 -chris
 
 
 --- Carsten Ziegeler [EMAIL PROTECTED] wrote:
  The portal and authentication framework are used in
 production since
  years now - I don't have any links handy right now
:(
 So, you can
  call the framework usable and stable.
  
  I can't compare the cocoon portal with jetspeed,
 because that wouldn't
  be objective enough, I fear. But if you want to use
 Cocoon anyway, use
  the Cocoon portal; if you want to build your
 application based on
  XML and XSLT (for example for multi-channel), use
the
 cocoon portal.
  If jetspeed provides everything you need know and in
 the foreseen future,
  well...aeh...use the jetspeed portal of course.
  
  In general, I guess the cocoon portal is more
 flexible because of it's
  XML/XSLT nature - so you can add new features,
 integrate new portlets
  without writing one line java code; it's just a
 matter of configuration.
  
  The development of the cocoon portal will continue
 and it will be even
  more powerfull and extensible than it is now. 
  
  Just a teaser: What do you think of a portal that
can
 run cocoon portlets
  and jetspeed based portlets at the same time?
  
  Carsten
  
   -Original Message-
   From: Tony Linde [mailto:[EMAIL PROTECTED]
   Sent: Monday, February 24, 2003 4:35 PM
   To: Cocoon-Users-List
   Subject: Portal: usable now? Usable in future?
   
   
   Hi,
   
   I am PM of a project that needs to deploy a
 workable but customisable
   portal as one of its components. The team working
 on this has set up a
   Jetspeed-based solution using the demo site. I was
 wondering how usable
   the Cocoon portal webapp is and whether anyone has
 compared it to the
   Jetspeed one.
   
   Also, is work still continuing on the Auth and
 Portal webapps? And is
   there a release date for them?
   
   We have to release incremental builds of the
 project but the final
   release isn't until end of 2004 so I'm happy for
us
 to work with beta
   code (and even contribute to it if it adds to our
 project functionality)
   as long as it seems a viable long-term project.
 What are the long-term
   prospects of the Portal?
   
   Thanks,
   Tony. 
   
   __
   Tony Linde   Phone:  +44
(0)116
 223 1292
   AstroGrid Project ManagerFax:+44
(0)116
 252 3311
   Dept of Physics  Astronomy  Mobile: +44
 (0)7753 603356
   University of Leicester  Email: 
 [EMAIL PROTECTED]
   Leicester, UK   LE1 7RH  Web:   
 a
href=http://mail.cswebmail.com/jump/http://www.astrogrid.org;http://www.astrogrid.org/a
   
   
  

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

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: XPath problems in Cocoon?

2003-02-27 Thread Anna Afonchenko
YES! That worked!

Thank you very much Joerg

- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:31 PM
Subject: Re: XPath problems in Cocoon?


Does this help?

select=a[following-sibling::node()[normalize-space() or
self::*][1][self::a]]

First all non-whitespace-character text nodes and all elements are
selected. From these one the first one is tested to be an a/.

Regards,

Joerg

Anna Afonchenko wrote:
 Thanks for answering
 I agree that my expression is not the cleanest, but it doesn't work in
 cocoon anyway :-(
 I can't understand, why it is so hard to express some not-so-difficult
 conditions.
 I am trying to select all a nodes that are followed by another a node
 without anything in between, except white spaces. I understand that my
 problem is white spaces that are not ignored in any parser except for
MSXML.
 Example:
 for a /  a/ or a/a/ I want my expression to pick the first a.
 for a/texta/ or a/br/a/ I do not want my expression to pick the
a.

 I don't want to ignore any text nodes, just the whitespace-only ones.
 Expression //a[following-sibling::*[1][self::a]] will select also a nodes
 woth some simple text in between, and I do not want it.
 I don't believe that this should be that complicated, but the fact is that
I
 cannot manage to construct the expression that will choose exactly what I
 need, no more, no less.

 Sorry to drag this thread for so long, but maybe you can help me a little
 bit more with this and help me to find the right expression that will work
 in Cocoon?

 Thank you very very much for help.
 I appreciate it very much.

 Anna
 - Original Message -
 From: J.Pietschmann [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 9:21 PM
 Subject: Re: XPath problems in Cocoon?


 Anna Afonchenko wrote:

But when I tried to apply this stylesheet using cocoon, I still got the
empty root element root/  as a result.


 That's because strip-space doesn't apply if the input is delivered
 through a SAX pipeline (although the spec is a bit ambiguous about
 this.

 Actually, your expression is ugly. What's wrong with
   select=a[following-sibling::*[1][self::a]]
 This means select a elements where the following element
 (disregarding any text node) is also an a element.
 This is not quite equivalent to your expression but will give
 the same result for your XML source, and it will work regardless
 whether whitespace nodes are stripped.
 There's half a zillion other possibilities to express the same
 or similar conditions. If you give a description of the effect
 you want to achieve, a proper expression can be formulated.

 J.Pietschmann


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




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



missing org.xml.sax.EntityResolver during Cocoon build

2003-02-27 Thread Sylvain.Thevoz
Hello,

I have this error when I try to build a Cocoon 2.1-dev snapshot (january 29, 2003) 
within an Eclipse project:
This compilation unit indirectly references the missing type 
org.xml.sax.EntityResolver (typically some required class file is referencing a type 
outside the classpath).

I think I need some xml librairies.
If I try to add the xml-apis.jar library (from the endorsed folder), the build process 
returns 6500 errors!

Which libraries do I need?

I'm using Tomcat 4.1.12 with JDK 1.3.1_03


Thanks for your help
Sylvain (T)

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



Re: sitemap and {session:locale} for i18n?

2003-02-27 Thread Enke, Michael
Stephane Amaudruz wrote:
 
 First,a s you are using input module, you must ensure that they are declared
 in your Cocoon.xconf.
 
 Second the session input module allows you to access session properties,
 such as creationTime, id, lastAccessedTime and so on.
 
 I think that if you want to access attribute, you must use the session
 atribute input module instead.

 Hope this help.

Yes, that helped.
I never used input modules and didn't know that this are input modules.
For others interested: I use {session-attr:locale} where session-attr
is the name declared in cocoon.xconf for SessionAttributeModule
and locale is the session attribute.

Thank you,
Michael

 Steph.
 
 SAM Development, Stephane Amaudruz
 E-Mail: [EMAIL PROTECTED]
 


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



*** proposal to summarise - all, comments please ***

2003-02-27 Thread hgadm
Dear all,

as in each and every newsgroup a lot of knowledge is in
the flow of these discussions, however - most of the
time nothing is really summarised and captured.

I would like to propose that once a problem has been
solved by the help of different 'brains' that the
original poster of this problem posts a summary (which
clearly says SUMMARY:  in the headline) in which he
briefly summarises the problem and the solution that
worked for him finally.

It would be very nice to post this condensed knowledge
back to group then and I think it would facilitate
finding and retrieval of this knowledge (also in the
archives)!!

Comments please !!

Holger

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: Return value from Oracle Stored Procedure

2003-02-27 Thread Gabriele Domenichini
I can give you a really humble help: try use a get-object instead of
get-string. Maybe your out parameter contains something not interpreted.
A second suggestion: I have struggled with xml content and at the end we've
found in the group that you must do something like this:

esql:execute-query
esql:call{call your stored procedure}/esql:call
esql:call-results
util:include-expr
util:expr
esql:get-object column=7 from-call=true/
/util:expr
/util:include-expr
/esql:call-results
esql:error-results
esql:get-message/
esql:get-stacktrace/
/esql:error-results
/esql:execute-query
This only if your content is xml of course but maybe that's not the case..

- Original Message -
From: Nigel Shrieves
To: [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 3:14 PM
Subject: Return value from Oracle Stored Procedure


Cannot get a return value from the following:

   esql:execute-query

   esql:call{call iauth_user_process.is_valid_authlogin(
   esql:parameter direction=in
type=Stringxsp:exprp_authlogin/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_authpassword/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_clientipaddress/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_secure/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_session/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_siteid/xsp:expr/esql:parameter,
   esql:parameter direction=out type=String/)}
   /esql:call

   esql:call-results
   esql:get-string column=7/
   /esql:call-results

   /esql:execute-query

The error log is:

org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii
data for column 7

Regards

Nigel





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03


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



Re: Return value from Oracle Stored Procedure

2003-02-27 Thread Gabriele Domenichini
I can give you a really humble help: try use a get-object instead of
get-string. Maybe your out parameter contains something not interpreted.
A second suggestion: I have struggled with xml content and at the end we've
found in the group that you must do something like this:

esql:execute-query
esql:call{call your stored procedure}/esql:call
esql:call-results
util:include-expr
util:expr
esql:get-object column=7 from-call=true/
/util:expr
/util:include-expr
/esql:call-results
esql:error-results
esql:get-message/
esql:get-stacktrace/
/esql:error-results
/esql:execute-query
This only if your content is xml of course but maybe that's not the case..

- Original Message -
From: Nigel Shrieves
To: [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 3:14 PM
Subject: Return value from Oracle Stored Procedure


Cannot get a return value from the following:

   esql:execute-query

   esql:call{call iauth_user_process.is_valid_authlogin(
   esql:parameter direction=in
type=Stringxsp:exprp_authlogin/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_authpassword/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_clientipaddress/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_secure/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_session/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprp_siteid/xsp:expr/esql:parameter,
   esql:parameter direction=out type=String/)}
   /esql:call

   esql:call-results
   esql:get-string column=7/
   /esql:call-results

   /esql:execute-query

The error log is:

org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii
data for column 7

Regards

Nigel





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03


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



Re: *** proposal to summarise - all, comments please ***

2003-02-27 Thread Gabriele Domenichini
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 11:05 AM
Subject: *** proposal to summarise - all, comments please ***


 Dear all,

 as in each and every newsgroup a lot of knowledge is in
 the flow of these discussions, however - most of the
 time nothing is really summarised and captured.

 I would like to propose that once a problem has been
 solved by the help of different 'brains' that the
 original poster of this problem posts a summary (which
 clearly says SUMMARY:  in the headline) in which he
 briefly summarises the problem and the solution that
 worked for him finally.


I totally agree. But I would propose also to write something on cocoon wiky
when something so wonderful happens


 It would be very nice to post this condensed knowledge
 back to group then and I think it would facilitate
 finding and retrieval of this knowledge (also in the
 archives)!!


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



caching

2003-02-27 Thread arturl
Hello,
I've asked this question some time ago, but got no answer.
Is it possible to cache the content produced from file generator fetching
data from some external url for specified time?
I'd like the generator not to check last modification date (and so
connecting to the external server) but serve content from internal cache.

Thanks,
Artur




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



RE: caching

2003-02-27 Thread Reinhard Pötz
 Gianugo is changing some parts in the cocoon caching. Then 
 you will be able to cache the complete pipeline for the 
 expiration date without creating your own custom generator.

Do you know whether there is some mechanism to get the old (=expired)
content if the external source is not available after it expired?

Regards,
Reinhard

 
 HTH
 Carsten


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



RE: caching

2003-02-27 Thread Carsten Ziegeler
 From: Reinhard Pötz [mailto:[EMAIL PROTECTED]

  Gianugo is changing some parts in the cocoon caching. Then
  you will be able to cache the complete pipeline for the
  expiration date without creating your own custom generator.

 Do you know whether there is some mechanism to get the old (=expired)
 content if the external source is not available after it expired?

No, it's not possible.


Carsten


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



language display!!!!!!!!

2003-02-27 Thread Hong Gia Dinh
Title: language display





Hi all,


i met a problem like this :


i have a form with the input text and submit one!


i can type the input with vietnamese and save to database!
but i want when i press submit button, the content i have justtyped must also be display as i typed!!!
i use xsp-request:get-parameter name=input_name/ 
but ... the vietnamese letter having accent it just display with code # ...; :(


but if i redisplay them not in the inpput but with xsl:value-of select=input_name disable-output-escaping=yes/ it display well and perfectly


but i cant use disable-output-escaping=yes (xsl feature ) for input .. value= tag


i tried to change the xsp-request:get-parameter logicsheet by adding disable-output-escaping=yes but it did not work ! why

can somebody tell me how to solve this???
how can i redisplay the text i have just typed exactly like what i typed??of course in specific language???


thanks a lot in advance!!
Gia Dinh





Re: cinclude transformer VERY slow

2003-02-27 Thread Derek Hohls



Martin

Thanks for this - I have also had problems trying to 
process documents with DocBook - it is a large DTDand the stylesheets 
supplied (assuming you do not 
write your own) are also huge - even without using
cinclude.

I knwo for myself that I really do not understand how
caching works in Cocoon, andmost of your questions
and suggestions below are pretty much Greek to me (!) 
- isthere any way you could perhaps consider writing 
up a *simple* guide* to dealing this type of issue  
posting it on the wiki - or is there already such a beast 
readily available?

Thanks
Derek [EMAIL PROTECTED] 26/02/2003 10:16:37 
"Josema Alonso" [EMAIL PROTECTED] 
writes: Replying to myself but still haven't found a good 
explanation...  The *.news.xml docs I mentioned in my previous 
message are Docbook articles. All of them have the doctype declaration 
for the Docbook article DTD: !DOCTYPE article PUBLIC "-//OASIS//DTD 
DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" 
 I removed the declaration and everything went fine.  I 
thought that maybe it was trying to validate the articles and retrieving 
the DTD remotely, but I switched to a local copy of the DTD and the 
problem is still the same.  By now, I have removed the 
doctype declarations, but this is just a quick workaround. I do not know 
what's going on...still investigating...How long does the FileGenerator 
need for each of the documents?I guess the cinclude generator needs 
slightly longer than the sumof the FileGenerators execution times. A xml 
parser will readall of the DTD, even if it is not validating. Are you sure, 
you are reading a local copy of the DTD? Have a look at 
org.apache.cocoon.components.resolver.ResolverImpl. Did you add the Docbook 
to the catalog? Proper entity resolving can reallyboost cocoon performance. 
How large is the Docbook-DTD? Maybe a caching EntityResolver 
helps.Martin-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
commands, e-mail: [EMAIL PROTECTED]-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



Source Logging in Coccoon

2003-02-27 Thread Peter Klotz
Hi,

I have defined my own logger in the Cocoon logkit.xconf for a custom
action and a custom source that I'm running in Cocoon.
In both cases I have attached a logger=blah to the protocol definition
of the source in cooon.xconf

protocol class=... name=... logger=blah/

and for the action in the sitemap:

map:action name=... src=... logger=blah/

in logkit.xconf:

cocoon id=blah
  filename/WEB-INF/logs/blah.log/filename
  ...
/cocoon
...
category name=blah log-level=DEBUG
  log-target id-ref=blah/
  log-target id-ref=error/
/category

The effect is that the action logs its output in the log file but the
source does not. Of course one specifies the SourceFactory in the
protocol/ statement so the factory gets the logger but I just check
whether the source implements LogEnabled and pass the logger from the
factory to the source.

Is there any known problem or anybody that has configured logging for a
source already that could help?


Thanks, Peter



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



RE: caching

2003-02-27 Thread Reinhard Pötz
 From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] 
  From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
 
   Gianugo is changing some parts in the cocoon caching. 
 Then you will 
   be able to cache the complete pipeline for the expiration date 
   without creating your own custom generator.
 
  Do you know whether there is some mechanism to get the old 
 (=expired) 
  content if the external source is not available after it expired?
 
 No, it's not possible.

At which 'level' would you solve that problem? Would you write a special
generator?

Reinhard


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



RE: caching

2003-02-27 Thread Carsten Ziegeler
Reinhard Pötz wrote:
   Do you know whether there is some mechanism to get the old
  (=expired)
   content if the external source is not available after it expired?
  
  No, it's not possible.

 At which 'level' would you solve that problem? Would you write a special
 generator?

Yes, exactly.

But I'm not sure if this is a good solution. If the external source
is not available, you usually get a timeout (4 or 5 minutes?). So, you
have to wait for this timeout and then serve from the cache; this time
is too long for the casual user.

I would suggest that you always serve from the cache even if the content
has expired. If it has expired you will the cache in the background.
This can be done in a special generator as well.

Carsten


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



RE: caching

2003-02-27 Thread Reinhard Pötz
 From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] 
 Reinhard Pötz wrote:
Do you know whether there is some mechanism to get the old
   (=expired)
content if the external source is not available after it
expired?
   
   No, it's not possible.
 
  At which 'level' would you solve that problem? Would you write a 
  special generator?
 

 Yes, exactly.
 
 But I'm not sure if this is a good solution. If the external 
 source is not available, you usually get a timeout (4 or 5 
 minutes?). So, you have to wait for this timeout and then 
 serve from the cache; this time is too long for the casual user.
 
 I would suggest that you always serve from the cache even if 
 the content has expired. If it has expired you will the cache 
 in the background. This can be done in a special generator as well.

Am I right you would write a background component that tries to refresh
all expired content of the cache and until it is updated the 'old'
version could be used.

Would this fit in the already existing pipeline-expires and
pipeline-caching concepts?

Reinhard


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



RE: caching

2003-02-27 Thread Carsten Ziegeler


 -Original Message-
 From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 12:39 PM
 To: [EMAIL PROTECTED]
 Subject: RE: caching


  From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
  Reinhard Pötz wrote:
 Do you know whether there is some mechanism to get the old
(=expired)
 content if the external source is not available after it
 expired?

No, it's not possible.
  
   At which 'level' would you solve that problem? Would you write a
   special generator?
  
 
  Yes, exactly.
 
  But I'm not sure if this is a good solution. If the external
  source is not available, you usually get a timeout (4 or 5
  minutes?). So, you have to wait for this timeout and then
  serve from the cache; this time is too long for the casual user.
 
  I would suggest that you always serve from the cache even if
  the content has expired. If it has expired you will the cache
  in the background. This can be done in a special generator as well.

 Am I right you would write a background component that tries to refresh
 all expired content of the cache and until it is updated the 'old'
 version could be used.
Yes.


 Would this fit in the already existing pipeline-expires and
 pipeline-caching concepts?

This would be two different parts, so the
caching algorithm works as always and your generator does his work.
Of course, your generator can be still cacheable and used by the
caching pipeline.

Carsten


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



Re: cinclude transformer VERY slow

2003-02-27 Thread Martin Holz
Derek Hohls [EMAIL PROTECTED] writes:

 Thanks for this - I have also had problems trying to
 process documents with DocBook - it is a large DTD
 and the stylesheets supplied (assuming you do not
 write your own) are also huge - even without using
 cinclude.
 
 I knwo for myself that I really do not understand how
 caching works in Cocoon, and most of your questions 
 and suggestions below are pretty much Greek to me (!)

I would be glad, if I understood the details of Caching myself.
Filegenerator does cache files from local filesystem.
CIncludeTransformer does not cache, however there is
a caching version in CVS head. Last time I checked (4 month 
ago or so), it had some problems.

 - is there any way  you could perhaps consider writing
 
 up a *simple* guide* to dealing this type of issue 
 posting it on the wiki - or is there  already such a beast
 readily available?

In Matthews and Carstens book are a few pages about caching.
They know a lot more about caching then me.
There is http://xml.apache.org/cocoon/performancetips.html

DTD parsing might be a bottleneck and it is not handled 
by the normal cocoon caching.
 
There are a few things, that may help, but I did
not test it seriously: 

- I don't know much about docbook DTD, but I guess, it is 
modularized. Creating a flat version of it may improve
performance. 

- Once I stripped all comments from the HTML dtd.
 It improved performance a  lot.
- Writing a org.xml.sax.EntityResolver, that caches the
  dtds to memory might help. Not sure about this,
  since the OS is caching the files too. 
 


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



Re: Build 2.1-dev failed

2003-02-27 Thread Christoph Gaffga
Hi ,

had anybody build the current version of cocoon 2.1-dev. I tried the last
snapshot (25.02.03) and the cvs (one hour ago). But I cant build it.

The Error Message is:

BUILD FAILED
file:///home/cgaffga/xml-cocoon2/build.xml:208: Failed to copy
/home/cgaffga/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/matching/Rege
xpURIDefaultsMatcher.java to
/home/cgaffga/xml-cocoon2/build/cocoon-2.1-dev/scratchpad/src/org/apache/coc
oon/matching/RegexpURIDefaultsMatcher.java due to null

If i copy this file by hand I get:

compile-scratchpad:
Copying 1 file to
/home/cgaffga/data/xml-cocoon2/build/cocoon-2.1-dev/scratchpad/src
Compiling 73 source files to
/home/cgaffga/data/xml-cocoon2/build/cocoon-2.1-dev/scratchpad/dest
error: compiler message file broken:
key=compiler.err.sun.io.MalformedInputException arguments=null, null, null,
null, null, null, null


How can I build the 2.1-dev Version?? Any Idea?

Christoph Gaffga


P.S.: When will a release candidate be available, any plans?


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



xmlforms + multiple beans ?

2003-02-27 Thread Jeroen Cranendonk
My college has asked me to post the folliwing question.

He's working with cocoon xmlforms, implementing a system where
a user can fill out forms. There are a large number of seperate sequences of 
forms that can be followed. (file a complaint, file something else, etc.) 
Each of these sequences is currently associated with one javabean which holds 
the data for that sequence.

The problem lies in that many sequences share common parts, say the adress
data of the user for example.
What he would like is to be able to reuse both the forms and a bean for this 
kind of data, say a CommonUserAdressBean and a commongetuserdataform.xml

I believe the form can be fairly easily reused, but when trying to have a 
reusable bean we run into the problem that a form can only have a single
bean/model associated with it. Or atleast so I believe.

Does anyone have any ideas of how to get round this, or how we could apporach 
this differently ? (besides using the adress(for example) bean as a subclass 
for the other bean, this would break if we want to use more then one generic 
bean)

So in short , we want to associate more then one bean with an xmlform as its 
model, to be able to use one or several beans that are shared between many 
sequences of forms, and one that's specific to a certain sequence of forms.

Many thanks in advance :)

Jeroen Cranendonk.


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



Cocoon 2.1 Beta 1 and 2.0.5

2003-02-27 Thread Hartmut Schlotterbeck
Hi,

on http://xml.apache.org/cocoon/plan/release.html there is a timeframe 
with the following entries:

End of February 2003 : 2.1 Beta 1
On request : 2.0.5 (bug fix release)
Does anyone know a realistic release date of Cocoon 2.1 Beta 1. Is a 
code freeze planed in the near future?

Where is the location to download Cocoon 2.0.5. I can't find it in CVS?

Hartmut

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


RE: Cocoon 2.1 Beta 1 and 2.0.5

2003-02-27 Thread Carsten Ziegeler


 -Original Message-
 From: Hartmut Schlotterbeck [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 3:01 PM
 To: [EMAIL PROTECTED]
 Subject: Cocoon 2.1 Beta 1 and 2.0.5
 
 
 Hi,
 
 on http://xml.apache.org/cocoon/plan/release.html there is a timeframe 
 with the following entries:
 
 End of February 2003 : 2.1 Beta 1
 On request : 2.0.5 (bug fix release)
 
 Does anyone know a realistic release date of Cocoon 2.1 Beta 1. Is a 
 code freeze planed in the near future?
The above date is obsolete; we currently don't have a date for a beta.

 
 Where is the location to download Cocoon 2.0.5. I can't find it in CVS?
 
As the above states: on request. Currently there is no need for a 2.0.5,
so the latest official version is still: 2.0.4

Carsten

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



Ad: xmlforms + multiple beans ?

2003-02-27 Thread Jeroen Cranendonk
Among the same line of thought, is it possible to include schematron (the ones 
used to validate say the users address fields) in other schematron files ? 
(by link/reference, not copy paste :) same reason again, it'd be nice to once 
write a piece of schematron code, and then use it in any forms you do that 
have adress info too.

many thanks in advance,
Jeroen Cranendonk


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



Re: *** proposal to summarise - all, comments please ***

2003-02-27 Thread Ryan Hoegg
[EMAIL PROTECTED] wrote:

Dear all,

as in each and every newsgroup a lot of knowledge is in
the flow of these discussions, however - most of the
time nothing is really summarised and captured.
I would like to propose that once a problem has been
solved by the help of different 'brains' that the
original poster of this problem posts a summary (which
clearly says SUMMARY:  in the headline) in which he
briefly summarises the problem and the solution that
worked for him finally.
It would be very nice to post this condensed knowledge
back to group then and I think it would facilitate
finding and retrieval of this knowledge (also in the
archives)!!
Comments please !!

Holger

I seem to remember reaching a consensus to do something like this about 
10-11 months ago :)

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


missing org.xml.sax.EntityResolver during Cocoon build

2003-02-27 Thread Sylvain.Thevoz
Hello,

I have this error when I try to build a Cocoon 2.1-dev snapshot (january 29, 2003) 
within an Eclipse project:
This compilation unit indirectly references the missing type 
org.xml.sax.EntityResolver (typically some required class file is referencing a type 
outside the classpath).

I think I need some xml librairies.
If I try to add the xml-apis.jar library (from the endorsed folder), the build process 
returns 6500 errors!

Which libraries do I need?

I'm using Tomcat 4.1.12 with JDK 1.3.1_03


Thanks for your help
Sylvain (T)

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



Re: caching

2003-02-27 Thread Charles Yates
   I am curently testing a 'CacheableSource' and
'CacheableSourceFactory' that does these things.
Its not ready for prime time yet but it does do the
things mentioned here.  Used like this:
cache://http://www.unreliableserver.com/news.rdf
cache://cocoon://resource/that/takes/a/long/time
  It uses DeltaTimeCacheValidity.  If the validity has
expired, it returns the resouce from the cache and
updates it in another thread.
   I'll report back when its ready.

Charles

Carsten Ziegeler wrote:

 

-Original Message-
From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: RE: caching
   

From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
Reinhard Pötz wrote:
 

Do you know whether there is some mechanism to get the old
   

(=expired)
 

content if the external source is not available after it
   

expired?
   

No, it's not possible.
 

At which 'level' would you solve that problem? Would you write a
special generator?
   

Yes, exactly.

But I'm not sure if this is a good solution. If the external
source is not available, you usually get a timeout (4 or 5
minutes?). So, you have to wait for this timeout and then
serve from the cache; this time is too long for the casual user.
I would suggest that you always serve from the cache even if
the content has expired. If it has expired you will the cache
in the background. This can be done in a special generator as well.
 

Am I right you would write a background component that tries to refresh
all expired content of the cache and until it is updated the 'old'
version could be used.
   

Yes.

 

Would this fit in the already existing pipeline-expires and
pipeline-caching concepts?
   

This would be two different parts, so the
caching algorithm works as always and your generator does his work.
Of course, your generator can be still cacheable and used by the
caching pipeline.
Carsten

-
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: Axis as Cocoon component?

2003-02-27 Thread Alexander Enns
Hi Markus,

Thank You for quickly answer!

Your Soap Server for Cocoon is the piece I looked for. 

How intensive it is already tested? And when it is planed to add the component to the 
main distribution of Cocoon?

Thanks,

Alexander


 Marcus Crafter [EMAIL PROTECTED] Wednesday, 26. February 2003 14:39:22 
Hi Alexander,

On Wed, Feb 26, 2003 at 02:20:08PM +0100, Alexander Enns wrote:
 Hi all,
 
 is there any trial to integrate Axis engine in Cocoon?

Axis is integrated into Cocoon via the AxisRPCReader, which exists
currently in Cocoon's CVS scratchpad. Essentially, it allows Cocoon to
serve SOAP requests, via Axis.

 To have possibility to use Cocoon component model from web services code?

Do you mean utilize the Avalon component model from within your web
services code ?

This is possible with and without Cocoon, depending on what you want 
to do. Have a look at the sample webservices in scratchpad, 
especially the instrument service which uses an Avalon component as a 
webservice object.

Hope that helps.

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_'
  .
:


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



DVSL Velocity xml transformation

2003-02-27 Thread Dario Liberman
Hello,

I was wondering if there exist a simple way to incorporate DVSL as a
transformer.
Since there is already a plugin for xml generation with velocity, perhaps it
is simple to incorporate a transformation with velocity.

It is very powerfull, since allows during the transformation to call java
objects, allowing even document oriented programming if it is desired (ie.
the xml in prior layers may have commands to be processed, like an xml from
a soap request or alike).

See DVSL:

http://jakarta.apache.org/velocity/dvsl/index.html

For thoose interested, here is an example of a dvsl file:

http://cvs.apache.org/viewcvs/jakarta-velocity-dvsl/src/stylesheets/site.dvs
l?rev=1.4content-type=text/vnd.viewcvs-markup

Thanks,
Dario.


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



RE: caching

2003-02-27 Thread Reinhard Pötz
Charles,

Nice to hear this!

One question: How do you set the cache validity time e.g. 60 minutes if
you use a source?

Regards,
Reinhard

 -Original Message-
 From: Charles Yates [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 27, 2003 2:56 PM
 To: [EMAIL PROTECTED]
 Subject: Re: caching
 
 
 I am curently testing a 'CacheableSource' and 
 'CacheableSourceFactory' that does these things. Its not 
 ready for prime time yet but it does do the things mentioned 
 here.  Used like this:
 
 cache://http://www.unreliableserver.com/news.rdf
 cache://cocoon://resource/that/takes/a/long/time
 
It uses DeltaTimeCacheValidity.  If the validity has 
 expired, it returns the resouce from the cache and updates it 
 in another thread.
 
 I'll report back when its ready.
 
 
 Charles
 
 Carsten Ziegeler wrote:
 
   
 
 -Original Message-
 From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 12:39 PM
 To: [EMAIL PROTECTED]
 Subject: RE: caching
 
 
 
 
 From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Reinhard Pötz 
 wrote:
   
 
 Do you know whether there is some mechanism to get the old
 
 
 (=expired)
   
 
 content if the external source is not available after it
 
 
 expired?
 
 
 No, it's not possible.
   
 
 At which 'level' would you solve that problem? Would you write a 
 special generator?
 
 
 
 Yes, exactly.
 
 But I'm not sure if this is a good solution. If the 
 external source 
 is not available, you usually get a timeout (4 or 5 minutes?). So, 
 you have to wait for this timeout and then serve from the 
 cache; this 
 time is too long for the casual user.
 
 I would suggest that you always serve from the cache even if the 
 content has expired. If it has expired you will the cache in the 
 background. This can be done in a special generator as well.
   
 
 Am I right you would write a background component that tries to 
 refresh all expired content of the cache and until it is 
 updated the 
 'old' version could be used.
 
 
 Yes.
 
   
 
 Would this fit in the already existing pipeline-expires and 
 pipeline-caching concepts?
 
 
 
 This would be two different parts, so the
 caching algorithm works as always and your generator does 
 his work. Of 
 course, your generator can be still cacheable and used by 
 the caching 
 pipeline.
 
 Carsten
 
 
 -
 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]
 


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



Re: caching

2003-02-27 Thread Charles Yates
 It uses DeltaTimeCacheValidity which accepts a time value in its
constructor:
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/caching/DeltaTimeCacheValidity.html

   The CacheableSource creates one of these in its constructor,  and
CacheableSourceFactory keeps a java.util.Map associating urls with
CacheValiditys that are in the cache.  The two are compared to decide
whether or not to refresh the cache as well as what to return for
getLastModified().  At the moment the time value is hard coded
(I'm using 15 minutes).
I did consider using a Generator to do this, and to be honest, I've
forgotten why I abandoned that effort.
Charles

Reinhard Pötz wrote:

Charles,

Nice to hear this!

One question: How do you set the cache validity time e.g. 60 minutes if
you use a source?
Regards,
Reinhard
 

-Original Message-
From: Charles Yates [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: Re: caching

   I am curently testing a 'CacheableSource' and 
'CacheableSourceFactory' that does these things. Its not 
ready for prime time yet but it does do the things mentioned 
here.  Used like this:

cache://http://www.unreliableserver.com/news.rdf
cache://cocoon://resource/that/takes/a/long/time
  It uses DeltaTimeCacheValidity.  If the validity has 
expired, it returns the resouce from the cache and updates it 
in another thread.

   I'll report back when its ready.

Charles

Carsten Ziegeler wrote:

   



 

-Original Message-
From: Reinhard Pötz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: RE: caching
  

   

From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Reinhard Pötz 
wrote:


 

Do you know whether there is some mechanism to get the old
  

   

(=expired)


 

content if the external source is not available after it
  

   

expired?
  

   

No, it's not possible.


 

At which 'level' would you solve that problem? Would you write a 
special generator?

  

   

Yes, exactly.

But I'm not sure if this is a good solution. If the 
 

external source 
   

is not available, you usually get a timeout (4 or 5 minutes?). So, 
you have to wait for this timeout and then serve from the 
 

cache; this 
   

time is too long for the casual user.

I would suggest that you always serve from the cache even if the 
content has expired. If it has expired you will the cache in the 
background. This can be done in a special generator as well.


 

Am I right you would write a background component that tries to 
refresh all expired content of the cache and until it is 
   

updated the 
   

'old' version could be used.
  

   

Yes.



 

Would this fit in the already existing pipeline-expires and 
pipeline-caching concepts?

  

   

This would be two different parts, so the
caching algorithm works as always and your generator does 
 

his work. Of 
   

course, your generator can be still cacheable and used by 
 

the caching 
   

pipeline.

Carsten

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



-
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: Content editor [was: Re: A note about the best(?) (cocoon-)development environment ...]

2003-02-27 Thread Joerg Heinicke
Hallo Markus,

ich nehme mal an, dass Deutsch kein Problem für dich darstellt - das 
macht die Sache für mich auch einfacher ... Die leichte Verzögerung 
(immerhin fast 3 Wochen) liegt an den Diplomprüfungen, die ich in dieser 
Zeit schreiben musste. Bin jetzt bei 1400 ungelesenen Cocoon-Mails.

Aber mal zum Thema: Ja, unsere Firma (www.virbus.de) hat eine Lösung 
programmiert, mit der Content mit OpenOffice gepflegt werden kann. Der 
Code gehört allerdings nicht mehr uns, so dass ich nicht mehr als den 
Ablauf beschreiben kann.

Wir standen vor einem ähnlichen Problem, dass der Kunde den Content per 
Word, zumindest aber WYSIWYG pflegen wollte. Wir haben letztendlich 
OpenOffice durchgesetzt (der Kostenfaktor hat überzeugt) und eine 
Dokumentstrukturierung mittels einer Vorlage vorgegeben. Diese 
OpenOffice-Datei gefüllt mit Content wird von den Kunden per Webformular 
hochgeladen. Cocoon entzippt die Datei und legt die verschiedenen 
XML-Dateien und die enthaltenen Bilder im Dateisystem ab. HTML wird aus 
den verschiedenen Dateien dann on the fly erzeugt (zu sehen unter 
www.ekommunen.de die Nachrichten).
Noch ein paar Kommentare: Sehr wichtig ist die Strukturierung der 
Dokumente. Es reicht nicht nur die Formattierung zu ändern. Je komplexer 
die Dateien werden, desto komplizierter werden natürlich auch die 
XSL-Stylesheets. Ich möchte behaupten, dass auch bei 
best-strukturiertesten Dokumenten eine gehörige Portion XSL-Wissen nötig 
ist. Es bleibt ja immer noch eine relativ flache XML-Datei, sprich mit 
wenig Hierarchie.
Eine andere Frage bleibt natürlich die Umstellung von Word auf 
OpenOffice. Ich weiß zwar nicht, wie weit fortgeschritten das 
POI-Projekt (http://jakarta.apache.org/poi/index.html) ist, aber 
eventuell kann man damit bereits vernünftiges XML aus Word erzeugen. Es 
gab auch mal einen POI-Generator in Cocoon - Qualität unbekannt. 
Word-HTML halte ich persönlich für eine schlechte Idee.
Eine andere Idee wäre noch der vorgeschlagene WYSIWYG-XML-Editor XXE von 
XMLMind. Allerdings ist das eine noch größere Umstellung für 
Word-Nutzer. Der ist deutlich technik-orientierter und setzt auch ein 
gewisses XML-Wissen voraus. DTD- oder Schema-getrieben würde das 
Ergebnis aber immerhin sehr strukturiert sein. Bei uns wird der 
eingesetzt für technische Dokumentation mit Docbook. Nicht jeder 
schreibt gern pures XML, obwohl ich persönlich das immer noch bevorzuge.

Ich hoffe, ich konnte dir einen gewissen Einblick geben. Wenn du Fragen 
hast, stehe ich natürlich gern zur Verfügung. Es gilt eigentlich nur 
abzuwägen zwischen der Umstellung der 30 Dokumentatoren und dem Aufwand 
für die Implementierung ;-)

Jörg

Markus Vaterlaus wrote:
Hi there,

I'm just facing the same problem as you do. About 30 persons are 
contributing to our documentation (a single document runs from 10 to 100 
pages with about as much graphics in it). Actually all this is done in 
MS Word. I have the Vision that in the near future all this content will 
no longer be stored in a proprietary format. Instead of that it will be 
stored in XML and cocoon will be a good helper to manage and publish 
this content. However, for me the biggest problem actually is, what kind 
of alternatives for an editor are existing? All users are mentally bound 
to Word. They like it's functionality, it's ability to write in 
WYSIWYG-mode et cetera. Actually I'm thinking about using OpenOffice as 
an editor. Has anyone of you cocoonistas any experiences or best 
practices on this behalf (and also on the interaction with cocoon)?

--mv

Am Samstag, 08.02.03 um 20:28 Uhr schrieb Robert Simmons:

snip/


The only other comment I have is that I'm still searching for a content
editor for Static XML. I'm currently investigating using adobe 
FrameMaker.
The idea being that I would have a WYSIWYG way of editing documents 
that any
one of my clients could use and I could write XSLT processors to 
convert that
to the web format using cocoon. Right now the current XML editors are too
primitive. Usable for a programmer but for a corporate document 
jockey, no
chance.

-- Robert

/snip


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


ChartTransformer problems (deleting tag names)

2003-02-27 Thread Mark H
I'm trying to get chart transformer working but it seems to be deleting the
tag names in the output. I'm not sure if this is a cocoon issue or
chartTransformer. Anybody else come across this?

Mark

output:

 xmlns=http://www.w3.org/2000/svg; xmlns:chart=http://ipzs.it/chart;
fill-opacity=1 color-rendering=auto color-interpolation=auto
stroke=black text-rendering=auto stroke-linecap=square width=300
stroke-miterlimit=10 shape-rendering=auto stroke-opacity=1
fill=black stroke-dasharray=none font-weight=normal stroke-width=1
height=250 font-family='sansserif' font-style=normal
stroke-linejoin=miter font-size=12 stroke-dashoffset=0
image-rendering=auto
 id=genericDefs/

 id=defs1
 clipPathUnits=userSpaceOnUse id=clipPath1
 d=M0 0 L300 0 L300 250 L0 250 L0 0 Z/
/
...

sitemap:

map:match pattern=chart
map:generate src=someChart.xml/
map:transform type=chart/
map:serialize type=xml/
/map:match

input (someChart.xml):

?xml version=1.0 encoding=UTF-8?
chart:chart xmlns:chart=http://ipzs.it/chart;
  chart:definition
chart:seriesdefinition
  chart:series id=sales/
/chart:seriesdefinition
  /chart:definition
  chart:dataset
chart:categories
  chart:category label=January/
  chart:category label=February/
  chart:category label=March/
/chart:categories
chart:seriesdata
  chart:seriesgroup series=sales
chart:item category=January value=7127/
chart:item category=February value=1673/
chart:item category=March value=3661/
  /chart:seriesgroup
/chart:seriesdata
  /chart:dataset
/chart:chart



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



Re: Content editor [was: Re: A note about the best(?) (cocoon-)development environment ...]

2003-02-27 Thread Joerg Heinicke
Sorry, this mail shouldn't go to the list, but to Markus Vaterlaus.

Joerg Heinicke wrote:
Hallo Markus,

ich nehme mal an, dass Deutsch kein Problem für dich darstellt - das 
macht die Sache für mich auch einfacher ... Die leichte Verzögerung 
(immerhin fast 3 Wochen) liegt an den Diplomprüfungen, die ich in dieser 
Zeit schreiben musste. Bin jetzt bei 1400 ungelesenen Cocoon-Mails.

Aber mal zum Thema: Ja, unsere Firma (www.virbus.de) hat eine Lösung 
programmiert, mit der Content mit OpenOffice gepflegt werden kann. Der 
Code gehört allerdings nicht mehr uns, so dass ich nicht mehr als den 
Ablauf beschreiben kann.

Wir standen vor einem ähnlichen Problem, dass der Kunde den Content per 
Word, zumindest aber WYSIWYG pflegen wollte. Wir haben letztendlich 
OpenOffice durchgesetzt (der Kostenfaktor hat überzeugt) und eine 
Dokumentstrukturierung mittels einer Vorlage vorgegeben. Diese 
OpenOffice-Datei gefüllt mit Content wird von den Kunden per Webformular 
hochgeladen. Cocoon entzippt die Datei und legt die verschiedenen 
XML-Dateien und die enthaltenen Bilder im Dateisystem ab. HTML wird aus 
den verschiedenen Dateien dann on the fly erzeugt (zu sehen unter 
www.ekommunen.de die Nachrichten).
Noch ein paar Kommentare: Sehr wichtig ist die Strukturierung der 
Dokumente. Es reicht nicht nur die Formattierung zu ändern. Je komplexer 
die Dateien werden, desto komplizierter werden natürlich auch die 
XSL-Stylesheets. Ich möchte behaupten, dass auch bei 
best-strukturiertesten Dokumenten eine gehörige Portion XSL-Wissen nötig 
ist. Es bleibt ja immer noch eine relativ flache XML-Datei, sprich mit 
wenig Hierarchie.
Eine andere Frage bleibt natürlich die Umstellung von Word auf 
OpenOffice. Ich weiß zwar nicht, wie weit fortgeschritten das 
POI-Projekt (http://jakarta.apache.org/poi/index.html) ist, aber 
eventuell kann man damit bereits vernünftiges XML aus Word erzeugen. Es 
gab auch mal einen POI-Generator in Cocoon - Qualität unbekannt. 
Word-HTML halte ich persönlich für eine schlechte Idee.
Eine andere Idee wäre noch der vorgeschlagene WYSIWYG-XML-Editor XXE von 
XMLMind. Allerdings ist das eine noch größere Umstellung für 
Word-Nutzer. Der ist deutlich technik-orientierter und setzt auch ein 
gewisses XML-Wissen voraus. DTD- oder Schema-getrieben würde das 
Ergebnis aber immerhin sehr strukturiert sein. Bei uns wird der 
eingesetzt für technische Dokumentation mit Docbook. Nicht jeder 
schreibt gern pures XML, obwohl ich persönlich das immer noch bevorzuge.

Ich hoffe, ich konnte dir einen gewissen Einblick geben. Wenn du Fragen 
hast, stehe ich natürlich gern zur Verfügung. Es gilt eigentlich nur 
abzuwägen zwischen der Umstellung der 30 Dokumentatoren und dem Aufwand 
für die Implementierung ;-)

Jörg

Markus Vaterlaus wrote:

Hi there,

I'm just facing the same problem as you do. About 30 persons are 
contributing to our documentation (a single document runs from 10 to 
100 pages with about as much graphics in it). Actually all this is 
done in MS Word. I have the Vision that in the near future all this 
content will no longer be stored in a proprietary format. Instead of 
that it will be stored in XML and cocoon will be a good helper to 
manage and publish this content. However, for me the biggest problem 
actually is, what kind of alternatives for an editor are existing? All 
users are mentally bound to Word. They like it's functionality, it's 
ability to write in WYSIWYG-mode et cetera. Actually I'm thinking 
about using OpenOffice as an editor. Has anyone of you cocoonistas any 
experiences or best practices on this behalf (and also on the 
interaction with cocoon)?

--mv


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


RE: caching

2003-02-27 Thread Reinhard Pötz
 From: Charles Yates [mailto:[EMAIL PROTECTED] 
 
   It uses DeltaTimeCacheValidity which accepts a time value in its
 constructor:
 
 http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/caching
 /DeltaTimeCacheValidity.html
 
 The CacheableSource creates one of these in its 
 constructor,  and CacheableSourceFactory keeps a 
 java.util.Map associating urls with CacheValiditys that are 
 in the cache.  The two are compared to decide whether or not 
 to refresh the cache as well as what to return for 
 getLastModified().  At the moment the time value is hard 
 coded (I'm using 15 minutes).
  I did consider using a Generator to do this, and to be 
 honest, I've forgotten why I abandoned that effort.

Basically I think a source would be a good idea because it's more
flexible than a generator. 
As already mentioned I don't know how to set the expiration time. 

If you use a source the only way to pass a parameter is the source
string itself (at least AFAIK). I'm not sure if something like

cache:3h//cocoon://resource/that/takes/a/long/time  or
cache:100m//cocoon://resource/that/takes/a/long/time

would be a good idea.

What do you think?

Regards,
Reinhard


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



Re: xsp action sample doesn't work

2003-02-27 Thread Litrik De Roy
What does your sitemap look like ?

Litrik De Roy
www.litrik.com


- Original Message -
From: joni santoso [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 8:08 AM
Subject: xsp action sample doesn't work


 Hi,

 I tried the tutorial in wiki site. but it seemed not
 working. can anyone tell me why?

 regards,

 the message :

 type fatal

 message Language Exception

 description org.apache.cocoon.ProcessingException:
 Language Exception:
 org.apache.cocoon.components.language.LanguageException:
 Could not load class for program

'org\apache\cocoon\www\file_\C_\tomcat4112\webapps\cocoon\my_xsp_action_xsp'
 due to a java.lang.ClassNotFoundException:
 org.apache.cocoon.www.file_.C_.tomcat4112.webapps.cocoon.my_xsp_action_xsp

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 stack-trace

huge stack trace deleted


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



Re: caching

2003-02-27 Thread Charles Yates
Reinhard Pötz wrote:

As already mentioned I don't know how to set the expiration time. 

If you use a source the only way to pass a parameter is the source
string itself (at least AFAIK). I'm not sure if something like
cache:3h//cocoon://resource/that/takes/a/long/time  or
cache:100m//cocoon://resource/that/takes/a/long/time
would be a good idea.

What do you think?

Regards,
Reinhard
 

Yes, that is a good idea.  I was planning on something like this 
eventually and
would be simple to implement.  One complication is that this might allow for
conflicting expirations for the same resource.  My guess is that this would
not be a major problem.
I remember now why I stopped trying to do this with a Generator.  It
was because FileGenerator was Poolable and I needed features of a
singleton that SourceFactory gave me, and as you mention, the greater
flexibility that a Source gives you.

Charles



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


RE: ChartTransformer problems (deleting tag names)

2003-02-27 Thread Luca Morandini
 -Original Message-
 From: Mark H [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 8:13 PM
 To: Cocoon-Users
 Subject: ChartTransformer problems (deleting tag names)


 I'm trying to get chart transformer working but it seems to be deleting the
 tag names in the output. I'm not sure if this is a cocoon issue or
 chartTransformer. Anybody else come across this?

Mark,

I presume this is not a ChartTransformer issue, since your input is the same minimal 
sample we used in different environments
(Solaris, Windows 2000), with different servlet containers (Tomcat, WebLogic, 
Jetty)... though we tested it only under Cocoon
2.0.3... hmmm... which Cocoon version are you using ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


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



RE: ChartTransformer problems (deleting tag names)

2003-02-27 Thread Mark H
Luca,

I'm using version 2.1 (Tomcat, W2K). I suspect it is a cocoon issue. I've
serialized the svgGenerator to the console and it seems ok, somewhere after
where it streams it to the contentHandler that it seems to strip out the tag
names. It could be the xml serializer, though the svg serializer seems to
have problems with it also.

Mark

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]
Sent: 27 February 2003 08:06PM
To: [EMAIL PROTECTED]
Subject: RE: ChartTransformer problems (deleting tag names)


 -Original Message-
 From: Mark H [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 8:13 PM
 To: Cocoon-Users
 Subject: ChartTransformer problems (deleting tag names)


 I'm trying to get chart transformer working but it seems to be deleting
the
 tag names in the output. I'm not sure if this is a cocoon issue or
 chartTransformer. Anybody else come across this?

Mark,

I presume this is not a ChartTransformer issue, since your input is the same
minimal sample we used in different environments
(Solaris, Windows 2000), with different servlet containers (Tomcat,
WebLogic, Jetty)... though we tested it only under Cocoon
2.0.3... hmmm... which Cocoon version are you using ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


-
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: Transformer problem in Cocoon 2.1

2003-02-27 Thread Mark H
 I'm trying to get chart transformer working but it seems to be deleting
the
 tag names in the output.

The writeSource transformer does the same thing when there is a default
namespace specified (SVG namespace in this case). Anybody come across this
general transformer problem in Cocoon 2.1?

Mark

-Original Message-
From: Mark H [mailto:[EMAIL PROTECTED]
Sent: 27 February 2003 08:18PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: ChartTransformer problems (deleting tag names)


Luca,

I'm using version 2.1 (Tomcat, W2K). I suspect it is a cocoon issue. I've
serialized the svgGenerator to the console and it seems ok, somewhere after
where it streams it to the contentHandler that it seems to strip out the tag
names. It could be the xml serializer, though the svg serializer seems to
have problems with it also.

Mark

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]
Sent: 27 February 2003 08:06PM
To: [EMAIL PROTECTED]
Subject: RE: ChartTransformer problems (deleting tag names)


 -Original Message-
 From: Mark H [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 8:13 PM
 To: Cocoon-Users
 Subject: ChartTransformer problems (deleting tag names)


 I'm trying to get chart transformer working but it seems to be deleting
the
 tag names in the output. I'm not sure if this is a cocoon issue or
 chartTransformer. Anybody else come across this?

Mark,

I presume this is not a ChartTransformer issue, since your input is the same
minimal sample we used in different environments
(Solaris, Windows 2000), with different servlet containers (Tomcat,
WebLogic, Jetty)... though we tested it only under Cocoon
2.0.3... hmmm... which Cocoon version are you using ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


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






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



Extra-classpath problem

2003-02-27 Thread Yvonne Carpegna
Hi,

 I have the following configuration:
-redhat 8.0
-tomcat 4.1.18
-cocoon 2.0.4
I'm trying to use javabeans in order to call them from .xsp pages but I have
a
question.
When I put the .class files or .jar file under /WEB-INF/classes or
/WEB-INF/lib, everything works but I would like to put those files under
another directory (for example under
/tomcat4.1/webapps/cocoon/mount/mysite/classes or under
/tomcat4.1/webapps/cocoon/mount/mysite/lib).
I have seen these lines in web.xml file (located in
/Tomcat4.1/webapps/cocoon/WEB-INF):

!--
  This parameter allows to specify additional directories or jars
  which Cocoon should put into it's own classpath.
  Note that you must separate them using the platforms path.separator
  (: for *nix and ; for Windows systems). Also note that absolute
  pathes are take as such but relative pathes are rooted at the context
  root of the Cocoon servlet.

init-param
  param-nameextra-classpath/param-name

param-valueWEB-INF/extra-classes1:/[ABSOLUTE-PATH-TO]/own.jar/param-value

/init-param
--

and so I write:

init-param
  param-nameextra-classpath/param-name

param-value/tomcat4.1/webapps/cocoon/mount/mysite/lib/mybean.jar/param-va
lue
/init-param

but nothing works and in the log file present in /tomcat4.1/logs/, I have
found the following error:


2003-02-24 23:56:54 StandardWrapperValve[Cocoon2]: Servlet.service() for
servlet Cocoon2 threw exception javax.servlet.ServletException: Servlet
execution threw an exception
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.NoClassDefFoundError: mybean/TestBean
 at
org.apache.cocoon.www.mount.mysite.xsp.prove_xsp.generate(/tomcat4.1/work/St
andalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/mount/mysite/xs
p/prove_xsp.java:472)
 at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:258)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
 at
org.apache.cocoon.www.mount.mysite.sitemap_xmap.matchN400071(/tomcat4.1/work
/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/mount/mysite/sit
emap_xmap.java:844)
 at
org.apache.cocoon.www.mount.mysite.sitemap_xmap.process(/tomcat4.1/work/Stan
dalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/mount/mysite at

Re: [Wyonacms-dev] Re: WG: Is there any way to use a scheduler withCocoon ?

2003-02-27 Thread Michael Wechner
Michael Melhem wrote:

On Wed, Feb 26, 2003 at 12:46:56PM +0100, Scherler, Thorsten wrote:
 

Hello group,

is there a way to integrate our scheduler into a cocoon app without installing the whole wyona cms dist.?
   

The avalon cornerstone scheduler already comes with cocoon2.1. Why do we
need another scheduler ?
To be honest, at the time we have decided to implement a Scheduler into 
Wyona (resp. Lenya) I haven't really been aware of the Avalon 
Cornerstone Scheduler (although Giacomo mentioned something like that to 
me, but I think after we already started integrating Quartz).

I don't mind at all to reconsider this, although I think Quartz is quite 
well done and very flexible.

Well, anyway, we tried to implement Quartz as pluggable as possible, 
by which I mean it shouldn't
be too  much effort now to integrate Avalon Cornerstone Scheduler, 
either to replace Quartz or have it
side-by-side.

In the end I think the actual scheduler should only be a specific 
implementation, which
is able to interpret an XML made up of triggers, jobs and tasks (and is 
having an API).

ContinuationsManagerImpl.java uses this scheduler for example.

Regards,
Michael
 

Please have a look on the following mail!

Thank you very much!

-Urspr?ngliche Nachricht-
Von: MAHE Vincent FTRD/DIH/REN [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 26. Februar 2003 12:41
An: [EMAIL PROTECTED]
Betreff: RE: Is there any way to use a scheduler with Cocoon ?
Hello,

Yes but I need to install the whole Wyona whereas I'm only interested in the scheduler.

No, we integrated Quartz as a Servlet, which is starting the scheduler 
during init.

But yes, if you want to use the web user interface, which is dependent 
on Cocoon and Wyona.

My webapp has nothing to do with a Content Management and Publishing System.

I just want to use the scheduler of Wyona in my webapp ... do you have any simple integration example ?

Take a look at the unipublic publication, where you can schedule 
articles to be published by a date trigger.

Or take a look at the oscom publication. where RSS feeds are pulled in 
on a regular basis.

Thanks

Michael

Vincent

-Message d'origine-
De : Scherler, Thorsten [mailto:[EMAIL PROTECTED]
Envoy? : mercredi 26 f?vrier 2003 11:15
? : [EMAIL PROTECTED]
Objet : AW: Is there any way to use a scheduler with Cocoon ?
Hello Vincent,

http://www.wyona.org/docs/xdocs/scheduler.html

wyona is a Open Source CMS and based on Cocoon and Java. 

Just have a look.

p.s. It will hopefully become lenya in the near future and part of ASF

King regards
Thorsten
-Urspr?ngliche Nachricht-
Von: MAHE Vincent FTRD/DIH/REN [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 26. Februar 2003 11:09
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Is there any way to use a scheduler with Cocoon ?


Has anyone managed to integrate a Java scheduler in a webapp using Cocoon 2.0 ?

Some people (Martin Holz for instance) on the net are talking about Jakarta CornerStone Scheduler but I can't find any example.

Vincent

   

___
WyonaCMS-dev mailing list
[EMAIL PROTECTED]
http://mail.wyona.org/cgi-bin/mailman/listinfo/wyonacms-dev
 



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


Downloading Cocoon 2.1 with CVS ?

2003-02-27 Thread Mark H
The dev snapshot section seems to be empty. Whats the CVS command for
version 2.1 dev? Want to see if a more up to date version will solve the
transformer/default-namespace problem/bug.

Thx, Mark



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



Passing format to DateInputModule

2003-02-27 Thread Alex Romayev
Hi,

It looks like DateInputModule has changed and doesn't
accept format like it used to.  Here is what I used to
be able to do in cocoon.xconf:

component-instance
class=org.apache.cocoon.components.modules.input.DateInputModule
logger=core.modules.input name=my-date
  format-MM-dd/format
/component-instance

However the input module now ignores the specified
format.

Also, is cocoon.xconf the only place where the format
can be specified, is it possible to do it in the
sitemap?

Thanks,
-Alex

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



getting a folder to be seen

2003-02-27 Thread Melih Onvural
how do i get cocoon to recognize that I have a folder with XML files 
that I want parsed and shown on a website in its folder?
I'm running Mac OS X 10.2.4 with Apache 1.3.17 and Tomcat 2.0 (i 
think). The cocoon folder was built as part of the Tomcat
binary. thanks in advance,

melih

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


Filedownload

2003-02-27 Thread Kavita Bansal
Title: Filedownload





Hi


How can I download a file from Web server to the client machine through cocoon.


Thisis the way to be done in a servlet
response.setContentType(APPLICATION/OCTET-STREAM);
response.setHeader(Content-Disposition,attachment; filename=\+ filename + \);
java.io.FileInputStream fileInputStream =new java.io.FileInputStream(filepath+filename);
int i;
while ((i=fileInputStream.read()) != -1) {
out.write(i);
}
fileInputStream.close();
out.close();


How is this code to be done in cocoon, since the response object in cocoon has no function setContentType(). 


Thanx



 INTIQUA International 
 Intelligent Solutions, Quality Execution


Note: The information and data contained in this message (and attachments) may be privileged and confidential and protected from disclosure to any party or parties apart from the intended recipient. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.





AW: Filedownload

2003-02-27 Thread Sternath Elmar
Title: Filedownload



Hi,

I 
think the ResourceReader should do what you want.

Regards,
Elmar

  -Ursprüngliche Nachricht-Von: Kavita Bansal 
  [mailto:[EMAIL PROTECTED]Gesendet: Freitag, 28. Februar 
  2003 07:12An: [EMAIL PROTECTED]Betreff: 
  Filedownload
  Hi 
  How can I download a file from Web server to the 
  client machine through cocoon. 
  Thisis the way to be done in a servlet 
  response.setContentType("APPLICATION/OCTET-STREAM");response.setHeader("Content-Disposition","attachment; 
  filename=\""+ filename + "\"");java.io.FileInputStream fileInputStream 
  =new java.io.FileInputStream(filepath+filename);int i;while 
  ((i=fileInputStream.read()) != -1) 
  {out.write(i);}fileInputStream.close();out.close(); 

  How is this code to be done in cocoon, since the 
  response object in cocoon has no function setContentType().  
  Thanx 
    
  INTIQUA International 
   Intelligent Solutions, 
  Quality Execution   Note: The 
  information and data contained in this message (and attachments) may be 
  privileged and confidential and protected from disclosure to any party or 
  parties apart from the intended recipient. If the reader of this message is 
  not the intended recipient, or an employee or agent responsible for delivering 
  this message to the intended recipient, you are hereby notified that any 
  dissemination, distribution or copying of this communication is strictly 
  prohibited. If you have received this communication in error, please notify us 
  immediately by replying to the message and deleting it from your 
  computer.