Recherche information sur les compatibilités de fonction nement entre cocoon et tomcat

2006-06-28 Thread CHEVOIR Jean Marie ROSI/SI CLIENT


Bonjour,

Je recherche un document ou un lien permettant de connaitre la compatibilités
entre les versions de cocoon et de tomcat (voir avec le serveur jonas).

exemple :

Cocoon 2.1.4
Tomcat :4.1
Tomcat :5.0.28
Tomcat :5.0.30

Cocoon 2.1.9
Tomcat :4.1
Tomcat :5.0.28
Tomcat :5.0.30


Merci d'avance

Cordialement



Ce message et toutes les pieces jointes (ci-apres le message) sont 
confidentiels et etablis a l'intention exclusive de
ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. Le Groupe France 
Telecom decline toute responsabilite au titre de
ce message s'il a ete altere, deforme ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire 
immediatement et d'avertir l'expediteur.
*
This message and any attachments (the message) are confidential and intended 
solely for the addressees. Any unauthorised
use or dissemination is prohibited.
Messages are susceptible to alteration. France Telecom Group shall not be 
liable for the message if altered, changed or
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.


Re: Recherche information sur les compatibilité s de fonctionnement entre cocoon et tomcat

2006-06-28 Thread Sylvain Wallez
CHEVOIR Jean Marie ROSI/SI CLIENT wrote:
 Bonjour,

 Je recherche un document ou un lien permettant de connaitre la compatibilités
 entre les versions de cocoon et de tomcat (voir avec le serveur jonas).

 exemple :

 Cocoon 2.1.4
 Tomcat :4.1
 Tomcat :5.0.28
 Tomcat :5.0.30

 Cocoon 2.1.9
 Tomcat :4.1
 Tomcat :5.0.28
 Tomcat :5.0.30
   

Cocoon 2.1.x est compatible avec les servlets 2.3. Tomcat 4.x est
implémente les servlets 2.3 et Tomcat 5.x implémente les servlets 2.4.

Toutes les configurations listées doivent donc en principe fonctionner
sans problème.

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Tomcat / Cocoon Logging Configuration

2006-06-28 Thread E. Martens
Hi all,

after installing Cocoon to my Tomcat Server, some conflicts occur in the 
logging. I cannot access Tomcat's main page and the manager application anymore.

Cocoon 2.1.9
Tomcat 5.5.17
Win XP, all SP applied

below, I present the log and the Cocoon configuration entries.
Thank you very much for any Help!

%TOMCAT_HOME%/catalina.2006-06-28.log:

28.06.2006 08:14:40 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
C:\Programme\Apache\Tomcat\5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\PHP;C:\Programme\PHP\ext;C:\Programme\Zone
 Labs\ZoneAlarm\MailFrontier;C:\Programme\Apache\src\forrest-0.8\bin
28.06.2006 08:14:42 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
28.06.2006 08:14:42 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3391 ms
28.06.2006 08:14:42 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
28.06.2006 08:14:42 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
28.06.2006 08:14:42 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
28.06.2006 08:15:28 org.apache.catalina.startup.HostConfig deployDescriptor
SCHWERWIEGEND: Error deploying configuration descriptor host-manager.xml
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogKitLogger 
(Caused by java.lang.ClassNotFoundException: 
org.apache.commons.logging.impl.LogKitLogger) (Caused by 
org.apache.commons.logging.LogConfigurationException: 
java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogKitLogger 
(Caused by java.lang.ClassNotFoundException: 
org.apache.commons.logging.impl.LogKitLogger))
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.commons.logging.LogConfigurationException: 
java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogKitLogger 
(Caused by java.lang.ClassNotFoundException: 
org.apache.commons.logging.impl.LogKitLogger)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 26 more
Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.logging.impl.LogKitLogger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at 

Urgent :break statement in xsl

2006-06-28 Thread deepakkumar . sahoo



Hi All,

I
am facing a problem in xsl.I am not sure whether it is possible in xsl
or not.


