Trouble with if

2003-07-01 Thread Tim Bachta
I am having trouble with an xsl:if condition.  I am testing to see if
the date value is the same as the previous date value. If it is I want
to skip over the code otherwise I want it to execute the code, simple,
here is my code: (the xsl:variable is declared under the stylesheet
element as xsl:variable name=oldGroup/

 

Xml coming in is -

 

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-lines

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  namePest Strip Change - KRL Facility/name 

  duration60.0/duration 

  time-to-comp60.0/time-to-comp 

  percentage100.0/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  nameSafety Checks - LC LSB Facility/name 

  duration120.0/duration 

  time-to-comp0.0/time-to-comp 

  percentage0.0/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  nameSoap Conc. Checks - LC LSB Facility/name 

  duration15.0/duration 

  time-to-comp0.0/time-to-comp 

  percentage0.0/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date05/30/2003/date 

  nameWater Quality - LC LSB Facility/name 

  duration120.0/duration 

  time-to-comp33.0/time-to-comp 

  percentage27.5/percentage 

  /productivity-line

 
http://localhost:8080/cocoon/vyzo/Productivity_By_Agent_pdf?cocoon-view
=debug1## - productivity-line

  date06/02/2003/date 

  nameclean office - 085 Grosvenor - Carpenter,Scott/name 

  duration60.0/duration 

  time-to-comp22.0/time-to-comp 

  percentage36.7/percentage 

  /productivity-line

...

 

Xsl is -- 

 

 xsl:if test=date != $oldGroup

xsl:variable name=oldGroupxsl:value-of
select=date//xsl:variable

fo:table-row empty-cells=show

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

/fo:table-row

fo:table-row

   fo:table-cell

 fo:block font-weight=boldxsl:if
test=(date != '12/31/3000')Date - xsl:value-of
select=date//xsl:if/fo:block

   /fo:table-cell

   fo:table-cell

 fo:block/fo:block

   /fo:table-cell

   fo:table-cell

 fo:block/fo:block

   /fo:table-cell

   fo:table-cell

 fo:block/fo:block

   /fo:table-cell

/fo:table-row

fo:table-row empty-cells=show

   fo:table-cell empty-cells=show

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

   fo:table-cell

 fo:block /fo:block

   /fo:table-cell

/fo:table-row

xsl:if test=(date != '12/31/3000')

   fo:table-row

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldTask Name/fo:block

 /fo:table-cell

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldDuration/fo:block

 /fo:table-cell

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldActual Time Taken/fo:block

 /fo:table-cell

 fo:table-cell border=solid black
1px

fo:block
font-weight=boldPercentage/fo:block

 /fo:table-cell

Re: Trouble with if

2003-07-01 Thread Joerg Heinicke
Group your data by date/, anything else won't work.

http://www.jenitennison.com/xslt/grouping/muenchian.xml
http://www.dpawson.co.uk/xsl/sect2/N4486.html
Joerg

Tim Bachta wrote:
I am having trouble with an xsl:if condition.  I am testing to see if
the date value is the same as the previous date value. If it is I want
to skip over the code otherwise I want it to execute the code, simple,
here is my code: (the xsl:variable is declared under the stylesheet
element as xsl:variable name=oldGroup/
Xml coming in is -
XML and XSLT stripped ...

and my output is showing up with each productivity-line showing.  Thanks
for the help
Tim Bachta


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


Re: Trouble with if

2003-07-01 Thread Erik Bruchez
If you just want to ignore the subsequent productivity-line records
with the same date, i.e. you are only concerned about the first record
for a given date, AND records with the same date are ordered, you
could use something like:
xsl:for-each select=productivity-line
  xsl:if test=position() = 1
 or preceding-sibling::productivity-line[1]/date != date
...
  /xsl:if
/xsl:for-each
This is much lighter that grouping.

-Erik

Joerg Heinicke wrote:

 Group your data by date/, anything else won't work.

 http://www.jenitennison.com/xslt/grouping/muenchian.xml
 http://www.dpawson.co.uk/xsl/sect2/N4486.html

 Joerg

 Tim Bachta wrote:

 I am having trouble with an xsl:if condition.  I am testing to see if
 the date value is the same as the previous date value. If it is I want
 to skip over the code otherwise I want it to execute the code, simple,
 here is my code: (the xsl:variable is declared under the stylesheet
 element as xsl:variable name=oldGroup/

 Xml coming in is -


 XML and XSLT stripped ...

 and my output is showing up with each productivity-line showing.  Thanks
 for the help

 Tim Bachta


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


RE: Trouble with if

2003-07-01 Thread Tim Bachta
Can you give me an example of what you are referring to?

Tim Bachta
 
 

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Trouble with if

Group your data by date/, anything else won't work.

http://www.jenitennison.com/xslt/grouping/muenchian.xml
http://www.dpawson.co.uk/xsl/sect2/N4486.html

Joerg

Tim Bachta wrote:
 I am having trouble with an xsl:if condition.  I am testing to see if
 the date value is the same as the previous date value. If it is I want
 to skip over the code otherwise I want it to execute the code, simple,
 here is my code: (the xsl:variable is declared under the stylesheet
 element as xsl:variable name=oldGroup/
 
 Xml coming in is -

XML and XSLT stripped ...

 and my output is showing up with each productivity-line showing.
Thanks
 for the help
 
 Tim Bachta


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


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



Trouble connecting StreamGenerator to HSSFSerializer

2003-01-13 Thread Eric Simmerman
I'm having trouble combining two Cocoon samples into the same mapping.
I setup this simple mapping using the Stream and POI examples in Cocoon
2.0.4:

   map:match pattern=convert
 map:generate type=stream/
 map:serialize type=xls/
   /map:match

When I fill the Stream example's form (OrderPage.xml modified to
action=convert), with the content from the POI's sample
(hypothetical-sales.xml) and POST it, I get:


type fatal
message Exception in StreamGenerator.generate()
description org.apache.cocoon.ProcessingException: Exception in
StreamGenerator.generate(): java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.cocoon.ProcessingException: Exception in
StreamGenerator.generate(): java.lang.NullPointerException
at
org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:1
64)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)


I was of course hoping that the POSTed XML from hypothetical-sales.xml would
be serialized into XLS and fed back to me as the response. Can anyone
explain why I receive the NullPointer, and/or help me achieve my desired
result?

Thanks,
-Eric Simmerman


-
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 using xsp input logicsheet in cocoon 2.0.4

2003-01-10 Thread Christian Haul
On 09.Jan.2003 -- 10:02 AM, Timothy Larson wrote:
 Thanks Chris, I got it mostly working with your information.
 A couple of issues, though:
 
 The first issue is that while this works fine:
input:get-attribute module=session-attr as=string name=attr1 
default=(Does not exist)/
 this:
input:get-attribute-names module=session-attr as=string/
 produces this for me:
org.apache.cocoon.components.modules.input.IteratorHelper@b1406b

Yes - this is not nice but I'm not sure what the best solution would
be, eg. like a map { one two three } ? What do you think?

 and:
input:get-attribute-names module=session-attr as=xml/
 produces an error.

Right. There has been a mixup in XSPModuleHelper. Please update.

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/?only_with_tag=cocoon_2_0_3_branch

BTW there have been more fixes to 2.0.4 so I strongly suggest to get a
complete version from CVS.

Thanks for reporting!

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 using xsp input logicsheet in cocoon 2.0.4

2003-01-10 Thread Timothy Larson
Thanks, I found and solved the XSPModuleHelper mixup earlier today.
I did not report it yet because I was fixing the the as=string issue.

What is the as=string option used for any way?  The only reason I
looked at it was the broken as=xml option.  If it has an actual use,
that may help decide the output format.

You mention:
BTW there have been more fixes to 2.0.4 so I strongly suggest to get a
complete version from CVS.

I cannot use CVS because I have not found a way to get it through our firewall.
If I am not alone with this problem, is there any chance that downloadable
snapshots could made for the cocoon_2_0_3_branch like we already have for HEAD:
  http://cvs.apache.org/snapshots/xml-cocoon2/

Tim

 [EMAIL PROTECTED] 01/10/03 11:48AM 
On 09.Jan.2003 -- 10:02 AM, Timothy Larson wrote:
 Thanks Chris, I got it mostly working with your information.
 A couple of issues, though:
 
 The first issue is that while this works fine:
input:get-attribute module=session-attr as=string name=attr1 
default=(Does not exist)/
 this:
input:get-attribute-names module=session-attr as=string/
 produces this for me:
org.apache.cocoon.components.modules.input.IteratorHelper@b1406b

Yes - this is not nice but I'm not sure what the best solution would
be, eg. like a map { one two three } ? What do you think?

 and:
input:get-attribute-names module=session-attr as=xml/
 produces an error.

Right. There has been a mixup in XSPModuleHelper. Please update.

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/?only_with_tag=cocoon_2_0_3_branch
 

BTW there have been more fixes to 2.0.4 so I strongly suggest to get a
complete version from CVS.

Thanks for reporting!

   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 using xsp input logicsheet in cocoon 2.0.4

2003-01-09 Thread Christian Haul
On 08.Jan.2003 -- 04:19 PM, Timothy Larson wrote:
 When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error:
/org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; 
Column 54;
Could not find template named: get-string-attribute
 Looking in the cocoon source, get-string-attribute is only mentioned in this 
input.xsl file,
 but no template with this name is ever defined.
 
 What am I missing?

Nothing. The logicsheet is broken in 2.0.4 :-( but the CVS version is
already fixed. Get yourself a fresh checkout of the
cocoon_2_0_3_branch (yes, this is the current 2.0.x bugfix branch):

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r cocoon_2_0_3_branch 
xml-cocoon2

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 using xsp input logicsheet in cocoon 2.0.4

2003-01-09 Thread Timothy Larson
Thanks Chris, I got it mostly working with your information.
A couple of issues, though:

The first issue is that while this works fine:
   input:get-attribute module=session-attr as=string name=attr1 default=(Does 
not exist)/
this:
   input:get-attribute-names module=session-attr as=string/
produces this for me:
   org.apache.cocoon.components.modules.input.IteratorHelper@b1406b
and:
   input:get-attribute-names module=session-attr as=xml/
produces an error.

The second issue may not be important, but it is strange.
Due to our network setup, I cannot use CVS directly, so I got the updated file
from the Code Repository link on http://xml.apache.org/cocoon/;.
Strangly the file input.xsl is not listed on this page:
   
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/?only_with_tag=cocoon_2_0_3_branch
But I did manage to get the file from this link:
   
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/input.xsl?only_with_tag=cocoon_2_0_3_branch

Tim

 [EMAIL PROTECTED] 01/09/03 03:15AM 
...
Nothing. The logicsheet is broken in 2.0.4 :-( but the CVS version is
already fixed. Get yourself a fresh checkout of the
cocoon_2_0_3_branch (yes, this is the current 2.0.x bugfix branch):

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r 
cocoon_2_0_3_branch xml-cocoon2

   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]




trouble using xsp input logicsheet in cocoon 2.0.4

2003-01-08 Thread Timothy Larson
When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error:
   /org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; Column 
54;
   Could not find template named: get-string-attribute
Looking in the cocoon source, get-string-attribute is only mentioned in this 
input.xsl file,
but no template with this name is ever defined.

What am I missing?

Tim



-
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 using xsp input logicsheet in cocoon 2.0.4

2003-01-08 Thread Timothy Larson
When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error:
   /org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; Column 
54;
   Could not find template named: get-string-attribute
Looking in the cocoon source, get-string-attribute is only mentioned in this 
input.xsl file,
but no template with this name is ever defined.

What am I missing?

Tim



-
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 Passing Parameters

2003-01-07 Thread Jacob Arnold
I'm having difficulty passing parameters to my XSP. I'm using the following
in my sitemap:

map:match pattern=*/test.html
  map:generate src=docs/test.xsp type=serverpages
map:parameter name=id value={1}/
  /map:generate
  map:transform src=stylesheets/encode-html.xsl/
  map:serialize/
/map:match

And this in my XSP

xsp-request:get-parameter name=id/

But the value is not showing up. When I try the code suggested in the
matchers and selectors doc,
xsp:exprparameters.getParameter(id)/xsp:expr I get this error:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
test_xsp: Line 373, column 71: unreported exception:
org.apache.avalon.framework.parameters.ParameterException; must be caught or
declared to be thrown Line 0, column 0: 1 error

Any ideas? I'm using Cocoon 2.0.4 and Tomcat 4.1.12. I tried putting the
map:parameter element within my transform, but that didn't seem to work
either.

Thanks,
J

-
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 Passing Parameters

2003-01-07 Thread Michael Wechner
Jacob Arnold wrote:

I'm having difficulty passing parameters to my XSP. I'm using the following
in my sitemap:

map:match pattern=*/test.html
  map:generate src=docs/test.xsp type=serverpages
map:parameter name=id value={1}/
  /map:generate
  map:transform src=stylesheets/encode-html.xsl/
  map:serialize/
/map:match

And this in my XSP

xsp-request:get-parameter name=id/

But the value is not showing up. When I try the code suggested in the
matchers and selectors doc,
xsp:exprparameters.getParameter(id)/xsp:expr I get this error:


Try something like

xsp:page

my_root_element
xsp:logic
  String my_param=parameters.getParameter(id,default_value);
/xsp:logic
/my_root_element
/xsp:page

HTH

Michael




org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
test_xsp: Line 373, column 71: unreported exception:
org.apache.avalon.framework.parameters.ParameterException; must be caught or
declared to be thrown Line 0, column 0: 1 error

Any ideas? I'm using Cocoon 2.0.4 and Tomcat 4.1.12. I tried putting the
map:parameter element within my transform, but that didn't seem to work
either.

Thanks,
J

-
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: Trouble Passing Parameters

2003-01-07 Thread Jacob Arnold
That worked. Thanks for the help.

J


-Original Message-
From: Michael Wechner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: Trouble Passing Parameters


Jacob Arnold wrote:
 I'm having difficulty passing parameters to my XSP. I'm using the
following
 in my sitemap:
 
 map:match pattern=*/test.html
   map:generate src=docs/test.xsp type=serverpages
 map:parameter name=id value={1}/
   /map:generate
   map:transform src=stylesheets/encode-html.xsl/
   map:serialize/
 /map:match
 
 And this in my XSP
 
 xsp-request:get-parameter name=id/
 
 But the value is not showing up. When I try the code suggested in the
 matchers and selectors doc,
 xsp:exprparameters.getParameter(id)/xsp:expr I get this error:

Try something like

xsp:page

my_root_element
xsp:logic
   String my_param=parameters.getParameter(id,default_value);
/xsp:logic
/my_root_element
/xsp:page

HTH

Michael


 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 test_xsp: Line 373, column 71: unreported exception:
 org.apache.avalon.framework.parameters.ParameterException; must be caught
or
 declared to be thrown Line 0, column 0: 1 error
 
 Any ideas? I'm using Cocoon 2.0.4 and Tomcat 4.1.12. I tried putting the
 map:parameter element within my transform, but that didn't seem to work
 either.
 
 Thanks,
 J
 
 -
 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: new to cocoon... trouble creating sandbox

2002-12-24 Thread J. Norment
Sorry about the HTML.  Guess I assumed that I couldn't get HTML
through because when I had tried to post pure HTML -- by accident --
(and not HTML  plain), I got a message that said it didn't accept
HTML.  I thought that it was just accepting the plain and ditching
the HTML, but if you saw it, I guess not...

Anyway... where did you determine that the sitemap is set up wrong?
I looked and I'm not altogether sure how the sitemap specifies where
to look.  ( My best guess is the referrer section? )


On Fri, 20 Dec 2002 16:19:36 -0500, Geoff Howard wrote:
It looks like your sitemap is looking for helloworld.xml in cocoon-
dev/ not
cocoon-dev/tutorial/

Without knowing any more about what sitemap matches you have set up,
it's
hard
to tell what's going on.

Oh and by the way, your email client is sending html email which
will not
win you friends on the list.  Some people with text-only clients
will have a
hard time even reading your messages and won't bother.

Hope that helps,
Geoff Howard


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 12:21 PM
To: [EMAIL PROTECTED]
Subject: new to cocoon... trouble creating sandbox


Running XP/Tomcat 4.1.18/cocoon 2.0.4 ...

Tried to create webapps/cocoon-dev by copying webapps/cocoon to
webapps/cocoon-dev and copying sitemap.xmap and WEB-INF.

( Doing this at the suggestion of a tutorial. )

put helloworld.xml and helloworld.xsp into cocoon-dev/tutorial.

localhost/cocoon-dev/helloworld.xml produces an error: resource-not-
found
cocoon-dev/helloworld.xml .

Can you tell from that information what I'm doing incorrectly?

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]




Re: new to cocoon... trouble creating sandbox

2002-12-21 Thread Cocoon User

have u edit your sitemap?

can you send the part of your sitemap with the refence to this resource?


stavros



On Fri, 20 Dec 2002, J. Norment wrote:

 Running XP/Tomcat 4.1.18/cocoon 2.0.4 ...

 Tried to create webapps/cocoon-dev by copying webapps/cocoon to
 webapps/cocoon-dev and copying sitemap.xmap and WEB-INF.

 ( Doing this at the suggestion of a tutorial. )

 put helloworld.xml and helloworld.xsp into cocoon-dev/tutorial.

 localhost/cocoon-dev/helloworld.xml produces an error:
 resource-not-found cocoon-dev/helloworld.xml .

 Can you tell from that information what I'm doing incorrectly?

 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]




