Tr : Réf. : Re: xsp and pipelines..

2002-07-09 Thread Othman Haddad





  
  

  
  
  ---Message original---
  
  
  De : Othman Haddad
  Date : lundi 08 juillet 
  2002 16:46:38
  A : [EMAIL PROTECTED]
  Sujet : Réf. : Re: xsp 
  and pipelines..
  
  in fact,
  what i want to do is uploading a stylesheet,click on a submit button 
  and then validating it,and then apply it on an another xml file ,and 
  display the result.
  the name of the input field is :addxslt.
  the name of the button is submit.
  and i use the forma-validation action like in the cocoon 
  samples.
  here is the portion of the sitemap:(that i know it's wrong):
  
  !--  XNeoma Demo2 
--
   map:match 
  pattern="XNeoma2" map:act 
  type="form-validator" 
  map:parameter name="descriptor" 
  value="context:///docs/samples/XNeoma/descriptor.xml"/ 
  map:parameter name="validate-set" value="xslt_add"/
  !--hereare the lines that don't 
  work-- map:parameter 
  name="addxslt" 
  value="*"/ 
  map:generate src="INCREDI_LINK_PLACEHOLDER_1991" 
  type="file"/ map:transform 
  src="INCREDI_LINK_PLACEHOLDER_2112"/
   
  /map:act map:call 
  resource="dynamic-page" 
  map:parameter name="target" 
  value="docs/samples/XNeoma/ERROR"/ 
  /map:call /map:match
  
  -
  1) so how can i get the value of the field addxslt and use wildcard 
  with it,directly inside the action tags?
  
  thanks
  
  

  


  
  
   IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



parameter request..

2002-07-09 Thread Othman Haddad








  hello,
  is it so difficuelt to get the value of a field in an xsp and select 
  a pipeline in function of it?
  ie: 
  i've an xsp which contains a file input: "x", the value of "x" 
  represent xslt file which i want to apply on a "z.xml" file.
  
  please, i don't find any way to get a value of a field as a 
  parameter to apply it in my pipelines!!
  
  thanks for your preciuos help





	
	
	
	
	
	
	




 IncrediMail - La messagerie électronique a enfin 
évolué - Cliquer 
ici



Re: parameter request..

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 11:55 AM, Othman Haddad wrote:
 hello,
 is it so difficuelt to get the value of a field in an xsp and select a
 pipeline in function of it?

Impossible, actually. Generators (e.g. XSP) are run only when the
pipeline is already assembled.

You need to use an action for that. RequestParamAction comes to
mind. With 2.1-dev you could use the RequestParameterInputModule
instead. See docs for example (user docs - concepts - modules)

 thanks for your preciuos help

Please correct the settings of you MUA that it doesn't send HTML and
doesn't send line endings (^M)

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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




mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi all!

Which one would you recommend for a mid-size website with cocoon?
Which one is more stable? Can I mount cocoon's context to website's '/' 
from within apache (using mod_jk)?

Thanx for any reply.

Yury.



-
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: mod_webapp or mod_jk?

2002-07-09 Thread Luca Morandini

Yurix,

here's for my 0.2c:

I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): sometimes 
(say, 5% of requests) the communications
between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
This problems disappeared when we used mod_jk.

About the second question, you have some options, which are reported in the 2.0.3 FAQ:
1) Use mod-rewrite for an all-apache solution
2) Set cocoon as the root context of Tomcat (and redicte every root request to Tomcat, 
of course)

After a long soul-searching... I chose the latter :)

Best regards,

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


 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 1:04 PM
 To: [EMAIL PROTECTED]
 Subject: mod_webapp or mod_jk?


 Hi all!

 Which one would you recommend for a mid-size website with cocoon?
 Which one is more stable? Can I mount cocoon's context to website's '/'
 from within apache (using mod_jk)?

 Thanx for any reply.

 Yury.



 -
 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 and CLASSPATH

2002-07-09 Thread Sylvain.Thevoz

Hello,

How to check my classpath in my Cocoon project?


Thank you
Sylvain

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




Authentication Framework

2002-07-09 Thread michael_hampel

Hello Carsten,

  thanks again for your patch for the Authentication Framework.
  I tried it out and now can access my error messages with the
  temp session context.
  On the other side - with the new LoginAction.java I was not able to login
  anymore - the authentication always failed.
  So, I did some debugging and noticed, that the values of the parameters
  I give with request:nickname and request:password were not
  substituted

  MyLoginAction: * param: request:password **
MyLoginAction: * param: request:nickname
**

So I looked at the code and changed the new part back to the old and then
everything worked again.
The part I changed is:

  if (enum != null) {
for(int i = 0; i  enum.length; i++) {
final String key = enum[i];
if ( key.startsWith(parameter_) ) {
  authenticationParameters.setParameter( key.substring
(parameter_.length()),

par.getParameter(key));

back to:

  if (enum != null) {
for(int i = 0; i  enum.length; i++) {
final String key = enum[i];
if ( key.startsWith(parameter_) ) {
String value = par.getParameter(key);
if ( value.startsWith(request:) ) {
value = request.getParameter( value.substring(
request:.length()) );
this.getLogger().debug(* param:  + value
+  **);
if (value == null) value = ;
}
authenticationParameters.setParameter( key.substring(
parameter_.length()),
   value);
}
}

}

I think you don´t get the values of the request parameters in the new
version.

If I am wrong, please tell me

Thanks,

miHam


-
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: FOP performance

2002-07-09 Thread Eric Dalquist

I haven't used FOP with cocoon yet but I have with Oracle's XSQL server
pages. FOP is a very useful package but it is slow ESPECIALLY with tables. I
haven't looked to heavily into the status of the project for about a year
now but performance was a big issue with the dev team but changes weren't
happening too fast. I would read through their users list and see if you can
get some people to help you optimize your layout a little bit. There are
certain things that can be done other ways to save time.

-Eric Dalquist

- Original Message -
From: Matthew Langham [EMAIL PROTECTED]
To: Cocoon-Dev@Xml. Apache. Org [EMAIL PROTECTED];
Cocoon-Users@Xml. Apache. Org [EMAIL PROTECTED]
Sent: Tuesday, July 09, 2002 7:48 AM
Subject: FOP performance


 Hi,

 we have a project where we are using Cocoon 2.0. We have a simple pipeline
 that generates a PDF document:

   map:match pattern=print/pdfxyz
 map:generate type=webprintParameterPrint/
 map:transform type=webprintXYZ/
 map:transform src=webprint/contexts/XYZ/fragment.xsl/
 map:serialize type=fo2pdf/
   /map:match

 The XML data arrives as a request paramter (130 KB in size!) and the
 stylesheet is 636 KB in size. We are using our own specific generator and
 transformer in the pipeline (but they don't do anything special).

 It takes 8.5 seconds to generate the PDF file - which is only 1 page!
Quite
 complex though with lots of tables etc - but no graphics. The system is a
 650 Mhz with 256 MB RAM. Our customer thinks that this is too slow - and I
 am looking for any ideas as to how we can improve the speed (or perhaps
this
 is normal?). The duration is split evently between the transformation step
 and the FOP step.

 Would switching to 2.1-dev help? Why?
 The stylesheet is very large - any idea here (translets?)
 Perhaps it's quicker to use several stylesheets instead of 1 large one?
 Is there a different PDF rendering engine we can use with Cocoon?
 etc.

 Thanks.

 Matthew

 --
 Open Source Group   Cocoon { Consulting, Training, Projects }
 =
 Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de
 -
 Cocoon book:
   http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
 =



 -
 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: mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi Luca!

Thanx for your reply, but one more qustion :)

I'm just use mod_rewrite, but after redirect operation i get the 
cocoon (instead the my-for-cocoon-prefix) word in the URL
(with redirect to relative path like ../sample)
How to solve this problem?

Thanx.
Yury.


Luca Morandini wrote:

Yurix,

here's for my 0.2c:

I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): sometimes 
(say, 5% of requests) the communications
between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
This problems disappeared when we used mod_jk.

About the second question, you have some options, which are reported in the 2.0.3 FAQ:
1) Use mod-rewrite for an all-apache solution
2) Set cocoon as the root context of Tomcat (and redicte every root request to 
Tomcat, of course)