I
have a xsl:for-each loop .I have a check condition in it.I want
it to do something for the first time check condition is satisfied.After
that it should not do anything.As i have a check condition in the loop
i could not put [position=1] in the xsl:for-each loop.I tried with
declaring a variable
and decreamenting its value if the check
condition is satisfied.But it is not happening.

Basically
i want to break the xsl:for-eachloop if one condition is satisfied.
Below is the code.


xsl:variable name=daslcatagorypath
select='/nos'/
xsl:for-each select=details/dasl:query-result/dasl:resource

   
   
   
   
   
xsl:if
test=d:resourcetype=''
xsl:variable
name=daslfolderpathxsl:value-of select=@dasl:path//xsl:variable
xsl:variable
name=check select=substring-after($daslfolderpath,$daslcatagorypath)/
xsl:if
test=$check!='' and $counter='1'

   xsl:variable name=size select=d:getcontentlength/

   xsl:variable name=kb-size
select=($size div 1000) - ($size mod 1000 div 1000)/

   xsl:value-of select=$kb-size/xsl:text
/xsl:textKB

   xsl:variable name=counter
select='0'/
/xsl:if
/xsl:if
/xsl:for-each


Can anyone suggest me the solution for
it.
Thanks
Regards,
Deepak Kumar Sahoo
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
ForwardSourceID:NT922A
 =-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




RE: Urgent :break statement in xsl

2006-06-28 Thread Jasha Joachimsthal





  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: woensdag 28 juni 2006 
  9:31To: users@cocoon.apache.orgSubject: Urgent :break 
  statement in xslHi All,   
I am facing a problem in xsl.I am not sure whether it is 
  possible in xsl or not.  
 I have a xsl:for-each loop .I have a check 
  condition in it.I want it to do something for the first time check condition 
  is satisfied.After that it should not do anything.As i have a check condition 
  in the loop i could not put [position=1] in the xsl:for-each loop.I 
  tried with declaring a variable and 
  decreamenting its value if the check condition is satisfied.But it is not 
  happening.
   Basically i want to break the xsl:for-eachloop if one condition 
  is satisfied. Below is the code. xsl:variable name="daslcatagorypath" 
  select="'/nos'"/ xsl:for-each 
  select="details/dasl:query-result/dasl:resource" 
 
 

  xsl:if 
  test="d:resourcetype=''"  
 xsl:variable 
  name="daslfolderpath"xsl:value-of 
  select="@dasl:path"//xsl:variable xsl:variable name="check" 
  select="substring-after($daslfolderpath,$daslcatagorypath)"/ 
  xsl:if 
  test="$check!='' and $counter='1'" 
  xsl:variable name="size" select="d:getcontentlength"/ 
  xsl:variable name="kb-size" select="($size div 1000) - ($size mod 1000 div 
  1000)"/
   xsl:value-of 
  select="$kb-size"/xsl:text /xsl:textKB 
  xsl:variable name="counter" select="'0'"/ /xsl:if 
  
  /xsl:if /xsl:for-each Can anyone suggest me the solution for it. [Jasha Joachimsthal]Hi Deepak,a break in a for-each is not possible, but you could try to write a recursive (call-)template that stops calling itself when a certain value has been reached.Jasha Joachimsthal - Hippo Oosteinde 11 1017 WT Amsterdam The Netherlands +31 (0)20 5224466 [EMAIL PROTECTED] www.hippo.nl 


Re: Urgent :break statement in xsl

2006-06-28 Thread Lionel Barth

Hi,

May be you can use a xsl:choose + xsl:when instead of xsl:if :

xsl:variable name=daslcatagorypath select='/nos'/
xsl:for-each select=details/dasl:query-result/dasl:resource
xsl:choose
   

   xsl:when test=d:resourcetype=''
   xsl:variable name=daslfolderpathxsl:value-of 
select=@dasl:path//xsl:variable
   xsl:variable name=check 