new to cocoon... trouble creating sandbox

2002-12-20 Thread J. Norment


 Running XP/Tomcat 4.1.18/cocoon 2.0.4 ...

  Tried to create webapps/cocoon-dev by copying webapps/cocoon to webapps/cocoon-dev and copying sitemap.xmap and WEB-INF.

  ( Doing this at the suggestion of a tutorial. )

  put helloworld.xml and helloworld.xsp into cocoon-dev/tutorial.

  localhost/cocoon-dev/helloworld.xml produces an error: resource-not-found cocoon-dev/helloworld.xml .

  Can you tell from that information what I'm doing incorrectly?

  Thanks.



RE: new to cocoon... trouble creating sandbox

2002-12-20 Thread Geoff Howard
It looks like your sitemap is looking for helloworld.xml in cocoon-dev/ not
cocoon-dev/tutorial/

Without knowing any more about what sitemap matches you have set up, it's
hard
to tell what's going on.

Oh and by the way, your email client is sending html email which will not
win you friends on the list.  Some people with text-only clients will have a
hard time even reading your messages and won't bother.

Hope that helps,
Geoff Howard


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 12:21 PM
To: [EMAIL PROTECTED]
Subject: new to cocoon... trouble creating sandbox


Running XP/Tomcat 4.1.18/cocoon 2.0.4 ...

