sending an xml document with POST

2002-11-12 Thread Barbara Post
Hi,

Is there a way to get an XML document from somewhere (xml stream in a normal
pipeline) and POST it through an html form ? Or another way ?

My issue is POSTing something to an XML database (Tamino) with the value of
"_process" request parameter being the document's content.

I tried to use xsl:copy in a stylesheet to fill this value but it did not
work (missing "<" and ">" tags).
I tried something with cinclude transformer but xalan grumbled about
 tag not being where it should...

In fact I want to check the time processing improvement I get instead of
using xml:db driver... this driver makes reads from database very slow
compared to direct reads !! So what about writes ? :-)

Thanks if you have an idea, otherwise don't worry.
Have a nice day, just trying to improve my app...

Babs


__
Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! 
Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




SourceWritingTransformer and sub-sitemap

2002-11-12 Thread Barbara Post
Hi,

I use SourceWritingTransformer 3 times, and the XML stream that is processed
by this transformer is produced by a sub-sitemap. So that my XML database
queries are gathered there.

The bug : my transformer wants to write in the "ino" folder, where is placed
the sub-sitemap. Not the folder of the main sitemap. I tried to understand
the transformer's code but it's a bit too hard for me :-(

So here are the info :
Cocoon CVS from 10/02 with JDK 1.3.1

Main sitemap snippet :

   
   

 
 
  
  
  
  
   
  
  
 

   

and in the same pipeline :



  


writelicensehtmlbody.xsl :


 
 
../licensekeys//htmlbody.h
tml



   

You see that I have to add "../" to the  URI.
I wonder why the call to a sub-sitemap changes some cocoon environment
variable ?...
Is the map:mount misconfigured ?

Thanks a lot,

Barbara

PS : I am just doing cosmetics (to my project), this is why I reappear on
the list...


__
Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! 
Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: URL Theory & Best Practices

2002-11-09 Thread Barbara Post
Oh, I get 406 code, I didn't know this one !!
I have IE6 SP1 on Windows 2000 Pro.

Babs
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "Kjetil Kjernsmo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 09, 2002 11:42 PM
Subject: Re: URL Theory & Best Practices


>
> Uh-oh I'm catching some bad vibs... Can someone do me a favour of
> going to http://www.kjernsmo.net/ with IE6 and see what happens?
>
> The mainpage isn't a big thing, it is pure XHTML, but per the XHTML 1.0
> spec, it is served as text/html, but it is using simple Apache content
> negotation to set that. So, I've got this bad feeling that IE is going
> to ignore the content-type header and just list it as raw XML with no
> stylesheet, because that is what would be a logical consequence of what
> you write. But I can't for the life of me understand how it can be
> standards-compliant...
>
> Best,
>
> Kjetil
> --
> Kjetil Kjernsmo
> Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
> [EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
> Homepage: http://www.kjetil.kjernsmo.net/
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> __
> Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo !
> Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w


__
Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! 
Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: problem with session transformer together with cocoon:/ pseudo protocol

2002-10-18 Thread Barbara Post
I cannot help you but when I use a pipeline like your 
and want to aggreagte its output by a map:aggregate and map:part
src="cocoon://auth.xml", I get an infinite loop. Maybe issues are linked...
Anyway I have unfortunately other projects for now...

Babs
- Original Message -
From: "Johann Romefort" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 4:41 PM
Subject: problem with session transformer together with cocoon:/ pseudo
protocol


> Hi,
>
> I m getting some troubles working with cocoon:/ pseudo protocol and
> the session Transformer.
>
> Basically I have one pipeline that call another using the cocoon:/
protocal.
> In this second pipeline I perform a session transformation to get back
> the profile of the current user with the tag:
>
> 
>
> Here is a  snapeshot of the simplified buggy sitemap:
>
> 
> 
> 
>
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> 
> 
>
> Caused by: java.lang.NullPointerException
>  at
>
org.apache.cocoon.webapps.authentication.context.SessionContextImpl.(Session
> ContextImpl.java:111)
>  at
>
org.apache.cocoon.webapps.authentication.context.SessionContextProviderImpl.
> getSessionContext(SessionContextProviderImpl.java:97)
>  at
>
org.apache.cocoon.webapps.session.components.SessionManager.getReservedConte
> xt(SessionManager.java:315)
>  at
>
org.apache.cocoon.webapps.session.components.SessionManager.getContext(Sessi
> onManager.java:958)
>
>
> It seems that this problem is the same that the one discussed in
> http://www.mail-archive.com/cocoon-users@;xml.apache.org/msg16912.html
>
>
> Any help welcome!
>
> Johann Romefort
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> ___
> Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense
de Wanadoo !
> Profitez du Haut Débit à partir de 30 euros/mois :
http://www.ifrance.com/_reloc/w


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Proposal: Documentation about database connection

2002-10-16 Thread Barbara Post

This is great, I can provide the part for Tamino 3.1, XML native DB.

However, I would need to host a small zip file somewhere, since the
officially released jar is not ok for now... A colleague modified the
classes for it to work with Cocoon.
Within some months changes are expected : version 4.1 of Tamino will be
issued in December so I don't know about the driver's usability
Unfortunately I leave the company the same month (end of internship, looking
for a first job... I live in Paris, France) so won't be able to help more
afterwards. Official link will be provided in what I have to prepare to post
:-) and whic will then only be a summary.

Idea for my page's name : Tamino31;
Let me know when I can link it and where :-)

- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 10:09 AM
Subject: Re: Proposal: Documentation about database connection


I think this is fine. What about to make it in Wiki?

Antonio Gallardo

El Martes, 15 de Octubre de 2002 23:40, Gabriele Domenichini escribió:
> What about setting up a page with the configurations needed to connect
> cocoon to the various database ?
> There is already something but is distributed among web pages, cocoon
> official documentation, mailing lists, etc...
>
> I was thinking about a page in which for any commercial or open source
> databases is written:
> * where to find jdbc drivers
> * how to modify the configuration filles
> * notes about personal experiences
>
> Example:
> Oracle:
> 1. download the drivers from ..
> 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't
> remember sorry)
> 3. web.xml: add the following lines.
> 4. cocoon.xconf: add the following lines.
> 5. sitemap.xmp: add lines like the following
> Notes:..
>
> IBM As400:
> 1. download the drivers from ..
> 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't
> remember sorry)
> 3. web.xml: add the following lines.
> 4. cocoon.xconf: add the following lines.
> 5. sitemap.xmp: add lines like the following
>
> I could do it for theese database and the ideal page is on cocoon wiky.
> If you give me suggestion on where to put it and the mailing list can
> contribute I can start the page
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Storing XML-documents

2002-10-14 Thread Barbara Post

Can't you generate the key with an action and pass it as sitemap parameter
then use SourceWritingTransformer (CVS) ?

What change would be needed for SourceWritingTransformer to be able to write
any format out, and can it do so already ?
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "simo kauranen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 5:17 PM
Subject: Storing XML-documents


> Hi,
>
> I would like to store XML-documents after
> transformations to disk (with a store key) in a way
> that I can access it later on with url like
> http://../cocoon/MyDir/Store?key=123456789abcdefg.
>
> Are there any tools to do this (transformation)?
> SourceFileWriter doesn't work because I need to save
> any kind of files and I need to save many documents
> with unique keys. Furthermore, I need the output of
> the pipeline (which saves the document) to be XML to
> the browser.
>
> I could write a new transformer, but if there are this
> kind of transformers, the better.
>
> Simo K.
>
>
> __
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant
>

__
Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Doubt which cocoon-user mailing list couldn't solve

2002-10-11 Thread Barbara Post

To get a PDF, you must have an XML file. See if you can use a pipeline which
outputs xml and another one which matches the link to the pdf for example,
so that the second pipeline can call the first one.

Or, after the xsp transformation, use an xsl fo stylesheet (transform
src="myxslfo.xsl") then serialize as pdf (serialize type="fo2pdf"). This
should work fine.

Just my 2 cents,

Babs
- Original Message -
From: "Sreenivasan N." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 1:47 PM
Subject: Doubt which cocoon-user mailing list couldn't solve


> Hi Stefano
>
> This is sreenivasan from India. Infact i am contacting you for the second
> time personally.  I am working for a company as a consultant to develop an
> xml based intranet and also as a add-on to a product.
>
> The requirement is something like this. We have got two set of category
> like admin and user. The admin will be able to create templates for the
> users where the user enter data and xml file is generated (We are using
> Chiba for this ). Is there any good mean to achieve this. Now there is a
> performance issue is there.
>
> We will be generating html, xml, rtf and pdf from a query to database
based
> on a form. That is XSP page is loaded with listbox where value to be send
> as parameter is taken from the database. Once the query is executed the
> user should have a flexible to take the output as pdf, rtf. Now the
problem
> is our sitemap is like this
>
> 
> 
> 
> 
> 
> 
>
> When we click on the link the xsp with parameter data is loaded. After
> query i couldn't capture the output if i want to generate pdf since the
> pipeline to over.
>
> And also is there any way to generate charts where data comming from
> database? we could generate pie chart from a static xml but legends are
not
> dynamic.
>
> I will be grateful if you suggest someway because we have to finalize our
> requirement.
>
> Regards
> Sreenivasan.
>
>
>
>
>
>
>
> "Attitudes are much more important than aptitudes."
> "Nothing is impossible for a willing heart"
>
> Sreenivasan N.
> Sony SARD
> Ext 5816
>
> Email. [EMAIL PROTECTED]
> Per: [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Action and ArrayList

2002-10-09 Thread Barbara Post

My 2 cents : since Cocoon reuses Actions instances, if I parse and store
sitemap parameters in Array Lists (ok it is special...) it is useful to
reset these ArrayLists... you guess why. ;-)

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: how do you document your projects?

2002-10-09 Thread Barbara Post

I plainly :

- produce "good" javadoc of the few java classes I create,
- comment my sitemap and xsl while developping them,
- produce a text (Word) document explaining more in detail pipelines' and
xsl' roles... and also some notes about the Cocoon components I used (what
they are for), and since I did not use every component available...

But I am not creating a new system, just redesigning an old one. So my
documents contain some info on Cocoon and much on what I developped.

IMHO, you might think project documenting needs 15% of project developping
time, and better a lot of comments in the code to be reordered afterwards.

Babs
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 4:33 PM
Subject: how do you document your projects?


> Hi,
>
> i am just wondering: if and how do you document your cocoon projects? I
> don´t mean cocoon itself, but the projects you build up on cocoon.
>
> For the moment i am working on my own, but i  think if i should give the
> results in someoneelse´s hand, noone could easily understand what i did
and
> why i did it. Also when developing in a team, a project documentation
would
> be useful. (Besides that i sometimes loose my own structure ;)
>
> Are there any thougths about how to structure a cocoon project
> documentation? Is there maybe a graphical notation on what happens inside
> cocoon? E. g. which context is mapped where to and what kind of
generators,
> transformators etc. are applied? Any tools you can recommend?
>
> best regards
> Jörn
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon 2.1 + Tomcat 4.1 + reloadable="true"

2002-10-09 Thread Barbara Post

Well, clearing Tomcat's "work" directory helps. Is this more Tomcat or
Cocoon-related then ? Since we know both of them use caching... We know that
Cocoon had (still has) some caching issues.

I also had hang ups of Tomcat after an error, thanks for the more precise
info you provided !

Barbara
- Original Message -
From: "Ilya A. Kriveshko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 3:21 PM
Subject: Re: Cocoon 2.1 + Tomcat 4.1 + reloadable="true"