select=substring-after($daslfolderpath,$daslcatagorypath)/

   xsl:if test=$check!='' and $counter='1'
   xsl:variable name=size select=d:getcontentlength/
   xsl:variable name=kb-size select=($size div 1000) - 
($size mod 1000 div 1000)/

   xsl:value-of select=$kb-size/xsl:text /xsl:textKB
   xsl:variable name=counter select='0'/
   /xsl:if
   /xsl:when
   /xsl:choose
/xsl:for-each

In fact it does not break the loop but do nothing when the condition is 
not satisfied.


Regards,
Lionel

[EMAIL PROTECTED] a ecrit le 28/06/06 9:31:




Hi All,

I am facing a problem in xsl.I am not sure whether it is 
possible in xsl or not.



I have a xsl:for-each loop .I have a check condition in it.I 
want it to do something for the first time check condition is 
satisfied.After that it should not do anything.As i have a check 
condition in the loop i could not put [position=1] in the 
xsl:for-each loop.I tried with declaring a variable
and decreamenting its value if the check condition is satisfied.But it 
is not happening.


Basically i want to break the xsl:for-eachloop if one 
condition is satisfied.  Below is the code.



xsl:variable name=daslcatagorypath select='/nos'/
 xsl:for-each select=details/dasl:query-result/dasl:resource
  
 
xsl:if test=d:resourcetype=''
xsl:variable name=daslfolderpathxsl:value-of 
select=@dasl:path//xsl:variable
xsl:variable name=check 
select=substring-after($daslfolderpath,$daslcatagorypath)/

xsl:if test=$check!='' and $counter='1'
xsl:variable name=size select=d:getcontentlength/
xsl:variable name=kb-size select=($size div 1000) 
- ($size mod 1000 div 1000)/

xsl:value-of select=$kb-size/xsl:text /xsl:textKB
xsl:variable name=counter select='0'/
/xsl:if
/xsl:if
/xsl:for-each


Can anyone suggest me the solution for it.
Thanks
Regards,
Deepak Kumar Sahoo
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
ForwardSourceID:NT922A
=-=-=

Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



  


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



RE: Urgent :break statement in xsl

2006-06-28 Thread Geert Josten
Hi,

Your question is actually better of on the Mulberry XSL list, but
perhaps here something that will help you..

 xsl:variable name=daslcatagorypath select='/nos'/  
 xsl:for-each select=details/dasl:query-result/dasl:resource 
   
   
 xsl:if test=d:resourcetype='' 
 xsl:variable name=daslfolderpathxsl:value-of 
 select=@dasl:path//xsl:variable 
 xsl:variable name=check 
 select=substring-after($daslfolderpath,$daslcatagorypath)/ 
 xsl:if test=$check!='' and $counter='1' 
 xsl:variable name=size 
 select=d:getcontentlength/ 
 xsl:variable name=kb-size select=($size 
 div 1000) - ($size mod 1000 div 1000)/ 
 xsl:value-of select=$kb-size/xsl:text 
 /xsl:textKB 
 xsl:variable name=counter select='0'/ 
 /xsl:if 
 /xsl:if
 /xsl:for-each 

If you are only interested in one occurrence of a list of nodes, why not
selecting just one, instead of looping over the list and triggering for
one case?

First of all, you can add the check statement into the select by putting
it in a predicate:

select=details/dasl:query-result/dasl:resource

Becomes:


select=details/dasl:query-result/dasl:resource[substring-after(@dasl:pa
th, $daslcatagorypath)]

And if you are only interested in the first (in document order), put the
lot between braces and add [1] to the end:


select=(details/dasl:query-result/dasl:resource[substring-after(@dasl:p
ath, $daslcatagorypath)])[1]

This expression always results in one node, ruling out the need for a
for-each. That should circumvent your problem..

Kind regards,
Geert
   
 
Drs. G.P.H. Josten
Consultant
 
 

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.

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



Crazy Cocoon cache

2006-06-28 Thread Fernando.Matomira








Why is the cocoon cache caching the other non-cocoon contexts
completely?