After a long soul-searching... I chose the latter :)

Best regards,

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


  

-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 1:04 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp or mod_jk?


Hi all!

Which one would you recommend for a mid-size website with cocoon?
Which one is more stable? Can I mount cocoon's context to website's '/'
from within apache (using mod_jk)?

Thanx for any reply.

Yury.



-
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: mod_webapp or mod_jk?

2002-07-09 Thread Luca Morandini

snip
 I'm just use mod_rewrite, but after redirect operation i get the
 cocoon (instead the my-for-cocoon-prefix) word in the URL
 (with redirect to relative path like ../sample)
 How to solve this problem?
/snip

I'm afraid you can't.

Best regards,

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


 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 2:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: mod_webapp or mod_jk?


 Hi Luca!

 Thanx for your reply, but one more qustion :)

 I'm just use mod_rewrite, but after redirect operation i get the
 cocoon (instead the my-for-cocoon-prefix) word in the URL
 (with redirect to relative path like ../sample)
 How to solve this problem?

 Thanx.
 Yury.


 Luca Morandini wrote:

 Yurix,
 
 here's for my 0.2c:
 
 I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): 
sometimes (say, 5% of requests) the communications
 between the two servers (the web-server was on a Solaris box, the 
application-server on another Solaris box) went down.
 This problems disappeared when we used mod_jk.
 
 About the second question, you have some options, which are reported in the 2.0.3 
FAQ:
 1) Use mod-rewrite for an all-apache solution
 2) Set cocoon as the root context of Tomcat (and redicte every root request to 
Tomcat, of course)
 
 After a long soul-searching... I chose the latter :)
 
 Best regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
  
 
 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 1:04 PM
 To: [EMAIL PROTECTED]
 Subject: mod_webapp or mod_jk?
 
 
 Hi all!
 
 Which one would you recommend for a mid-size website with cocoon?
 Which one is more stable? Can I mount cocoon's context to website's '/'
 from within apache (using mod_jk)?
 
 Thanx for any reply.
 
 Yury.
 
 
 
 -
 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: Réf. : Re: parameter request..

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 01:49 PM, Othman Haddad wrote:
 hi,
 thanks for your preciuos answer
 
 See docs for example (user docs - concepts - modules)
 you mean the docs of the snapshot cvs 2.1 version?

yes. 2.0 has it as well, but the feature I'm refering to is available
and documented only in 2.1

 
 thanks
 
 
 De : [EMAIL PROTECTED]
 Date : mardi 09 juillet 2002 12:20:43
 A : [EMAIL PROTECTED]; Othman Haddad
 Sujet : Re: parameter request..
 
 On 09.Jul.2002 -- 11:55 AM, Othman Haddad wrote:
  hello,
  is it so difficuelt to get the value of a field in an xsp and select a
  pipeline in function of it?
 
 Impossible, actually. Generators (e.g. XSP) are run only when the
 pipeline is already assembled.
 
 You need to use an action for that. RequestParamAction comes to
 mind. With 2.1-dev you could use the RequestParameterInputModule
 instead. See docs for example (user docs - concepts - modules)
 
  thanks for your preciuos help
 

Please correct the settings of you MUA that it doesn't send HTML and
doesn't send line endings (^M)

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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




RE: Getting a parser

2002-07-09 Thread Vadim Gritsenko

 From: Ugo Cei [mailto:[EMAIL PROTECTED]]
 
 Hi people,
 
 I need to get an handle to a parser in a Generator I am currently
 writing. So, I've copied a couple of lines from the ESQL logicsheet
 (2.0.3dev) because I remembered it did something like that. This is
what
 I came up with:
 
   import org.apache.cocoon.components.parser.Parser;

Use org.apache.avalon.excalibur.xml.Parser.

Vadim


 
   ...
 
   parser = (Parser) manager.lookup(Parser.ROLE);
 
 This works, but the compiler complains that Parser is deprecated, and
 indeed the javadocs says that I should use the Avalon XML Parser.
 
 So, if I want to make the compiler happy and avoid having my code
break
 in the future, what am I supposed to do? Does anyone have a correct
code
 snippet for getting an XML Parser?
 
   Ugo
 
 --
 Ugo Cei - http://beblogging.com/


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




SUMMARY: Re: Problems with Database Tutorial

2002-07-09 Thread Bobby Mitchell



Christian Haul wrote:

 On 02.Jul.2002 -- 11:36 AM, Bobby Mitchell wrote:
 
While using Sybase I had to remove the esql:parameter begin and end 
tags in order to actually edit the entry, otherwise I get an sql error 
stating that SELECT name, department_id FROM employee WHERE id = ?  is 
an error. The id is being passed as a ? so it causes an error. When 
using Hsqldb I made no changes to the code.


This behaviour is the same as before. Here is the error message:


org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
executing statement: SELECT name, department_id FROM employee WHERE id = 
? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion from 
datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT function to run 
this query.

 
 Yep, error message says it all. The example is attempting to use a
 String to set an int column. It looks like HSQLDB is more forgiving in
 this. Change it to
 
 esql:query
   SELECT name, department_id FROM employee
   WHERE id = esql:parameter 
type=intxsp:exprInteger.parseInt(xsp-request:get-parameter name=id 
default=0/)/xsp:expr/esql:parameter
 /esql:query
 
 and convert the string explicitly to an integer. I've set a default of
 0 in case the parameter is non-existent to prevent a NPE or
 NumberFormatException. 
 
 It would be great if you could go through the tutorial and look for
 other, similar changes, that would be required to run it e.g. on
 sybase and file a bug in bugzilla with patches.
 
   Chris.


I applied the changes and everything works fine. I am including a patch 
file and I will also file a report on bugzilla. Thanks for the help.