> I am running Tomcat 3.3 on Win2k, and a recent snapshot of Cocoon
> from the HEAD of CVS. I am periodically having the same problems
> whereby Tomcat  is running out of memory when either Tomcat or
> Cocoon are reloading some stuff.
> Is it possible that some cache collections are not being cleared?
>
> Also, given that I'm having a similar problem with Tomcat 3.3, is
> Cocoon a more plausible suspect?
>
> On another note, every once in a while upon auto-reloading some of
> the updated components either Tomcat or Cocoon hang up, and stop
> responding to requests. CPU usage spikes at first, but then goes down.
> Seems like a dead-lock. However, I have saved the full VM thread
> dump, and cannot see anything unusual there that would indicate a
> deadlock of any sort. (BTW, If you are interested, I can post the thread
> dump.) I can see from it that three Tomcat threads are waiting in
> ServerSocket.accept() calls, but I cannot connect to any of the ports
> that it is supposed to listen on either with the browser or with telnet.
> Calling Tomcat's shutdown.bat does nothing to stop the hung up process.
> Killing Tomcat's Java process is the only thing that helps.
>
> Does anyone have any idea on this and the OutOfMemory issues?
>
> Sorry for "cross-replying," but... what she said. :-)
> --
> Ilya
>
> Barbara Post wrote:
>
> >Hi and sorry for the cross-posting, this might interest both lists
although
> >I think it may be purely a Tomcat-specific problem.
> >
> >Tomcat 4.1.12 - CATALINA_OPTS allow 128 MB of RAM (out of 512 physical),
> >with "catalina run" command to see more console log.
> >Cocoon 2.1-dev from CVS.
> >JDK 1.3.1
> >Windows NT4 SP6
> >Few other apps running, at least memory is not fully used.
> >Eclipse 2.0.1 to edit and compile java code.
> >reloadable="true" for my webapp (other webapps are defined in server.xml
and
> >also reloadable but I don't call their URI.
> >
> >Issue :
> >
> >I change some code in a java class, save so that it compiles
automaticaly.
> >After a few (3 to 6) compiles/reloads my webapp dies with
> >"ClassCastException", "IllegalStateException", or Tomcat dies with
> >"OutOfMemoryError".
> >
> >When I was using Tomcat 4.0.5 and JBuilder 6 I had few problems with
> >automatic reloads, at least not so many errors...
> >
> >Barbara
> >
> >
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Cocoon 2.1 + Tomcat 4.1 + reloadable="true"

2002-10-09 Thread Barbara Post

Hi and sorry for the cross-posting, this might interest both lists although
I think it may be purely a Tomcat-specific problem.

Tomcat 4.1.12 - CATALINA_OPTS allow 128 MB of RAM (out of 512 physical),
with "catalina run" command to see more console log.
Cocoon 2.1-dev from CVS.
JDK 1.3.1
Windows NT4 SP6
Few other apps running, at least memory is not fully used.
Eclipse 2.0.1 to edit and compile java code.
reloadable="true" for my webapp (other webapps are defined in server.xml and
also reloadable but I don't call their URI.

Issue :

I change some code in a java class, save so that it compiles automaticaly.
After a few (3 to 6) compiles/reloads my webapp dies with
"ClassCastException", "IllegalStateException", or Tomcat dies with
"OutOfMemoryError".

When I was using Tomcat 4.0.5 and JBuilder 6 I had few problems with
automatic reloads, at least not so many errors...

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, Java Extensions and Xalan

2002-10-08 Thread Barbara Post

forgot to mention, I pass "local-name(.)" as a parameter for my function.

Go to apache's xalan-j page to learn more on this :-)
- Original Message -
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 3:44 PM
Subject: Re: Cocoon, Java Extensions and Xalan


> ok, rather use this kind of stylesheet, below, it runs fine for me, I have
> almost the same configuration.
> Then use a simple pipeline to apply the xsl to an xml file.
>
> Cheers.
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:java="http://xml.apache.org/xslt/java";
exclude-result-prefixes="java">
>  
>  
> 
>
>  
>
> (value returned by endElement method of my bean declared above. Can return
> void, so only execution then).
>
> Drawback : no Cocoon-like logging :-(
> Ah well...
>
> Babs
>
> - Original Message -
> From: "Spencer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 07, 2002 5:10 PM
> Subject: Cocoon, Java Extensions and Xalan
>
>
> > Hi
> >
> > I am writing some Java extensions to XSL which are working fine when I
run
> > them off the command line (java org.apache.xalan etc). The Java method
is
> > returned and added to the transformation.
> >
> > However, when I use Cocoon to run the transformation, there is no Java
> > output. The rest of the stylesheet works fine though. I am using Cocoon
> > 2.0.3, Java 1.4.1 and Tomcat/4.1.12-LE-jdk14.
> >
> > Any help would be grateful,
> >
> > thanks Spencer
> >
> >
> > 
> > 
> > 
> > 
> > He
> > llo
> > 
> >
> > --
> >
> > 
> >  > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:java="java"
> > xmlns:match="XSLPatternMatch">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Test Test
> > 
> > 
> > 
> > 
> > -
> >
> > public static boolean match (String pattern)
> > {
> >
> > boolean b;
> >
> >
> > b = Pattern.matches ("He\\Wllo", pattern);
> >
> >
> > return b;
> > }
> >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> > __
> > Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> > d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Re: Cocoon, Java Extensions and Xalan

2002-10-08 Thread Barbara Post

ok, rather use this kind of stylesheet, below, it runs fine for me, I have
almost the same configuration.
Then use a simple pipeline to apply the xsl to an xml file.

Cheers.


http://www.w3.org/1999/XSL/Transform";
xmlns:java="http://xml.apache.org/xslt/java"; exclude-result-prefixes="java">
 
 


 

(value returned by endElement method of my bean declared above. Can return
void, so only execution then).

Drawback : no Cocoon-like logging :-(
Ah well...

Babs

- Original Message -
From: "Spencer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 5:10 PM
Subject: Cocoon, Java Extensions and Xalan


> Hi
>
> I am writing some Java extensions to XSL which are working fine when I run
> them off the command line (java org.apache.xalan etc). The Java method is
> returned and added to the transformation.
>
> However, when I use Cocoon to run the transformation, there is no Java
> output. The rest of the stylesheet works fine though. I am using Cocoon
> 2.0.3, Java 1.4.1 and Tomcat/4.1.12-LE-jdk14.
>
> Any help would be grateful,
>
> thanks Spencer
>
>
> 
> 
> 
> 
> He
> llo
> 
>
> --
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:java="java"
> xmlns:match="XSLPatternMatch">
> 
> 
> 
> 
> 
> 
> 
> 
> Test Test
> 
> 
> 
> 
> -
>
> public static boolean match (String pattern)
> {
>
> boolean b;
>
>
> b = Pattern.matches ("He\\Wllo", pattern);
>
>
> return b;
> }
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




use-case [was :Re: how to use Input Modules ?]

2002-10-07 Thread Barbara Post

ok, following Christian's piece of advice/explaination (creating a *_new
instance_*) made it work although I have some bugs I will check tomorrow.

My only worry about global-parameters was that the initial proposal implied
a {/name_of_param} path that doesn't work for now (I did not look into the
code though).

I also have a pretty complicated (long) pipeline (pasted below but now with
the use of input modules, so everything prefixed by "baepp"  may be also a
global parameter), and use of global parameters with level 6 depth in the
path kept failing : {../../../../../../taminoserver}. I tried step by step,
every level. Anyway it was unreadable this way... and I could not reach my
XML database. How strange.

Sorry I am not very knowledgeable :-(

Barbara

   
   
   



 
 
 
  
  
  
   
   
   




 http://{baepp:taminoserver}/tamino/{baepp:taminodatabase}/{baepp:tami
nocollection}"/>
 
  
  
  
 
 
 
 
  
  
  
  
  
 
 
 
 
 
 
 
 
 
 
 
  http://{baepp:taminoserver}/tamino/{baepp:taminodatabase}/{baepp:tami
nocollection}"/>
  
  
  
  
 
 



   

   
   






   
   
   
   

   
   
   
   
  
  
  
   
   
   
   
   
   
  
  
  
  
   
  
  
  
 

   


- Original Message -
From: "Piroumian Konstantin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 3:30 PM
Subject: RE: how to use Input Modules ?


> Please let us know if you have any improvement suggestions or some real
> use-cases regarding the input modules (or global parameters)
>
> >
> > Please, do you have an idea when I can fully use sitemap
> > global parameters ? With {../../ ... } it gets messy to read,
> > and {/param} doesn't work for now... (10/03 CVS).
>
> Speaking frankly, I have no idea. Although, I've proposed the global
> parameters idea, but they were implemented by Carsten.
>
> IMO, input modules cover almost all the tasks that global parameters solve
> (except for the propogating values to sub-sitemaps in map:mount).
>
> --
>   Konstantin
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Input Modules

2002-10-07 Thread Barbara Post

OK guys, I give up. It seemed to be willing to work at first, but it won't.

If I change the input module name I get :
org.apache.avalon.framework.configuration.ConfigurationException: Error
while creating node 'generate' at jndi:/localhost/baepp/sitemap.xmap:460:122

Or else, if I keep request-param for name, as of 10/03 CVS, I get a blank
string... so the parameter is not read from cocoon.xconf at all :-(

Any clue ?

Gotta get latest CVS and try a last time

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: how to use Input Modules ?

2002-10-07 Thread Barbara Post

Thanks Konstantin, your warnings are welcome :-)
I will have a look on cocoon-dev for more info...

Please, do you have an idea when I can fully use sitemap global parameters ?
With {../../ ... } it gets messy to read, and {/param} doesn't work for
now... (10/03 CVS).

Don't mean to offend.

Babs
- Original Message -
From: "Piroumian Konstantin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 2:03 PM
Subject: RE: how to use Input Modules ?


> First of all I should warn you to be careful with InputModules until some
> oficial release, cause they are actively discussed right now at the dev
list
> and they can be changed (names, behavior, interfaces). You have been
warned.
>
> To use the DefaultsMetaModule you should tweak your cocoon.xconf where the
> module is declared and add the values you need (just like the
'defaultSkin'
>
> and 'base-uri' values are declared) and then simply use it like this in
your
> sitemap:
>
> 
>
> Change {defaults:skin} to {defaults:yourVariableName}.
>
> --
>   Konstantin
>
> > -Original Message-
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 07, 2002 3:45 PM
> > To: [EMAIL PROTECTED]
> > Subject: how to use Input Modules ?
> >
> >
> > It seems that DefaultsMetaModule could fit my need : since I
> > have troubles with sitemap global parameters, they don't seem
> > to work well, how can I use Input Module to feed some
> > variables (constants in fact) in ? It's not clear to me.
> >
> > Thanks for more info.
> >
> > Babs
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




how to use Input Modules ?

2002-10-07 Thread Barbara Post

It seems that DefaultsMetaModule could fit my need : since I have troubles
with sitemap global parameters, they don't seem to work well, how can I use
Input Module to feed some variables (constants in fact) in ? It's not clear
to me.

Thanks for more info.

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cannot access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Barbara Post

Great, thanks Reinhard, this works now :-)
- Original Message -
From: "Reinhard Poetz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 12:47 PM
Subject: RE: Cannot access sub-sitemaps of Cocoon's doc


> Barbara,
>
> Maybe a typo of you but you need a slash at the end to reach the samples:
>
> http://localhost:9090/cocoon/samples/
>
> Regards,
> Reinhard
>
> > -Original Message-
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 07, 2002 12:41 PM
> > To: [EMAIL PROTECTED]
> > Subject: Cannot access sub-sitemaps of Cocoon's doc
> >
> >
> > I've noticed this problem before.
> >
> > Tomcat runs on port 9090, I can only browse links I have from
> > Cocoon's main
> > page, I mean that direct typing of :
> > http://localhost:9090/cocoon/samples/resources or even
> > http://localhost:9090/cocoon/samples
> >
> > leads to : resource not found.
> >
> > CVS from 10/03. What is wrong ?
> >
> > Barbara
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Cannot access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Barbara Post

I've noticed this problem before.

Tomcat runs on port 9090, I can only browse links I have from Cocoon's main
page, I mean that direct typing of :
http://localhost:9090/cocoon/samples/resources or even
http://localhost:9090/cocoon/samples

leads to : resource not found.

CVS from 10/03. What is wrong ?

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




maybe a Cocoon bug ?

2002-10-07 Thread Barbara Post

Hi all and gurus,

I have an xsl stylesheet which uses a java extension, which has a native
method calling a dll (passing a string and getting a crypted string back). I
have to use this dll...

I use Tomcat 4.1.12 and the dll is not found, it doesn't seem to be a Tomcat
problem (its PATH points to this dll).

It stopped working, but I am not sure of this, when I upgraded Cocoon from
CVS.
At least when I rebooted, and I rebooted problemless other times.
May someone have an idea of what's going on ? I'm lost.

Thanks a lot,

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Bugs ?

2002-10-03 Thread Barbara Post

1. When I use this :
   

 
 
 
 

   

and a map aggregate with several documents including cocoon://getxml Tomcat
prints things in loop... related to ToSax method but I don't find this in my
log...  or I get OutOfMemory Error, anyway this below doesn't work :

authentication procedure then :

  
  
  
  
 
 


This is why I aggregate getxml.xml then apply the session transformer in
every pipeline...

  
  
  
  
  
 
 

Any idea why I cannot use a separate pipeline to get session info ?

2. When Cocoon starts up I see this below, I use only Cocoon's jars and
configuration files. What can I do ?
Thanks a lot.

Babs

ERROR   (2002-10-03) 17:02.05:662   [core.store.persistent] (/baepp/login)
Thread-5/JispFilesystemStore: get(..): Exception
com.coyotegulch.jisp.DatabaseException: no indexes associated with this
database
 at
com.coyotegulch.jisp.IndexedObjectDatabase.(IndexedObjectDatabase.ja
va:88)
 at
org.apache.cocoon.components.store.JispFilesystemStore.initialize(JispFilesy
stemStore.java:239)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:275)
 at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:98)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:268)


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: PROBLEM: saving files in cocoon

2002-10-03 Thread Barbara Post



yes, have a look onto WriteSourceTransformer (CVS 
only, not 2.0.3).

  - Original Message - 
  From: 
  dariusrr 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, October 03, 2002 3:12 
  PM
  Subject: PROBLEM: saving files in 
  cocoon
  
  hi guys
   
  I was just wondering if i can save any xml 
  or html forms produced using the sitemap or any other method in 
  cocoon??
   
  thanks alot 
   
  darius


getting mad

2002-10-03 Thread Barbara Post

I switched back to my jars and files that worked before the tests I did this
morning (Sept. 13 CVS), and get the same error... auth-protect action is in
cause. Now nothing works, I've lost all my project :'(
Feel depressed. And I have pounds to loose, depressing too.

Of course deleted Tomcat's work dir...

Gotta reboot

description org.apache.cocoon.ProcessingException: Failed to load sitemap
from jndi:/localhost/baepp/sitemap.xmap:
org.apache.avalon.framework.configuration.ConfigurationException: Cannot get
component selector for 'act' at jndi:/localhost/baepp/sitemap.xmap:417:34

stack-trace

org.apache.cocoon.ProcessingException: Failed to load sitemap from
jndi:/localhost/baepp/sitemap.xmap:
org.apache.avalon.framework.configuration.ConfigurationException: Cannot get
component selector for 'act' at jndi:/localhost/baepp/sitemap.xmap:417:34
 at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT
reeBuilder.java:393)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP
rocessor.java:401)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:320)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:308)




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




CVS... :-(

2002-10-03 Thread Barbara Post

Hi all,

Well, how strange :
Tomcat 4.0.5, jdk 1.3.1,
the jars, xconf and xmap files from yesterday mornng's CVS, my configuration
and pipelines added, Tomcat's work directory cleaned,

then :

description org.apache.cocoon.ProcessingException: Failed to load sitemap
from jndi:/localhost/baepp/sitemap.xmap:
org.apache.avalon.framework.configuration.ConfigurationException: Cannot get
component selector for 'act' at jndi:/localhost/baepp/sitemap.xmap:519:46

the concerned component :


and the class is present in the jar...

What can I do ??
Thanks, getting desperate if I will be able to upgrade a day !
Have a nice day, will try to upgrade to Tomcat 4.1...

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: xsp problem with authentication context

2002-10-02 Thread Barbara Post

Hi Dimitris, I am sorry for you, indeed every user here spent "too much
time" studying... Actions use plain java code, and return sitemap
parameters. They're really fun, you may try them then... Ivan is right ;-)

Babs
- Original Message -
From: "Katzigas Dimitris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Atlanoff" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 1:29 PM
Subject: Re: xsp problem with authentication context


> I' am sorry but the action stuff doesn't say anything to me.
> I have little experience on them.
>
> I invested too much time to the authentication framework and i don't wont
to
> waste it.
>
> - Original Message -
> From: "Atlanoff" <[EMAIL PROTECTED]>
> To: "Katzigas Dimitris" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 02, 2002 2:06 PM
> Subject: Re: xsp problem with authentication context
>
>
> > Hello Dimitris,
> > --
> > How about another way to authorize via actions:
> >
> > ///login-action
> > 
> > login = (String)request.getParameter("login");
> > password = (String)request.getParameter("password");
> > String sql = "begin loginproc('" + login + "', '" + password + "');
> end;";
> > ...
> > //my static method to execute SQL inside current session
> > DBUtils.runSQL(session, sql);
> > 
> > if(...) return newSiteMap;
> > else return null;
> > ...
> > ///sitemap fragment
> > 
> > 
> > 
> > 
> > 
> >
> >
> > --
> > Best regards,
> >  Èâàímailto:[EMAIL PROTECTED]
> >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> 
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
> Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
> + 1 mois de jeu en réseau offert !
> Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: cocoon second instance

2002-10-02 Thread Barbara Post

Or use an unzipping tool to deploy/unzip the .war then copy the content
where you want with any name you want for the containing folder.
Then modify Tomcat's server.xml : add a new context path.

Just my 2 cents ;-)