I didnt do any custom configuration concerning the
cache.

Cocoon 2.1.8



Thanks










Re: Cocoon 2.1.9 Compile Error

2006-06-28 Thread Bertrand Delacretaz

On 6/28/06, Scott Warren [EMAIL PROTECTED] wrote:


...Turns out that it's the JDK (Version 1.5.0_06-b05) that has issues with
compiling the code..


thanks for the info,
-Bertrand

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



Is Lepido abandoned?

2006-06-28 Thread Mikael Olenfalk

Hi!

I just noticed that Lepido (the Cocoon IDE for Eclipse) has been
archived on the Eclipse homepage. Has the project been abandoned or
has it just moved to another location?

Regards,

Mikael

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



Re: Is Lepido abandoned?

2006-06-28 Thread Stavros Kounis

hi mikael

search this list archives. there is a thread about this and silvain's
explanation of what is happened

On 6/28/06, Mikael Olenfalk [EMAIL PROTECTED] wrote:

Hi!

I just noticed that Lepido (the Cocoon IDE for Eclipse) has been
archived on the Eclipse homepage. Has the project been abandoned or
has it just moved to another location?

Regards,

Mikael

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





--
Stavros S. Kounis
Osmosis networks  consulting   http://www.osmosis.gr
Read my weblog at   http://tools.osmosis.gr/blog

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



building Cocoon with Netbeans 5.0

2006-06-28 Thread Stephen Winnall
Has anyone managed to import Cocoon (2.1.8 or 2.1.9) into Netbeans  
5.0 and
build it? I have managed to create a project in Netbeans from  
Cocoon's Ant
scripts, but I keep on getting the following error when I try to  
build it:


init:
init-tasks:
/Users/steve/Documents/NetBeans/Vimia GmbH Cocoon/tools/targets/init- 
build.xml:172: taskdef A class needed by class  
net.sf.antcontrib.platform.ShellScriptTask cannot be found: org/ 
apache/tools/ant/taskdefs/ExecTask

BUILD FAILED (total time: 2 seconds)

By googling, I have found suggestions that ant-contrib.jar might be  
missing, but adding

that makes no difference.

Steve

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



Re: searching with Lucene in bilingual Cocoon site

2006-06-28 Thread Christoph Hermann
Stephen Winnall schrieb:

Hello,

 I tried your suggestion but it has no effect. It still complains that
 the directory
 index does not exist.
 
 I'll take a closer look at the source code, I think.

I do:
map:generate type=search label=searchcontent
map:parameter name=index
value={realpath:{ev:/config/site/base-path}/data/lucene/site} /
/map:generate

So maybe using realpath helps in your case.

HTH
Christoph

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



RE: Importing Hand-made Java Packages For Use in Flowscript

2006-06-28 Thread Geert Josten
 I've implemented the Flowscript idea but am getting the following
 error:
 org.mozilla.javascript.EvaluatorException: 
 file:/c:/Development/martini-peel/cocoonproject/flowscript/ma
 rtini-flow.js,
 line 44: Not a Java class: [JavaPackage 
 org.martini.search.PeelQueryComponent]
 
 I'm using: 
 importClass(Packages.org.martini.search.PeelQueryComponent);
 To import my class.

Are you sure that the required class is available to the Cocoon
environment? E.g. is it in the Web-inf/classes/ tree or is it available
as part of a jar in Web-inf/lib/?

Grtz,
Geert
   
 
Drs. G.P.H. Josten
Consultant
 
 

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.

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



RE: Urgent :break statement in xsl

2006-06-28 Thread Seth Foss