patch file for the directory cocoon/tutorial/docs:
**
diff -Naur tutorial/docs/edit-dept.xsp tutorial/docs.sybase/edit-dept.xsp
--- tutorial/docs/edit-dept.xsp  Tue Jul  9 09:50:57 2002
+++ tutorial/docs.sybase/edit-dept.xsp Tue Jul  9 09:47:56 2002
@@ -24,7 +24,7 @@
  esql:execute-query
esql:query
  SELECT name FROM department
-WHERE id = esql:parameterxsp-request:get-parameter 
name=id//esql:parameter
+   WHERE id = esql:parameter 
type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
name=id default=0/)/xsp:expr/esql:parameter
/esql:query
esql:results
  esql:row-results
diff -Naur tutorial/docs/edit-empl.xsp tutorial/docs.sybase/edit-empl.xsp
--- tutorial/docs/edit-empl.xsp  Tue Jul  9 09:50:57 2002
+++ tutorial/docs.sybase/edit-empl.xsp Tue Jul  9 09:54:39 2002
@@ -23,7 +23,7 @@
esql:execute-query
  esql:query
SELECT name, department_id FROM employee
-  WHERE id = esql:parameterxsp-request:get-parameter 
name=id//esql:parameter
+ WHERE id = esql:parameter 
type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
name=id default=0/)/xsp:expr/esql:parameter
  /esql:query
  esql:results
esql:row-results
***


 
 Please follow up summarizing your problem and which suggested solution
 / information worked for you when you consider your problem
 solved. Add SUMMARY:  to the subject line. This will make FAQ
 generation and searching the list easier. In addition, it makes
 helping you more fun. Thank you.
 
 


-- 
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. http://xml.apache.org/cocoon/faq/index.html

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




[broken link] while running org.apache.cocoon.Main

2002-07-09 Thread Sebastien SACARD

Hi,

I successfully installed cocoon under tomcat, and run it also in command 
line through an Ant task. But now I'm trying to run it through a simple 
shell script, I'm getting :

DEBUG   10262   [] (): Set the URI Prefix (OLD=, NEW=)
DEBUG   10262   [] (): Reset context to 
file:/opt/backoffice/tomcat/webapps/cocoon/
WARN10262   [] ():   [broken link]-- static/index800.html
INFO10262   [] ():   Memory used: 6485024
INFO10262   [] ():   Processed, Translated  Left: 0, 0, 0

What is exactly a broken link? When I look into  the Main.java source, I 
understand it's an URI cocoon can't figure out, but I don't understand 
if it's a context definition problem (which is obviously not because of 
the Reset context line in the trace), or another problem.
My cocoon installation is a full version (sample, doc, etc ...) , so I 
expected at least to access the documentation files, but I get the same 
error.
I think all the classpath and all the parameters are set properly, so 
I'm wondering what I missed... Any idea or direction to look at ?

Here is my script :
# define the working directory
CONTEXT=/opt/backoffice/tomcat/webapps/cocoon

# define the classpath
CLASSPATH=
for i in /opt/backoffice/tomcat/webapps/cocoon/WEB-INF/lib/*.jar; do 
CLASSPATH=$CLASSPATH:$i;done;
CLASSPATH=$CLASSPATH:/opt/backoffice/tomcat/webapps/cocoon/WEB-INF/classes

CLASSPATH=$CLASSPATH:/opt/backoffice/javalib/xml/xalan.jar
CLASSPATH=$CLASSPATH:/opt/backoffice/javalib/xml/xerces.jar
CLASSPATH=$CLASSPATH:/opt/backoffice/javalib/xml/xml-apis.jar

CLASSPATH=$CLASSPATH:/opt/backoffice/tomcat/webapps/cocoon/static/resources

CLASSPATH=$CLASSPATH:/usr/java/jdk/lib/tools.jar
CLASSPATH=$CLASSPATH:/opt/backoffice/tomcat/lib/servlet.jar

/usr/java/jdk/bin/java -classpath $CLASSPATH org.apache.cocoon.Main 
-c$CONTEXT -uDEBUG
-C./WEB-INF/cocoon.xconf -d/opt/public/data/index/fr 
-w/opt/backoffice/tmp/work -l/opt/backoffice/tmp/log/cocoon.log $@


Thanks for your help !




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




Problem: extra-classpath in cocoon/WEB-INF/web.xml has no effect on CLASSPATH

2002-07-09 Thread Andrei Svirida

Hi cocooners,

i have moved some of the jars needed for my cocoon application
out from Tomcat-Webapps/cocoon/WEB-INF/lib directory to /opt/lib

E.g., file Tomcat-Webapps/cocoon/WEB-INF/lib/test.jar is at
/opt/lib/test.jar now.

After that, i inserted
 init-param
   param-nameextra-classpath/param-name
   param-value/opt/lib/test.jar/param-value
/init-param
into cocoon/WEB-INF/web.xml.

Inspite of that cocoon servlet fails to find the classes from test.jar
and throws ClassNotFoundException.

My OS is SunOS, Cocoons version is 2.0.2
The same problem exists also on my Windows-PC with Cocoon 2.0.2.

Has anybody an idea how to fix it?


  

--
Andrei Svirida, Projekte  Entwicklung
MIDRAY GmbH - a debitel company
Phone:  +49.221.8884 435 
Fax:+49.221.8884 455

http://www.midray.com/


-
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 status page ??

2002-07-09 Thread Artur Bialecki


 
 [ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]
 
 I deploy the cocoon servlet as part of a j2ee application
 which uses other servlets as well. So, I don't have the /
 mapped to cocoon (just *.xsp and *.xml). How can I access
 Cocoons status page normally accessed with /cocoon/status
 
 Thanks,
 
 Artur...


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




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


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




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


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




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


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




[HELP] How Can I do ?

2002-07-09 Thread illo

Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


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




dynamic src for map:generate

2002-07-09 Thread Thomas Balthazar

hello everybody,

i'm a newbie with cocoon, and i would like to quickly test some feature
to eventually use it on a real project.

here is the situation : 

1. the end user click on an hyperlink
(href=http://localhost:8080/cocoon/tba/preview.html;)

2. in the sitemap.xmap, the 'map:match pattern=tba/*' catches the
click.

3. then the map:generate src=docs/samples/tba/tba.xml/ file
is processed by map:transform src=docs/samples/tba/tba.xsl/
then serialized with map:serialize type=html/

ok, this is easy, the page is displayed and it works fine for me.


now, what i would like to do is to select the map:generate src=xxx
dynamicly, depending on the link the user clicked on.


what i want to have is :

i generate links for the end user that looks like this :
href=http://localhost:8080/cocoon/tba/preview.html?page=/content/_MY_XM
L_PAGE_1.xml
href=http://localhost:8080/cocoon/tba/preview.html?page=/content/_MY_XM
L_PAGE_2.xml
...

if the user clicks on the first link, i would like to have something
like that 
map:match pattern=tba/*
map:generate src=/content/_MY_XML_PAGE_1.xml/
map:transform src=docs/samples/tba/redirect.xsl/
map:serialize type=html/
/map:match

if the user clicks on the second link, i would like to have something
like that 
map:match pattern=tba/*
map:generate src=/content/_MY_XML_PAGE_2.xml/
map:transform src=docs/samples/tba/redirect.xsl/
map:serialize type=html/
/map:match

and so on ...


what i have done is :

1. i generate a link for the end user that looks like this :
href=http://localhost:8080/cocoon/tba/preview.html?page=/content/_MY_XM
L_PAGE_1.xml

2. in the sitemap.xmap, the 'map:match pattern=tba/*' catches the
click.

3. with map:generate type=serverpages
src=docs/samples/tba/redirect.xsp/
i can get the page parameter with the xsp-request:get-parameter
name=page/ tag.

4. i can display this parameter for debug with map:transform
src=docs/samples/tba/redirect.xsl/
and map:serialize type=html/

so what can/must i do with this parameter?
do i have to do something like a redirect in the pipeline?
do i have to do it with an action?

i hope i was clear ;o)
can you please help me?
thanks in advance.

--
Thomas Balthazar
[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: Getting a parser

2002-07-09 Thread Ugo Cei

Vadim Gritsenko wrote:
From: Ugo Cei [mailto:[EMAIL PROTECTED]]
I came up with:

  import org.apache.cocoon.components.parser.Parser;
 
 
 Use org.apache.avalon.excalibur.xml.Parser.
 
 Vadim

Don't you just love it when interfaces change in an incompatible way and 
  there are no relevant docs on the Avalon site? ;-)

By the way, I was using these instructions:

 parser.setConsumer(new IncludeXMLConsumer(xmlConsumer));
 parser.parse(is);

Turns out there are no such methods in 
org.apache.avalon.excalibur.xml.Parser. What is a poor developer to do? 
Just use javap! A little ingenuity and here is the solution:

 parser.parse(is, new IncludeXMLConsumer(xmlConsumer));

and it's even shorter :-).

Such is life on the bleeding edge ;-).

--
Ugo Cei - http://beblogging.com/


-
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: dynamic src for map:generate

2002-07-09 Thread Christian Haul

Two solutions (depending on your version):

a) RequestParamAction (2.0.x + 2.1)

 map:match pattern=tba/*
map:act type=request
  map:parameter name=parameters value=true/
  map:generate src={page}/
  map:transform src=docs/samples/tba/redirect.xsl/
  map:serialize type=html/
/map:act
!-- else ? --
 /map:match

b) InputModules (2.1)

 map:match pattern=tba/*
map:generate src={request:page}/
map:transform src=docs/samples/tba/redirect.xsl/
map:serialize type=html/
 /map:match

You might want to use ResourceExistsAction to check whether the
provided page exists.

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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




Re: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Joerg Heinicke

It only doesn't match on .gif without any directory. If he doesn't need 
the filename specifically, the **.gif (he tested already??) is the 
correct solution.

Joerg

Per Kreipke wrote:
 I think the pattern you want is:
 
 **/*.gif
 
 == 'any .gif in any directory, no matter how deep'
 
 Per