Tried to create webapps/cocoon-dev by copying webapps/cocoon to
webapps/cocoon-dev and copying sitemap.xmap and WEB-INF.

( Doing this at the suggestion of a tutorial. )

put helloworld.xml and helloworld.xsp into cocoon-dev/tutorial.

localhost/cocoon-dev/helloworld.xml produces an error: resource-not-found
cocoon-dev/helloworld.xml .

Can you tell from that information what I'm doing incorrectly?

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]




Applet trouble in output...

2002-12-16 Thread Ben Young
The HTML I'm outputting contains applet tags. The applet returned a
ClassNotFoundException. I've added a map:read line for **.jar's to the
sitemap, but to not avail. There is also a file being passed to the applet
with an **.ivr extension. I'm not sure of the mime type, but I suppose I'll
need to do something similar for them.

Thoughts? 

Thanks,
Ben


-
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: SVG trouble!

2002-08-22 Thread Raúl Wild-Spain

I'm going to install X in my Debian and to prove again ...

thanks J.P. !
 ;-))

- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 9:27 PM
Subject: Re: SVG trouble!


 Raúl Wild-Spain wrote:
  java.lang.UnsatisfiedLinkError:
  /usr/local/j2sdk1.4.0_01/jre/lib/i386/libawt.so:
  libXp.so.6: cannot open shared object file: No such file or directory

 Batik, the SVG rasterizer distributed with Cocoon,
 needs by default X11 installed and running in order
 to run. There are various ways to circumvent it,
 check the Cocoon documentation for running..on
 headless servers

 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]



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




SVG trouble!

2002-08-21 Thread Raúl Wild-Spain

Hi! my name is Raul. I've recently installed Resin with Cocoon and when I
try to see an example of Cocoon based in SVG-generator it launch me the
following error (I cutpaste all):

java.lang.UnsatisfiedLinkError:
/usr/local/j2sdk1.4.0_01/jre/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file: No such file or directory
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1396)
 at java.lang.Runtime.loadLibrary0(Runtime.java:772)
 at java.lang.System.loadLibrary(System.java:832)
 at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Toolkit.loadLibraries(Toolkit.java:1397)
 at java.awt.Toolkit.clinit(Toolkit.java:1418)
 at java.awt.Color.clinit(Color.java:250)
 at org.apache.batik.transcoder.image.JPEGTranscoder.init(Unknown Source)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:296)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.cocoon.components.transcoder.ExtendableTranscoderFactory.createTr
anscoder(ExtendableTranscoderFactory.java:102)
 at
org.apache.cocoon.serialization.SVGSerializer.configure(SVGSerializer.java:1
43)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:185)
 at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi
mitingPool.java:629)
 at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo
ol.java:359)
 at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(Poolabl
eComponentHandler.java:186)
 at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.
java:139)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:277)
 at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
mapComponentSelector.java:101)
 at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setSerializer(A
bstractStreamPipeline.java:158)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.setSerializer(Ca
chingStreamPipeline.java:115)
 at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setSerializer(A
bstractStreamPipeline.java:149)
 at
org.apache.cocoon.www.sitemap_xmap.matchG9051960(/var/local/www/webapps/coco
on/WEB-INF/tmp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:4810)
 at
org.apache.cocoon.www.sitemap_xmap.process(/var/local/www/webapps/cocoon/WEB
-INF/tmp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2822)
 at
org.apache.cocoon.www.sitemap_xmap.process(/var/local/www/webapps/cocoon/WEB
-INF/tmp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2504)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
 at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
 at com.caucho.server.http.Invocation.service(Invocation.java:311)
 at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
 at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
 at java.lang.Thread.run(Thread.java:536)

My system is:
* a Linux Debian 2.4.18
* latest ResinEE (resin 2.1.2)
* Cocoon 2
* J2sdk1.4.1 and j2sdkee1.3.1