If you move your inner if-test into another template called 
with an apply-templates or call-template, you will be able to use the position() 
function.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 
3:31 AMTo: users@cocoon.apache.orgSubject: Urgent :break 
statement in xsl
Hi All, I am facing a problem in 
xsl.I am not sure whether it is possible in xsl or not. I have a xsl:for-each 
loop .I have a check condition in it.I want it to do something for the first 
time check condition is satisfied.After that it should not do anything.As i have 
a check condition in the loop i could not put [position=1] in the 
xsl:for-each loop.I tried with declaring a variable and decreamenting its value if the check condition is 
satisfied.But it is not happening. Basically i want to break the 
xsl:for-eachloop if one condition is satisfied. Below is the 
code. xsl:variable 
name="daslcatagorypath" select="'/nos'"/ xsl:for-each 
select="details/dasl:query-result/dasl:resource" 
   
   
  
xsl:if 
test="d:resourcetype=''"  
   xsl:variable name="daslfolderpath"xsl:value-of 
select="@dasl:path"//xsl:variable xsl:variable name="check" 
select="substring-after($daslfolderpath,$daslcatagorypath)"/ 
xsl:if 
test="$check!='' and $counter='1'" xsl:variable 
name="size" select="d:getcontentlength"/ xsl:variable 
name="kb-size" select="($size div 1000) - ($size mod 1000 div 1000)"/ 
  
  xsl:value-of select="$kb-size"/xsl:text 
/xsl:textKB
 xsl:variable name="counter" 
select="'0'"/
 /xsl:if   
  /xsl:if /xsl:for-each Can 
anyone suggest me the solution for it. Thanks Regards,Deepak Kumar 
SahooTata Consultancy Services LimitedMailto: 
[EMAIL PROTECTED]Website: http://www.tcs.com ForwardSourceID:NT922A  
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you





Re: portal and forms - no script / styling

2006-06-28 Thread christian bindeballe
Angelo Immediata schrieb:
 Hi Christian.
 Maybe i'm wrong and this means nothing...but in your cocoon.log file I have 
 seen this:
 
 WARN  (2006-06-27) 20:02.21:640 [sitemap.transformer.xslt] 
 (/cocoon/samples/blocks/portal/portal) 
 http-8080-Processor24/TraxErrorListener: 
 file:/D:/_authoring/jakarta-tomcat-5.0.28/webapps/cocoon/samples/blocks/portal/coplets/spmt/stylesheets/aggregate-transform.xsl:7:40
 
 Maybe this can cause your problembut i'm not sure :-)
 Bye,
 Angelo
 

Hi Angelo,

I noticed that, too. But the pipeline matcher in which this transformer
is called processes correctly. The problems I have occur in another
sitemap. It seems it has something to do with the form-binding.

thanks a lot anyway :)

regards, christian


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



RE: Urgent :break statement in xsl

2006-06-28 Thread Geert Josten
Not entirely true..

You can always use the position() function, but it depends on the
context list, what it actually returns. The context list corresponds
more or less to the last issued for-each's select statement or
apply-templates's select statement. Both select's return a node set,
which is ordered according to supplied sort instructions or in document
order by default. That is used as context list.

What you need to do here to be able to use it, is to integrate your
*outer* if statement with the for-each select statement. As mentioned
before, you can add a predicate to your xpath. Inside the loop, you can
do stuff like:

xsl:for-each select=a/b/[EMAIL PROTECTED] = '']
  xsl:if test=position() = 1
..
  /xsl:if
  xsl:if test=position() = last()
..
  /xsl:if
  xsl:if test=not(position() = last())
..
  /xsl:if
/xsl:for-each

You can also use the position() outside a for-each, but might appear to
be confusing for others. By just looking at one template, you cannot say
for sure whether comments and text nodes (like white-space) are counted
as well or not.

Cheers,
Geert

 If you move your inner if-test into another template called 
 with an apply-templates or call-template, you will be able to 
 use the position() function.
 
 
   
 