-
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: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 01:03 PM, Per Kreipke wrote:
 I think the pattern you want is:
 
 **/*.gif
 
 == 'any .gif in any directory, no matter how deep'

add another one

  *.gif

if you don't know if a directory is part of the path. That makes it
two matchers. Could use a resource for the actual stuff and forward
only {2} and {1}. Only makes sense if it's more than a reader,
though.

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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




RE: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Per Kreipke

Good point, thanks. I thought he was asking about the gifs in subdirs :-o

Per

 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Howto select EVERY Image ending with *.gif ?
 
 
 It only doesn't match on .gif without any directory. If he doesn't need 
 the filename specifically, the **.gif (he tested already??) is the 
 correct solution.
 
 Joerg
 
 Per Kreipke wrote:
  I think the pattern you want is:
  
  **/*.gif
  
  == 'any .gif in any directory, no matter how deep'
  
  Per
 
 
 -
 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]




QUESTION: Dynamic XSL

2002-07-09 Thread Eric Dalquist

I was wondering if there is a way to generate an XSL document to be used in
another transformation. Here is an theoretical pipeline that might
illustrate my question a bit better:

!--
Generate the dynamic page with it's specific style sheet and then apply the
site's format
--
map:match pattern=*.xsp
map:generate type=serverpages src=logic/{1}.xsp/
map:transform src=site_format.xsl/
map:transform src=stylesheets/{1}.xsl/
map:serialize/
/map:match

!--
Generate the site format stylesheet so navigation data along with look and
feel data can be stored in a database
but only called from one spot.
--
map:match pattern=site_format.xsl
map:generate type=serverpages
src=logic/site_format.xsp/
map:serialize/
/map:match

I hope this makes sence to someone and they have some suggestions.

-Eric Dalquist


-
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: QUESTION: Dynamic XSL

2002-07-09 Thread Koen Pellegrims

Your idea is not as far-fetched as you might think (I think there is a
sample with dynamically generated content *and* stylesheets).
You will, however, need to use the cocoon:/ protocol in your sitemap to
allow your .xsl to be machted by the appropriate pipeline:

map:match pattern=*.html
map:generate type=serverpages src=logic/pages/{1}.xsp/
map:transform src=cocoon:/{1}.xsl/
map:generate type=html/
/map:match

map:match pattern=*.xsl
map:generate type=serverpages src=logic/stylesheets/{1}.xsp/
map:serialize type=xml/
/map:match

This example should do what you are looking for. The cocoon:/ protocol tries
to find an appropriate match in the
current sitemap.

Koen.

-Oorspronkelijk bericht-
Van: Eric Dalquist [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 9 juli 2002 19:56
Aan: [EMAIL PROTECTED]
Onderwerp: QUESTION: Dynamic XSL


I was wondering if there is a way to generate an XSL document to be used in
another transformation. Here is an theoretical pipeline that might
illustrate my question a bit better:

!--
Generate the dynamic page with it's specific style sheet and then apply the
site's format
--
map:match pattern=*.xsp
map:generate type=serverpages src=logic/{1}.xsp/
map:transform src=site_format.xsl/
map:transform src=stylesheets/{1}.xsl/
map:serialize/
/map:match

!--
Generate the site format stylesheet so navigation data along with look and
feel data can be stored in a database
but only called from one spot.
--
map:match pattern=site_format.xsl
map:generate type=serverpages
src=logic/site_format.xsp/
map:serialize/
/map:match

I hope this makes sence to someone and they have some suggestions.

-Eric Dalquist


-
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: mod_webapp or mod_jk?

2002-07-09 Thread Skip Carter



 
 I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): 
sometimes (say, 5% of requests) the communications
 between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
 This problems disappeared when we used mod_jk.


  Considering that I recently switched over to mod_webapp from mod_jk this is 
scary to hear
  (so far I have not noticed this problem with Apache 1.3.26, Tomcat 4.0.4b2 
on Linux).

 
 About the second question, you have some options, which are reported in the 2.0.3 