I don't know if this error is relationed with but I' ve not installed the X
server (and I don't want to install if possible)

thanks 4 your help!

Best regards,

Raúl
[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: SVG trouble!

2002-08-21 Thread J.Pietschmann

Raúl Wild-Spain wrote:
 java.lang.UnsatisfiedLinkError:
 /usr/local/j2sdk1.4.0_01/jre/lib/i386/libawt.so:
 libXp.so.6: cannot open shared object file: No such file or directory

Batik, the SVG rasterizer distributed with Cocoon,
needs by default X11 installed and running in order
to run. There are various ways to circumvent it,
check the Cocoon documentation for running..on
headless servers

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]




[SUMMARY]RE: Build Trouble

2002-08-08 Thread Geoff Howard

I think the problem was an old release of jdk1.3.  I updated to the latest
release from sun.com (1.3.1.04) and the build was successful.

Geoff

 -Original Message-
 From: Geoff Howard 
 Sent: Thursday, August 01, 2002 4:29 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Build Trouble
 
 
 oops, forgot to provide the errors:
 
 compile:
  [copy] Copying 28 files to 
 C:\cocoon\cocoon-2.0.3\build\cocoon\classes
  [echo] Compiling with Java 1.3, debug on, optimize off, 
 deprecation off
 [javac] Compiling 609 source files to
 C:\cocoon\cocoon-2.0.3\build\cocoon\classes
 [javac]
 C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\comp
 onents\languag
 e\generator\GeneratorSelector.java:129: cannot resolve symbol
 [javac] symbol  : method setLoggerManager
 (org.apache.avalon.excalibur.logger.LoggerManager)
 [javac] location: class
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector
 [javac] super.setLoggerManager(logkit);
 [javac]  ^
 [javac]
 C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\comp
 onents\languag
 e\generator\GeneratorSelector.java:186: cannot resolve symbol
 [javac] symbol  : method getLogkitLogger  ()
 [javac] location: class
 org.apache.cocoon.components.language.generator.GeneratorSelector
 [javac] handler.setLogger(getLogkitLogger());
 [javac]   ^
 [javac]
 C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\comp
 onents\languag
 e\programming\java\JavaProgram.java:89: cannot resolve symbol
 [javac] symbol  : method getComponentHandler
 (java.lang.Class,org.apache.avalon.framework.configuration.Def
 aultConfigurat
 ion,org.apache.avalon.fr
 amework.component.ComponentManager,org.apache.avalon.framework
 .context.Conte
 xt,org.apache.avalon.excalibur.component.RoleManager,org.apach
 e.avalon.exc
 alibur.component.LogkitLoggerManager)
 [javac] location: class
 org.apache.avalon.excalibur.component.ComponentHandler
 [javac] return ComponentHandler.getComponentHandler(
 [javac]^
 [javac]
 C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\comp
 onents\languag
 e\programming\javascript\JavascriptProgram.java:109: cannot re
 solve symbol
 [javac] symbol  : method getComponentHandler
 (java.lang.Class,org.apache.avalon.framework.configuration.Def
 aultConfigurat
 ion,org.apache.avalon.fr
 amework.component.ComponentManager,org.apache.avalon.framework
 .context.Conte
 xt,org.apache.avalon.excalibur.component.RoleManager,org.apach
 e.avalon.exc
 alibur.component.LogkitLoggerManager)
 [javac] location: class
 org.apache.avalon.excalibur.component.ComponentHandler
 [javac] return ComponentHandler.getComponentHandler(
 [javac]^
 [javac]
 C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\xml\
 dom\SVGBuilder
 .java:85: cannot resolve symbol
 [javac] symbol  : method setCSSParserClassName  (java.lang.String)
 [javac] location: class 
 org.apache.batik.util.XMLResourceDescriptor
 [javac]
 XMLResourceDescriptor.setCSSParserClassName(CSS_PARSER_CLASS_NAME);
 [javac]  ^
 [javac] 5 errors
 
 BUILD FAILED
 
 C:\cocoon\cocoon-2.0.3\build.xml:954: Compile failed, 
 messages should have
 been provided.
 
 Total time: 1 minute 59 seconds
 
  -Original Message-
  From: Geoff Howard 
  Sent: Thursday, August 01, 2002 4:24 PM
  To: '[EMAIL PROTECTED]'
  Subject: Build Trouble
  
  
  I have been using the HEAD branch from CVS, but have just 
  downloaded a copy
  of the 2.0.3 source distribution and have been unable to build.
  
  I'm using JDK 1.3.1 on Win2k
  with the command: build -Dinclude.webapp.libs=yes
  -Dinstall.war=%TOMCAT_HOME%\webapps webapp
  where %TOMCAT_HOME% evaluates to c:\jakarta-tomcat-4.0, which 
  is my correct
  installation.
  
  As I said, I already have a version of Cocoon 2.1-dev built 
  and running, but
  don't see why that would affect anything.  I've used build 
  clean after 
  each failed attempt.
  
  Any ideas?  I haven't seen any complaints about this on either list.
  
  Geoff Howard
  
  
 -
  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

RE: Build Trouble

2002-08-01 Thread Argyn Kuketayev

what was an error?

 -Original Message-
 From: Geoff Howard [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 4:24 PM
 To: '[EMAIL PROTECTED]'
 Subject: Build Trouble
 
 
 I have been using the HEAD branch from CVS, but have just 
 downloaded a copy
 of the 2.0.3 source distribution and have been unable to build.

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




Build Trouble

2002-08-01 Thread Geoff Howard

I have been using the HEAD branch from CVS, but have just downloaded a copy
of the 2.0.3 source distribution and have been unable to build.

I'm using JDK 1.3.1 on Win2k
with the command: build -Dinclude.webapp.libs=yes
-Dinstall.war=%TOMCAT_HOME%\webapps webapp
where %TOMCAT_HOME% evaluates to c:\jakarta-tomcat-4.0, which is my correct
installation.

As I said, I already have a version of Cocoon 2.1-dev built and running, but
don't see why that would affect anything.  I've used build clean after 
each failed attempt.

Any ideas?  I haven't seen any complaints about this on either list.

Geoff Howard

-
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: Build Trouble

2002-08-01 Thread Geoff Howard

oops, forgot to provide the errors:

compile:
 [copy] Copying 28 files to C:\cocoon\cocoon-2.0.3\build\cocoon\classes
 [echo] Compiling with Java 1.3, debug on, optimize off, deprecation off
[javac] Compiling 609 source files to
C:\cocoon\cocoon-2.0.3\build\cocoon\classes
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\generator\GeneratorSelector.java:129: cannot resolve symbol
[javac] symbol  : method setLoggerManager
(org.apache.avalon.excalibur.logger.LoggerManager)
[javac] location: class
org.apache.avalon.excalibur.component.ExcaliburComponentSelector
[javac] super.setLoggerManager(logkit);
[javac]  ^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\generator\GeneratorSelector.java:186: cannot resolve symbol
[javac] symbol  : method getLogkitLogger  ()
[javac] location: class
org.apache.cocoon.components.language.generator.GeneratorSelector
[javac] handler.setLogger(getLogkitLogger());
[javac]   ^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\programming\java\JavaProgram.java:89: cannot resolve symbol
[javac] symbol  : method getComponentHandler
(java.lang.Class,org.apache.avalon.framework.configuration.DefaultConfigurat
ion,org.apache.avalon.fr
amework.component.ComponentManager,org.apache.avalon.framework.context.Conte
xt,org.apache.avalon.excalibur.component.RoleManager,org.apache.avalon.exc
alibur.component.LogkitLoggerManager)
[javac] location: class
org.apache.avalon.excalibur.component.ComponentHandler
[javac] return ComponentHandler.getComponentHandler(
[javac]^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\components\languag
e\programming\javascript\JavascriptProgram.java:109: cannot re
solve symbol
[javac] symbol  : method getComponentHandler
(java.lang.Class,org.apache.avalon.framework.configuration.DefaultConfigurat
ion,org.apache.avalon.fr
amework.component.ComponentManager,org.apache.avalon.framework.context.Conte
xt,org.apache.avalon.excalibur.component.RoleManager,org.apache.avalon.exc
alibur.component.LogkitLoggerManager)
[javac] location: class
org.apache.avalon.excalibur.component.ComponentHandler
[javac] return ComponentHandler.getComponentHandler(
[javac]^
[javac]
C:\cocoon\cocoon-2.0.3\build\cocoon\src\org\apache\cocoon\xml\dom\SVGBuilder
.java:85: cannot resolve symbol
[javac] symbol  : method setCSSParserClassName  (java.lang.String)
[javac] location: class org.apache.batik.util.XMLResourceDescriptor
[javac]
XMLResourceDescriptor.setCSSParserClassName(CSS_PARSER_CLASS_NAME);
[javac]  ^
[javac] 5 errors

BUILD FAILED

C:\cocoon\cocoon-2.0.3\build.xml:954: Compile failed, messages should have
been provided.

Total time: 1 minute 59 seconds

 -Original Message-
 From: Geoff Howard 
 Sent: Thursday, August 01, 2002 4:24 PM
 To: '[EMAIL PROTECTED]'
 Subject: Build Trouble
 
 
 I have been using the HEAD branch from CVS, but have just 
 downloaded a copy
 of the 2.0.3 source distribution and have been unable to build.
 
 I'm using JDK 1.3.1 on Win2k
 with the command: build -Dinclude.webapp.libs=yes
 -Dinstall.war=%TOMCAT_HOME%\webapps webapp
 where %TOMCAT_HOME% evaluates to c:\jakarta-tomcat-4.0, which 
 is my correct
 installation.
 
 As I said, I already have a version of Cocoon 2.1-dev built 
 and running, but
 don't see why that would affect anything.  I've used build 
 clean after 
 each failed attempt.
 
 Any ideas?  I haven't seen any complaints about this on either list.
 
 Geoff Howard
 
 -
 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]




trouble passing a parameter to my action

2002-07-25 Thread Barbara Post

Hello, I use the following with C 2.0.3 :


   map:action logger=error.baepp.setmydate name=setmydate
src=baepp.SetMyDateAction/

To keep it simple this action takes lang parameter and puts its value in
mydate parameter.

and a test pipeline :

map:pipeline
map:match pattern=mytest/*
map:act type=setmydate
map:parameter name=lang value={1}/
map:redirect-to uri=http://www.google.fr/{mydate}/
/map:act
map:redirect-to uri=http://www.google.fr/pasok/{1}/
/map:match
/map:pipeline


I doesn't work and redirects to the map:act failure url.

If I use map:parameter name=lang value=EN/ it works.

I want to use the value of * to pass it to my action. What's wrong ? I
also tried {../1} but this does not exist.

Thanks for a tip !

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]




AW: trouble passing a parameter to my action

2002-07-25 Thread Sternath Elmar

Are you sure that you put your mydate param into a HashMap and that you also return 
this HashMap inside your act method. If you don't return at least an empty HashMap, 
nothing will be done inside the action tags. Your pipeline entries seem to be correct, 
it should work with {1}.

Regards,
Elmar

-Ursprüngliche Nachricht-
Von: Barbara Post [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 25. Juli 2002 09:30
An: [EMAIL PROTECTED]
Betreff: trouble passing a parameter to my action 


Hello, I use the following with C 2.0.3 :


   map:action logger=error.baepp.setmydate name=setmydate
src=baepp.SetMyDateAction/

To keep it simple this action takes lang parameter and puts its value in
mydate parameter.

and a test pipeline :

map:pipeline
map:match pattern=mytest/*
map:act type=setmydate
map:parameter name=lang value={1}/
map:redirect-to uri=http://www.google.fr/{mydate}/
/map:act
map:redirect-to uri=http://www.google.fr/pasok/{1}/
/map:match
/map:pipeline


I doesn't work and redirects to the map:act failure url.

If I use map:parameter name=lang value=EN/ it works.

I want to use the value of * to pass it to my action. What's wrong ? I
also tried {../1} but this does not exist.

Thanks for a tip !

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]




Action and sunRise context(s) [was : Re: trouble passing a parameter to my action ]

2002-07-25 Thread Barbara Post

Hi Elmar, yes I did so. Got NullPointerException. I extended ComposerAction,
am I wrong with that ?

Have another question now : how can my action put something in a sunrise
context (mycontext), or else will use parameter associated with
redirect-to :-/

Thanks, gotta dig for it.

Barbara
- Original Message -
From: Sternath Elmar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 10:41 AM
Subject: AW: trouble passing a parameter to my action


Are you sure that you put your mydate param into a HashMap and that you also
return this HashMap inside your act method. If you don't return at least an
empty HashMap, nothing will be done inside the action tags. Your pipeline
entries seem to be correct, it should work with {1}.

Regards,
Elmar

-Ursprüngliche Nachricht-



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




AW: Action and sunRise context(s) [was : Re: trouble passing a parameter to my action ]

2002-07-25 Thread Sternath Elmar

Hi Barbara,

extending ComposerAction is correct, maybe you should take a look into your 
cocoon/Web-Inf/logs/error.log to check where exactly the null pointer exception 
occurs. Perhaps something else is wrong inside your action code. Sorry, I'm not 
familiar with sunrise.

-Ursprüngliche Nachricht-
Von: Barbara Post [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 25. Juli 2002 11:18
An: [EMAIL PROTECTED]
Betreff: Action and sunRise context(s) [was : Re: trouble passing a
parameter to my action ]


Hi Elmar, yes I did so. Got NullPointerException. I extended ComposerAction,
am I wrong with that ?

Have another question now : how can my action put something in a sunrise
context (mycontext), or else will use parameter associated with
redirect-to :-/

Thanks, gotta dig for it.

Barbara
- Original Message -
From: Sternath Elmar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 10:41 AM
Subject: AW: trouble passing a parameter to my action


Are you sure that you put your mydate param into a HashMap and that you also
return this HashMap inside your act method. If you don't return at least an
empty HashMap, nothing will be done inside the action tags. Your pipeline
entries seem to be correct, it should work with {1}.

Regards,
Elmar

-Ursprüngliche Nachricht-



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

2002-07-12 Thread Lai, Harry

Ah, that makes sense now.  Thanks, Chris!

Harry

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 2:18 AM
To: [EMAIL PROTECTED]
Subject: Re: trouble getting return values from an Action Map


On 09.Jul.2002 -- 05:39 PM, Lai, Harry wrote:
 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)

Harry, this bug stems from the fact that a sitemap is XML and  is
used to start an XML entity. Just like s are not usable in XML as
characters.
However, using the XML entity amp; and lt; instead works
fine. E.g. map:redirect-to uri=some_page?foo=abcamp;bar=def/

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]




Re: trouble getting return values from an Action Map

2002-07-12 Thread Leona Slepetis

Thanks to both of you. It is working now.
Leona

- Original Message -
From: Lai, Harry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 09, 2002 5:39 PM
Subject: RE: trouble getting return values from an Action Map


 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]





-
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-12 Thread Christian Haul

On 12.Jul.2002 -- 11:46 AM, Leona Slepetis wrote:
 Thanks to both of you. It is working now.
 Leona

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]




Trouble with SourceWritingTransformer

2002-07-11 Thread Gerardo_Flores

I seem to have done everything right and was testing out the
SourceWritingTransformer and can't get it to write to a file.  I have the
pipeline

map:match pattern=test/*.xsp
  map:generate type =serverpages src=test/{1}.xsp/
  map:transform type=sql
  map:parameter name=use-connection value=dev_database/
  /map:transform
  map:transform src=test/metadata.xsl/
  map:transform type=xslt-with-parameters src=test/source.xsl
  map:parameter name=page-title value={page-title}/
  /map:transform
  map:transform type=tofile2
  map:parameter name=serializer value=xml/
  /map:transform
  map:serialize type=xml/
   /map:match

I know that everything up to the second transformation works (until the
tofile2 trans which is the SWT).  The input to the SWT looks like this:
?xml version=1.0 encoding=UTF-8 ?
   source:write xmlns:source=http://apache.org/cocoon/source/1.0; src=
   context://my.xml
  KnowledgeObject xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 ...stuff..
     /KnowledgeObject
    /source:write

The error I get is:
?xml version=1.0 encoding=UTF-8 ?
source:write src=file:C:\jakarta-tomcat-3.2.4\webapps\cocoon\my.xml
action=none result=failed serializer=xml xmlns:source=
http://apache.org/cocoon/source/1.0;The src attribute doesn't resolve to a
writeable source and failed to cancel
/source:write

   not sure what I am doing wrong???  Could anyone enlighten me?  It seems
   as though the file:C:\jakarta-tomcat-3.2.4\webapps\cocoon\my.xml is
   badly formed, but this path gets generated by the SWT as what I hard
   coded into the xsl sheet is below:

?xml version=1.0 encoding=UTF-8?
xsl:transform xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version
=1.0
   xmlns:source=http://apache.org/cocoon/source/1.0;
xsl:output method=xml encoding=UTF-8 indent=yes/
xsl:strip-space elements=*/

xsl:template match=/
xsl:element name=source:write
xsl:attribute name=srccontext://my.xml/xsl:attribute
xsl:copy-of select=./
/xsl:element
/xsl:template
/xsl:transform

Am I using the SWT wrong?

-Gerardo

+-+
This message may contain confidential and/or privileged
information.  If you are not the addressee or authorized to
receive this for the addressee, you must not use, copy,
disclose or take any action based on this message or any
information herein.  If you have received this message in
error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation.
+-+


-
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-10 Thread Christian Haul

On 09.Jul.2002 -- 05:39 PM, Lai, Harry wrote:
 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)

Harry, this bug stems from the fact that a sitemap is XML and  is
used to start an XML entity. Just like s are not usable in XML as
characters.
However, using the XML entity amp; and lt; instead works
fine. E.g. map:redirect-to uri=some_page?foo=abcamp;bar=def/

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]




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: 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: 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: Simple esql problem - Oh I see the trouble.

2002-04-24 Thread jsexton


Christian Haul says:
class not found. Looks like there is a problem with your XSP or - if any - your
 logicsheets. There should be another message telling you exactly what
 went wrong. Cocoon is very verbose on errors so sometimes one doesn't
 spot the root cause.
 
 Your XSP will be transformed to a java file, here
 org/apache/cocoon/www/docs/myfile_xml.java and then compiled to
 org/apache/cocoon/www/docs/myfile_xml.class
 (paths relative to $TOMCAT/work/localhost/cocoon/)

I see the trouble.  My files are all in a subdirectory (say myDir)
under docs.  Everything works except jsp where it will need to create
and run the servlet.  The work directory on contains docs/samples,
docs/myDir isn't there, and that's the class not found.

I left the myDir out of the code I posted here earlier to simplify
it.  I figured that was working since it's finding all my files fine.
How do I add additional directories under docs and get the right
directory structure to be created under
$TOMCAT/work/localhost/cocoon/?

Thanks!  I'm making good progress!


--
Jeff Sexton
ODS Health Plans
[EMAIL PROTECTED]

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

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




Re: Simple esql problem - Oh I see the trouble.

2002-04-24 Thread Christian Haul

[EMAIL PROTECTED] wrote:
 Christian Haul says:
 class not found. Looks like there is a problem with your XSP or - if any - your
 
logicsheets. There should be another message telling you exactly what
went wrong. Cocoon is very verbose on errors so sometimes one doesn't
spot the root cause.

Your XSP will be transformed to a java file, here
org/apache/cocoon/www/docs/myfile_xml.java and then compiled to
org/apache/cocoon/www/docs/myfile_xml.class
(paths relative to $TOMCAT/work/localhost/cocoon/)
 
 
 I see the trouble.  My files are all in a subdirectory (say myDir)
 under docs.  Everything works except jsp where it will need to create
 and run the servlet.  The work directory on contains docs/samples,
 docs/myDir isn't there, and that's the class not found.
 
 I left the myDir out of the code I posted here earlier to simplify
 it.  I figured that was working since it's finding all my files fine.
 How do I add additional directories under docs and get the right
 directory structure to be created under
 $TOMCAT/work/localhost/cocoon/?
 

No need to - directories will be created as needed. So, you don't have a 
  .java file. That means your transformation process is aborted by an error.

I didn't see an obvious error in your previous post. Please show us the 
logs for this request. sitemap.log should contain all information 
needed. Look at the times and post all lines that belong together. There 
   may be more than one error message and the root cause is not always 
the first error but sometimes the second or third.

Chris.


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

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




Trouble with action sets

2002-04-08 Thread Volker Schneider

Dear cocoon users group,

I tried to use multiple submit-buttons within a pipeline using an action
set. This works fine, but I can only call separate actions depending on the
submit button: Clicking button1 action1 is called, clicking button2 is
called, but it's always the same pipeline I can add behind the action set.

What I want to do is to select the pipeline depending on the submit button:
Clicking button1 action1 and pipeline1 should be performed, clickking
button2 action2 and pipeline2 should be performed.

I tried it like this:

...
map:generator name=route src=testapp.XYRouteGenerator/map:generator
...

map:action name=XYTestAction src=testapp.XYTestAction/
map:action name=XYTestAction2 src=testapp.XYTestAction2/
...

map:action-set name=XY
map:act type=XYTestAction action=rlist
map:generate type=route/
map:transform src=prototyp/routelist.xsl/
map:serialize/
/map:act

map:act type=XYTestAction2 action=rlist2
map:generate type=route/
map:transform src=prototyp/routelist.xsl/
map:serialize/
 /map:act
  /map:action-set

/map:action-sets

map:match pattern=route/submit_full
map:act set=XY
/map:act
/map:match

As a result I got the following error message (Cocoon 2.0.2, WebSphere
Studio Application Developer 4.0.2):

Error page exception
The server cannot use the error page specified for your application to
handle the Original Exception printed below. Please see the Error Page
Exception below for a description of the problem with the specified error
page.
Original Exception:
Error Message: [Cocoon2] hat einen Fehler gemeldet
Error Code: 404
Target Servlet: Cocoon2
Error Stack:
com.ibm.servlet.engine.webapp.WebAppErrorReport: [Cocoon2] hat einen Fehler
gemeldet
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:85)
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:68)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:184)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:125)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