Drs. G.P.H. Josten
Consultant
 
 

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.
 

 
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 28, 2006 3:31 AM
 To: users@cocoon.apache.org
 Subject: Urgent :break statement in xsl
 
 
 
 
 
 Hi All, 
 
 I am facing a problem in xsl.I am not sure whether it 
 is possible in xsl or not. 
 
 
 I have a xsl:for-each loop .I have a check 
 condition in it.I want it to do something for the first time 
 check condition is satisfied.After that it should not do 
 anything.As i have a check condition in the loop i could not 
 put [position=1] in the xsl:for-each loop.I tried with 
 declaring a variable 
 and decreamenting its value if the check condition is 
 satisfied.But it is not happening. 
 
 Basically i want to break the xsl:for-eachloop if 
 one condition is satisfied.  Below is the code. 
 
 
 xsl:variable name=daslcatagorypath select='/nos'/ 
  xsl:for-each select=details/dasl:query-result/dasl:resource 
   
   
 xsl:if test=d:resourcetype='' 
 xsl:variable name=daslfolderpathxsl:value-of 
 select=@dasl:path//xsl:variable 
 xsl:variable name=check 
 select=substring-after($daslfolderpath,$daslcatagorypath)/ 
 xsl:if test=$check!='' and $counter='1' 
 xsl:variable name=size 
 select=d:getcontentlength/ 
 xsl:variable name=kb-size select=($size 
 div 1000) - ($size mod 1000 div 1000)/ 
 xsl:value-of select=$kb-size/xsl:text 
 /xsl:textKB 
 xsl:variable name=counter select='0'/ 
 /xsl:if 
 /xsl:if 
 /xsl:for-each 
 
 
 Can anyone suggest me the solution for it. 
 Thanks 
 Regards,
 Deepak Kumar Sahoo
 Tata Consultancy Services Limited
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com 
 ForwardSourceID:NT922A
 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain 
 confidential or privileged information. If you are 
 not the intended recipient, any dissemination, use, 
 review, distribution, printing or copying of the 
 information contained in this e-mail message 
 and/or attachments to it are strictly prohibited. If 
 you have received this communication in error, 
 please notify us by reply e-mail or telephone and 
 immediately and permanently delete the message 
 and any attachments. Thank you
 
 


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



Timeout handling for generators?

2006-06-28 Thread Stefan Burkard

hi cocoon users

is there a generator to get external documents with HTTP that has a 
built-in timeout-handling?


the default generator work fine like this:
map:generate src=http://host/path/
but if the requested resource isn't available an error page is coming up.

i'd like to get an atom-feed from blogger.com and everythings works 
fine, but if my site can't reach blogger, it's broken.


i saw there is such a piece of functionality in cocoon-portal-coplets, 
but i didn't find anything in cocoon itself. the wsproxy-generator seems 
to miss a timeout too.


thanks and regards
stefan


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



portal binding forms error

2006-06-28 Thread christian bindeballe
Hi there,

I am trying to edit a file with a form inside the portal. I have the
form-definition -template and -binding all set up. I used the JavaScript
Debugger to sort out where the problem occurs, and it seems that the
binding doesn't work properly. I get an exception in Form.js in line 236
and the error message I get says:

org.apache.cocoon.forms.binding.BindingException: Cannot build binding
at file:/D:/my/path/to/cocoon/abbrev/scrum_bind_xml.xml:25:56

The line in the binding document is this one:

fb:javascript id=id path=@id direction=save

and pos. 56 is right in the word direction.

does direction save in this on-bind element work together with the
attribute save in the identity-element? or do they collide? (see below)

I got this from the form-binding sample and adapted it to my
data-document (i.e. changing the element name from contact to member), I
thought it was necessary, but maybe I don't need it?

fb:identity
 fb:value id=id path=@id direction=load
  fd:convertor datatype=long /
 /fb:value
/fb:identity

fb:on-bind!-- executed on updates AND right after the insert --
 fb:javascript id=id path=@id direction=save
  fb:save-form
   var appValue = jxpathPointer.getValue();
   if (appValue == '') {
var precSiblId =
jxpathContext.getValue(../preceding-sibling::member/@id);
var newId = Number(precSiblId) + 2
jxpathPointer.setValue(newId.toFixed(0));
   }
  /fb:save-form
 /fb:javascript

 fb:value id=team_member-name path=name/
 fb:value id=team_member-contact path=contact/