FAQ:
 1) Use mod-rewrite for an all-apache solution
 2) Set cocoon as the root context of Tomcat (and redicte every root request to 
Tomcat, of course)
 
 After a long soul-searching... I chose the latter :)

  I am also doing #2, (with mod_webapp so the apache conf file has a
  WebAppDeploy cocoon   warpConnection /   for the virutal host).

  But I have one question that somebody may have a suggestion for.

  How do I support legacy CGI ?

  I am currently doing this with a sitemap entry to redirect to a virtual 
Apache server
  that is specifically for the purpose of handling cgi:

   map:match pattern=cgi-bin/*
   map:redirect-to uri=http://cgiserver.mydomain.com/cgi-bin/{1};
/
   /map:match


  This works, but is there a cleaner way ?


-- 
 Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
 Monterey, CA. 93940












-
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: [HELP] How Can I do ?

2002-07-09 Thread Matteo Di Giovinazzo

use the selector: org.apache.cocoon.selection.RequestParameterSelector

This should works:

map:pipeline
   map:match pattern=/test.xml
 map:generate src={1}/

 map:select type=request-parameter
   map:parameter name=parameter-name value=style/

   map:when test=test.xsl
 map:transform src=stylesheets/test.xsl/
   /map:when

   map:otherwise
 map:transform src=stylesheets/default.xsl/
   /map:otherwise

 /map:select

 map:serialize/

   /map:match
/map:pipeline

CIAO!

-- 
Matteo Di Giovinazzo
[EMAIL PROTECTED]

illo ha scritto:
 Hello All,
 I hava a question for sitemap
 how can i write a sitmap:
 if i request http://site/test.xml
 it will transform by default.xsl
 if i request http://site/test.xml?sytle=test.xsl
 it will transform by test.xsl
 
 Thanks 
 
 
 -
 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]




Redirects (again)...

2002-07-09 Thread Per Kreipke

As I understand it handling successful form posting in XSP (e.g. without
actions) can't involve redirecting the user back to the calling page.

E.g. given the following pages:

index.html - main page, lists all widgets
form.html - form to add a new widget
doPost.xsp - add the widget

in most cases, you'd like doPost.xsp to redirect back to the index.html page
on _success_ to show the new widget added to the list.

However in Cocoon 2.0.X:

- you can't redirect from an XSP file

- map:redirect-to can't be used after some stage in the pipeline (what is
that stage?)


I understand how to use the form validator to redisplay form.html until
input is correct but I don't quite know how to handle the post (without an
Action).


Hmm. I just remembered that I can use XSP to create an action. I just might
struggle with that next.

Any other suggestions are welcome,

Per


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




Support for XML-XSL-PDF

2002-07-09 Thread Yogesh Mulwani



Hello

 We are using 
Cocoon-2.0.2on Tomcat-3.3.1 in our application.
 Our Application isa 
reporting tool whichgenerates the PDF files using XML - 
XSLtransformation
 We are also using SVG images 
embedded into the PDF files.
 In the sitemap.xmap, we are 
specifying the pattern for tranformation as:
  map:match 
pattern="bar.svg"  
 map:generate 
src="working/Hermes.xml"/  
 map:transform 
src="working/barsvg.xsl"/  
 map:serialize type="svg2jpeg"/ 
 /map:match
 We are facing some major 
problems in our PDF file which is generated through cocoon.
 The following are the problems 
we are facing:
 
 1. The SVGs 
embedded in our PDFhas a problem in the sharpness, the pictures get 
distorted . 

 2. There is an 
error on the Tomcat console when the PDF gets generated :
  
 "ERROR: The JPEG quality has not been specified. Use the 
default one: no compression"
  
 How can we set the JPEG quality

 3. We want 
that we can set the background of our PDF report so we are specifying 
'background-image' attribute in fo:block element but it seems the 
cocoon2.0.2 does not support the 'backgorund-image' attribute. Is there any 
solution to set the background image of the PDF.


Thanx
Yogesh
Uniqueware Software  Consultancy
India



COCOON2.0WITH JBOSS2.4.3

2002-07-09 Thread vikas sehgal

Hi .

I am getting and error wihle the instalation of
Cocoon2.0 and with the JBoss2.4.3 is 

Cause:org.jboss.ejb.DeploymentException: Stopping
after fatal error: The encoding Cp1252 is not
supported., Cause:org.xml.sax.SAXException: Stopping
after fatal error: The encoding Cp1252 is not
supported.
This is while the parsing of for jboss.xml file that
is in use at JBoss as a part of deplyment descriptor

i did search the web for the under mention error but
no solution was there i am using JDK1.3.1 for runing
JBoss2.4.3. I am making the setup as stated at apache
site making changes in run.bat changes crimson.jar for
xerces.jar .This jar file is from
Xerces-J-bin.1.4.4.tar.gz as the xerecs1.4.4 which is
with the cocoon2.0 set up i think there is some
problem with that jar as it is not having some must
classes

and on the cocoon side  the dump on the screen is 
***
type internal-server-error

message The sitemap handler's sitemap is not
available. Please check logs for the exact error.

description org.apache.cocoon.ProcessingException: The
sitemap handler's sitemap is not available. Please
check logs for the exact error.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

exception

org.apache.cocoon.ProcessingException: The sitemap
handler's sitemap is not available. Please check logs
for the exact error.

path-info



stacktrace

org.apache.cocoon.ProcessingException: The sitemap
handler's sitemap is not available. Please check logs
for the exact error.
at
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:244)
at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:109)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
*

an urgent help needed
vikas



__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-
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: Support for XML-XSL-PDF

2002-07-09 Thread Argyn Kuketayev



your 
question better fits fop-user mailing list

  -Original Message-From: Yogesh Mulwani 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 09, 2002 2:28 
  AMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Support for XML-XSL-PDF 
  
  Hello
  
   We are using 
  Cocoon-2.0.2on Tomcat-3.3.1 in our application.
   Our Application isa 
  reporting tool whichgenerates the PDF files using XML - 
  XSLtransformation
  


Re: Support for XML-XSL-PDF

2002-07-09 Thread J.Pietschmann

Yogesh Mulwani wrote:
 3.We want that we can set the background of our PDF report so we 
 are specifying 'background-image' attribute in fo:block element but it 
 seems the cocoon2.0.2 does not support the 'backgorund-image' attribute. 
 Is there any solution to set the background image of the PDF.

Background-image is more or less supported in the current
FOP release 0.20.4. Get a distribution and replace the fop.jar
distributed with Cocoon.

J.Pietschmann



-
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: Authentication Framework

2002-07-09 Thread Stephan Michels




On Tue, 9 Jul 2002 [EMAIL PROTECTED] wrote:

 Hello Carsten,

   thanks again for your patch for the Authentication Framework.
   I tried it out and now can access my error messages with the
   temp session context.
   On the other side - with the new LoginAction.java I was not able to login
   anymore - the authentication always failed.
   So, I did some debugging and noticed, that the values of the parameters
   I give with request:nickname and request:password were not
   substituted

Is

map:parameter name=parameter_name value=request:username/

really correct? Should it not be

map:parameter name=parameter_name value={request:username}/

?

Stephan Michels.

   MyLoginAction: * param: request:password **
 MyLoginAction: * param: request:nickname
 **

 So I looked at the code and changed the new part back to the old and then
 everything worked again.
 The part I changed is:

   if (enum != null) {
 for(int i = 0; i  enum.length; i++) {
 final String key = enum[i];
 if ( key.startsWith(parameter_) ) {
   authenticationParameters.setParameter( key.substring
 (parameter_.length()),

 par.getParameter(key));

 back to:

   if (enum != null) {
 for(int i = 0; i  enum.length; i++) {
 final String key = enum[i];
 if ( key.startsWith(parameter_) ) {
 String value = par.getParameter(key);
 if ( value.startsWith(request:) ) {
 value = request.getParameter( value.substring(
 request:.length()) );
 this.getLogger().debug(* param:  + value
 +  **);
 if (value == null) value = ;
 }
 authenticationParameters.setParameter( key.substring(
 parameter_.length()),
value);
 }
 }

 }

 I think you don´t get the values of the request parameters in the new
 version.

 If I am wrong, please tell me

 Thanks,

 miHam


 -
 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: SUMMARY: Re: Problems with Database Tutorial

2002-07-09 Thread Bobby Mitchell

Bad patch file

Bobby Mitchell wrote:

 
 
 Christian Haul wrote:
 
 On 02.Jul.2002 -- 11:36 AM, Bobby Mitchell wrote:

 While using Sybase I had to remove the esql:parameter begin and 
 end tags in order to actually edit the entry, otherwise I get an 
 sql error stating that SELECT name, department_id FROM employee 
 WHERE id = ?  is an error. The id is being passed as a ? so it 
 causes an error. When using Hsqldb I made no changes to the code.


 This behaviour is the same as before. Here is the error message:


 org.apache.cocoon.ProcessingException: Exception in 
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Error 
 executing statement: SELECT name, department_id FROM employee WHERE 
 id = ? : com.sybase.jdbc2.jdbc.SybSQLException: Implicit conversion 
 from datatype 'CHAR' to 'INT' is not allowed. Use the CONVERT 
 function to run this query.


 Yep, error message says it all. The example is attempting to use a
 String to set an int column. It looks like HSQLDB is more forgiving in
 this. Change it to

 esql:query
   SELECT name, department_id FROM employee
   WHERE id = esql:parameter 
 type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
 name=id default=0/)/xsp:expr/esql:parameter
 /esql:query

 and convert the string explicitly to an integer. I've set a default of
 0 in case the parameter is non-existent to prevent a NPE or
 NumberFormatException.
 It would be great if you could go through the tutorial and look for
 other, similar changes, that would be required to run it e.g. on
 sybase and file a bug in bugzilla with patches.

 Chris.
 
 
 
 I applied the changes and everything works fine. I am including a patch 
 file and I will also file a report on bugzilla. Thanks for the help.
 
 patch file for the directory cocoon/tutorial/docs:
 **
 diff -Naur tutorial/docs/edit-dept.xsp tutorial/docs.sybase/edit-dept.xsp
 --- tutorial/docs/edit-dept.xsp  Tue Jul  9 09:50:57 2002
 +++ tutorial/docs.sybase/edit-dept.xsp Tue Jul  9 09:47:56 2002
 @@ -24,7 +24,7 @@
  esql:execute-query
esql:query
  SELECT name FROM department
 -WHERE id = esql:parameterxsp-request:get-parameter 
 name=id//esql:parameter
 +   WHERE id = esql:parameter 
 type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
 name=id default=0/)/xsp:expr/esql:parameter
/esql:query
esql:results
  esql:row-results
 diff -Naur tutorial/docs/edit-empl.xsp tutorial/docs.sybase/edit-empl.xsp
 --- tutorial/docs/edit-empl.xsp  Tue Jul  9 09:50:57 2002
 +++ tutorial/docs.sybase/edit-empl.xsp Tue Jul  9 09:54:39 2002
 @@ -23,7 +23,7 @@
esql:execute-query
  esql:query
SELECT name, department_id FROM employee
 -  WHERE id = esql:parameterxsp-request:get-parameter 
 name=id//esql:parameter
 + WHERE id = esql:parameter 
 type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
 name=id default=0/)/xsp:expr/esql:parameter
  /esql:query
  esql:results
esql:row-results
 ***

Here's another:
Cut and paste the following patch into a file.
cd to the directory cocoon/tutorial and execute
patch -p0  patchfile
***
diff -Naur docs/edit-dept.xsp docs.sybase/edit-dept.xsp
--- docs/edit-dept.xsp  Tue Jul  9 19:53:18 2002
+++ docs.sybase/edit-dept.xsp Tue Jul  9 19:50:37 2002
@@ -24,7 +24,7 @@
  esql:execute-query
esql:query
  SELECT name FROM department
-WHERE id = esql:parameterxsp-request:get-parameter 
name=id//esql:parameter
+   WHERE id = esql:parameter 
type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
name=id default=0/)/xsp:expr/esql:parameter
/esql:query
esql:results
  esql:row-results
diff -Naur docs/edit-empl.xsp docs.sybase/edit-empl.xsp
--- docs/edit-empl.xsp  Tue Jul  9 19:53:18 2002
+++ docs.sybase/edit-empl.xsp Tue Jul  9 19:50:19 2002
@@ -23,7 +23,7 @@
esql:execute-query
  esql:query
SELECT name, department_id FROM employee
-  WHERE id = esql:parameterxsp-request:get-parameter 
name=id//esql:parameter
+ WHERE id = esql:parameter 
type=intxsp:exprInteger.parseInt(xsp-request:get-parameter 
name=id default=0/)/xsp:expr/esql:parameter
  /esql:query
  esql:results
esql:row-results
***







 
 

 Please follow up summarizing your problem and which suggested solution
 / information worked for you when you consider your problem
 solved. 

Re: Support for XML-XSL-PDF

2002-07-09 Thread Joerg Heinicke

1. You don't have SVGs in your PDF, but JPEGs. Why are you using the 
svg2jpeg serializer instead of svgxml? FOP supports SVG in PDFs.

2. In the sitemap currently delivered with Cocoon a parameter is 
specified in the following way:

map:serializer mime-type=image/jpeg name=svg2jpeg 
src=org.apache.cocoon.serialization.SVGSerializer
   parameter name=quality type=float value=0.9/
/map:serializer

This should avoid the warning.

Regards,

Joerg


Yogesh Mulwani wrote:
 Hello
  
 We are using Cocoon-2.0.2 on Tomcat-3.3.1 in our application. 
 Our Application is a reporting tool which generates the PDF files 
 using XML - XSL transformation
 We are also using SVG images embedded into the PDF files.
 In the sitemap.xmap, we are specifying the pattern for tranformation as:
map:match pattern=bar.svg
 map:generate src=working/Hermes.xml/
 map:transform src=working/barsvg.xsl/
 map:serialize type=svg2jpeg/
/map:match
  
 We are facing some major problems in our PDF file which is generated 
 through cocoon.
 The following are the problems we are facing:

 1.The SVGs embedded in our PDF has a problem in the sharpness, 
 the pictures get distorted .
  
 2.There is an error on the Tomcat console when the PDF gets 
 generated :
 ERROR: The JPEG quality has not been specified. Use the 
 default one: no compression
 How can we set the JPEG quality
  
 3.We want that we can set the background of our PDF report so we 
 are specifying 'background-image' attribute in fo:block element but it 
 seems the cocoon2.0.2 does not support the 'backgorund-image' attribute. 
 Is there any solution to set the background image of the PDF.
  
  
 Thanx
 Yogesh
 Uniqueware Software  Consultancy
 India


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




trouble getting return values from an Action Map

2002-07-09 Thread Leona Slepetis

Hi All,

I've gone  through the samples and archives and still am having trouble
getting return values from an Action.

I followed the sample code for a simple action:

public class GSLoginAction extends AbstractAction {
  public Map act (Redirector redirector,
  SourceResolver resolver,
  Map objectModel,
  String source,
  Parameters params) {

String strUserID;
String strPwd;
String strPlayerID = ;
Request request = ObjectModelHelper.getRequest(objectModel);
strUserID = request.getParameter(userID);
strPwd = request.getParameter(pwd);

// do something with the request parameters here and set strPlayerID

sitemapParams.put(playerID, strPlayerID);
request.setAttribute(playerID, strPlayerID);
if (// the right thing happened) {
  return sitemapParams;
}else {
  return(null);
}
}

It is defined in the sitemap under map:actions, pointing to the correct
class file.
The action is called from this pipeline fragment, which is attached to
the ACTION button of a form with two text boxes, userID and pwd.

map:match pattern=login
  map:act type=gs-login
  map:parameter name=use-request-parameters value=true/
map:parameter name=userID value={1}/
map:parameter name=pwd value={2}/
  map:redirect-to uri=summary
map:parameter name=playerID value={playerID}/
  /map:redirect-to
  /map:act
  map:redirect-to uri=gs/
/map:match

I know that the action is running, and the parameters are passed in, because
of some debugging I did in the Java code. I seem to be getting something
back, becuase if I enter correct values on the form, redirect
to summary does happen. Otherwise it goes to gs.

map:match pattern=summary
  map:generate src=gs.xml/
  map:transform src=gs.xsl
map:parameter name=use-request-parameters value=true/
map:parameter name=pagename value=summary/
map:parameter name=playerID value={1}/
  /map:transform
  map:transform src=default-html.xsl/
  map:serialize type=html/
/map:match

The problem is that playedID is not being passed to summary. Do I
simply have a syntax error in working with the parameter, or is it more
complicated than
that?

Thanks very much,
Leona




-
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: CORREDTION: trouble getting return values from an Action Map

2002-07-09 Thread Leona Slepetis

Yes, I do declare
Map sitemapParams = new HashMap();
in the action.

Sorry for the error.
Leona
 Hi All,

 I've gone  through the samples and archives and still am having trouble
 getting return values from an Action.

 I followed the sample code for a simple action:

 public class GSLoginAction extends AbstractAction {
   public Map act (Redirector redirector,
   SourceResolver resolver,
   Map objectModel,
   String source,
   Parameters params) {

 String strUserID;
 String strPwd;
 String strPlayerID = ;
 Request request = ObjectModelHelper.getRequest(objectModel);
 strUserID = request.getParameter(userID);
 strPwd = request.getParameter(pwd);

 // do something with the request parameters here and set strPlayerID

 sitemapParams.put(playerID, strPlayerID);
 request.setAttribute(playerID, strPlayerID);
 if (// the right thing happened) {
   return sitemapParams;
 }else {
   return(null);
 }
 }

 It is defined in the sitemap under map:actions, pointing to the correct
 class file.
 The action is called from this pipeline fragment, which is attached to
 the ACTION button of a form with two text boxes, userID and pwd.

 map:match pattern=login
   map:act type=gs-login
   map:parameter name=use-request-parameters value=true/
 map:parameter name=userID value={1}/
 map:parameter name=pwd value={2}/
   map:redirect-to uri=summary
 map:parameter name=playerID value={playerID}/
   /map:redirect-to
   /map:act
   map:redirect-to uri=gs/
 /map:match

 I know that the action is running, and the parameters are passed in,
because
 of some debugging I did in the Java code. I seem to be getting something
 back, becuase if I enter correct values on the form, redirect
 to summary does happen. Otherwise it goes to gs.

 map:match pattern=summary
   map:generate src=gs.xml/
   map:transform src=gs.xsl
 map:parameter name=use-request-parameters value=true/
 map:parameter name=pagename value=summary/
 map:parameter name=playerID value={1}/
   /map:transform
   map:transform src=default-html.xsl/
   map:serialize type=html/
 /map:match

 The problem is that playedID is not being passed to summary. Do I
 simply have a syntax error in working with the parameter, or is it more
 complicated than
 that?

 Thanks very much,
 Leona




 -
 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: [HELP] How Can I do ?

2002-07-09 Thread Joerg Heinicke

I think, that's not the best way. Why not doing it in the same way as a 
few hours ago posted: 
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg15068.html.

Regards,

Joerg

Matteo Di Giovinazzo wrote:
 use the selector: org.apache.cocoon.selection.RequestParameterSelector
 
 This should works:
 
 map:pipeline
   map:match pattern=/test.xml
 map:generate src={1}/
 
 map:select type=request-parameter
   map:parameter name=parameter-name value=style/
 
   map:when test=test.xsl
 map:transform src=stylesheets/test.xsl/
   /map:when
 
   map:otherwise
 map:transform src=stylesheets/default.xsl/
   /map:otherwise
 
 /map:select
 
 map:serialize/
 
   /map:match
 /map:pipeline
 
 CIAO!


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




SUMMARY: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Sascha Kulawik
Title: SUMMARY: Howto select EVERY Image ending with *.gif ?








 -Ursprüngliche Nachricht-

 Von: Per Kreipke [mailto:[EMAIL PROTECTED]] 

 Gesendet: Dienstag, 9. Juli 2002 19:04

 An: [EMAIL PROTECTED]

 Betreff: RE: Howto select EVERY Image ending with *.gif ?

 

 

 I think the pattern you want is:

 

 **/*.gif

 

 == 'any .gif in any directory, no matter how deep'

 