- Original Message -
From: "Katzigas Dimitris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 1:09 PM
Subject: Re: cocoon second instance


> Ok got it.
>
> I think that tomcat creates a subdirectory under webapps/ by the name of
the
> war file that you deploy.
> e.g. If you deploy the cocoon-new.war i think that it will create a
> cocoon-new/ subdirectory under webapps/.
> I haven't test it with cocoon but works with othes war files.
>
> Good Luck.
>
> Dimitris Katzigas.
>
> - Original Message -
> From: "Cocoon User" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 02, 2002 1:58 PM
> Subject: Re: cocoon second instance
>
>
> >
> > yep but i dont want to touch my working installation (i can not modify
> > something that work in production machine)
> >
> >
> > On Wed, 2 Oct 2002, Katzigas Dimitris wrote:
> >
> > > Stavro
> > >
> > > Rename the 2.0.1rc installation directory from /webapps/cocoon to
> > > /webapps/cocoon.old
> > > then copy the new war file as it is in the webapps/ directory and
> restart
> > > Tomcat.
> > > Your old cocoon instalation won't be damaged, but you can't use it
> anymore
> > > unless you rename again
> > > the directory /webapps/cocoon.old to /webapps/cocoon.
> > >
> > > Dimitris Katzigas
> > >
> > >
> > > - Original Message -
> > > From: "Cocoon User" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 02, 2002 1:45 PM
> > > Subject: cocoon second instance
> > >
> > >
> > > >
> > > > hi folks
> > > >
> > > >
> > > > i have cocoon 2.0.1rc working into omcats /web-app
> > > >
> > > > i want to test cocoon 2.0.3 binary distribution
> > > > without to upgrade or cancel my old installation
> > > >
> > > >
> > > > can i put cocoon's 2.0.3 cocoon.war into /web-app as cocoon_new.war
> > > >
> > > > and restart tomcat
> > > >
> > > > how will tomcat then deploy this .war
> > > >
> > > > is it possible tomcat overwrite my old (but working) cocoon
> installation?
> > > >
> > > >
> > > >
> > > > thnx
> > > >
> > > > kounis stavros
> > > >
> > > >
> > > >
> > >
> -
> > > > Please check that your question  has not already been answered in
the
> > > > FAQ before posting.

> > > >
> > > > To unsubscribe, e-mail:
<[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
<[EMAIL PROTECTED]>
> > >
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Resources and sitemap

2002-10-01 Thread Barbara Post

Hi, I should have checked before...

I want to know whether you've used resources (.properties file) and
Cocoon... My question is more specifically : can I read .properties files
from an Action, or from the sitemap to use by xsl, and if so, how ?

Sorry if I sound dull, I am just a bit tired from my work day...

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Today's CVS... I get IllegalStateException :-(

2002-10-01 Thread Barbara Post

Thanks a lot, now, a request :

How can I get a CVS version that works... but includes {request-param...}
fix ?
OK, just choose the right date when checking out I guess... So which latest
version works, to your opinion ? I see, only Thursday's (09/24) one could !
Oh...

Will try it tomorrow, time to leave to home here :-)

Another question : why do this line cause me troubles when I start Cocoon ?
It says it cannot find a component for generate. I keep commenting it in the
sitemap. I currently have CVS from 09/13.



Babs

- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 6:14 PM
Subject: Re: Today's CVS... I get IllegalStateException :-(


Barbara:

Welcome to the club!

Currently members are:

Ugo Cei
Antonio Gallardo
and you ;)

we have the same problems with the lastest CVS. :(

It happens since last friday and there is no patch to resolve it. Affected
are
authentication-fw, session-fw and portal-fw.

Antonio Gallardo

El Martes, 01 de Octubre de 2002 09:52, Barbara Post escribió:
> I get the error below. I checked out the HEAD module in a new directory,
> then built as usual with :
>
> build -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp
>
> Some jars are missing in the war : slidesjar (3 jars). So I kept the
> ones I had from previous build...
>
> I also used the new version of .xconf files for my webapp, and the part of
> sitemap that was not my pipeline, dunno if it really changed. So things
> must be up to date...
>
> I wanted to use a build after September 23 because "request-param:..." is
> used instead of "param:...". So I will go back...
>
> Thanks for any clue... this happens when I log in using authentication
> portal, jdk 1.3.1.
>
> Babs
>
> java.lang.IllegalStateException
>  at
>
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
>  at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1097)
at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>n FilterChain.java:247)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>h ain.java:193)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>a va:243)
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 66)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>a va:190)
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 66)
>  at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
>2 46)
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 64)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0 )
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 66)
>  at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>. java:170)
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 64)
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>0 )
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 64)
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 64)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a
>
> :174)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
>5 66)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java
>: 1027)
>  at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:112
>

Today's CVS... I get IllegalStateException :-(

2002-10-01 Thread Barbara Post

I get the error below. I checked out the HEAD module in a new directory,
then built as usual with :

build -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp

Some jars are missing in the war : slidesjar (3 jars). So I kept the
ones I had from previous build...

I also used the new version of .xconf files for my webapp, and the part of
sitemap that was not my pipeline, dunno if it really changed. So things must
be up to date...

I wanted to use a build after September 23 because "request-param:..." is
used instead of "param:...". So I will go back...

Thanks for any clue... this happens when I log in using authentication
portal, jdk 1.3.1.

Babs

java.lang.IllegalStateException
 at
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1097)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:484)




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Combining Cocoon and Struts

2002-09-30 Thread Barbara Post

Hi Dag ! Does your Struts work standalone without Cocoon's part ? if not,
you have to check correctness of your sample webapp.

I studied Struts before Cocoon, and you can dig for info there :
[EMAIL PROTECTED]

You also can read this document :
http://stealthis.athensgroup.com/presentations/Model_Layer_Framework/Struts_
Whitepaper.pdf

Struts is fun but I am not sure whether using it with Cocoon is a good
idea... You may study in-depth each of the frameworks, as I did (but in
French...) and do some comparison tables.

Hoping I am not too wrong,

Babs

- Original Message -
From: "Dag Nygaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 1:13 PM
Subject: Combining Cocoon and Struts


> There are a lot of questions raised around Cocoon and Struts, but few
> (if any) answers of how to combine the two - FAQ-food?. I am now in the
> process of attempting the combination and not being very knowledgeable
> in either Cocoon, Struts, JSP, I feel at times pretty lost. Could
> someone help me out?
>
> The setup is as follows on a Win2K platform:
> I have deployed Cocoon 2.0.3 in tomcat 4.0.4 environment, i.e. placed
> the cocoon.war file in the $CATALINA_HOME/webapps/ directory. The
> "welcome-page", http://localhost:8080/cocoon, confirms that Cocoon and
> Tomcat function OK together.
>
> A Cocoon-testapplication resides on
> $CATALINA_HOME/webapps/cocoon/myapp/, xml- and xsp-docs in subdirectory
> resources/ and stylesheets (xsl) in subdirectory styles/. A
> Hello_user.xml with matching hello_user.xsl pipeline functions OK.
>
> To test a similar Struts setup, we have created a new application
> subdirectory myjspapp, under cocoon/ in which Struts' WEB-INF/-directory
> reside with:
> - compiled classes in subdirectories/files - for both Actions and Forms
> - modified files struts-config.xml and other struts-*.tld-files,
> web.xml-file
> - lib/-directory with castor-0.9.3.21.jar, castor-0.9.3.21-xml.jar and
> struts.jar. Note: I have also copied these jar-files to
> cocoon/WEB-INF/lib/
> - src/-directory.
>
> A Hello_user.jsp-file (with a Hello_user.html-file) reside in the root
> of myjspapp uses the abovementioned hello_user.xsl-file. The pipeline I
> attempt to use looks like this:
>
>   
>
> 
> 
> 
>
>
> This setup fails. The errormessage I get is:
> "org.apache.cocoon.ProcessingException: ServletException in
> JspGenerator.generate(): javax.servlet.jsp.JspException: Cannot find
> ActionMappings or ActionFormBeans collection"
>
> My guess is that the Struts-parts require access/setup of the
> struts-config.xml-file, but how do I do that? Is there something I
> should setup in Cocoon's cocoon.xconf-file or Cocoon's web.xml-file?
>
> --
> Dag Nygaard
> [EMAIL PROTECTED]
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> 
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
> Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
> + 1 mois de jeu en réseau offert !
> Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: AW: FOP In Latest Cocoon Releases

2002-09-27 Thread Barbara Post

May 0.20.4 be buggy ? I have this in my WEB-INF\lib, guess I got it from
C...

Babs
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 11:28 PM
Subject: Re: AW: FOP In Latest Cocoon Releases


> Vadim Gritsenko wrote:
> > Can you clarify - is it Cocoon's, Xalan's, or FOP's CVS?
>
> FOP CVS, branch tag fop-0_20_2-maintain
>
> > PS How can I better call you; "J." sounds strange :)
>   
>
> Joerg Pietschmann
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: sunRise Documentation

2002-09-25 Thread Barbara Post



Right...
--website : www.babsfrance.fr.stICQ : 
135868405

  - Original Message - 
  From: 
  Richard 
  Reyes 
  To: C2 Users 
  Sent: Thursday, September 26, 2002 3:09 
  AM
  Subject: sunRise Documentation
  
  Hi Carsten / 
  Matthew,
   
  I am using binary release Cocoon 
  2.0.3, does that mean that I should be using 
   
  http://xml.apache.org/cocoon/developing/webapps/sunrise.html documentation 
  instead of 
   
  http://xml.apache.org/cocoon/developing/webapps/authentication.html???
   
  Thanks
   
  Richard


Re: Sun vs. PC

2002-09-24 Thread Barbara Post

ten times faster ?... since the PC processor runs 6 times faster than the
SunOS one, I guess there is also a slight difference due to another factor,
maybe hard drive speed/quality, maybe the JVM ? If you have some float
numbers calculations, this may be a factor too, I know that AMDK6-2 (running
at 600 MHz) is bad on float numbers...

So you may not worry that much and try on Sun OS with a speedy processor ;-)

Just my humble two cents. I personnally use a P3@933 MHz at work, and it
runs fine ;-)
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "Thomas Brusa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 3:41 PM
Subject: Sun vs. PC


> Hi all
>
> We're developing a cocoon-application (so far only xslt pipelines,
> no apps) on a SunOS server.
> Everything works out well, but we're experiencing heavy
> performance problems. To make sure our application could
> be running fast, we tested it on a PC, which resulted in more
> than ten times faster response times. Which would be perfect,
> only SUN is our target platform.
>
> Are there any known issues about different jdk-versions?
> tomcat-versions? cocoon-versions? SunOS?, pitfalls? any
> tips to boost performance OR is our Sun Machine simply to slow?
> (see technical spec details below)
>
> Thanks in advance.
> Thomas Brusa
>
>
> below technical spec about our boxes:
> ==
> SUN:
> SunOS 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-60
> 400Mhz
> 512Mb Physical Memory
> jakarta-tomcat-4.0.4-LE-jdk14
> cocoon-2.1-dev (xml-cocoon2_20020822041959)
> jdk 1.4.0_01-b03
> ==
> PC:
> W2k
> 2.4Ghz
> 512Mb Physical Memory
> jakarta-tomcat-4.0.4
> cocoon-2.0.3
> jdk 1.3.1_04
> ==
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: action as input for a generator ??

2002-09-24 Thread Barbara Post

just an idea : you have your xml file, you transform it with xslt, and your
stylesheet calls some java beans you use through xalan java extension. have
a look on Apache's xalan-j page.
Globally : you have a namespace for "java",
you use your beans this way :


then to call a function :



given that the parameters (arguments) are defined as xsl variables.

HTH but this is sometimes VERY useful because java is roughly quicker to
execute that xslt...

My 2 cents ;-)

Babs
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "Daniel Pfuhl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 7:11 PM
Subject: action as input for a generator ??


> hi
>
> imagine the following scenario:
>
> i have an xml-src which i have to enrich with
> different
> elements depending on the input document. with other
> words the input xml will scale my process. in this
> process i have to call different methods not driven
> by cocoon but another underlaying system.
> so i was thinking of using an action which will take
> the input src and after processing it, it will return
> the final document for transformation and
> serialization
> controled by the sitemap.
>
> now my question(s):
>
> is it possible to use an action as the input for
> a generator or do i have to write my own generator?
>
> i also thought of xsp, but i think it is to complex
> to do it this way. i want to separate the logic which
> processes the input as an autonomic module.
>
> fyi: before i only used actions to manage formdata,
> e.g.
> manipulating xml-files depending on formdata. but now
> i have no real file i can write to - so i have to
> manipulate it to transform and serialize it directly
> afterwards.
>
> it would be very nice if somebody could give me an
> advice how a solution can look like!!
>
> thanks in advance !!
>
> daniel
>
> __
>
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: web app design

2002-09-21 Thread Barbara Post


- Original Message - > As a comment to this question: For some weeks
I'm looking for some people
> with experience in NXDB ( Native XML DataBases), but it seems there aren't
> much people working with NXDB because I have not still found anybody  ...
I
> thought that if normally we access a relational-DB to create xml files
from
> our querys then to base us in a NXDB could eliminate this intermediate
> process ... Is it possible NXDB aren't still mature so I haven't found
> anyone or is it not so easy?.