/fb:on-bind


I hope someone can help me out here, I am kind of confused as to what
all this does.

thank you all in advance,

christian


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



Re: Importing Hand-made Java Packages For Use in Flowscript

2006-06-28 Thread Tricia Williams

Hi,

   I think my problem has to do with the path to the source class that I'm 
referencing.  Where should the class I'm referencing be relative to 
cocoon in order for cocoon to recognize it?  Could I include a .jar 
instead?  Do I need to set anything in cocoon.xconf or the sitemap?


Thanks for any advice!
Tricia

On Tue, 27 Jun 2006, Tricia Williams wrote:


Hi All,

  I have a Cocoon pipeline which could be done with a lot of awkward 
branching, or use Flowscript to abstract out some of the complexity and reuse 
a java class that was built for a similar purpose.  The awkwardness and 
complexity comes from the need to validate and in some cases re-form the 
parameters to call another pipe.  The Flowscript would use the class I 
mentioned to form a uri and then call coocoon.redirectTo(...) to redirect to 
that page.


  I've implemented the Flowscript idea but am getting the following error:
org.mozilla.javascript.EvaluatorException: 
file:/c:/Development/martini-peel/cocoonproject/flowscript/martini-flow.js, 
line 44: Not a Java class: [JavaPackage 
org.martini.search.PeelQueryComponent]


  I'm using: importClass(Packages.org.martini.search.PeelQueryComponent); To 
import my class.


  Does anyone have an understanding of what is causing the error I'm getting 
and can offer me a solution.  Is there an alternate way to build the uri with 
the validation and transformation of parameters in Cocoon?


Thanks,
Tricia

-
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: building Cocoon with Netbeans 5.0

2006-06-28 Thread Stephen Winnall
For future reference: this error below is caused by multiple  
occurrences of

ant-contrib.jar in the classpath.

Steve

On 28 Jun 2006, at 13:17, Stephen Winnall wrote:

Has anyone managed to import Cocoon (2.1.8 or 2.1.9) into Netbeans  
5.0 and
build it? I have managed to create a project in Netbeans from  
Cocoon's Ant
scripts, but I keep on getting the following error when I try to  
build it:


init:
init-tasks:
/Users/steve/Documents/NetBeans/Vimia GmbH Cocoon/tools/targets/ 
init-build.xml:172: taskdef A class needed by class  
net.sf.antcontrib.platform.ShellScriptTask cannot be found: org/ 
apache/tools/ant/taskdefs/ExecTask

BUILD FAILED (total time: 2 seconds)

By googling, I have found suggestions that ant-contrib.jar might be  
missing, but adding

that makes no difference.

Steve

-
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: Importing Hand-made Java Packages For Use in Flowscript

2006-06-28 Thread Jason Johnston
 Hi,

 I think my problem has to do with the path to the source class that
 I'm
 referencing.  Where should the class I'm referencing be relative to
 cocoon in order for cocoon to recognize it?  Could I include a .jar
 instead?  Do I need to set anything in cocoon.xconf or the sitemap?

It just needs to be in the classpath.  For most web applications that
means a JAR file in WEB-INF/lib, or a .class file in WEB-INF/classes
(within a directory structure matching the package hierarchy).

I believe I remember seeing a special configuration value in Cocoon's
WEB-INF/web.xml that allows specifying additional locations to add to the
classpath, if neither of those common locations works for you.


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



Issues with SendMailTransformer

2006-06-28 Thread 321los
Hello,my sitemap:map:transformer name=sendmail src=""> smtphostsmtp.host/smtphost smtpuseruser/smtpuser
 smtppasswordpassword/smtppassword /map:transformer..map:match pattern=htmlarea-success-pipeline map:generate type=jx src=""
 map:transform type=sendmail/ map:serialize type=xml/ /map:matchhtmlarea_success.jx:?xml version=1.0 encoding=ISO-8859-1?