Error Page Exception:
Error Message: [Cocoon2] hat einen Fehler gemeldet
Error Code: 404
Target Servlet: Cocoon2
Error Stack:
com.ibm.servlet.engine.webapp.WebAppErrorReport: [Cocoon2] hat einen Fehler
gemeldet
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:85)
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:68)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
at
com.ibm.servlet.engine.webapp.ServicingServletState.service(StrictLifecycleS
ervlet.java:317)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
at

FW: Trouble with action sets

2002-04-08 Thread Volker Schneider



 -Original Message-
From:   Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent:   Montag, 8. April 2002 10:27
To: '[EMAIL PROTECTED]'
Subject:Trouble with action sets

Dear cocoon users group,

I tried to use multiple submit-buttons within a pipeline using an action
set. This works fine, but I can only call separate actions depending on the
submit button: Clicking button1 action1 is called, clicking button2 is
called, but it's always the same pipeline I can add behind the action set.

What I want to do is to select the pipeline depending on the submit button:
Clicking button1 action1 and pipeline1 should be performed, clickking
button2 action2 and pipeline2 should be performed.

I tried it like this:

...
map:generator name=route src=testapp.XYRouteGenerator/map:generator
...

map:action name=XYTestAction src=testapp.XYTestAction/
map:action name=XYTestAction2 src=testapp.XYTestAction2/
...