Well Raul, when you use XML native databases (since 1999 I guess, at least)
you have to learn the proprietary query system they have, since they existed
before the xquery standard was officialized. I think of Tamino, the
"x-query" it uses is close to "xquery", and it will be closer to xquery with
next release next year. As for Xindice, I only had a quick look at it, it
seems to be close to the query standard too.

Managing an NXDB is not so different from a relational database. Indeed, in
this world of growing xml use the data format you get when querying helps.
But when you think your system off, you have to think in terms of xml
structure, unlike relational tables.

I personally barely used relational DB, and a little NXDB, since I'm still
young (graduating within a few months).

Just my 2 cents, don't despair finding people you need, google will help you
;-)

Babs
--
website : www.babsfrance.fr.st
ICQ : 135868405



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: SimpleFormTransformer

2002-09-21 Thread Barbara Post

Hello, I guess only the javadoc you find in SimpleFormTransformer.java,
download it from CVS. Yeah, it seems not to be in the apache's website
javadoc...

Once you've gotten it, it's a fun component ;-)
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "Marcin Stefaniuk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 7:38 PM
Subject: SimpleFormTransformer


Hello!
Where I can read about SimpleFormTransformer?

Marcin

-

Please check that your question  has not already been answered in the
FAQ before posting. 

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



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: redirect-to error causes Cocoon servlet exception

2002-09-20 Thread Barbara Post

The error on closing stream is due to some timeout factors, it may not
affect anything but may not be correctible. Maybe there is a possibility not
to log it ? I get only this one in my error.log when my program works ;-)

2.1 version still has this problem, it is java-dependant I think.
- Original Message -
From: "Amanda Drake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 7:59 PM
Subject: redirect-to error causes Cocoon servlet exception


> Cocoon users,
>
> I am using Cocoon 2.0.3 and Tomcat 4.0.4.  I have a redirect-to in place
in my
> sitemap that looks like this:
>
> 
> 
> 
> 
>
> Everytime I hit the page http://localhost:8080/gwd_webapp/ I get the
following
> error message in access.log:
> .
> .
> .
>
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment:   from context
> (file:/C:/java/tomcat404/webapps/gwd_webapp/) and prefix()
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment:   to context(sitemap.xmap) and prefix()
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment:   at URI
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment: New context is
> file:/C:/java/tomcat404/webapps/gwd_webapp/
> DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/HttpEnvironment: Sending redirect to 'index'
> DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment: Set the URI Prefix (OLD=, NEW=)
> DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment: Reset context to
> file:/C:/java/tomcat404/webapps/gwd_webapp/
> INFO(2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/CocoonServlet: '' Processed by Apache Cocoon 2.0.3 in 30 milliseconds.
> ERROR   (2002-09-19) 13:36.25:118   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: Cocoon servlet threw an Exception while trying to
close
> stream.
> java.io.IOException: The stream has been closed
> at org.apache.catalina.connector.ResponseStream.flush
> (ResponseStream.java:237)
> at org.apache.cocoon.servlet.CocoonServlet.service
> (CocoonServlet.java:1126)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:243)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:190)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.valves.CertificatesValve.invoke
> (CertificatesValve.java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke
> (StandardContext.java:2347)
> at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke
> (ErrorDispatcherValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.AccessLogValve.invoke
> (AccessLogValve.java:468)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.connector.http.HttpProcessor.process
> (HttpProcessor.java:1027)
> at org.apache.catalina.connector.http.HttpProcessor.run
> (HttpProcessor.java:1125)
> at java.lang.Thread.run(Thread.java

Re: how to prevent logging passwords in request and sessionparams?

2002-09-19 Thread Barbara Post

second question : yes : see rotation tag in WEB-INF/logkit.xconf.

Babs
- Original Message - 
From: "Timothy Larson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 6:17 PM
Subject: how to prevent logging passwords in request and sessionparams?


How do you prevent logging of passwords held in request parameters
and session attributes?  I do not want to turn off logging completely.

By the way, is there any sort of automated log rotation for cocoon
to prevent the logs getting too big?

Tim



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: saving xml to file - server prob

2002-09-19 Thread Barbara Post

"nothing is saved as well.", are you sure any file of name xyz.xml is
created, in usr/home for example ? I don't know much with Linux but if this
is supposed to write a file, it should...

Sorry.
- Original Message -
From: "Hans Wursten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 3:09 PM
Subject: Re: saving xml to file - server prob


> I have writing-rights.
> Yes, I am using windows. But if I write "xyz.xml" as filename instead of
the
> "\\ten-web\..."
> or use slashes, nothing is saved as well.
>
>
> > maybe the way you wrote the path with antislashes Linux system uses
> > slashes... Do you use Windows system on your local computer ?
> >
> > Maybe a write rights problem too.
> >
> > Babs
> > - Original Message -
> > From: "Hans Wursten" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 19, 2002 2:45 PM
> > Subject: saving xml to file - server prob
> >
> >
> > > I am using the stylesheet below to save generated xml to a file. It
> > works
> > > fine, locally on my computer.
> > > But when I try to use the webapp on the (linux)server (ten-web),
nothing
> > is
> > > saved!
> > > What could be the problem?
> > > Thanks for any help!
> > >
> > >
> > >  > >   version="1.0"
> > >   xmlns:xsp="http://apache.org/xsp";
> > >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > >   xmlns:="http://www.w3.org/TR/xhtml1/transitional";
> > >   xmlns:add="http://www.w3.org/TR/xhtml1/transitional";
> > >   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
> > >   extension-element-prefixes="redirect">
> > >
> > >  > encoding="iso-8859-1"/>
> > >
> > > 
> > >
> > > 
> > >
> > >  > > select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework,
> > '.xml')"/>
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > >
> > > 
> > >
> > > --
> > > Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> > > und tolle Preise absahnen! http://www.onlinestar.de
> > >
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
> --
> Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> und tolle Preise absahnen! http://www.onlinestar.de
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: saving xml to file - server prob

2002-09-19 Thread Barbara Post

maybe the way you wrote the path with antislashes Linux system uses
slashes... Do you use Windows system on your local computer ?

Maybe a write rights problem too.

Babs
- Original Message -
From: "Hans Wursten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 2:45 PM
Subject: saving xml to file - server prob


> I am using the stylesheet below to save generated xml to a file. It works
> fine, locally on my computer.
> But when I try to use the webapp on the (linux)server (ten-web), nothing
is
> saved!
> What could be the problem?
> Thanks for any help!
>
>
>version="1.0"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:="http://www.w3.org/TR/xhtml1/transitional";
>   xmlns:add="http://www.w3.org/TR/xhtml1/transitional";
>   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
>   extension-element-prefixes="redirect">
>
> 
>
> 
>
> 
>
>  select="concat('\\Ten-web\webapps\reqDyn\requirement\', $framework,
'.xml')"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
> 
> 
> 
> 
> 
>
>
> 
>
> --
> Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
> und tolle Preise absahnen! http://www.onlinestar.de
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[solved] Re: troubles with logging of non-cocoon classes...

2002-09-19 Thread Barbara Post

I did not express clearly so you partly misunderstood (the code you wondered
about was in fact in the act() method of my custom action to create and
initialize my custom non-Cocoon class) but you helped me anyway, thanks
Marcus : indeed the 2 loggers I have have the same ID (LogKitLogger@2d5534),
and it works now... I forgot "this." before "getLogger()" in the bottom
code, damn ! :-p

So maybe there is a slight correction to
http://outerthought.net/wiki/Wiki.jsp?page=JavaLogging with some "this." in
this section ?

import org.apache.avalon.framework.logger.AbstractLogEnabled;

  public class SomeClass extends AbstractLogEnabled {

  public void someMethod() {
  ...
  getLogger().debug( "Hello, log. It worked!" );
  getLogger().info(  "Hello, log. Here is info" );
  getLogger().error( "Hello, log. Here is an error" );
  //..etc.
  ...
}
  }

Babs after a good lunch, so better coding now.
- Original Message -
From: "Marcus Crafter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 1:59 PM
Subject: Re: troubles with logging of non-cocoon classes...


> Hi Barbara,
>
> On Thu, Sep 19, 2002 at 12:04:07PM +0200, Barbara Post wrote:
> > I get a NPE. I followed :
> > http://outerthought.net/wiki/Wiki.jsp?page=JavaLogging method 1.
> >
> > First class is a classical custom Action, which has its logger defined
in
> > the sitemap.
> > Logging of this action works fine.
>
> ok.
>
> > In this action I create an instance of a custom class that extends
> > AbstractLogEnabled :
> >
> > TaminoAccess tamac = new TaminoAccess();(the void
> > constructor does anything)
> > tamac.enableLogging(this.getLogger());
> > tamac.setUri(this.uri);
>
> Where exactly this this code above ? I suspect it's in the
> constructor of your custom action ?
>
> If this is the case then the call to 'this.getLogger()' will
> return null because the Avalon component manager won't have yet
> enabled logging on that sitemap component (and hence your
> non-cocoon class won't have a logging object to log to)
>
> To fix this, implement Initializable on your custom action and add
> the code to create and set the logger on your non-cocoon class there.
>
> The initialize() method on your action will be called well after
> enableLogging() by the ComponentManager, so you should have a valid
> logging object then.
>
> (BTW - If the variable happened to be created at within the class
> (ie. not in the constructor) then an alternative could be to overload
> enableLogging() on your custom action and propogate the logger
> object there).
>
> If that's not the case, can you print out what 'this.getLogger()'
> returns and set us in a stacktrace of the NPE.
>
> Hope that helps.
>
> Cheers,
>
> Marcus
>
>
> > in the method directly called by setUri(this.uri) I try to log as follow
:
> >
> > if (getLogger().isDebugEnabled()){
> > getLogger().debug("tamino server : " + this.taminoServer);
> > getLogger().debug("tamino database : " + this.taminoDatabase);
> > getLogger().debug("tamino collection : " + this.taminoCollection);
> > }
> >
> > This throws a  NPE.
>
> --
> .
>  ,,$,  Marcus Crafter
> ;$'  ':Computer Systems Engineer
> $: :   ManageSoft GmbH
>  $   o_)$$$:   82-84 Mainzer Landstrasse
>  ;$,_/\ &&:'   60327 Frankfurt Germany
>' /( &&&
>\_&&&&'
>   &&&&.
> &&&&&&&:
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Re: form validation

2002-09-19 Thread Barbara Post

I solved it after restarting cocoon, it worked... Indeed I used the
SimpleFormTransformer. I also used 2 "error" tags.
- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 1:58 PM
Subject: Re: form validation


> On 12.Sep.2002 -- 03:12 PM, Barbara Post wrote:
> > I just wonder whether I can do the following in my xsl :
> >
> > The field validation can trigger 2 types of errors :
> > 1. the field is null -> show message 1
> > 2. the field is not null but has wrong regex syntx -> show message 2.
> >
> > I just have troubles to find the documentation again... For now I have 2
> > error tags but both messages appear despite
> > is-null or  > name="when">no-match...
>
> Barbara, this looks OK to me. Documentation is in javadocs for
> SimpleFormTransformer. Sure you use the transformer?
>
> Chris.
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




xsl:document and cocoon://

2002-09-19 Thread Barbara Post

Hi, I just realized that something doesn't work anymore and I have no clue
why...



 



and :

 



   

while this fortunately works :



 



Maybe because I use 2 different pipelines for cocoon://mlform and the one
where I have my test stylesheet ? Gonna solve it after lunch...

Babs



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Impossible or not? Combining request-parameter & wildcard matchers in 1 pipeline

2002-09-19 Thread Barbara Post

Just an idea, I am busy yet : use an Action and getParameterNames() method
if I remember well (look at the API docs), so that you have all the request
parameters. Then you can put sitemap parameters as you want.

HTH,

Babs
- Original Message -
From: "Erik Norvelle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 12:18 PM
Subject: Impossible or not? Combining request-parameter & wildcard matchers
in 1 pipeline


>  Problem Summary **
> I cannot figure out how to use matchers to capture an arbitrary
> number of request-parameters, in combination with using a wildcard
> matcher to parse the structure of the request URI.  I seem to be
> limited to capturing only a single request-parameter at once, in
> a situation when the number & names of parameters is not predictable.
> ***
>
> Here's a more complete description of my problem:
>
> I need to combine two kinds of matching in my sitemap, and so far neither
> the documentation or sample sitemap can tell me how to accomplish it.
There
> are _two conditions_ that my pipeline needs to meet, and I can't figure
out
> how to meet them both at once:
>
> 1) Parsing the URI into its components, which I use to determine both the
> data source (i.e. the url for the map:generate tag) and the particular
> stylesheet that will get applied (the map:transform tag).
> 2) Acquiring *all* of the request parameters appended to the path portion
of
> the URI, and passing these parameters on as part of the URI for the
> map:generate tag.  For example, a filtering form might specify
> "subject=Goats", "location=Tucson" and
> "dateStart=10-09-02&dateEnd=10-20-02".
>
> Here's a sample pipeline which just uses the wildcard URI matcher:
> --- Code snip --
>
>
src="http://localhost:8000/{1}/CalendarRegistry/{2}/EventCollection/getCatal
oguedEventsAsXML"/>
>
src="http://localhost:8080/mightycal/{1}/{2}/{3}/intermediate-to-html.{4}.xs
l"/>
>
>
>  End code snip -
>
> To add one of the request parameters, I could wrap the above 
tag
> in another matcher, e.g.:  type="request-parameter">.  The problem with this solution is that it only
> gets me *one* of the potentially five or six parameters that might be
passed
> as part of the request.  Do I have to wrap this matcher inside  a separate
> matcher for each parameter, so that I end up with a matcher structure that
> is 6 levels deep?  That seems crazy.  It also doesn't allow for situations
> where only *some* of the parameters are present, and not others.
>
> What would work best is a matcher or other mechanism that would clump all
of
> the request parameters together in a single sstring, which I could then
> append to the main  component of my pipeline.
>
> Can this be done with the existing matchers?  Do I have to use actions?
Or
> do I have to write my own custom matcher?
>
> Thanks in advance for advice.
>
> Erik Norvelle
> ==
> Support Systems Analyst
> College of Agriculture and Life Sciences
> The University of Arizona
>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




troubles with logging of non-cocoon classes...

2002-09-19 Thread Barbara Post

I get a NPE. I followed :
http://outerthought.net/wiki/Wiki.jsp?page=JavaLogging method 1.