document xmlns:email=http://apache.org/cocoon/transformation/sendmail email:sendmail email:from
[EMAIL PROTECTED]/email:from email:to#{email}/email:to email:subject#{subject}/email:subject email:body#{data1}/email:body /email:sendmail
/documentI changed the htmlarea example to send mails, when submitting the form. But my result looks like that:documentemail:result email:failure to=
[EMAIL PROTECTED]Invalid address/email:failure/email:result/documentSending mails with the sendmail(.xsp) cocoon example works, so the error must be somewhere else...the #{subject}, #{email}, etc. values are also correctly submitted (I tried that with an easier example before).
Does anyone have a clue why I am getting that error (I also tried different email addresses)?Thanks for your helpMarco


Re: Importing Hand-made Java Packages For Use in Flowscript

2006-06-28 Thread Tricia Williams

Hi,

   That's strange... the .jar that contains the class I'm trying to use is 
used by several xsps to generate content with no problem.  I don't 
understand what the difference between the xsp usage and this javascript 
usage is.  Any thoughts?


Tricia

On Wed, 28 Jun 2006, Jason Johnston wrote:


Hi,

I think my problem has to do with the path to the source class that
I'm
referencing.  Where should the class I'm referencing be relative to
cocoon in order for cocoon to recognize it?  Could I include a .jar
instead?  Do I need to set anything in cocoon.xconf or the sitemap?


It just needs to be in the classpath.  For most web applications that
means a JAR file in WEB-INF/lib, or a .class file in WEB-INF/classes
(within a directory structure matching the package hierarchy).

I believe I remember seeing a special configuration value in Cocoon's
WEB-INF/web.xml that allows specifying additional locations to add to the
classpath, if neither of those common locations works for you.


-
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: searching with Lucene in bilingual Cocoon site [SOLVED]

2006-06-28 Thread Stephen Winnall

Hi Christoph

Thank you. That's where I was making my mistake.

The map:generators element should NOT include an index element.

map:generators
map:generator name=search-de  
src=org.apache.cocoon.generation.SearchGenerator
analyzer org.apache.lucene.analysis.de.GermanAnalyzer  
/analyzer

/map:generator

map:generator name=search-en  
src=org.apache.cocoon.generation.SearchGenerator
analyzer  
org.apache.lucene.analysis.standard.StandardAnalyzer /analyzer

/map:generator
/map:generators

As you point out, the map:generate element SHOULD include an index  
parameter
which points at the index files that have been created (in this case  
relative to work-directory):


map:generate type=search-de
map:parameter name=index value=search-de /
/map:generate

map:generate type=search-en
map:parameter name=index value=search-en /
/map:generate

It's easy when you know how... ;-)

Steve

On 28 Jun 2006, at 13:32, Christoph Hermann wrote:


Stephen Winnall schrieb:

Hello,


I tried your suggestion but it has no effect. It still complains that
the directory
index does not exist.

I'll take a closer look at the source code, I think.


I do:
map:generate type=search label=searchcontent
map:parameter name=index
value={realpath:{ev:/config/site/base-path}/data/lucene/site} /
/map:generate

So maybe using realpath helps in your case.

HTH
Christoph

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



Accessing the stack of parameters from an action

2006-06-28 Thread Toby
Hello


How does one access the previous layers of sitemap parameters from
inside an action?  For example in this snippet of code:

resource name=page
  act src=process.xsp type=xsp-action
...

match pattern=article-*
  call resource=page
parameter name=type value=article/
parameter name=id value={1}/
  /call
/match

How would I access class and id from inside the process.xsp action
without passing them explicitly from layer to layer of parameters?  
I'd rather avoid repeating them over and over like this:

resource name=page
  act src=init.xsp type=xsp-action
parameter name=type value={type}/
parameter name=id value={id}/
...

Is it possible?  Should I be doing it in a different way?  I'm asking
because repeating things in a complex pipeline can get messy quite
easily, but I didn't find a solution on the Cocoon docs.


Toby

-- 
Signed/encrypted mail welcome.  GPG/PGP Key-Id: 0x15C5C2EA

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