map:action-set name=XY
map:act type=XYTestAction action=rlist
map:generate type=route/
map:transform src=prototyp/routelist.xsl/
map:serialize/
/map:act

map:act type=XYTestAction2 action=rlist2
map:generate type=route/
map:transform src=prototyp/routelist.xsl/
map:serialize/
 /map:act
  /map:action-set

/map:action-sets

map:match pattern=route/submit_full
map:act set=XY
/map:act
/map:match

As a result I got the following error message (Cocoon 2.0.2, WebSphere
Studio Application Developer 4.0.2):

Error page exception
The server cannot use the error page specified for your application to
handle the Original Exception printed below. Please see the Error Page
Exception below for a description of the problem with the specified error
page.
Original Exception:
Error Message: [Cocoon2] hat einen Fehler gemeldet
Error Code: 404
Target Servlet: Cocoon2
Error Stack:
com.ibm.servlet.engine.webapp.WebAppErrorReport: [Cocoon2] hat einen Fehler
gemeldet
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:85)
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:68)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:184)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:125)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

Error Page Exception:
Error Message: [Cocoon2] hat einen Fehler gemeldet
Error Code: 404
Target Servlet: Cocoon2
Error Stack:
com.ibm.servlet.engine.webapp.WebAppErrorReport: [Cocoon2] hat einen Fehler
gemeldet
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:85)
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:68)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167

RE: cocoon startup trouble

2002-04-01 Thread Vadim Gritsenko

Try starting Tomcat without security manager (read startup.bat,
catalina.bat).

Vadim

 From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
 
 hi,
 
 Am trying to install cocoon 2.0.2 with tomcat 4.0.1..My OS is Win 98
 On dumping the war into the webapps directory, Tomcat does the war
 extraction and stuff perfectly well.
 However, on providing the URL  http://localhost:8080/cocoon , the
following
 is the error i consistently run into..
 Has anyone encountered this in the past?
 Kindly let me know how i could fix it.
 
 thanks,
 harshad
 
 



 *



 *
 
 Cocoon 2 - Internal server error
 
 
 
 type fatal
 message Exception in creating Transform Handler
 description org.apache.cocoon.ProcessingException: Exception in
creating
 Transform Handler: java.lang.IllegalArgumentException: Illegal Load:
0.75
 sender org.apache.cocoon.servlet.CocoonServlet
 source Cocoon servlet
 stack-trace
 org.apache.cocoon.ProcessingException: Exception in creating Transform
 Handler: java.lang.IllegalArgumentException: Illegal Load: 0.75
   at

org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandle
r(XS
 LTProcessorImpl.java:273)
   at

org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHa
ndle
 r(Logicsheet.java:160)
   at

org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs
(Log
 icsheet.java:142)
   at

org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addL
ogic
 sheetToList(AbstractMarkupLanguage.java:466)
   at

org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLog
icsh
 eetToList(CocoonMarkupLanguage.java:164)
   at

org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$Tran
sfor
 merChainBuilderFilter.startElement(AbstractMarkupLanguage.java:628)
   at

org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$Cocoon
Tran
 sformerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:437)
   at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
   at

org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PrePro
cess
 Filter.startElement(CocoonMarkupLanguage.java:286)
   at

org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
er.j
 ava:445)
   at

org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespac
eBin
 der.java:832)
   at

org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinde
r.ja
 va:568)
   at

org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
java
 :808)
   at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDo
 cumentFragmentScannerImpl.java:752)
   at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patc
 her.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
   at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cume
 ntFragmentScannerImpl.java:333)
   at

org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erCo
 nfiguration.java:525)
   at

org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erCo
 nfiguration.java:581)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
   at

org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:115
 7)
   at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
   at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
   at

org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.gen
erat
 eCode(LogicsheetCodeGenerator.java:175)
   at

org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
rate
 Code(AbstractMarkupLanguage.java:390)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
erat
 eResource(ProgramGeneratorImpl.java:365)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateR
 esource(ProgramGeneratorImpl.java:328)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Pr
 ogramGeneratorImpl.java:291)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:484)
 java.lang.IllegalArgumentException: Illegal Load: 0.75
   at java.util.Hashtable.(Hashtable.java:148)
   at java.util.Hashtable.(Hashtable.java:166)
   at
 java.security.BasicPermissionCollection.(BasicPermission.java:293)
   at

java.security.BasicPermission.newPermissionCollection(BasicPermission.ja
va:2
 42)
   at

java.security.Permissions.getPermissionCollection(Permissions.java:202)
   at java.security.Permissions.add(Permissions.java:92)
   at sun.security.provider.PolicyFile$5.run(PolicyFile.java:835)
   at java.security.AccessController.doPrivileged(Native Method)

cocoon startup trouble

2002-03-31 Thread Harshad . Oak

hi,

Am trying to install cocoon 2.0.2 with tomcat 4.0.1..My OS is Win 98
On dumping the war into the webapps directory, Tomcat does the war
extraction and stuff perfectly well. 
However, on providing the URL  http://localhost:8080/cocoon , the following
is the error i consistently run into..
Has anyone encountered this in the past? 
Kindly let me know how i could fix it.

thanks,
harshad



*

*

Cocoon 2 - Internal server error