First class is a classical custom Action, which has its logger defined in
the sitemap.
Logging of this action works fine.

In this action I create an instance of a custom class that extends
AbstractLogEnabled :

TaminoAccess tamac = new TaminoAccess();(the void
constructor does anything)
tamac.enableLogging(this.getLogger());
tamac.setUri(this.uri);

in the method directly called by setUri(this.uri) I try to log as follow :

if (getLogger().isDebugEnabled()){
getLogger().debug("tamino server : " + this.taminoServer);
getLogger().debug("tamino database : " + this.taminoDatabase);
getLogger().debug("tamino collection : " + this.taminoCollection);
}

This throws a  NPE.

In sitemap.log I don't see anything related to enabling logging of "tamac".
Any idea ? Thanks a lot.

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Tomcat's automatic reload of classes and Cocoon

2002-09-19 Thread Barbara Post

It works fine if I compile my classes with JBuilder and Tomcat running, but
it says "Cocoon was not initialized" if I build my webapp with JBuilder and
Tomcat running : i.e : JBuilder copies all the jars to WEB-INF/lib again,
instead of only the classes to WEB-INF/classes.
So Tomcat messes up with so many changed jars to reload at once and has
problems with their order.

Tomcat 4.0.4 with reloadable="true" for my webapp.
Cocoon 2.1 from several days ago CVS.
JBuilder 6 Enterprise.
JDK 1.3.1.
Win NT4.

Just my 2 cents, someone may forward to Tomcat users mailing-list...

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: forms

2002-09-19 Thread Barbara Post

Actions were invented after XSPs, and their field / way of control is
different. Actions set visible control in the sitemap (structured here).

Look for former thread partially entitled "avoid use of xsp" or something
similar. [EMAIL PROTECTED]

So you'll see what best fits your needs...

Babs
- Original Message -
From: "Gabor Bartha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 10:24 AM
Subject: forms


> Hi,
>
> I'm new in xml, xsl, ... I try to understand how to make forms with
> post/get methods, ... but I begin to implicate the solutions.
>
> 1. I can make an xml, and an xsl (for the xml) to make a html form and
> post it to the other html. In this case I have to insert the
>  row in the
> sitemap, then I can access to the posted parameter from another xsl.
> This is clear.
>
> 2. There are actions. As I read I can use actions to post, obtain posted
> parameters, ... When have I use actions? eg for databeses
>
> 3. There is the request 2.0 logicsheet (xmlns:xsp-request="...")
>
> Can anybody explain the differences between these methods, and when can
> they be user and for what?
>
> many thanks,
> Gabor
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




global-parameters

2002-09-18 Thread Barbara Post

Hi, just noticed that the following does not work and it bugs me since I
don't know how the dev is up-to-date...

{/name_of_my_global_parameter} is empty.

Babs

---

>From Vadim in last May :
One thing left - to add {/paramname} syntax...
Hint-hint ;)

Vadim




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Encoding problem

2002-09-18 Thread Barbara Post

maybe :


try to use Russian-compatible output encoding rather than utf-8 ?

- Original Message -
From: "Alex Romayev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 12:53 PM
Subject: Re: Encoding problem


> Let me be more specific and also simplify the example:
>
> Works:
>
> 
>
> ...
>
>  select="$city"/>
>
> After transformation I get:
> Delhi
>
> Does not work:
>
> 
>
> ...
>
>  select="$city"/>
>
> After transformation I get:
>  href="city-detail=%D0%94%D0%B5%D0%BB%D0%B8">Äåëè
>
>
> --- Alex Romayev <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm having what seems to be an encoding problem --
> > not
> > sure it's related to Cocoon, but... ;)
> >
> > 
> >   > select="."/>
> > 
> >
> > All my xml is UTF-8, it work in English, but not in
> > Russian.  Any ideas?
> >
> > Thanks,
> > -Alex
> >
> >
> >
> -
> > Please check that your question  has not already
> > been answered in the
> > FAQ before posting.
> > 
> >
> > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Umlauts in cocoon 2.0.2

2002-09-18 Thread Barbara Post

Is it possible to set "Action encoding" somewhere ? You can set serializers
encoding by adding iso-8859-1. But for Actions I don't
know. OK, change the sitemap's encoding from utf-8 to iso-8859-1 too and try
again, this may help. This encoding fits your characters. When you post,
which encoding is in the html source ? If it is utf-8, changing the
serializers' encoding will solve it. So happy encoding... I stumbled on this
too. It seems not to be clear enough in the docs...?

Babs
- Original Message -
From: "Kenneth Roper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 12:13 PM
Subject: Umlauts in cocoon 2.0.2


Hi

I'm trying to set up my cocoon application to handle strings with
Umlauts in (e.g. "ÄäÖöÜüß").  I'm using Cocoon 2.0.2.

Any string with an umlaut was being mangled between posting from the
browser, and appearing in my variable in an action when I used the
command:

String mangled= myCocoonRequest.getParameter(name);

The string I get from mangled is: "ÄäÖöÜüß", whereas it should
be: "ÄäÖöÜüß".

I've left all of cocoon's character encoding settings on the defaults.
Does anyone know what I'm doing wrong?

Thanks.
Kenneth



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XSL troubles

2002-09-18 Thread Barbara Post

Please provide your xsl code...
- Original Message -
From: "Ganael LAPLANCHE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 11:52 AM
Subject: XSL troubles



Hi !

I'm new to cocoon. I'm trying to use an xsl page to allow users to view
the xml one...

I modified the sitemap to use the dynamic-page2html.xsl. It works. But
when I try to use another xsl page, I get this error :

***

type fatal

message org.xml.sax.SAXException: Invalid processing instruction name
(saxon:warning)

description org.apache.cocoon.ProcessingException: Could not read
resource
file:/var/tomcat4/webapps/cocoon/docs/test/indexedData/UMLV-2002-01/UMLV
-2002-01-XML.xml: javax.xml.transform.TransformerException:
org.xml.sax.SAXException: Invalid processing instruction name
(saxon:warning)

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

***

I don't understand what is invalid ? Could someone help me ?

Thank you very much,

Ganaël.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[SUMMARY] Re: issues with javascript

2002-09-18 Thread Barbara Post

A colleague helped me to solve it out (form validator and set focus on first
erroneous input text). So this means that the javascript is surrounded with
 and that the hack here is to use a javascript variable that
exists once a field is incorrect. My text inputs have complicated names you
see... like AAA_BBB.

Babs

 

 
  _
 
  
 




 
  _
 
  _



 
  _
 
 
  <xsl:text>if (error==null) document.form.</xsl:text>
  <xsl:value-of select="../@Id"/>
  <xsl:text>_</xsl:text>
  <xsl:value-of select="@Name"/>
  <xsl:text>.focus();</xsl:text>
  <xsl:text>var error=true;</xsl:text>
 


- Original Message -
From: "Stan Dyck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 6:01 PM
Subject: Re: issues with javascript


> Try rearranging the code so the the  element is written after the
> </form> tag. I suspect that the javascript interpreter cannot resolve
> "my_form" because it has not been completely written to the browser yet.
>
> hope this helps,
> StanD.
>
> - Original Message -
> From: "Barbara Post" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 11, 2002 8:53 AM
> Subject: issues with javascript
>
>
> > I know this is a bit offtopic but maybe it is due to cocoon ? I hope not
!
> I
> > posted in javascript newsgroup too... I admit that javascript is not
> > complicated but I often have troubles with it...
> >
> > "I generate a page with xml and xsl :
> >
> > At a moment I have an input field, let's say "my_text", in "my_form"
form
> > (no frames, one form in the body).
> >
> > So I have a template that writes the html code for the input field and
> right
> > below the javascript tag to focus on it :
> >
> > <script language="javascript">document.my_form.my_text.focus()
> >
> > IE 5.5 says that document.my_form.my_text is null or not an object.
> >
> > At the moment the browser displays this javascript tag, the html
> generation
> > process hasn't produced the final  tag. May this be an issue ?
Any
> > other ideas of what could be wrong ?"
> >
> > Thanks,
> >
> > Barbara
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Re: Forward POST request data in a sitemap redirect?

2002-09-17 Thread Barbara Post

So Vadim, is it possible to use redirect-to with POST method ? If so, please
provide a code snippet. I guess not, you replied once on this... I am
interested too, since I use GET for now but the url bugs me ;-)

Thanks a lot,

Babs
--
website : www.babsfrance.fr.st
ICQ #: 135868405
- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 4:45 PM
Subject: Re: Forward POST request data in a sitemap redirect?


> gv wrote:
>
> >Hello,
> >
> >I've been able to easily forward GET request data via
> >sitemap redirect by using {requestQuery}, but I can't
> >figure out how to redirect and forward POST data. The
> >following is what I've tried, to no avail:
> >
> >(HTML form sends POST request to 'testfrom',
> >below)
> >
> >
> >
> >  
> > >value="true"/>
> >
> >
>
> This send respond to the browser with status 302 and *no* parameters.
> Browser then will request http:///testto with *no* parameters
> because *none* was given.
>
> Pls refer to http://www.ietf.org/rfc/rfc2616.txt for more information.
>
> PS You could decorate testto with request parameters you desire, but be
> aware that POST data could be bigger than GET (== browser performing
> GET) can handle.
>
> Vadim
>
>
>
> >  
> >
> >
> >
> >
> >  
> >  
> >
> >
> >Is it possible to redirect via sitemap and forward
> >POST data?
> >
> >Thanks in advance,
> >John
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: How to change user.timezone

2002-09-17 Thread Barbara Post

Hi Antonio... in your OS settings I guess ? This may be read by the JVM in
the OS' settings

Babs
--
website : www.babsfrance.fr.st
ICQ #: 135868405
- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 1:44 PM
Subject: How to change user.timezone


Hi,

In core.log file I saw the following:

DEBUG   (2002-09-17) 11:38.04:392   [core] (Unknown-URI)
Unknown-thread/Cocoon: user.timezone=Africa/Abidjan

Where can I change this value?

Antonio Gallardo

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: embedding xsp in an xml document

2002-09-17 Thread Barbara Post

>
> >Would you consider using 2.1 in production yet if you wanted the
> >new features/bugfixes?
> >
>
> I wouldn't, but may be other people would.
>
> Vadim
>

I would, for example, with triple-checking of everything, and I know that my
project won't be in production before several months so I worry less, I
guess bugs will be fixed since ;-)
I need the new features too badly... ;-)

Babs



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XML Databases and Cocoon

2002-09-17 Thread Barbara Post

Hi Raul,

I personnally use Tamino from Software AG for my project, and Cocoon to
redesign it. The appropriate xmldb driver to make them interact the nicest
way has been partly rewritten for me since it's still a beta, so I have a
version that works and it not bad in terms of efficiency.

I use version 3.1 of Tamino, let's see in December, version 4 will allow
strongest integration with XUpdate support as this database will have more
capabilities. www.softwareag.com for further info, later...

I really like this way I can use my XML database. So my opinion is that it's
necessary for every xml native DB to be accessible through a standardizing
xmldb driver, so that Cocoon developpers have less effort to do. Just my 2
cents :-)

Barbara
--
website : www.babsfrance.fr.st
ICQ #: 135868405
- Original Message -
From: "Raúl Wild-Spain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 16, 2002 9:36 PM
Subject: XML Databases and Cocoon


> Hi!  Does anyone have experience with XML native databases and Cocoon (or
> XML native databases at least)? What do you think about to implement a
> necessary DB (relational in a classic way) with XMLnative-DB for your
> cocoon-web-applications ?
>
> Reference: http://exist.sourceforge.net/
>
> If not, I would like to know what do you think about this possibility.
>
> Regards,
>
> Raúl Cruz
> [EMAIL PROTECTED]
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: sitemap reloading

2002-09-13 Thread Barbara Post

I guess this is due to Websphere, here I use Tomcat 4.0.4 and it works fine
every time... with every version of C 2.0/2.1 I tried. I never used
Websphere...

Sorry.
- Original Message -
From: "Gernot Koller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 13, 2002 3:32 PM
Subject: sitemap reloading


> Hi!
>
> In some docu I read that for development it is a wise thing to have the
following enty in your cocoon.xconf
>
> 
>
> To me this sounded like, if I change my sitemap cocoon will automatically
reload/recompile it without being necessary to restart the server.
> Well, it doesn't seem to work this way. Did I misunderstand the meaning of
the entry or is my Websphere Application Server to blame ?
> Anybody else using WSAD and Websphere having similar problems ? Restarting
the whole server for every change in the sitemap is quite a pain...
>
> thanks,
>
> Gernot.
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




big bug in latest CVS ? Basic custom Action not working

2002-09-13 Thread Barbara Post

Hello,

I have the following, with CVS built 10 minutes ago, same bug with
yesterday's one... :


   
   http://i3in0/tamino/BAEPP/BAEPP"/>
   
   
   
   http://google.fr"/>
   

It does not work : {../1} has an empty value... I just println the "query"
parameter as soon as I get it in the action class see below.

If I use {1} which is wrong, I get the action executed twice : a first time
with the value of what is
matched by the star, a second time with "login" passed as value of "query"
parameter !!

This is really alarming... ;-o or maybe I need some rest...
Any clue ? The same bug if I use cocoon-2.1-dev.jar from 09/03, but all the
other newest jars.