Thats it - it works ! 

Thanks a lot.

Another Problem to resolve is identically - if I have a do-login Matcher, i cannot use **/do-login or **/*do-login for the root (http://domain.de/do-login wont work).

Sorry, it is a little bit late and cocoon uses all of my brain-worktime if this will be a smart and easy answer that i suggest :)

Greetings,

Sascha





AW: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Sascha Kulawik
Title: AW: Howto select EVERY Image ending with *.gif ?






Thats it - ist only for gifs and so on. 

Im using the Path as Request-Parameter - so it is possible to have a path you wont suggest.

Does anybody also uses the path as request-parameter or isnt it nice enough ?


 -Ursprüngliche Nachricht-

 Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]] 

 Gesendet: Dienstag, 9. Juli 2002 19:08

 An: [EMAIL PROTECTED]

 Betreff: Re: Howto select EVERY Image ending with *.gif ?

 

 

 It only doesn't match on .gif without any directory. If he 

 doesn't need 

 the filename specifically, the **.gif (he tested already??) is the 

 correct solution.

 

 Joerg

 

 Per Kreipke wrote:

  I think the pattern you want is:

  

  **/*.gif

  

  == 'any .gif in any directory, no matter how deep'

  

  Per

 

 

 -

 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: trouble getting return values from an Action Map

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote:
 Hi All,
 
 I've gone  through the samples and archives and still am having trouble
 getting return values from an Action.
 
   map:act type=gs-login
   map:redirect-to uri=summary
 map:parameter name=playerID value={playerID}/
 
 map:match pattern=summary
 map:parameter name=playerID value={1}/