type fatal
message Exception in creating Transform Handler
description org.apache.cocoon.ProcessingException: Exception in creating
Transform Handler: java.lang.IllegalArgumentException: Illegal Load: 0.75
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler: java.lang.IllegalArgumentException: Illegal Load: 0.75
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:273)
at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandle
r(Logicsheet.java:160)
at
org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs(Log
icsheet.java:142)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogic
sheetToList(AbstractMarkupLanguage.java:466)
at
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsh
eetToList(CocoonMarkupLanguage.java:164)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$Transfor
merChainBuilderFilter.startElement(AbstractMarkupLanguage.java:628)
at
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTran
sformerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:437)
at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
at
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcess
Filter.startElement(CocoonMarkupLanguage.java:286)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:445)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin
der.java:832)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja
va:568)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java
:808)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:752)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:525)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:115
7)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat
eCode(LogicsheetCodeGenerator.java:175)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:390)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:365)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)
java.lang.IllegalArgumentException: Illegal Load: 0.75
at java.util.Hashtable.(Hashtable.java:148)
at java.util.Hashtable.(Hashtable.java:166)
at
java.security.BasicPermissionCollection.(BasicPermission.java:293)
at
java.security.BasicPermission.newPermissionCollection(BasicPermission.java:2
42)
at
java.security.Permissions.getPermissionCollection(Permissions.java:202)
at java.security.Permissions.add(Permissions.java:92)
at sun.security.provider.PolicyFile$5.run(PolicyFile.java:835)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:812)
at
sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:786)
at

Trouble with actions

2002-02-18 Thread Henrik Hofmann
Title: Message



Hi,

I have some trouble 
using actions. It's most likely i don't understand something but perhaps someone 
can help.

I'm trying to insert 
some actions to my pages. Some combinations work and some 
don't.

 
map:match 
pattern="search.html"map:generate 
src="/search/search2.xml" 
type="serverpages"/ 
map:transform 
src="/search/SearchLayout.xml"/ 
map:serialize 
type="html"//map:match

This works 
perfectly



 
map:match pattern="search.html" 
 map:act 
type="LogOn"/map:generate 
src="/search/search2.xml" 
type="serverpages"/ 
map:transform 
src="/search/SearchLayout.xml"/ 
map:serialize 
type="html"/ 
/map:match

This works fine 
too




 
map:match pattern="search.html" 
 map:act 
type="LogOn"/
map:act 
type="CheckLogon"map:generate 
src="/search/search2.xml" 
type="serverpages"/ 
map:transform 
src="/search/SearchLayout.xml"/ 
map:serialize 
type="html"/map:act 
/map:match

This gives me an 
error message when i want to call the page
WARN (2002-05-18) 
11:15.04:125 [cocoon ] (/cocoon/creon/search.html) 
Thread-12/sitemap_xmap: 404, try to process the error 
pageorg.apache.cocoon.ResourceNotFoundException: Resource not found 
file:/F:/Webserver/tomcat/webapps/cocoon/creon/


I also have a minor 
problem.

 
map:match pattern="search.html" 
 map:act set="EnablerSession"/
map:act 
type="CheckLogon"map:generate 
src="/search/search2.xml" 
type="serverpages"/ 
map:transform 
src="/search/SearchLayout.xml"/ 
map:serialize 
type="html"/map:act 
/map:match

When I wnat to use 
this he tells me I'm usign deprecated API. But isn't this the way to use action 
sets?

Thnx in 
advance


Re: Trouble with actions

2002-02-18 Thread Torsten Curdt

 map:match pattern=search.html
 map:act type=LogOn/