public class XMLDocumentExistsAction extends ComposerAction
implements ThreadSafe {
  String uri = "";
  String query = "";

public Map act(Redirector redirector,
   SourceResolver resolver,
   Map objectModel,
   String source,
   Parameters param)
 {
  Map sitemapParams = new HashMap();
try{
this.uri = (String) param.getParameter("taminoUri");
System.out.println("new query to :" + this.uri);
this.query = (String) param.getParameter("query");
System.out.println(this.query);
}

Babs



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




building from CVS

2002-09-13 Thread Barbara Post

  [javadoc]
E:\BP\cvs\cocoon21\xml-cocoon2\build\cocoon\src\org\apache\cocoon\co
mponents\pipeline\AbstractProcessingPipeline.java:76: Class
sun.tools.tree.ThisE
xpression not found in import.
  [javadoc] import sun.tools.tree.ThisExpression;
  [javadoc]^
  [javadoc] javadoc: warning - Import not found:
sun.tools.tree.ThisExpression -
 ignoring!

Built it 10 minutes ago. jdk 1.3.1.

Also got :

 [echo] *  Classes of the optional package Activation are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  The SUN Activation package is required for the AxisRPCReader
clas
s
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the SUN Activation package and place the jar in the
lib/local
 dir

Which "activation" package ?

And also this message at the beginning :

[available] DEPRECATED -  used to override an existing property.
[available]   Build file should not reuse the same property name for
different v
alues.

What does this exactly mean ?

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [SUMMARY] form validator and matches-regex problem

2002-09-13 Thread Barbara Post

I use :

^([\d\w][\d\w\-_\.]*@[\d\w\-_]+\.[\w]+[\.\w]*$ which works too.

When do I have to use square brackets and when do I use round ones
(parenthesis) ? Thanks.

Babs
- Original Message -
From: "Ivan Luzyanin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 13, 2002 11:46 AM
Subject: Re: [SUMMARY] form validator and matches-regex problem


Hi!

Try matches-regex="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)+(\w){2,4}$"/>

Best regards!
Ivan.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




my opinion on global-parameters

2002-09-12 Thread Barbara Post

I really wonder why they're so buggy to use... I have to have
../../  }-like path to access them, and they seem not to be as
path-logically accessible as the ordinary parameters, at least I have
troubles with them.

Just my two hot cents :-(

I will have a look at the other solution (definition in web.xml of global
stuff instead of the sitemap) :-/

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




form validation

2002-09-12 Thread Barbara Post

I just wonder whether I can do the following in my xsl :

The field validation can trigger 2 types of errors :
1. the field is null -> show message 1
2. the field is not null but has wrong regex syntx -> show message 2.

I just have troubles to find the documentation again... For now I have 2
error tags but both messages appear despite
is-null or no-match...

Thanks


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Barbara Post



AFAICS XSP is a bit similar to JSP in a way, 
so you will rather use Actions etc. They were introduced in C 2.0 to replace 
XSPs, when one wants ;-)
 
I personnally don't use and don't need XSP, but 
then I use a lot of transformers...
 
Babs

  - Original Message - 
  From: 
  Gernot Koller 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, September 12, 2002 2:49 
  PM
  Subject: Is it a good idea to avoid the 
  use of xsp ?
  
  Hi!
  First, thanks for your very quick replies to my last question!
  After quite some time discussing and evaluating we made a decision in favor 
  of cocoon as presentation framework. One major argument for cocoon and against 
  struts was that in jsp a strict seperation of logic (Java code) and 
  presentation is not always encouraged. There was also fear that the same 
  issues might apply to xsp and therefore the decision was made to use cocoon 
  but to avoid the use of xsp.
  I'm very new to cocoon and by now only have a very vague idea about xsp and 
  issues that might arise using xsp. So what do you think ? Is it a bad idea to 
  use cocoon but not use xsp ? Is it generally possible to compare jsp and xsp 
  in that way? Or are these fears inappropiate?
  thanks,
  Gernot
   --DI Gernot 
  Kollermailto:[EMAIL PROTECTED]phone:+43-676-340 55 52
  
  
  Do you Yahoo!?Yahoo! News - 
  Today's headlines


Re: Request paramteres in a xsl

2002-09-12 Thread Barbara Post

The "best" way (easier) is to use :

 at the beginning of your xsl, then use it
like a variable.

And in the sitemap, add to the xslt  :





Babs
- Original Message -
From: "Johannes Wechsler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 1:47 PM
Subject: Request paramteres in a xsl


> Hi,
>
> I want to access a request parameter in a xsl.
>
> Therefore I use the code:
> 
>
> My request string is:
>
http://localhost:8080/cocoon/dev/ownActionItems.htm?pName=Projekt2&xpath=//p
> rojects/project[2]/actionItem
>
> Is this fundamentally the right way to access a request parameter?
> Do I have to add anything into the sitemap to get access to these
> parameters?
>
> My sitemap entry is the following:
>
> 
>
>   
>   
>   
>
>
>
>
> 
>
> Regards,
> Johannes
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[offtopic] bugzilla and votes ?

2002-09-12 Thread Barbara Post

Please can someone tell me how long I am given Y votes at Bugzilla? I mean :
if I use all my votes to vote for bugs, would I recover voting rights ?

I did not find this in the documentation... :-/

Thanks, or maybe I misunderstood ?
a. every user is given Y votes for a T time, or
b. every user is given Y votes per bug.

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [2.1 bug ?] duplication of input fields/parameters

2002-09-12 Thread Barbara Post

Hi Antonio, this bug says that nested actions don't execute... In my case
the (nested) action that sends email buggy executes... ok it's known now.
Will add a short note to the bug report.

So let's hope someone has a clue soon... I absolutely cannot switch to 2.0.3
again because of several transformers I realized whe developping I had to
use (ok I can add some of them to the jar, but I guess
SourceWritingTransformer needs C 2.1, when one sees what it imports... no
?).

Thanks for both relieving and worrying me...

Barbara
- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:58 AM
Subject: Re: [2.1 bug ?] duplication of input fields/parameters


> Log doesn't really help since there are nested actions...

Hi Barabara:

The bug in C2.1 lastest CVS is the nested actions!

I have the same problem, I cannot use the tutorial (about database
form-validation). This is a really hard problem.

I send you some responses about the same problem:

Gerhard wrote:

Check: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9835

Please, confirm this bug, I hope someone will investigate this issue.
This bug is the reason I can't switch to 2.1 (and still use 2.0.3).

Also, Chris Haul wrote:

"Since this is not advocated officially, I respond off-list. 2.1 resources
have a feature / bug, so they will *return* to the calling statement
if no serializer is found.

With this you can use resources very similar to action-sets, although
you need to code the selector yourself.

Opinions differ whether this is a feature that will stay or a bug that
will be squashed, Since This discussion was end of spring, I hope it
will stay :-)

If it doesn't you'll have an easy migration back to working action-sets
by changing a few tag names and removing the selector."

But, I dont can find documentation about how to use  :(

Antonio Gallardo

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: issues with javascript

2002-09-12 Thread Barbara Post

Hi Manos and the others who replied :-)

The javascript code should be written only if I have an "error" tag for a
specific text input field.

This error tag is produced by form validation. Then there is the classical
code :



 
  _
 is-null
 
  [explicit error message]
 
 [and here I'd like to put my javascript but it fails executing]


you see that the name of the input field is determined "at xslt runtime"...
and that the whole code above is in a template matching a certain tag, which
../@Id and @Name attributes are used... So I cannot use "onLoad" method...
Any other ideas ?

Thanks a lot,

Barbara

- Original Message -
From: "Emmanuil Batsis (Manos)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 9:57 AM
Subject: Re: issues with javascript


> Hi Barbara,
>
> Nothing to do with cocoon, but you are right; the document is not fully
> loaded and that's the problem. Try wrapping your code in a function and
> call it via the onload attribute of the body tag.
> BTW, you should be using DOM nowdays:
>
> 
> function init()
> {
>document.getElementById('my_text').focus();
> }
> 
> 
> 
>
> Manos
>
>
> Barbara Post wrote:
> > I know this is a bit offtopic but maybe it is due to cocoon ? I hope not
! I
> > posted in javascript newsgroup too... I admit that javascript is not
> > complicated but I often have troubles with it...
> >
> > "I generate a page with xml and xsl :
> >
> > At a moment I have an input field, let's say "my_text", in "my_form"
form
> > (no frames, one form in the body).
> >
> > So I have a template that writes the html code for the input field and
right
> > below the javascript tag to focus on it :
> >
> > document.my_form.my_text.focus()
> >
> > IE 5.5 says that document.my_form.my_text is null or not an object.
> >
> > At the moment the browser displays this javascript tag, the html
generation
> > process hasn't produced the final  tag. May this be an issue ?
Any
> > other ideas of what could be wrong ?"
> >
> > Thanks,
> >
> > Barbara
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> >
> >
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




[2.1 bug ?] duplication of input fields/parameters

2002-09-12 Thread Barbara Post

I upgraded to latest CVS yesterday, jdk 1.3.1, (East Coast noon) but this
did not solve the issue, do I have to submit to bugzilla ? :

Log doesn't really help since there are nested actions...

- I have a form validation  with simple form transformer. When the form is
correctly filled an emal is sent. I wrote a custom action to send this
email. Sitemap parameters passed to the action are filled from http request.

- Assuming form validation occurs once and succeds, scenario :
I fill the "to" field, hit "send" and the email is sent along with files
(the path of files is of hidden input fields).
I click "back" on the browser (IE5.5), so that I see the form again.
When I hit "send", duplicate files are attached. the "to" field is
duplicated too. (the form was cached by the browser).

- After sending email, I write the url to the sending email form in the
browser's address bar, same issue. EVEN WITH ANOTHER "serialNumber" request
parameter, so that Cocoon regenerates a full html page.

Sometimes I see duplicated fields in the html form, other times : when
forcing reload with Control + F5, the code is ok but the parameters are sent
duplicated.

Pipeline below. I need the simple form transformer though.

The xsl which generates the html form ("sendlickeyform.xsl") has a main
template, in which I define the empty input fields, or the http request
filled ones. So it is rather simple... I attach it anyway.

Maybe I am completely wrong ?

Barbara

   
   

 
 
 
  
  
  
   
   
   




 
 
 
 http://localhost:9090/baepp/licensekeys/{../../../licensekey}/htmlbod
y.html"/>
 
 
 
 
 http://localhost:9090/baepp/images/links.gif;http://localhost:9090/ba
epp/images/leer.gif;http://localhost:9090/baepp/images/logo_www.gif"/>
 
 http://localhost:9090/baepp/licensekeys/{../../../licensekey}/{../../
../filename}.xml;http://localhost:9090/baepp/licensekeys/{../../../licenseke
y}/{../../../filename}lt.pdf"/>
 
 


   
   
   



   
   
   

http://i3in0/tamino/BAEPP/BAEPP"/>
   
   
   
  
  
  
   
   
   
   
   
   
   
  
  
  
   http://i3in0/tamino/BAEPP/BAEPP"/>
   
  
  
  
  
  
 

   




http://www.w3.org/1999/XSL/Transform"; xmlns:java="http://xml.apache.org/xslt/java"; xmlns:collection="http://apache.org/cocoon/xmldb/1.0"; exclude-result-prefixes="java collection">

	

	
	
	
	
	

		
			

	
	

			
			

	
	


	
	
	
	
		
			
		
	
	
		
			
		
	
	
		
			

	

			
		
		
			

			
		
		
			
:

			

	
		
	


	
		
	

 
()
		
		
		
		
			
 

	emailTo
	no-match
	
		
	

			
		
		
			
 (...;...) :
			

			
		
		
		
		
			
 

	emailCc
	no-match
	
		
	

			
		
		
			
 (...;...) :
			

			
		
		
			
:
			

	License Key 

			
		
		
			
:
			

			
		
		
			

			
			


	
		.xml

.xml  lt.pdflt.pdf
		
		
			

			
		
		
			

	
		
			

	

			
		
		
		
			

	
		
			
			
		
	

			
			

	
		
			

			
		
	

			
		
	

			
		
	


			
		
	

	
	



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


Re: Sitemap Question

2002-09-12 Thread Barbara Post

Hem, I guess you can write an Action that uses request parameters, formats
them the way you want, and puts new parameters in the sitemap, with the name
of your request parameters but new values... then write what "next page"
wants to do... ?

What's your need ?

Babs
- Original Message -
From: "Bobby Mitchell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 7:37 PM
Subject: Sitemap Question


> Is there any way to rewrite the request parameters in the sitemap and
> then send them to the next page?
>
> --
> Robert J. (Bobby) Mitchell
> Systems Administrator
> NASA Institute for Advanced Concepts
> 555A 14th St Atlanta, Ga. 30318
> Phone: (404)347-9633 Fax: (404)347-9638
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




building from cvs and jdk

2002-09-11 Thread Barbara Post

Just a dumb question : why does the build process warn that this build is
targeted for jdk 1.2 when I build it with jdk 1.3.1 ? If I were to use jdk
1.4 what would it say, how would it behave ?

Thanks

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




issues with javascript

2002-09-11 Thread Barbara Post

I know this is a bit offtopic but maybe it is due to cocoon ? I hope not ! I
posted in javascript newsgroup too... I admit that javascript is not
complicated but I often have troubles with it...

"I generate a page with xml and xsl :

At a moment I have an input field, let's say "my_text", in "my_form" form
(no frames, one form in the body).

So I have a template that writes the html code for the input field and right
below the javascript tag to focus on it :

document.my_form.my_text.focus()

IE 5.5 says that document.my_form.my_text is null or not an object.

At the moment the browser displays this javascript tag, the html generation
process hasn't produced the final  tag. May this be an issue ? Any
other ideas of what could be wrong ?"

Thanks,

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Getting started with initial sitemap

2002-09-11 Thread Barbara Post



I would suggest you get CVS Cocoon... and have a 
look at the main sitemap.xmap there, in "src" directory. It is really simple. 
Then have a look at other sitemaps you find in subdirectories.
 
C 2.1 works  a bit differently but is nicer 
for newbies :-p
 
Just my 2 cents.
 
Indeed all these jars are needed, I tested it 
myself the first time I grabbed Cocoon off ;-)

  - Original Message - 
  From: 
  Gernot Koller 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, September 11, 2002 5:14 
  PM
  Subject: Getting started with initial 
  sitemap
  
  Hi!
  I'm very new to cocoon and this is probably a very "newbie" sort of 
  question..
  I installed cocoon as described and have the demo running.
  Most of the samples work but not all do. I'm not sure, but it seems to me 
  not all samples are supposed to run out of the box as some depend on data 
  sources which definitly don't exist on my system.
  Anyway, as I'm trying to figure out how all these things are fitting 
  together, I find the demo sitemap containing all these samples way too 
  complicated. I tried to throw out all unnecessary stuff leaving only the most 
  simple hello world sample, but actually failed to do so.
  So there is my question: How does a minimal sitemap look like ? Or, is 
  there a "empty.war" file which I can import, that only contains the necessary 
  base to begin with ? Also listing the WEB-INF/lib directory of the demo brings 
  millions of jar files wich I can't belive being necessary for a most simple 
  hello world sample. Removing one after each other on a trial and error basis 
  is quite a pain...
  Can someone of you gurus point my nose to where I can find this sort of 
  info ?
  thanks!
  gernot.
  
  
  Yahoo! - We Remember9-11: A tribute to the more than 3,000 
  lives lost