Leona,
I've deleted all but the relevant lines. Since you send a redirect
response to the browser, processing ends.

The browser requests a new page. For this (second) request, no action
is run, thus no values are set.

  client cocoon
 -gs-login-
 (action)
 ---redirect-to-summary

 summary---
 ---summary

If you need to keep the value, you could
a) use cocoon: protocol in a generator
b) put summary in a resource and call it
c) store value e.g. in session

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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




Re: SUMMARY: Howto select EVERY Image ending with *.gif ?

2002-07-09 Thread Christian Haul

On 09.Jul.2002 -- 10:49 PM, Sascha Kulawik wrote:
 
 
  -Ursprüngliche Nachricht-
  Von: Per Kreipke [mailto:[EMAIL PROTECTED]] 
  Gesendet: Dienstag, 9. Juli 2002 19:04
  An: [EMAIL PROTECTED]
  Betreff: RE: Howto select EVERY Image ending with *.gif ?
  
  
  I think the pattern you want is:
  
  **/*.gif
  
  == 'any .gif in any directory, no matter how deep'
  
 
 Thats it - it works ! 

Sascha,
thank you for following up. When you summarize your problem,
bear in mind that a summary should contain a short explanation
of the original question (afterall, understanding it helps
to fomulate question and intention better), and a short 
statement, how / why it was solved. In short: the summary
should be self-contained so that it could be a start of an 
FAQ entry.

To answer your question (unfortunately deleted):
Match pattern do-login *and* **/do-login because of the /.