map:act type=CheckLogon
  map:generate src=/search/search2.xml
 type=serverpages/
 map:transform src=/search/SearchLayout.xml/
 map:serialize type=html/
   map:act
 /map:match

 This gives me an error message when i want to call the page
 WARN(2002-05-18) 11:15.04:125   [cocoon  ]
 (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to process
 the error page
 org.apache.cocoon.ResourceNotFoundException: Resource not found
 file:/F:/Webserver/tomcat/webapps/cocoon/creon/

Remember if an action returns null (no Map at all) all child processing
inside a pipeline is skipped and you are back matching the request.
...so since you have no other match for the request inside you pipelines
you get a resource not found

 I also have a minor problem.

map:match pattern=search.html
 map:act set=EnablerSession/
map:act type=CheckLogon
  map:generate src=/search/search2.xml
 type=serverpages/
 map:transform src=/search/SearchLayout.xml/
 map:serialize type=html/
   map:act
 /map:match

 When I wnat to use this he tells me I'm usign deprecated API. But isn't
 this the way to use action sets?

Where does he tell?
--
Torsten


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

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




RE: Trouble with actions

2002-02-18 Thread Henrik Hofmann



 -Original Message-
 From: Torsten Curdt [mailto:[EMAIL PROTECTED]] 
 Sent: Montag, 18. Februar 2002 11:43
 To: [EMAIL PROTECTED]
 Subject: Re: Trouble with actions
 
 
  map:match pattern=search.html
  map:act type=LogOn/
 map:act type=CheckLogon
   map:generate src=/search/search2.xml 
  type=serverpages/
  map:transform src=/search/SearchLayout.xml/
  map:serialize type=html/
map:act
  /map:match
 
  This gives me an error message when i want to call the page
  WARN(2002-05-18) 11:15.04:125   [cocoon  ]
  (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to 
  process the error page
  org.apache.cocoon.ResourceNotFoundException: Resource not found 
  file:/F:/Webserver/tomcat/webapps/cocoon/creon/
 
 Remember if an action returns null (no Map at all) all child 
 processing inside a pipeline is skipped and you are back 
 matching the request. ...so since you have no other match for 
 the request inside you pipelines you get a resource not found

Yes I know this. Nut this isn't the problem. The action is working fine
and doesn't return null. The problem is he doesn't find the stylesheets
when it's inside the action.

I copied the wrong error message.

org.apache.cocoon.ResourceNotFoundException: Resource not found
file:/search/search2.xml

When I use it without the action it works fine.





  I also have a minor problem.
 
 map:match pattern=search.html
  map:act set=EnablerSession/
 map:act type=CheckLogon
   map:generate src=/search/search2.xml 
  type=serverpages/
  map:transform src=/search/SearchLayout.xml/
  map:serialize type=html/
map:act
  /map:match
 
  When I wnat to use this he tells me I'm usign deprecated API. But 
  isn't this the way to use action sets?
 
 Where does he tell?
It told me that I#m using deprectaed api, and that he can't compile the
sitempat because of this.



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

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




RE: Trouble with actions

2002-02-18 Thread Torsten Curdt

   This gives me an error message when i want to call the page
   WARN(2002-05-18) 11:15.04:125   [cocoon  ]
   (/cocoon/creon/search.html) Thread-12/sitemap_xmap: 404, try to
   process the error page
   org.apache.cocoon.ResourceNotFoundException: Resource not found
   file:/F:/Webserver/tomcat/webapps/cocoon/creon/
 
  Remember if an action returns null (no Map at all) all child
  processing inside a pipeline is skipped and you are back
  matching the request. ...so since you have no other match for
  the request inside you pipelines you get a resource not found

 Yes I know this. Nut this isn't the problem. The action is working fine
 and doesn't return null. The problem is he doesn't find the stylesheets
 when it's inside the action.

 I copied the wrong error message.

 org.apache.cocoon.ResourceNotFoundException: Resource not found
 file:/search/search2.xml

 When I use it without the action it works fine.

Hm... why don't you use search/search2.xml (without slash) anyway?

   I also have a minor problem.
  
  map:match pattern=search.html
   map:act set=EnablerSession/
  map:act type=CheckLogon
map:generate src=/search/search2.xml
   type=serverpages/
   map:transform src=/search/SearchLayout.xml/
   map:serialize type=html/
 map:act
   /map:match
  
   When I wnat to use this he tells me I'm usign deprecated API. But
   isn't this the way to use action sets?
 
  Where does he tell?
 It told me that I#m using deprectaed api, and that he can't compile the
 sitempat because of this.

Could you please post the exact message / exception?
Try to close the action set just before the close of match...
--
Torsten


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

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




Re: XSLT Trouble

2001-08-02 Thread Christian Haul

On 02.Aug.2001 -- 03:49 PM, Kazi the P i R @ t {- wrote:
 Well :) ... I am finally smiling... The trouble has finally gone away.. and
 i'd like to thank you all for
 your suggestions adn pointers... especially Scott Boag, cause what he
 mentioned really made the difference in the end.
 
 Initially i had
 xsl:stylesheet xmlns:xsl=http://www.w3c.org/1999/XSL/Transform/mmm
 version=1.0
 and then i had it changed (according to Mr Scott's mail) to:
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0
 
 All was fine after that...
 
 But i read somewhere that the URI can be anything as long as its a
 unique string... then how come it has to be so specific... could anyone
 correct my concepts here???

You're right. However, cocoon determines the taglib to be used by
prefix + URI. Change anything and it doesn't find the right taglib.

With stylesheets this is not that restrictive, because you specify the
file in the sitemap. Still, you need to have the very same namespace
declaration in your document and your stylesheet. Since xsl is not a
stylesheet but built into the xsl processor and thus is unlikely to
have been changed by you, you need to use exactly the same namespace
URI that has been set by w3c. You might get away using a different
prefix though but I wouldn't bet on that.

I know that taglibs are usually implemented with stylesheets but I
find it very important to differentiate on the role that a stylesheet
takes. Therefore when I refer to stylesheets implementing taglibs I
use the term taglib. These are applied only when the document itself
changes, i.e. to generate java source code from an xsp. They are
registered with cocoon in your cocoon.xconf.

What I refer to as stylesheets are of course stylesheets, but those
that are applied to the document every time output is produced, or
more precise they are applied to the output of the generation
process. These stylesheets are specified in sitemap pipelines.

 Whats fumbling me now is the exact sequence an xsl stylesheet is processed.

It used to be reverse declaration order for taglibs. But since it
seems not necessary anymore to declare all namespaces (i.e. those that
are not present in the original document but get introduced by
taglibs), this might have changed.

Stylesheets get applied in the order specified in your sitemap
pipeline.

Anyway, with taglibs they should be written in a way that all taglibs
of one stage should be applicable in any order. When all declared
namespaces of a stage are resolved to taglibs, the next stage begins
with the namespaces added by the taglibs from previous stage.

Cocoon is very verbose. Look at the log and you see every taglib being
applied. 

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/faqs.html

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




RE: Trouble getting Cocoon2 to work...

2001-07-30 Thread Hewko, Doug

Dave Smith, John Peters, Java Guru, et al., Thanks for your help! I
eventally got Cocoon to work. Seems like I had the wrong JDK specified.

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

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




Re: Trouble with request parameter encoding

2001-07-30 Thread Jürgen Sonnauer

I resolved the problem by explicitly setting the character encoding to 
iso-8859-1 for the
HTML-Formatter in cocoon.properties. The default encoding scheme has 
obviously changed in version 1.8.3-devel

Thanks anyway.
Juergen Sonnauer


Am Samstag, 28. Juli 2001 um 17:50 schrieb Uli Mayring:

 On Sat, 28 Jul 2001 [EMAIL PROTECTED] 
 (=?iso-8859-1?Q?J=FCrgen_Sonnauer?=) wrote:

 Hi!

 i was using Cocoon 1.8.2 and want to use the improvements
 from 1.8.3-dev. After building the java archive from a recent
 development snapshot, i have a problem with special characters
 in request parameters.
 If you could try out the following XSP page and type Jürgen
 in the text input field you get something like this:
 http://localhost:8080/cocoon/DumpRequestParameter.xml?test=J%C3%BCrgen
 What i'm doing wrong?

 The parameter is url-encoded, you need to read it out with
 URLDecoder.decode

 Ulrich

 --
 Ulrich Mayring
 DENIC eG, Softwareentwicklung


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Trouble with request parameter encoding

2001-07-28 Thread Jürgen Sonnauer



Hi!

i was using Cocoon 1.8.2 and wantto use the 
improvements
from 1.8.3-dev. Afterbuilding the java 
archive from a recent
development snapshot, i have a problem with special 
characters
in request parameters. 
If you could try outthe following XSP page 
and type "Jürgen"
in the text input field you get something like 
this:
http://localhost:8080/cocoon/DumpRequestParameter.xml?test=J%C3%BCrgen
What i'm doing wrong?

Regards,
Jürgen Sonnauer

?xml version="1.0"??cocoon-process 
type="xsp"?

xsp:page language="java" create-session="false" 
 xmlns:xsp="http://www.apache.org/1999/XSP/Core"

html body 
form name="test" method="get" 
action="DumpRequestParameter.xml" input 
type="text" name="test" size="10"/ input 
type="submit" value="Send"/ /form 
xsp:logic java.util.Enumeration enum = 
request.getParameterNames(); while 
(enum.hasMoreElements()) { String 
key = (String) enum.nextElement(); String value = 
(String) request.getParameter(key); 
pxsp:exprkey + ": " + value/xsp:expr/p 
} /xsp:logic 
/body/html

/xsp:page


Re: Trouble with request parameter encoding

2001-07-28 Thread Uli Mayring

On Sat, 28 Jul 2001 [EMAIL PROTECTED] (=?iso-8859-1?Q?J=FCrgen_Sonnauer?=) 
wrote:

 Hi!
 
 i was using Cocoon 1.8.2 and want to use the improvements
 from 1.8.3-dev. After building the java archive from a recent
 development snapshot, i have a problem with special characters
 in request parameters. 
 If you could try out the following XSP page and type Jürgen
 in the text input field you get something like this:
 http://localhost:8080/cocoon/DumpRequestParameter.xml?test=J%C3%BCrgen
 What i'm doing wrong?

The parameter is url-encoded, you need to read it out with
URLDecoder.decode

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


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

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




Re: Trouble getting Cocoon2 to work...

2001-07-27 Thread Dave Smith

I think it has to be first in tomcat's classpath. Change the name of the 
jar file that contains Xerces so it starts with a. Then it will be 
loaded into your classpath first


Hewko, Doug wrote:
 Help!
 
 I think I have Tomcat working... I get the default page when I type
 http://localhost:8080/;. But http://localhost:8080/cocoon; is giving me
 the exception
 org.apache.avalon.framework.configuration.ConfigurationException: Error
 trying to load configurations and embedded exception
 org.xml.sax.SAXException: Could not get valid parserNamespace not supported
 by SAXParser. I understand that this means I need Xerces loaded first. 
 
 How do I do that? Xerces does not come with documentation.
 
 I am using Tomcat 3.2.3, Cocoon 2, Xalan 2.2.6D (even though I do not know
 how to install or use it), and Xerces 1.4.2. I am not a system admin by
 trade, so setting up the server is quite confusing. I just want to be able
 to use Cocoon2 to run server-side XML.
 
 Help!
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: Trouble starting cocoon2

2001-06-26 Thread giacomo

On Mon, 25 Jun 2001, RAO,YENUGANTI (Non-HP-Cupertino,ex1) wrote:

Please could you clear the Bugzilla bug #2319 concerning this issue
here?

TIA

Giacomo

 Thank you dims, now it is working!!

 -Rao

   -Original Message-
   From:   Davanum Srinivas [SMTP:[EMAIL PROTECTED]]
   Sent:   Monday, June 25, 2001 5:20 PM
   To: [EMAIL PROTECTED]
   Subject:Re: Trouble starting cocoon2

   Please use JDK1.3.1 and see if the problem persists.

   Thanks,
   dims

   --- RAO,YENUGANTI (Non-HP-Cupertino,ex1) [EMAIL PROTECTED]
 wrote:
Hi,
   
 I am having trouble in getting started with cocoon2 . My
 environment is as
follows.
   
OS : Windows NT,
Java : JDK 1.2.2,
Servlet engine : Tomcat 3.2.2.
   
I followed the steps listed in the Installing cocoon2 page.
 Finally when I
tried invoking
The cocoon servlet I got DR.Watson error.  I have cocoon.log,
 cocoon.xconf
attached.
   
 cocoon.xconf  cocoon.log
Any ideas what is wrong ?.
   
-Rao
   
   
   

ATTACHMENT part 2 application/octet-stream name=cocoon.xconf


ATTACHMENT part 3 application/octet-stream name=cocoon.log
   
 -
Please check that your question has not already been answered in
 the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
   
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
 [EMAIL PROTECTED]


   =
   Davanum Srinivas, JNI-FAQ Manager
   http://www.jGuru.com/faq/JNI

   __
   Do You Yahoo!?
   Get personalized email addresses from Yahoo! Mail
   http://personal.mail.yahoo.com/


 -
   Please check that your question has not already been answered in the
   FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

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




Trouble starting cocoon2

2001-06-25 Thread RAO,YENUGANTI (Non-HP-Cupertino,ex1)

Hi, 

 I am having trouble in getting started with cocoon2 . My environment is as
follows. 

OS : Windows NT,
Java : JDK 1.2.2, 
Servlet engine : Tomcat 3.2.2.

I followed the steps listed in the Installing cocoon2 page. Finally when I
tried invoking
The cocoon servlet I got DR.Watson error.  I have cocoon.log, cocoon.xconf
attached.

 cocoon.xconf  cocoon.log 
Any ideas what is wrong ?. 

-Rao



 cocoon.xconf
 cocoon.log

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

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