Fw: troubles with emailing and cocoon's caching ?

2002-09-11 Thread Barbara Post

I have the same if I browse some pages in my app then go to the html form
again (by typing the url or reaching it but with another request parameter
passed along), request parameters values are added to sitemap parameters...
!!??

Will update from CVS and try again...

I have a form validation and simple form transformer in the snipped part
below the map:act, however it doesn't seem logical.

Relevant piece of buggy pipeline :

   

 
 
 
  
  
  
   
   
   




 
 
 
 http://localhost:9090/baepp/licensekeys/{../../../licensekey}/htmlbod
y.html"/>
 
 
 
 
 http://localhost:9090/baepp/images/links.gif;http://localhost:9090/ba
epp/images/leer.gif;http://localhost:9090/baepp/images/logo_www.gif"/>
 
 http://localhost:9090/baepp/licensekeys/{../../../licensekey}/{../../
../filename}.xml;http://localhost:9090/baepp/licensekeys/{../../../licenseke
y}/{../../../filename}lt.pdf"/>
 
 


.;
- Original Message -
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 2:21 PM
Subject: troubles with emailing and cocoon's caching ?


> Hello,
>
> I have a page : html form, which some values are hidden, some other to be
> filled by user. Then submitting the form sends an email (action)
>
> When the browser displays the page from its cache (because I hit "back"),
> instead of cocoon's regeneration I get duplicate values in the submitted
> fields... either hidden or to fill. So duplicate "to" fields or attachment
> names... so sitemap parameters are strangely managed ?
>
> I use last week's CVS cocoon and IE 5.5. Tomcat 4.0.4.
>
> Any idea how I can solve it ?
>
> Thanks, have a nice day,
>
> Barbara
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




troubles with emailing and cocoon's caching ?

2002-09-11 Thread Barbara Post

Hello,

I have a page : html form, which some values are hidden, some other to be
filled by user. Then submitting the form sends an email (action)

When the browser displays the page from its cache (because I hit "back"),
instead of cocoon's regeneration I get duplicate values in the submitted
fields... either hidden or to fill. So duplicate "to" fields or attachment
names... so sitemap parameters are strangely managed ?

I use last week's CVS cocoon and IE 5.5. Tomcat 4.0.4.

Any idea how I can solve it ?

Thanks, have a nice day,

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: cocoon help

2002-09-10 Thread Barbara Post



CVS Cocoon ? 2.0.3 one ? Which JDK ? What version 
of Tomcat ? Check and locate xercesImpl.jar, xmlParserAPI.jar. We'll help and 
find :-)

  - Original Message - 
  From: 
  Geovanny 
  Barreros 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, September 09, 2002 7:05 
  AM
  Subject: cocoon help
  
  I am trying to install, cocoon on tomcat and I am getting an error message 
  when I try to access the localhost:8080/cocoon in my browser 
  SAX2 driver class org.apache.xerces.parsers.SAXParser not found
  I have done everything you suggested in the faq page and so far haven't 
  been able to get it to work
  I would really apreciate if you guys tell me what to do, I am at a dead end 
  here
  phone # (908) 722-1978 ext 151
  primary email adress [EMAIL PROTECTED]
  Thank you 
  Sergio Barreros
   
   
  
  
  Do You Yahoo!?Yahoo! 
  Finance - Get real-time stock quotes


impatientness

2002-09-10 Thread Barbara Post

When I restart tomcat and hit the home page button of my browser ( -> my
project) several times because I am impatient that it loads, sometimes a
sitemap compilation error occurs ("could not find component")...

;-)


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [C2.1] How to get a favicon.ico in the browser.

2002-09-10 Thread Barbara Post

Does a direct call of the url in the browser to the .ico work ? Indeed
image/bmp seems right, afaik...

- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 7:45 AM
Subject: [C2.1] How to get a favicon.ico in the browser.


I am trying to set the icon of the site with cocoon. My problem is I dont
know
what mime-type to set in the sitemap.xmap



 

The "favicon.ico" is in the directory: "/resources/images" and set in the
stylesheet with the hardcoded string:





But the browser dont get it.

Please help me.

BTW, I am using: Tomcat 4.1.10, Cocoon 2.1 (last CVS) and J2SDK 1.4.1

Many thanks in advance ;)

Antonio Gallardo

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: sitemap substitution in actions

2002-09-08 Thread Barbara Post

Since you have a map:act wouldn't you rather use {../1} instead of {1} in
the body of mp:act ?

I am not sure but these are my 2 cents.

Have a nice day,

Babs
--
website: www.babsfrance.fr.st
ICQ #: 135868405
- Original Message -
From: "Phil Blake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 7:17 AM
Subject: sitemap substitution in actions


> I have a directory with common resources like images and pdfs thyat are
> used by all sections of the site. I also have other directories with
> resources that are specific to a certain part of the site.
>
> So... If the url points to a specific resource, and it doesn't exist
> then it returns the common resource. (assuming it exists)
>
> I thought this might do the trick:
>
>  
>  
>   value="{1}/resources/images/{3}.jpg"/>
>   mime-type="image/jpeg"/>
>  
>  
>  
>
> but got the error:
>
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> java.io.FileNotFoundException: /resources/images/.jpg (No such file or
> directory)
>
> The Sitemap substitutions don't appear to be available in the action.
> What have I done wrong?
>
> Thanks in advance,
>
> Phil
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: global-parameters

2002-09-06 Thread Barbara Post

Hi Chris, nope, I have to use the "right path"... and have troubles with
level 6.

So...

Barbara
- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 8:39 AM
Subject: Re: global-parameters


> On 05.Sep.2002 -- 06:25 PM, Barbara Post wrote:
> > Hello, evening here...
> >
> > In c2.1, do the global parameters respect the stack created by actions ?
> >
> > So, if I have pipeline 1 and 3 nested actions in it, in the latest one I
> > want to access "foo1" global-parameter, do I use {../../../foo1} ?
> >
> > In pipeline 2, with one action, {../foo1} ?
> >
> > Thanks, where is the right page of documentation on this ?
>
> Barbara, AFAIK you can always use {/foo}
>
> Chris.
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




do global-parameters absolutely work ?

2002-09-05 Thread Barbara Post

I change a pipeline, go to the url in the browser, and it keeps failing
although the levels' depth is correct. Either the pipeline's execution fails
or it says "no such level". I feel bugged. Thanks for any other feedback
about this.

Some pipeline perfectly work. Maybe I have to restart cocoon ?

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




"not so many levels"

2002-09-05 Thread Barbara Post

Error while evaluating 'http://{../../../../../../foo}/...' : not so many
levels

I have an application that ran fine under 2.0.3 and now I use 2.1 so I
replace some hard-coded parameters by global parameters.

I here need to access a global parameter at level 6. I double-checked the
syntax and tried all other levels, but they don't work (pipeline error).

Is there a bug or am I more likely tired enough for today ?

org.apache.cocoon.sitemap.PatternException: Error while evaluating
'http://{../../../../../../foo}/...': not so many levels
at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolve
r.resolve(PreparedVariableResolver.java:207)
at
org.apache.cocoon.components.treeprocessor.variables.VariableResolver.buildP
arameters(VariableResolver.java:94)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:124)

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




global-parameters

2002-09-05 Thread Barbara Post

Hello, evening here...

In c2.1, do the global parameters respect the stack created by actions ?

So, if I have pipeline 1 and 3 nested actions in it, in the latest one I
want to access "foo1" global-parameter, do I use {../../../foo1} ?

In pipeline 2, with one action, {../foo1} ?

Thanks, where is the right page of documentation on this ?

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




continuations tag and ExtendedComponentSelector questions (cocoon.xconf)

2002-09-05 Thread Barbara Post

1. What is this is cocoon.xconf ? Session timeout ? :

  

2. and what (when) is this component used for ? :
org.apache.cocoon.components.ExtendedComponentSelector

Thanks...


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




IE, caching and c2.1

2002-09-05 Thread Barbara Post

Now with cocoon 2.1, when I hit control and F5 to force reload of page after
modification of the sitemap the page doesn't want to reload, cocoon has
cached it and seems to ignore that sitemap has changed... I use Internet
Explorer 5.5. If I modify the url sitemap changes are effective.

With c2.0.3 I didn't have this behavior it seems. Gonna have a look in
configuration...

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [Auth-framwork] - How to manage multiple documents.

2002-09-04 Thread Barbara Post

Antonio, this is my approach since I have many pages/rights to check... and
it seems that it's secure and (maybe too ?) simple to write... But maybe
your further processing will work better with another approach. In my case
xsl checks the right (indeed from session:getxml) and then displays one
thing or another.

Interesting thread anyway :-)

Barbara
- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 9:08 AM
Subject: Re: [Auth-framwork] - How to manage multiple documents.


Hi Barbara I see you posting always! ;) Thanks,

So Do you mean the best approach is to put the permission to every file
into the  element of the "auth-protect" action? Then check this
permission into each page?

The auth-session data will return something like:


userA

true
true
false
false


Then in the beginning of each page, checks for:

<>



It will return true or false.

In this way I can have only 1 handler. Is this the best approach?

Antonio Gallardo



El Jueves, 05 de Septiembre de 2002 00:42, Barbara Post escribió:
> Hello Antonio, you have somewhere a database, ldap directory or (for
tests)
> an xml file storing ID, password, permissions for each user, and then the
> authentication simply happens the way you prefer, with an action etc.
>
> All the pages are protected by the same handler.
>
> Have a nice day,
>
> Babs
>
> - Original Message -
> From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 05, 2002 8:26 AM
> Subject: [Auth-framwork] - How to manage multiple documents.
>
>
> Hi buddies!
>
> I read about the auth-document in
> http://xml.apache.org/cocoon/developing/webapps/authentication.html
>
> Its a very nice authentication framework!
>
> I have just one question after read that:
>
> Given 4 pages to authenticate:
>
> a) create-category
> b) edit-category
> c) create-product
> d) edit-product.
>
> and 5 users:
>
> userA, userB, userC, userD, userE
>
> and this permission rules:
>
> UserA can acces only pages a,b,c,d
> UserB can acces only pages a,b
> UserC can access only pages: c,d
> UserD can access only pages: a,c
> UserE can access only pages: b,d
>
> How is the best approach to do that with Cocoon?
>
> Of course we dont want that the user need to write his user ID and
password
> to
> access every page.
>
> What we can do?
>
> Regards,
>
> Antonio Gallardo
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Re: [Auth-framwork] - How to manage multiple documents.

2002-09-04 Thread Barbara Post

Hello Antonio, you have somewhere a database, ldap directory or (for tests)
an xml file storing ID, password, permissions for each user, and then the
authentication simply happens the way you prefer, with an action etc.

All the pages are protected by the same handler.

Have a nice day,

Babs

- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 8:26 AM
Subject: [Auth-framwork] - How to manage multiple documents.


Hi buddies!

I read about the auth-document in
http://xml.apache.org/cocoon/developing/webapps/authentication.html

Its a very nice authentication framework!

I have just one question after read that:

Given 4 pages to authenticate:

a) create-category
b) edit-category
c) create-product
d) edit-product.

and 5 users:

userA, userB, userC, userD, userE

and this permission rules:

UserA can acces only pages a,b,c,d
UserB can acces only pages a,b
UserC can access only pages: c,d
UserD can access only pages: a,c
UserE can access only pages: b,d

How is the best approach to do that with Cocoon?

Of course we dont want that the user need to write his user ID and password
to
access every page.

What we can do?

Regards,

Antonio Gallardo

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




problem with pdf and SourceWritingTransformer

2002-09-04 Thread Barbara Post

Hi again,

here is my sitemap piece :

   

 
  
  
 
   
  
  
  
   
  
  

   

Explaination : I get an xml file, by writeandkeep.xsl add the relevant
 tags to be able to apply the transformer, and I keep the
licence content because I want to do a pdf with it. It works ok.

writeandpdfcard.xsl is supposed to do the pdf and write to the disk.

My problem : there is an exception because I want to write so in this last
stylesheet :


licensekeys/blah.pdf

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


Fop 0.20.4 says :

[Fatal Error] pro1FF.xml:2:1: Content is not allowed in prolog.

[ERROR] Content is not allowed in prolog.

...post processing finished

Any idea how I can correctly use this transformer with pdf format ? Many
thanks !

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




SourceWritingTransformer

2002-09-04 Thread Barbara Post

Can it automatically create a folder on the HD (I define where I write in
 tag) or does it only use existing folders ?

Thanks,

Barbar


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




fop and c2.1

2002-09-04 Thread Barbara Post

I have fop-0.20.4.jar and fop-block.jar in my WEB-INF/lib (c2.1). The xsl:fo
stylesheet I created with fop 0.20rc4 (c2.0.3) doesn't work now. My xsl:fo
stylesheet is incorrect...

What are the changes between the 2 versions regarding fop ? Thanks.

Babs




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




note about "minimal cocoon"

2002-09-04 Thread Barbara Post

Although developpers of 2.1 version took care of having a minimal main
sitemap, it is necessary to comment :
 in it if you want to
build your own webapp using only the jars... or you need to have the
cocoon-samples jar.

(as well as hsqldb stuff in cocoon.xconf).

Just my 2 cents.

Barbara

PS : my xml database problem is solved, I "just forgot" to put some jars in
my WEB-INF/lib, and this did not throw any error... ah well...



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: c2.1 and xml:db [was :Re: session context in 2.1 ?]

2002-09-04 Thread Barbara Post

> I'm not that Xindice/Tamino expert, but does Tamino support the xmldb
> interface?
> I think no. You can access Tamino directly via the http protocol.
>
> HTH
> Carsten

Someone here (I work in Software AG France) has developped an API that
allows to use cocoon's xml db capabilities to use Tamino xml database and
this worked fine under c2.0.3.

I will post again when I have succeeded in making xindice and cocoon work
together, and only if I get a cocoon bug I can't get rid of...

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




c2.1 and xml:db [was :Re: session context in 2.1 ?]

2002-09-04 Thread Barbara Post

Thanks a lot Carsten, and for the joke too. Do I have to post less ? :-p
Ok I will try to refrain, but I am late in my project and this stress me a
lot.

Thanks for the other help, I rebuilt it but still cannot access /samples.

Anyway my xmldb connection gives an empty file now...