Ah, yes: shouldn't start a new thread from a SUMMARY ;-)

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]




RE: trouble getting return values from an Action Map

2002-07-09 Thread Lai, Harry

Hi Leona,

I think there was some discussion about changing how the redirect-to works,
but I believe that in Cocoon 2.0.2, you can't provide parameters via a
map:parameter sub-element.  That is, when you redirect to summary, your
playerID parameter is being ignored.

One possible workaround I've seen mentioned on this list is:

map:act type=gs-login
map:redirect-to uri=summary?playerID={playerID}/
...

If you're planning to pass multiple parameters, though, I think someone
posted something about a bug with escaping the ampersand
(http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101828372801806w=2)
Anyway, hope that helps!

Harry


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 5:09 PM
To: [EMAIL PROTECTED]
Subject: Re: trouble getting return values from an Action Map


On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote:
 Hi All,
 
 I've gone  through the samples and archives and still am having trouble
 getting return values from an Action.
 
   map:act type=gs-login
   map:redirect-to uri=summary
 map:parameter name=playerID value={playerID}/
 
 map:match pattern=summary
 map:parameter name=playerID value={1}/

Leona,
I've deleted all but the relevant lines. Since you send a redirect
response to the browser, processing ends.

The browser requests a new page. For this (second) request, no action
is run, thus no values are set.

  client cocoon
 -gs-login-
 (action)
 ---redirect-to-summary

 summary---
 ---summary

If you need to keep the value, you could
a) use cocoon: protocol in a generator
b) put summary in a resource and call it
c) store value e.g. in session

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

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




RE: generating a manifest of xml docs

2002-07-09 Thread icewind



Conal,

Thank you very much for taking the time to explain
your setup to me. I have found it to be very valuable
and I think others on the list will too.

I got it working on my setup by including the full
XPath expression for the node I want to select in the
xinclude tag. I's a little uncertain about the
fragment #xpointer(/title/text(). What exactly does
that do? Is that a tag that you are looking for in the
ebook? At first I thought it was but then I saw you
using the XPath to extract the title in the stylesheet
that extracts the title for you.

Thanks.


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




Language Exception

2002-07-09 Thread Dan Jones

Hi

I'm a total newbie with cocoon and am getting this error when I try to access
http://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080),
using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional.

I've installed it on another machine using the same OS, servlet engine and cocoon
version, but with JDK1.3.0 and I'm presented with the cocoon homepage when I
enter the previous URL.

Here is the error message I'm receiving. Is there a quick fix for this? Didn't
seem to be any mention of it in the FAQ.

Many thanks

Dan

type fatal

message Language Exception

description org.apache.cocoon.ProcessingException:

Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 0, column 0: could not parse error message:
error: Invalid class file format in
G:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class).
The major.minor version '48.0' is too recent for this tool to understand.



-
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: Profiling

2002-07-09 Thread Vadim Gritsenko

 From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
 
 Hi Vadim,
 
 It's 2.1, I configured cocoon.xconf (ucommented profiler/) and
 activated the Profiling pipelines in sitemap.xmap.
 
 Then I constructed a generator that should show me the results, but
all
 I get is:
 
   ?xml version=1.0 encoding=UTF-8 ?
   profilerinfo xmlns=http://apache.org/cocoon/profiler/1.0;
 date=04.07.2002 15:24:51 /
 
 I think there's something wrong with my generator/pipeline for
 profiling, can you give me an example?

No, I can't. I don't work with 2.1 ATM.

Vadim

 
 
 Thanks, Michael
 
 -Ursprüngliche Nachricht-
 Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 3. Juli 2002 18:08
 An: [EMAIL PROTECTED]
 Betreff: RE: Profiling
 
 
  From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
 
  Hi list,
 
  what do I have to do to turn on profiling in the actual cvs version?
 How
 
 2.1 or 2.0.3? 2.1 has one component less configured in the
cocoon.xconf.
 
 
  ist profiling implemented in general?
 
 Read cocoon.xconf first, it outlines components used. Then modify
 sitemap.xmap to include pipeline which will render results of
profiling.
 
 
 Regards,
 Vadim
 
 
  Cheers, Michael
 
 
 
 -
 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]




Cocoon deli is not work.

2002-07-09 Thread



Hi...all.

I rebuild cocoon for support deli.

but deli is not work correctly.

Error is occured.

what's the matter?

=
The org.apache.cocoon.www.sitemap_xmap notifies 
that org.apache.cocoon.ProcessingException says:Could not read 
resource file:/D:/Tomcat40/webapps/cocoon/docs/samples/hello-page.xml 
More precisely:org.apache.cocoon.ProcessingException: Could 
not read resource file:/D:/Tomcat40/webapps/cocoon/docs/samples/hello-page.xml: 
java.lang.RuntimeException: Can not convert #STRING to a NodeList! 
=