What are these PK_G-file... keys not found ? Here is my log. I use a driver
for my Tamino xml database that worked well with c2.0.3.

I will install and test Xindice, and if it does not work it means that
cocoon has a bug, otherwise that I am a dumbass.

Babs

[0]/SourceResolverImpl: Resolving
'xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/#mlForm' with base
'file:/e:/tomcat404/webapps/cocoon/' in context 'file:/E:/tomcat404/bin/'
DEBUG   (2002-09-04) 10:01.34:686   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/SourceResolverImpl: Resolved to systemID
'xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/#mlForm'
DEBUG   (2002-09-04) 10:01.34:686   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/SourceFactoryWrapper: Creating source object for
xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/#mlForm
DEBUG   (2002-09-04) 10:01.34:686   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/SourceResolverImpl: Resolving 'test/copy.xsl' with
base 'file:/e:/tomcat404/webapps/cocoon/' in context
'file:/E:/tomcat404/bin/'
DEBUG   (2002-09-04) 10:01.34:686   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/SourceResolverImpl: Resolved to systemID
'file:/e:\tomcat404\webapps\cocoon\test\copy.xsl'
DEBUG   (2002-09-04) 10:01.34:686   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/FileSourceFactory: Creating source object for
file:/e:\tomcat404\webapps\cocoon\test\copy.xsl
DEBUG   (2002-09-04) 10:01.34:686   [core.xslt-processor] (/cocoon/test)
HttpProcessor[9090][0]/XSLTProcessorImpl: Creating new Templates for
file:/e:/tomcat404/webapps/cocoon/test/copy.xsl
DEBUG   (2002-09-04) 10:01.34:686   [core.xslt-processor] (/cocoon/test)
HttpProcessor[9090][0]/XSLTProcessorImpl: Source =
org.apache.cocoon.components.source.impl.FileSource@54b38, templatesHandler
= org.apache.xalan.processor.StylesheetHandler@d81b4
DEBUG   (2002-09-04) 10:01.34:696   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/XMLizerImpl: No mime-type for xmlizing
file:/e:/tomcat404/webapps/cocoon/test/copy.xsl, guessing text/xml
DEBUG   (2002-09-04) 10:01.34:706   [core.store.transient] (/cocoon/test)
HttpProcessor[9090][0]/MRUMemoryStore: NOT Found key:
PK_G-file-xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/_T-xslt-file:/e:/tomcat404
/webapps/cocoon/test/copy.xsl_S-xml-1
DEBUG   (2002-09-04) 10:01.34:706   [core.store.persistent] (/cocoon/test)
HttpProcessor[9090][0]/JispFilesystemStore: NOT Found key:
PK_G-file-xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/_T-xslt-file:/e:/tomcat404
/webapps/cocoon/test/copy.xsl_S-xml-1
DEBUG   (2002-09-04) 10:01.34:706   [core.store.transient] (/cocoon/test)
HttpProcessor[9090][0]/MRUMemoryStore: NOT Found key:
PK_G-file-xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/_T-xslt-file:/e:/tomcat404
/webapps/cocoon/test/copy.xsl
DEBUG   (2002-09-04) 10:01.34:706   [core.store.persistent] (/cocoon/test)
HttpProcessor[9090][0]/JispFilesystemStore: NOT Found key:
PK_G-file-xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/_T-xslt-file:/e:/tomcat404
/webapps/cocoon/test/copy.xsl
DEBUG   (2002-09-04) 10:01.34:706   [core.store.transient] (/cocoon/test)
HttpProcessor[9090][0]/MRUMemoryStore: NOT Found key:
PK_G-file-xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/
DEBUG   (2002-09-04) 10:01.34:706   [core.store.persistent] (/cocoon/test)
HttpProcessor[9090][0]/JispFilesystemStore: NOT Found key:
PK_G-file-xmldb:tamino://i3in0/tamino/BAEPP/BAEPP/
DEBUG   (2002-09-04) 10:01.34:726   [core.manager] (/cocoon/test)
HttpProcessor[9090][0]/XMLDBSource: Initializing XML:DB connection, using
driver com.softwareag.tamino.xmldb.api.base.TDatabase

- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 9:29 AM
Subject: RE: session context in 2.1 ?


>
>
> > -Original Message-
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 04, 2002 9:20 AM
> > To: [EMAIL PROTECTED]
> > Subject: session context in 2.1 ?
> >
> >
> > Reading the docs
> > (http://xml.apache.org/cocoon/developing/webapps/session.html), it seems
> > that there is no r/w session context in 2.1 like "sunRise context
> > " in 2.0.3
> > scratchpad ?
> >
> > So I will have to create my own context to write to, right ? But when I
> > authenticate ok, are some information stored in some session context ?
Is
> > this context called "userdata" now, and which structure does it
> > have ? Thank
> > you.
> >
> The session and authentication framework in 2.0.3 a

Re: send mail with attachment

2002-09-04 Thread Barbara Post

Hi Paul, thank you very much for such a quick reply, I got the xsl ok, I
will see what I can do with it if I don't succeed in making 2.1 latest
version work...

Barbara
- Original Message -
From: "Paul Pattison" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 11:26 PM
Subject: RE: send mail with attachment


> Hi Barbara,
>
> I finally got this to work just yesterday.  I think I did it in a pretty
> ugly way, but it works.  I changed the sendmail logicsheet so that it uses
a
> URLDataSource instead of a FileDataSource for the attachment and then I
gave
> it a hardcoded URL (ie http://localhost/whatever.pdf).  I know this is not
> the best way of doing it, but I needed something to work quickly.  I never
> did the get the 'cocoon://' way of doing it to work, but I didn't have a
lot
> of time to play with it.  I'll email you a copy so that you can see what I
> did.
>
> Paul
>
> -Original Message-
> From: Barbara Post [mailto:[EMAIL PROTECTED]]
> Sent: 03 September 2002 08:15
> To: [EMAIL PROTECTED]
> Subject: send mail with attachment
>
>
> Hi Themba Mbatha and Paul Pattison, please can you give me hints about the
> action I write to send email with attachments, since the attachment should
> be produced by cocoon itself... (a cocoon:// pipeline for example). How
can
> I do this ?
>
> Thanks a lot to any other replier ;-)
>
> Barbara, C2.0.3.
>
> Reference :
> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16927.html
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




session context in 2.1 ?

2002-09-03 Thread Barbara Post

Reading the docs
(http://xml.apache.org/cocoon/developing/webapps/session.html), it seems
that there is no r/w session context in 2.1 like "sunRise context " in 2.0.3
scratchpad ?

So I will have to create my own context to write to, right ? But when I
authenticate ok, are some information stored in some session context ? Is
this context called "userdata" now, and which structure does it have ? Thank
you.

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




how do generators work in 2.1 ?

2002-09-03 Thread Barbara Post

I removed cocoon's pipelines from main sitemap and added my own one, the
simplest one that worked well in 2.0.3 :









It triggers this error :

org.apache.avalon.framework.configuration.ConfigurationException: Cannot get
component selector for 'generate' at
jndi:/localhost/baepp/sitemap.xmap:459:41

What happened ? How do I use generators now in 2.1 version ? (from
yesterday's cvs head). I use jdk 1.3.1. When I built and launched Cocoon I
also had an error when browsing to welcome page
(http://localhost:8080/cocoon), about generator and view section (former
post)...

Thanks for any help...

Barbara


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




c2.1 and xindice

2002-09-03 Thread Barbara Post

Has anyone used xindice and cocoon 2.1 ? I have troubles, so would like to
know what I have to do for it to work (configuration and usage : can I still
use map:generate src="xmldb:xindice://..." ?).

Thanks a lot, I will have a look in the docs, but look for the right page
first... digging ;-)

Babs


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




xml:db API and C 2.1 ? [Re: bug ? latest build and xml serializer in ]

2002-09-03 Thread Barbara Post

Hi Carsten,

No I don't have anything special in my classpath, using Tomcat 4.0.4, and it
separates webapps so jars...

Anyway there is still (CVS HEAD from this afternoon...) something wrong with
View and serializers :

org.apache.avalon.framework.configuration.ConfigurationException: Type
'html' is not defined for 'serialize' at
file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:123:20

ok, now I have moved and changed as needed my webapp to work under c2.1 and
found this :

org.apache.avalon.framework.configuration.ConfigurationException: Cannot get
component selector for 'generate' at
jndi:/localhost/baepp/sitemap.xmap:481:71

This plainly means that xml:db API usage has changed. I implemented my
driver in the new section in cocoon.xconf, commented the old one there;
added my transformer in the transformer section of the sitemap...

So now, how do I use it ? To generate a page off my xml:db compliant xml
database...?
Neither in c2.0.3 nor in c2.1 did I have to declare an xmldb generator...

Thank you.

Barbara

- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 5:35 PM
Subject: RE: bug ? latest build and xml serializer in 


> Are you sure you're using the latest code? I think this bug was fixed
> three or four weeks ago. The latest cvs works for me without any problems.
> Do you have an older avalon framework or excalibur in your
> classpath?
>
> HTH
> Carsten
>
> > -Original Message-
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 03, 2002 5:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: bug ? latest build and xml serializer in 
> >
> >
> > org.apache.avalon.framework.configuration.ConfigurationException:
> > Type 'xml'
> > is not defined for 'serialize' at
> > file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31
> >
> >  
> >   
> >-->> 
> >   
> >
> > What's wrong ?
> >
> > today's cvs, jdk 1.3.1. XML serializer is defined and exists in
> > cocoon.jar.
> > (and works outsode of views).
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




bug ? latest build and xml serializer in

2002-09-03 Thread Barbara Post

org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml'
is not defined for 'serialize' at
file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31

 
  
   -->> 
  

What's wrong ?

today's cvs, jdk 1.3.1. XML serializer is defined and exists in cocoon.jar.
(and works outsode of views).


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: CVS build -> missing WEB-INF/lib !

2002-09-03 Thread Barbara Post

ah, I used -Dinclude.webapp.libs=yes webapp instead... guess I was on the
wrong page. Will rebuild then.

Yes my JAVA_HOME is jdk1.3.1.

Your site is great with my other questions :
http://ziegeler.bei.t-online.de/c2auth.html

 :-) Thanks.
- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 4:56 PM
Subject: RE: CVS build -> missing WEB-INF/lib !


>
>
> > -Original Message-
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 03, 2002 4:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: CVS build -> missing WEB-INF/lib !
> >
> >
> > Precision : no jar in the war. ok, I copy all the jars to the right
place
> > and Tomcat says it's ok now excepted :
> Did you specify the -Dinclude.webapp.libs=true option when building?
> >
> > org.apache.avalon.framework.configuration.ConfigurationException:
> > Cannot get
> > component selector for 'serialize' at
> > jndi:/localhost/cocoon/sitemap.xmap:386:31
> >
> Do you use the same environment for building and running (same JDK)?
>
> > So I comment the  part and cocoon's welcome page shows up...
> >
> > ok, now where is the link to sunspot demo portal in this 2.1 version ?
;-)
> It's on the welcome page (cocoon/samples/welcome) in the right column
> at the bottom. (or you can invoke (cocoon/samples/portal/ )
>
> Carstne
>
> >
> > Babs
> > - Original Message -
> > From: "Barbara Post" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 03, 2002 4:36 PM
> > Subject: CVS build -> missing WEB-INF/lib !
> >
> >
> > > I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war
> > (from one hour
> > > ago cvs head). Tomcat strangely didn't unpack, and when I
> > manually unpack
> > it
> > > says :
> > >
> > >  The requested service (Servlet Cocoon2 is currently unavailable) is
not
> > > currently available.
> > >
> > > When I built cocoon it told it was targeted for jvm 1.2 so 1.3.1
should
> > > work...
> > >
> > > What can be wrong ? The log says :
> > >
> > > java.lang.ClassNotFoundException:
> > org.apache.cocoon.servlet.CocoonServlet
> > >  at
> > >
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClass
> > Loader.jav
> > > a:1406)
> > >  at
> > >
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClass
> > Loader.jav
> > > a:1254)
> > >
> > > Ah well, "lib" subdirectory of WEB-INF is missing, argh...
> > >
> > > Strange... I used build.bat -Dinclude.webapp.libs=yes webapp
> > >
> > > - Original Message -



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




Re: CVS build -> missing WEB-INF/lib !

2002-09-03 Thread Barbara Post

Precision : no jar in the war. ok, I copy all the jars to the right place
and Tomcat says it's ok now excepted :

org.apache.avalon.framework.configuration.ConfigurationException: Cannot get
component selector for 'serialize' at
jndi:/localhost/cocoon/sitemap.xmap:386:31

So I comment the  part and cocoon's welcome page shows up...

ok, now where is the link to sunspot demo portal in this 2.1 version ? ;-)

Babs
- Original Message -
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 4:36 PM
Subject: CVS build -> missing WEB-INF/lib !


> I use T 2.0.4 and jdk 1.3.1, wanted to use latest c2.1 war (from one hour
> ago cvs head). Tomcat strangely didn't unpack, and when I manually unpack
it
> says :
>
>  The requested service (Servlet Cocoon2 is currently unavailable) is not
> currently available.
>
> When I built cocoon it told it was targeted for jvm 1.2 so 1.3.1 should
> work...
>
> What can be wrong ? The log says :
>
> java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet
>  at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> a:1406)
>  at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> a:1254)
>
> Ah well, "lib" subdirectory of WEB-INF is missing, argh...
>
> Strange... I used build.bat -Dinclude.webapp.libs=yes webapp
>
> - Original Message -
> From: "leo leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 03, 2002 4:25 PM
> Subject: Re: Cocoon 2.1-dev in Tomcat 4.1.7
>
>
> >
> >
> >
> > On Tuesday, September 3, 2002, at 03:39  Uhr, Matthew Langham wrote:
> >
> > > Hi,
> > >
> > > does anyone have this combination running (jdk 1.3.1)? We have just
> > > tried to
> > > deploy a war file of the current 2.1 CVS version but without luck.
> > > Tomcat
> > > unpacks the war but doesn't seem to actually mount anything. Calling
any
> > > Cocoon URI gives a 404.
> > > Any ideas?
> > >
> > > Matthew
> > >
> > >
> >
> > I use I similar combination: latest 2.1 CVS version, tomcat 4.1.9 and
> > jdk 1.3.1. This works fine out of the box.
> >
> > /Leo
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




  1   2   >