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]




Re: Cocoon book

2002-07-25 Thread Kasper Nielsen

Hi,

Just a quick question, what isn't covered in the book if we look at Cocoon
2.0.3 (or Cocoon 2.1 beta)
I just took a quick look at the sample chapter and for instance it only
mentioned 'SQL Transformers' and not ESQL.

- Kasper

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, July 24, 2002 9:15 AM
Subject: Cocoon book


Just to let you know,
the first Cocoon book is now available for order on New Riders.

http://www.newriders.com/books/product.asp?product_id
={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}

There is also a sample chapter.


Guido

--
Open Source Group   sunShine - Lighting up e:Business
=
Guido Casper, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87 [EMAIL PROTECTED] - http://www.s-und-n.de
=



-
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: Cocoon book

2002-07-25 Thread Martin Dulisch

In the sample chapter that is available action-sets are handled.

Martin

- Original Message -
From: Richard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 10:14 AM
Subject: Re: Cocoon book


 Hi does the book says anything about actions?
 - Original Message -
 From: Kasper Nielsen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 25, 2002 3:48 PM
 Subject: Re: Cocoon book


  Hi,
 
  Just a quick question, what isn't covered in the book if we look at
Cocoon
  2.0.3 (or Cocoon 2.1 beta)
  I just took a quick look at the sample chapter and for instance it only
  mentioned 'SQL Transformers' and not ESQL.
 
  - Kasper
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Wednesday, July 24, 2002 9:15 AM
  Subject: Cocoon book
 
 
  Just to let you know,
  the first Cocoon book is now available for order on New Riders.
 
  http://www.newriders.com/books/product.asp?product_id
  ={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}
 
  There is also a sample chapter.
 
 
  Guido
 
  --
  Open Source Group   sunShine - Lighting up e:Business
  =
  Guido Casper, SN AG, Klingenderstrasse 5, D-33100 Paderborn
  Tel:+49-5251-1581-87 [EMAIL PROTECTED] - http://www.s-und-n.de
  =
 
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 


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

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



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

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




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]




Re: Cocoon book

2002-07-25 Thread gcasper


Hi,

I'm not the author of the book and I don't have a copy at hand, but I will
try to anwer to the best of my knowledge and I'm sure Matthew will correct
me next week if I say something wrong :-)

richard schrieb:
 Hi does the book says anything about actions?

Yes the book explains all details of creating and using actions.

 - Original Message -
 From: Kasper Nielsen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 25, 2002 3:48 PM
 Subject: Re: Cocoon book


  Hi,
 
  Just a quick question, what isn't covered in the book if we look at
Cocoon
  2.0.3 (or Cocoon 2.1 beta)

Since 2.0.3 is only 10 days old I don't believe there is anything
particular to 2.0.3 covered. But since 2.0.3 is mostly bugfixes, that
should not really be an issue.
AFAIK there is no 2.1 beta. There is not even a 2.1 alpha.

  I just took a quick look at the sample chapter and for instance it only
  mentioned 'SQL Transformers' and not ESQL.

XSP and ESQL in particular is covered as well.

On New Riders there is also a TOC available.
http://www.newriders.com/books/product.asp?product_id
={C3C05052-BE3B-4E06-A60A-13FB40AF58F6}

HTH
Guido

--
Open Source Group   sunShine - Lighting up e:Business
=
Guido Casper, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87  [EMAIL PROTECTED] - http://www.s-und-n.de
=



-
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: NullPointerException with SunShine -- user and password not stored incontext?

2002-07-25 Thread Joern_Hoos


Hi David,

I have got the same problem.

I am using:

Java 1.4.0
Tomcat 4.0.4
Cocoon 2.0.3

I´ve set:

JAVA_HOME=/usr/java/j2sdk1.4.0_01
CATALINA_OPTS='-Djava.awt.headless=true
-Djava_endorsed_dirs=/usr/java/j2sdk1.4.0_01/jre/lib/endorsed

I´ve copied the files:

xalan-2.3.1.jar
xercesImpl-2.0.0.jar
xml-apis.jar

from

cocoon-2.0.3-src.tar/lib/core

to

/usr/java/j2sdk1.4.0_01/jre/lib/endorsed

and also to

/var/tomcat4/common/lib


But still i get the NullPointerException after trying to log into the demo
portal.








Cocoon 2 - Internal server error

type fatal

message null

description java.lang.NullPointerException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/sunspotdemofree-auth

path-info

sunspotdemofree-auth

stack-trace

java.lang.NullPointerException
  at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
  at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
  at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
  at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836)
  at
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173)
  at
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691)
  at
org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction.act(LoggedInAction.java:101)
  at
org.apache.cocoon.www.sitemap_xmap.matchN40045E(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5074)
  at
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3319)
  at
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3100)
  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)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
  at

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]




Problem with ESQL logicsheet

2002-07-25 Thread Benoît Clouet

Hi,

I'm experiencing a strange problem with the ESQL logicsheet

The results returned when I use the esql:skip-rows and the
esql:max-rows seem to be inconsistent for example, when I request 10
results using 
esql:max-rows10/esql:max-rows
I get 11 results.

I looked in the XSL stylesheet and in the helper classes and I could'nt
figure the reasons of this behaviour.

Did someone experienced this before ?

My configuration :
Cocoon 2.0.3
Tomcat 4.0.4
JDK 1.3
The database is DB2 for AS/400 and the JDBC driver is JT open 3.1.

Regards,

Benoit Clouet


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




apache mailing-list option

2002-07-25 Thread Barbara Post

Please don't fire me ;-)

Some people here think that it would be nice to have no mail list
option... instead of unsubscribing-resubscribing when going on holidays.
Would this be possible ?

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]




using different stylesheets for different xml files

2002-07-25 Thread kavitha ramesh

Hi,

I have two xml files and I would like to use two
different stylesheets for that.How do i do it?

For example I have two xml files inside the folder
name docs:

login1.xml
login2.xml

and I have two stylesheets:

login1.xsl
login2.xsl

and for login1.xml I would like to use the stylesheet
login1.xsl and for login2.xml I would like to use
login2.xsl.How do the sitemap.xmap file look like for
the above?

Please help me,,,

Kavitha


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

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

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




RE: using different stylesheets for different xml files

2002-07-25 Thread ROSSEL Olivier

Here is a sitemap for catch-all XML management.

map:match pattern=*.xml
 map:generate src={1}.xml/
 map:transform src={1}.xsl/
 map:serialize/
/map:match

The sitemap resolver receives the URL.
It parses sequentially the sitemap file,
reading only what is inside matching map:match.
The map:match above will be read for any URL that ends with the string
'.xml'.
The sitemap resolver read the map:generate...
It sees that it has to resolve the variable {1}
(which contains the string matched by the first wildcard of pattern=...)
It resolves it either to 'login1' or 'login2' and instanciates
the generator that will generate SAX events by reading the corresponding
file.

Idem for the map:tranform

Then the sitemap resolver reads a (HTML by default) serializer.
It instanciates the HTMLSerializer.

Then it stops reading the file (it ALAYS stops reading the file
as soon as it meets a map:serialize).

The pipeline is ready.

Another approach is this one:

map:match pattern=login1.xml
 map:generate src=login1.xml/
 map:transform src=login1.xsl/
 map:serialize/
/map:match

map:match pattern=login2.xml
 map:generate src=login2.xml/
 map:transform src=login2.xsl/
 map:serialize/
/map:match

How all that works is the same as above.





 -Message d'origine-
 De: kavitha ramesh [mailto:[EMAIL PROTECTED]]
 Date: jeudi 25 juillet 2002 15:02
 À: [EMAIL PROTECTED]
 Objet: using different stylesheets for different xml files
 
 
 Hi,
 
 I have two xml files and I would like to use two
 different stylesheets for that.How do i do it?
 
 For example I have two xml files inside the folder
 name docs:
 
 login1.xml
 login2.xml
 
 and I have two stylesheets:
 
 login1.xsl
 login2.xsl
 
 and for login1.xml I would like to use the stylesheet
 login1.xsl and for login2.xml I would like to use
 login2.xsl.How do the sitemap.xmap file look like for
 the above?
 
 Please help me,,,
 
 Kavitha
 
 __
 __
 Want to sell your car? advertise on Yahoo Autos Classifieds. 
 It's Free!!
visit http://in.autos.yahoo.com
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
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: how to use a checkbox with DatabaseUpdateAction

2002-07-25 Thread Simon Price

Thanks Christian. I'll look into this. My fallback plan is to write a 
logicsheet in XSLT/ESQL to do the same as the DB actions but at a higher 
level. What I'm trying to end up with is an XForm-like way of writing 
(simple model) forms but without having to write any java. For many 
simple applications, this is all lots of people would need (I think).

Cheers

Simon

Christian Haul wrote:

 On 23.Jul.2002 -- 09:36 PM, Simon Price wrote:
 
Is it possible to get DatabaseUpdateAction to write, for example, 'Y' or
'N' into an SQL column according to whether a checkbox is checked/unchecked?

 
 You could have a default for this column of N - but since the
 parameter is not present (- null) the DatabaseUpdateAction will
 insert a NULL into that column. No luck.
 
 You could use DatabaseUpdateAction from the modular package
 (scratchpad in 2.0.3, trunk in 2.1-dev) and wrap this column with a
 default module. 2.1-dev has such a module (DefaultsMetaModule), while
 2.0.3 does not. This is because the signature of InputModules has
 changed slightly and 2.0.3 is bug-fix only.
 
 It should be easy to backport a module from 2.1 to 2.0.3 as the basic
 difference is the use of the objectModel instead of Request.
 
   Chris.
 


-- 

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


-
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: using different stylesheets for different xml files

2002-07-25 Thread kavitha ramesh

Dear Mr.Oliver,

It works and thank you so much for your valuable
information.

Kavitha 

--- ROSSEL Olivier [EMAIL PROTECTED] wrote:
 Here is a sitemap for catch-all XML management.
 
 map:match pattern=*.xml
  map:generate src={1}.xml/
  map:transform src={1}.xsl/
  map:serialize/
 /map:match
 
 The sitemap resolver receives the URL.
 It parses sequentially the sitemap file,
 reading only what is inside matching map:match.
 The map:match above will be read for any URL that
 ends with the string
 '.xml'.
 The sitemap resolver read the map:generate...
 It sees that it has to resolve the variable {1}
 (which contains the string matched by the first
 wildcard of pattern=...)
 It resolves it either to 'login1' or 'login2' and
 instanciates
 the generator that will generate SAX events by
 reading the corresponding
 file.
 
 Idem for the map:tranform
 
 Then the sitemap resolver reads a (HTML by default)
 serializer.
 It instanciates the HTMLSerializer.
 
 Then it stops reading the file (it ALAYS stops
 reading the file
 as soon as it meets a map:serialize).
 
 The pipeline is ready.
 
 Another approach is this one:
 
 map:match pattern=login1.xml
  map:generate src=login1.xml/
  map:transform src=login1.xsl/
  map:serialize/
 /map:match
 
 map:match pattern=login2.xml
  map:generate src=login2.xml/
  map:transform src=login2.xsl/
  map:serialize/
 /map:match
 
 How all that works is the same as above.
 
 
 
 
 
  -Message d'origine-
  De: kavitha ramesh
 [mailto:[EMAIL PROTECTED]]
  Date: jeudi 25 juillet 2002 15:02
  À: [EMAIL PROTECTED]
  Objet: using different stylesheets for different
 xml files
  
  
  Hi,
  
  I have two xml files and I would like to use two
  different stylesheets for that.How do i do it?
  
  For example I have two xml files inside the folder
  name docs:
  
  login1.xml
  login2.xml
  
  and I have two stylesheets:
  
  login1.xsl
  login2.xsl
  
  and for login1.xml I would like to use the
 stylesheet
  login1.xsl and for login2.xml I would like to use
  login2.xsl.How do the sitemap.xmap file look like
 for
  the above?
  
  Please help me,,,
  
  Kavitha
  
 

__
  __
  Want to sell your car? advertise on Yahoo Autos
 Classifieds. 
  It's Free!!
 visit http://in.autos.yahoo.com
  
 

-
  Please check that your question  has not already
 been answered in the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
  
 

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


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

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

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




ComponentSelector could not access the Component for hint: xsp

2002-07-25 Thread Vadim Gritsenko

 From: Conny Pemfors [mailto:[EMAIL PROTECTED]]
 
 Hi Vadim, creator of cocoon,
 
 why do I get following message:
 
 
 org.apache.cocoon.ProcessingException: markup-languages:
ComponentSelector
 could not access the Component for hint: xsp:
 org.apache.avalon.framework.component.ComponentException:
markup-languages:
 ComponentSelector could not access the Component for hint: xsp

What's your configuration? What Cocoon version are you using? Have you
made any changes to it? Have you tried clean/fresh tomcat/cocoon
installation?

There is no enough information to answer your question.


PS Moving to users

Vadim


 It happens every time I try to run a xsp page.
 
 kind regards
 Conny


-
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] using different stylesheets for different xml files

2002-07-25 Thread Piroumian Konstantin

 From: kavitha ramesh [mailto:[EMAIL PROTECTED]] 
 
 Dear Mr.Oliver,
 
 It works and thank you so much for your valuable
 information.

Kavitha,

don't forget to add the [SUMMARY] when your question is answered. This helps
people to find answers to their questions in mailing archives and can
indicate that the content can be a FAQ candidate.

Konstantin

 
 Kavitha 
 
 --- ROSSEL Olivier [EMAIL PROTECTED] wrote:
  Here is a sitemap for catch-all XML management.
  
  map:match pattern=*.xml
   map:generate src={1}.xml/
   map:transform src={1}.xsl/
   map:serialize/
  /map:match
  
  The sitemap resolver receives the URL.
  It parses sequentially the sitemap file,
  reading only what is inside matching map:match.
  The map:match above will be read for any URL that
  ends with the string
  '.xml'.
  The sitemap resolver read the map:generate...
  It sees that it has to resolve the variable {1}
  (which contains the string matched by the first
  wildcard of pattern=...)
  It resolves it either to 'login1' or 'login2' and
  instanciates
  the generator that will generate SAX events by
  reading the corresponding
  file.
  
  Idem for the map:tranform
  
  Then the sitemap resolver reads a (HTML by default)
  serializer.
  It instanciates the HTMLSerializer.
  
  Then it stops reading the file (it ALAYS stops
  reading the file
  as soon as it meets a map:serialize).
  
  The pipeline is ready.
  
  Another approach is this one:
  
  map:match pattern=login1.xml
   map:generate src=login1.xml/
   map:transform src=login1.xsl/
   map:serialize/
  /map:match
  
  map:match pattern=login2.xml
   map:generate src=login2.xml/
   map:transform src=login2.xsl/
   map:serialize/
  /map:match
  
  How all that works is the same as above.
  
  
  
  
  
   -Message d'origine-
   De: kavitha ramesh
  [mailto:[EMAIL PROTECTED]]
   Date: jeudi 25 juillet 2002 15:02
   À: [EMAIL PROTECTED]
   Objet: using different stylesheets for different
  xml files
   
   
   Hi,
   
   I have two xml files and I would like to use two
   different stylesheets for that.How do i do it?
   
   For example I have two xml files inside the folder
   name docs:
   
   login1.xml
   login2.xml
   
   and I have two stylesheets:
   
   login1.xsl
   login2.xsl
   
   and for login1.xml I would like to use the
  stylesheet
   login1.xsl and for login2.xml I would like to use
   login2.xsl.How do the sitemap.xmap file look like
  for
   the above?
   
   Please help me,,,
   
   Kavitha
   
  
 
 __
   __
   Want to sell your car? advertise on Yahoo Autos
  Classifieds. 
   It's Free!!
  visit http://in.autos.yahoo.com
   
  
 
 -
   Please check that your question  has not already
  been answered in the
   FAQ before posting.
  http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:  
  [EMAIL PROTECTED]
   
  
 
 -
  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]
   
 
 __
 __
 Want to sell your car? advertise on Yahoo Autos Classifieds. 
 It's Free!!
visit http://in.autos.yahoo.com
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
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: how to use a checkbox with DatabaseUpdateAction

2002-07-25 Thread Simon Price

I've come up with a code-free workaround for the problem.

Quick reminder of the problem: HTML checkboxes do not submit a request 
value if unchecked and hence DatabaseUpdateAction writes NULL into the 
corresponding column in the database. In Cocoon 2.03 there in no way of 
overriding this effective NULL default.

What is more typically required is something like: when checked, write 
Y; when unchecked, write N. By adding a hidden input field of the 
same name as the checkbox input field to your HTML form you can force a 
non-NULL default.

eg. my version of simple-page.xsl generates HTML for a checkbox as...

 input type=checkbox name={@name} value=Y
   xsl:if test=.='Y'
 xsl:attribute name=checkedtrue/xsl:attribute
   /xsl:if
 /input
 !-- default value for when checkbox is left unchecked --
 input type=hidden name={@name} value=N/

When the box is checked, the Y is written, but when unchecked, the N is 
written.

Cheers

Simon

PS. Tested with Cocoon 2.03, Java 1.3.1, Tomcat 4.01, IE6 and NS6

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


-
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] how to use a checkbox with DatabaseUpdateAction

2002-07-25 Thread Simon Price

Take 2... this time with correct summary prefix in email title :-)))
---

I've come up with a code-free workaround for the problem.

Quick reminder of the problem: HTML checkboxes do not submit a request 
value if unchecked and hence DatabaseUpdateAction writes NULL into the 
corresponding column in the database. In Cocoon 2.03 there in no way of 
overriding this effective NULL default.

What is more typically required is something like: when checked, write 
Y; when unchecked, write N. By adding a hidden input field of the 
same name as the checkbox input field to your HTML form you can force a 
non-NULL default.

eg. my version of simple-page.xsl generates HTML for a checkbox as...

 input type=checkbox name={@name} value=Y
   xsl:if test=.='Y'
 xsl:attribute name=checkedtrue/xsl:attribute
   /xsl:if
 /input
 !-- default value for when checkbox is left unchecked --
 input type=hidden name={@name} value=N/

When the box is checked, the Y is written, but when unchecked, the N is 
written.

Cheers

Simon

PS. Tested with Cocoon 2.03, Java 1.3.1, Tomcat 4.01, IE6 and NS6

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk



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

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




Re: SUMMARY: how to use a checkbox with DatabaseUpdateAction

2002-07-25 Thread Christian Haul

On 25.Jul.2002 -- 03:31 PM, Simon Price wrote:
 I've come up with a code-free workaround for the problem.
 
 Quick reminder of the problem: HTML checkboxes do not submit a request 
 value if unchecked and hence DatabaseUpdateAction writes NULL into the 
 corresponding column in the database. In Cocoon 2.03 there in no way of 
 overriding this effective NULL default.
 
 What is more typically required is something like: when checked, write 
 Y; when unchecked, write N. By adding a hidden input field of the 
 same name as the checkbox input field to your HTML form you can force a 
 non-NULL default.

Sorry to disappoint you, but the above does not work reliably: If
multiple fields with the same name exist, it completely depends on the
client in what order they are sent.

So, you get two values and when using the getAttributeValues() method,
you'll get an array ['Y','N']

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]




caching strategy

2002-07-25 Thread Sternath Elmar

Hello,

I wrote an application reading data from another application server and sending 
requests to this application server which manipulate these data and reread the 
manipulated data. All this is done inside one pipeline using URLMatchers. 
CIncludeTransformer is used to concatenate multiple input streams. Reading and 
Re-Reading is exactly the same pipeline match. As reading of the data is 
time-consuming I only want to get data from the server after a manipulating request. 
Any suggestions for a caching strategy, maybe by extension of the 
CachingCIncludeTransformer??

Regards,
Elmar

-
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: Problem with ESQL logicsheet

2002-07-25 Thread Benoît Clouet

Hi,

here are some more strange things I have noticed. The problem only
happens when I use esql:skip-rows0/esql:skip-rows. When I use some
other values, the result is correct.

Any clues are welcome,

Regards

Benoît Clouet

 Hi,
 
 I'm experiencing a strange problem with the ESQL logicsheet
 
 The results returned when I use the esql:skip-rows and the
 esql:max-rows seem to be inconsistent for example, when I request 10
 results using 
 esql:max-rows10/esql:max-rows
 I get 11 results.
 
 I looked in the XSL stylesheet and in the helper classes and I could'nt
 figure the reasons of this behaviour.
 
 Did someone experienced this before ?
 
 My configuration :
 Cocoon 2.0.3
 Tomcat 4.0.4
 JDK 1.3.1
 The database is DB2 for AS/400 and the JDBC driver is JT open 3.1.
 
 Regards,
 
 Benoit Clouet
 
 
 -
 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 Transform map:parameter

2002-07-25 Thread Anand_Krishnan

Hi,

I am facing trouble in getting across value for my parameters from Action
into my Transformer. Here is what I am attempting to do -

  map:actions
 map:action name=xyz src=test.xyz/
  /map:actions


  map:match pattern=*.xml
 map:act type=xyz
  map:generate src={1}.xml/
 map:transform src=xstyle/{1}.xsl
  map:parameter name=kflag value={name}/
  map:parameter name=cflag value=ALL/
  map:parameter name=rflag value=ALL/
 /map:transform
map:serialize type=html/
 /map:act
  /map:match

In my action I extract the name-value pair from my URI and send it to my
sitemap. I know I am extracting the value because I am able to send the
values to my generator but not to my transformer. Am I doing something
wrong here? Or is there a different way to pass parameters to my XSL
transformer. Any help would be appreciated.

Thank you,
Anand Krishnan


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

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




Re: SUMMARY: how to use a checkbox with DatabaseUpdateAction

2002-07-25 Thread Simon Price

Doh! I worked out that DatabaseUpdateAction just took the first array 
item and in IE6 and NS6 this happens to be the same order as they occur 
in the form. I was assuming that this would be the case with all 
clients. Live and learn!

I'll have to find a proper solution after next week but this kludge 
will let me make my UI review version deadline for next week ;-)

Thanks

Simon

Christian Haul wrote:

 On 25.Jul.2002 -- 03:31 PM, Simon Price wrote:
 
I've come up with a code-free workaround for the problem.

Quick reminder of the problem: HTML checkboxes do not submit a request 
value if unchecked and hence DatabaseUpdateAction writes NULL into the 
corresponding column in the database. In Cocoon 2.03 there in no way of 
overriding this effective NULL default.

What is more typically required is something like: when checked, write 
Y; when unchecked, write N. By adding a hidden input field of the 
same name as the checkbox input field to your HTML form you can force a 
non-NULL default.

 
 Sorry to disappoint you, but the above does not work reliably: If
 multiple fields with the same name exist, it completely depends on the
 client in what order they are sent.
 
 So, you get two values and when using the getAttributeValues() method,
 you'll get an array ['Y','N']
 
   Chris.
 


-- 

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


-
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: caching strategy

2002-07-25 Thread Vadim Gritsenko

 From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
 
 Hello,
 
 I wrote an application reading data from another application server
and
 sending requests to this application server which manipulate these
data and
 reread the manipulated data. All this is done inside one pipeline
using
 URLMatchers. CIncludeTransformer is used to concatenate multiple input
 streams. Reading and Re-Reading is exactly the same pipeline match. As
reading
 of the data is time-consuming I only want to get data from the server
after a
 manipulating request. Any suggestions for a caching strategy, maybe by
 extension of the CachingCIncludeTransformer??

If you include cocoon:/ uris, then they will be cached independently
(IIRC). If you also use CachingCIncludeTransformer, then whole result
will be cached too.

Vadim


 Regards,
 Elmar


-
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: caching strategy

2002-07-25 Thread Mark S. Kent

I got sidetracked and am now trying (once again) to get Cocoon2 running on
our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache),
RedHat 7.1, and IBM JDK 1.3.0.

My last post (12 Apr 2002) left me with this error message on Cocoon
startup:

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

Vadim suggested to check for the existence of the
'org/apache/cocoon/www/sitemap.xmap' files, of which I have:
 79221 Jul 25 10:44 sitemap_xmap.class
 15470 Jul 25 10:44 sitemap_xmap$Configurer.class
339625 Jul 25 10:44 sitemap_xmap.java

He then suggested I also try to compile the sitemap_xmap.java file to ensure
that it is not damaged.  I'm not sure how to do this.

To test the validity of the cocoon files I'm trying, I took the cocoon.war
file from the 2.0.2 build folder and ran it with Tomcat 3.2.2 on my Windows
laptop with success (less headless head-aches), so I feel confident that
the code within the .war file on the Linux server is fine.  However, I'm
still getting the 'Language Exception' error on startup.

I regards to the X display stuff, I commented out the SVG stuff in
sitemap.xmap but ALL OTHER files are in their original state (no changes by
me).  i.e. cocoon.xconf, web.xml, etc.

Any other suggestions?

mark


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




LanguageException errors on startup

2002-07-25 Thread Mark S. Kent

Sorry about the previous post with a misleading subject... I'm re-posting
this with a 'proper' subject line...

I got sidetracked and am now trying (once again) to get Cocoon2 running on
our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache),
RedHat 7.1, and IBM JDK 1.3.0.

My last post (12 Apr 2002) left me with this error message on Cocoon
startup:

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

Vadim suggested to check for the existence of the
'org/apache/cocoon/www/sitemap.xmap' files, of which I have:
 79221 Jul 25 10:44 sitemap_xmap.class
 15470 Jul 25 10:44 sitemap_xmap$Configurer.class
339625 Jul 25 10:44 sitemap_xmap.java

He then suggested I also try to compile the sitemap_xmap.java file to ensure
that it is not damaged.  I'm not sure how to do this.

To test the validity of the cocoon files I'm trying, I took the cocoon.war
file from the 2.0.2 build folder and ran it with Tomcat 3.2.2 on my Windows
laptop with success (less headless head-aches), so I feel confident that
the code within the .war file on the Linux server is fine.  However, I'm
still getting the 'Language Exception' error on startup.

I regards to the X display stuff, I commented out the SVG stuff in
sitemap.xmap but ALL OTHER files are in their original state (no changes by
me).  i.e. cocoon.xconf, web.xml, etc.

Any other suggestions?

mark


-
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: NullPointerException with SunShine -- user and password not stored in context?

2002-07-25 Thread Dominic Reynolds

Do you mean -Djava.endorsed.dirs rather than -Djava_endorsed_dirs? 
I posted yesterday: -DJAVA_ENDORSED_DIRS (wrong...sorry).
Also in the catalina.sh script I think you need to set JAVA_ENDORSED_DIRS to 
the endorsed directory to pass the flag to java. If you set it in 
CATALINA_OPTS then you get two -Djava.endorsed.dirs and I don't know which 
one will get picked up.

-dominic.


On Thursday 25 July 2002 02:25 am, [EMAIL PROTECTED] wrote:
 Hi David,

 I have got the same problem.

 I am using:

 Java 1.4.0
 Tomcat 4.0.4
 Cocoon 2.0.3

 I´ve set:

 JAVA_HOME=/usr/java/j2sdk1.4.0_01
 CATALINA_OPTS='-Djava.awt.headless=true
 -Djava_endorsed_dirs=/usr/java/j2sdk1.4.0_01/jre/lib/endorsed

 I´ve copied the files:

 xalan-2.3.1.jar
 xercesImpl-2.0.0.jar
 xml-apis.jar

 from

 cocoon-2.0.3-src.tar/lib/core

 to

 /usr/java/j2sdk1.4.0_01/jre/lib/endorsed

 and also to

 /var/tomcat4/common/lib


 But still i get the NullPointerException after trying to log into the demo
 portal.






 ---
-

 Cocoon 2 - Internal server error

 type fatal

 message null

 description java.lang.NullPointerException

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 request-uri

 /cocoon/sunspotdemofree-auth

 path-info

 sunspotdemofree-auth

 stack-trace

 java.lang.NullPointerException
   at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
   at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
   at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
   at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836
) at
 org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessio
nContext.java:173) at
 org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691
) at
 org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction.act(LoggedInAction
.java:101) at
 org.apache.cocoon.www.sitemap_xmap.matchN40045E(/var/cache/tomcat4/work/Sta
ndalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.jav
a:5074) at
 org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalo
ne/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:331
9) at
 org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalo
ne/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:310
0) 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)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:247) at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
hain.java:193) at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
ava:243) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
566) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
ava:190) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
566) at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
246) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
564) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
566) at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.java:170) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
564) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
0) at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
564) at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
564) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 

How to use map:redirect-to combined with serverpages

2002-07-25 Thread Christian Hoofe

I tried the following code in the sitemap to redirect to a page after saving values to 
the 
database using art_grp_chg.xsp and receive an sitemap error. 

   map:match pattern=art_grp_chg.xsp
map:act type=request
  map:parameter name=parameters value=true/
  map:select type=request-parameter
  map:parameter name=parameter-name value=next/
 map:when test=
 /map:when
 map:otherwise
map:generate type=serverpages src=xdocs/db/art_grp_chg.xsp/
map:serialize/
map:redirect-to uri=../{next}/
 /map:otherwise
  /map:select 
/map:act
   /map:match

I am looking for a simple way to do something similar to the 
response.sendRedirect(); I 
used in my Cocoon 1.8.2. code. 

Configuration:
Cocoon 2.0.3
Tomcat 4.1.7
Win98

Thanks
Christian



  Christian Hoofe
  Email  [EMAIL PROTECTED]



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

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




Cocoon - Installation error

2002-07-25 Thread Viksen Pillay Narrainen

Hi all,

I have just downloaded Cocoon 2.0.3 from the Apache Web Site.

I have JDK 1.2.2 and Tomcat 3.2.3 and Windows 2000 installed on my machine.
I am getting the following error when I try to access the cocoon servlet.
Can anyone help?

Thanks,
Viksen

ERROR   (2002-07-25) 16:18.35:606   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Exception reloading
java.lang.ClassNotFoundException: org.apache.cocoon.Cocoon
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.lang.Exception.init(Exception.java, Compiled Code)
at
java.lang.ClassNotFoundException.init(ClassNotFoundException.java,
Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88)
at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1227
)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java, Compiled Code)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

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




XML-Forms and i18n

2002-07-25 Thread michael_hampel

Hello,

I was just trying to change the XMLFormTransformer to add an
i18n:text tag, when the Transformer is dealing with violations.
I tried the following in the startElementViolations method:

  1.) I tried to add the tag like this:

  // render violation tag
super.startElement(uri, TAG_VIOLATION, NS_PREFIX + : +
TAG_VIOLATION, attributes );
 // set message
   String startInter = i18n:text;
String endInter = /i18n:text;
String vm = nextViolation.getMessage();
   String result = startInter + vm + endInter;
super.characters( result.toCharArray(), 0, result.length());

super.endElement(uri, TAG_VIOLATION, NS_PREFIX + : +
TAG_VIOLATION);

  2.) and like this:

  INTER_PREFIX = i18n
  TAG_VIOLATION=text
  Here I thought that I could create the i18n tag like the
xf:validation tag is created

  // render violation tag
super.startElement(uri, TAG_VIOLATION, NS_PREFIX + : +
TAG_VIOLATION, attributes );
AttributesImpl emptyAttributes = new AttributesImpl();
super.startElement(null, null, INTER_PREFIX + : + TAG_INTER,
emptyAttributes);
String vm = nextViolation.getMessage();
super.characters( vm.toCharArray(), 0, vm.length());
super.endElement(null, null, INTER_PREFIX + : + TAG_INTER);
super.endElement(uri, TAG_VIOLATION, NS_PREFIX + : +
TAG_VIOLATION);

Both ways did not work. In the first case I got an error message like this:
  i18n:texterror_message/i18n:text
but it was not translated - so I think that there were no real tags.
The second case was ignored completely  - according to the log.

Maybe somebody can advise if I do this at the right place, or if I should
try somewhere else
or how the Transformer works regarding the super.startElement() - if this
is the way how
to add a new element to the xml or if this is done differently?

thanx again for any help,

miHam




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

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




RE: LanguageException errors on startup

2002-07-25 Thread Vadim Gritsenko

 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 
 Sorry about the previous post with a misleading subject... I'm
re-posting
 this with a 'proper' subject line...
 
 I got sidetracked and am now trying (once again) to get Cocoon2
running on
 our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with
Apache),
 RedHat 7.1, and IBM JDK 1.3.0.
 
 My last post (12 Apr 2002) left me with this error message on Cocoon
 startup:
 
 message Language Exception
 
 description org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 Vadim suggested to check for the existence of the
 'org/apache/cocoon/www/sitemap.xmap' files, of which I have:
  79221 Jul 25 10:44 sitemap_xmap.class
  15470 Jul 25 10:44 sitemap_xmap$Configurer.class
 339625 Jul 25 10:44 sitemap_xmap.java
 
 He then suggested I also try to compile the sitemap_xmap.java file to
ensure
 that it is not damaged.  I'm not sure how to do this.
 
 To test the validity of the cocoon files I'm trying, I took the
cocoon.war
 file from the 2.0.2 build folder and ran it with Tomcat 3.2.2 on my
Windows
 laptop with success (less headless head-aches), so I feel confident
that
 the code within the .war file on the Linux server is fine.  However,
I'm
 still getting the 'Language Exception' error on startup.

Then do rm -rf $TOMCAT_HOME/work and try again.

Vadim


 I regards to the X display stuff, I commented out the SVG stuff in
 sitemap.xmap but ALL OTHER files are in their original state (no
changes by
 me).  i.e. cocoon.xconf, web.xml, etc.
 
 Any other suggestions?
 
 mark



-
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: How to use map:redirect-to combined with serverpages

2002-07-25 Thread Vadim Gritsenko

 From: Christian Hoofe [mailto:[EMAIL PROTECTED]]
 
 I tried the following code in the sitemap to redirect to a page after
saving
 values to the
 database using art_grp_chg.xsp and receive an sitemap error.

You actually want to write not XSP page but action.


map:match pattern=art_grp_chg.xsp
 map:act type=request
   map:parameter name=parameters value=true/
   map:select type=request-parameter
   map:parameter name=parameter-name value=next/
  map:when test=
  /map:when
  map:otherwise
 map:generate type=serverpages
src=xdocs/db/art_grp_chg.xsp/
 map:serialize/

These two lines mean: SEND PAGE TO CLIENT

 map:redirect-to uri=../{next}/

This line means: DON'T SEND PAGE TO CLIENT, SEND HIM TO ANOTHER URL.

These are *not* compatible with each other. Choose one of them.


Vadim


  /map:otherwise
   /map:select
 /map:act
/map:match
 
 I am looking for a simple way to do something similar to the
 response.sendRedirect(); I used in my Cocoon 1.8.2. code.
 
 Configuration:
 Cocoon 2.0.3
 Tomcat 4.1.7
 Win98
 
 Thanks
 Christian
 
 
 
   Christian Hoofe
   Email  [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]




Erros using link

2002-07-25 Thread Bobby Mitchell

I have had problems with link so I changed the file 
cocoon/documentation/xdocs/index.xml from:

* 

  If you are looking for a past generation of Cocoon (no longer 
supported but still available),
  go to the link href= http://xml.apache.org/cocoon1/; Cocoon 1.x 
area/link.
* 

to:
* 

  If you are looking for a past generation of Cocoon (no longer 
supported but still available),
  go to the link href= http://xml.apache.org/cocoon1/?test=a; Cocoon 
1.x area/link.
* 


This doesn't seem to cause any problems, but when I change it to this:
* 

  If you are looking for a past generation of Cocoon (no longer 
supported but still available),
  go to the link href= http://xml.apache.org/cocoon1/?test=atest1=b; 
 Cocoon 1.x area/link.
* 

I get errors. There are two different variations:

   1. Sometimes I get the correct html output, but does not contain the 
link at all or anything after the link in the content section.
   2. Sometimes I get no output at all for the content.

When #1 happens the error.log/sitemap.log contains the following:
* 

error.log http://www.niac.usra.edu/files/1.error.out
sitemap.log http://www.niac.usra.edu/files/1.sitemap.out
* 

When #2 happens the error.log/sitemap.log contains the following:
* 

error.log http://www.niac.usra.edu/files/2.error.out
sitemap.log http://www.niac.usra.edu/files/2.sitemap.out
* 


How can I use link when there is a query_string with at least 2 
parameters?


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




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

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




DBPrism/Cocoon at OSCOM 2002 / San Francisco

2002-07-25 Thread Marcelo F. Ochoa

Hi all:
  DBPrism/Cocoon will take a place at Second Open Source Content Management
Conference at Berkeley, California from Wednesday, 25 September to
Friday, 27 September 2002.
http://www.oscom.org/conferences/sanfrancisco2002/index.html
  I will present a short keynote on Thursday, September 26 at
9:00am talking about Cocoon and DBPrism integration and how to use
them to build DBPrism CMS, also I will talk about the features and
bennefits of DBPrism CMS.
  On Friday, September 27 at 8:30am, I will participate in a
workshop discussing how DBPrism 2.0.0-beta and the new CMS
included on it implements a Unix like security layer using Oracle's
VPD (Virtual Private Database) functionality.
  See the conference program for more details
http://www.oscom.org/conferences/sanfrancisco2002/program.html there
are a lot interesting topic and the inital keynote by Ted Nelson.
  You may add your name to the mailing list for participants to be
kept informed on news about the conference
(http://www.oscom.org/mailman/listinfo/participants).
  Best regards, Marcelo.







-- 
Marcelo F. Ochoa - [EMAIL PROTECTED]
Do you Know DB Prism? Look @ http://www.plenix.com/dbprism/
More info?
Chapter 21 of the book Professional XML Databases (Wrox Press 
http://www.wrox.com/)
Chapter 8 of the book Oracle  Open Source (O'Reilly 
http://www.oreilly.com/catalog/oracleopen/)
---
Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN
Paraje Arroyo Seco - Campus Universitario
(7000) Tandil - Bs. AS. - Argentina
Te: +54-2293-30 Fax: +54-2293-31




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




Name Resolution

2002-07-25 Thread zapphod

Hello guys,

we are using cocoon 2.0.2 in a prototype and love the results. Implementation
was fast and very efficient. However, there is one problem (or should I say
challenge):
whenever someone accesses cocoon over the internet from a client that does not
have a DNS-entry (e.g. a client before a firewall at a IP-adress that has no
name associated), cocoon is terribly slow The reason seems to be that cocoon
performs reverse DNS-queries. If the nameserver does not find the right
hostname, it takes a very long until a timeout is received by cocoon. Is there a
way to turn that off? 

It seems like RequestSessionContext.buildMiscXML() calls Request.getRemoteHost()
that calls InetAddress.getHostName() that triggers the host name lookup.
OOur Config:
Apache
Tomcat 3.2
Linux 

Thanks a lot for your help

Ernst Nusterer



-
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: LanguageException errors on startup

2002-07-25 Thread Mark S. Kent

OK.  I stopped Tomcat and removed the entire $TOMCAT_HOME/work folder and
restarted Tomcat.  Everything looked fine in the Cocoon log files after
starting Tomcat until I attempt the first access of the main Cocoon start
page, then the log files start showing the following error lines (not all
are shown for brevity and bandwidth's sake):

in access.log:

ERROR   (2002-07-25) 13:44.38:280   [access](/cocoon/)
Thread-13/CocoonServlet: Problem with servlet
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
 ... remaining (mostly duplicate-type) lines removed ...

in core.log:

DEBUG   (2002-07-25) 13:44.30:392   [core.language.java](/cocoon/)
Thread-13/JavaLanguage: Compiling
/usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fcocoon/cocoon-files/or
g/apache/cocoon/www/sitemap_xmap.java
DEBUG   (2002-07-25) 13:44.38:122   [core.program-generator](/cocoon/)
Thread-13/ProgramGeneratorImpl: Language Exception
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)

in error.log:

ERROR   (2002-07-25) 13:44.38:215[sitemap](/cocoon/) Thread-13/Handler:
Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
 ... remaining (mostly duplicate-type) lines removed ...

in sitemap.log:

DEBUG   (2002-07-25) 13:44.20:938   [sitemap](/cocoon/) Thread-13/Handler:
Beginning sitemap regeneration
ERROR   (2002-07-25) 13:44.38:151   [sitemap](/cocoon/) Thread-13/Handler:
Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
 ... remaining (mostly duplicate-type) lines removed ...


Obviously these error messages in the log files are related to one another.
I double-checked the
'work/localhost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www' folder for
the sitemap_xmap files and found:

 79221 Jul 25 13:44 sitemap_xmap.class
 15470 Jul 25 13:44 sitemap_xmap$Configurer.class
339625 Jul 25 13:44 sitemap_xmap.java

These file appear to be fine.  The file sizes are maintained through
delete/restarts.

I've commented out the X server stuff in sitemap.xmap.

I've followed the installation instructions on the Cocoon for 'Installing on
Tomcat 3.2.X' adding/removing lib files in Tomcat.  My $TOMCAT_HOME/lib
folder has:
==
 330474 May 28  2001 ant.jar
 217923 May 28  2001 jasper.jar
  40810 May 28  2001 servlet.jar
   4096 Jul 25 09:05 test
 430434 May 28  2001 webserver.jar
1730053 Apr 11 14:30 xercesImpl-2.0.0.jar
 108484 Apr  9 09:20 xml-apis.jar
 136133 May 28  2001 zparser.jar

I've tried using a unpackaged Cocoon set of files as well as just copying
over the cocoon.war file (removing the /work/cocoon folder in between each
time).  The only file I've changed is the sitemap.xmap to comment out the
SVG stuff (for now).

What else can I try?  It has to be something simple at this point or a
conflicting pathname/library/jar with an existing app.  *sigh*

Setup:
Cocoon 2.0.2
Tomcat 3.2.2 (with Apache)
JBoss 2.4.3
RedHat 7.1
IBM JDK 1.3.0

mark

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 1:11 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: LanguageException errors on startup


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 Sorry about the previous post with a misleading subject... I'm
re-posting
 this with a 'proper' subject line...

 I got sidetracked and am now trying (once again) to get Cocoon2
running on
 our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with
Apache),
 RedHat 7.1, and IBM JDK 1.3.0.

 My last post (12 Apr 2002) left me with this error message on Cocoon
 

NullPointerException, pizza, searching

2002-07-25 Thread icewind

I got the latest cocoon code out of CVS and built it.
(latest as in today)

Things seem to work fine, except when I go to Search
the Docs in the samples section. When I do that, I
get the error I have attached below.

It seems to have something to do with pizza. I tried
to copy the pizza jar file to $TOMCAT_HOME/common/lib,
but I still get the same result.

I am working with Tomcat 4.0.3, JDK, 1.3 and the
latest cocoon from CVS.

Here is the error... (I cut some of the lines out to
keep this short)

rg.apache.cocoon.ProcessingException:
java.lang.NullPointerException
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:210)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:367)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:289)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:474)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:146)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

... cut ...

java.lang.NullPointerException
at
net.sf.pizzacompiler.compiler.Namer.findMethod(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Namer.pizza:306)
at
net.sf.pizzacompiler.compiler.Namer.resolveSelectFromType(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Namer.pizza:648)
at
net.sf.pizzacompiler.compiler.Attr.attribSelect(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:1572)
at
net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:1359)
at
net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:1113)
at
net.sf.pizzacompiler.compiler.Attr.attribStat(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:692)
at
net.sf.pizzacompiler.compiler.Attr.attribStats(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:750)
at
net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:472)
at
net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:424)
at
net.sf.pizzacompiler.compiler.Attr.attribute(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Attr.pizza:355)
at
net.sf.pizzacompiler.compiler.Main.process(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Main.pizza:228)
at
net.sf.pizzacompiler.compiler.Main.compile(C:\pizza\main\src\net\sf\pizzacompiler\compiler\Main.pizza:309)
at
org.apache.cocoon.components.language.programming.java.Pizza.compile(Pizza.java:114)
at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:225)

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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

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




RE: Erros using link

2002-07-25 Thread Vadim Gritsenko

 From: Bobby Mitchell [mailto:[EMAIL PROTECTED]]

Bobby,
 
 I have had problems with link so I changed the file
 cocoon/documentation/xdocs/index.xml from:
 ^
...

 link href= http://xml.apache.org/cocoon1/?test=atest1=b;Cocoon 1.x
 area/link.


 
 I get errors. There are two different variations:
 
1. Sometimes I get the correct html output, but does not contain
the
 link at all or anything after the link in the content section.
2. Sometimes I get no output at all for the content.

...

 How can I use link when there is a query_string with at least 2
 parameters?

1. Read http://www.w3.org/TR/REC-xml, especially 2.4 Character Data and
Markup

2. Replace  with amp;


Vadim



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




XML Elements

2002-07-25 Thread Bobby Mitchell

Where can I find a list of XML elements? Also, I want to create some 
custom XML elements. How can I do this?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




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

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




RE: LanguageException errors on startup

2002-07-25 Thread Vadim Gritsenko

 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 
 OK.  I stopped Tomcat and removed the entire $TOMCAT_HOME/work folder
and
 restarted Tomcat.  Everything looked fine in the Cocoon log files
after
 starting Tomcat until I attempt the first access of the main Cocoon
start
 page, then the log files start showing the following error lines (not
all
 are shown for brevity and bandwidth's sake):
 
 in access.log:
 
 ERROR   (2002-07-25) 13:44.38:280   [access](/cocoon/)
 Thread-13/CocoonServlet: Problem with servlet
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 at

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

This is ProcessingException thrown in the ProgramGenerator. Original
exception is java.lang.ClassNotFoundException. Can you find its
stacktrace? It should be right below stacktrace of the
ProcessingException.

...

 What else can I try?  It has to be something simple at this point or a
 conflicting pathname/library/jar with an existing app.  *sigh*

You can try Tomcat 4.0.4

Vadim


 
 Setup:
 Cocoon 2.0.2
 Tomcat 3.2.2 (with Apache)
 JBoss 2.4.3
 RedHat 7.1
 IBM JDK 1.3.0
 
 mark
...


-
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: LanguageException errors on startup

2002-07-25 Thread Mark S. Kent

All of the .log files have the same sequence of messages starting with the
ProcessingException:
ERROR   (2002-07-25) 14:32.36:191[sitemap](/cocoon/) Thread-12/Handler:
Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
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:498)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:201)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
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:498)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:201)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
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:498)


The error.log file also includes this ProcessingException (I think because
the sitemap generation was bad):
ERROR   (2002-07-25) 14:32.36:319[access](/cocoon/) Thread-12/CocoonServlet:
Problem with servlet
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
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:498)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:201)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
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:498)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:201)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
at

Re: Problem with ESQL logicsheet

2002-07-25 Thread Christian Haul

On 25.Jul.2002 -- 05:45 PM, Benoît Clouet wrote:
 Hi,
 
 here are some more strange things I have noticed. The problem only
 happens when I use esql:skip-rows0/esql:skip-rows. When I use some
 other values, the result is correct.

Thank you for reporting this bug.

I've fixed it in CVS. Update using the -r cocoon_2_0_3_branch 
option or add the following line to
xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/EsqlQuery.java
line 406:

position = 0;

and recompile. Please report back whether it really fixes the issue.

  I'm experiencing a strange problem with the ESQL logicsheet
  
  The results returned when I use the esql:skip-rows and the
  esql:max-rows seem to be inconsistent for example, when I request 10
  results using 
  esql:max-rows10/esql:max-rows
  I get 11 results.
  
  I looked in the XSL stylesheet and in the helper classes and I could'nt
  figure the reasons of this behaviour.
  
  Did someone experienced this before ?
  
  My configuration :
  Cocoon 2.0.3
  Tomcat 4.0.4
  JDK 1.3.1
  The database is DB2 for AS/400 and the JDBC driver is JT open 3.1.

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: XML Elements

2002-07-25 Thread Geoff Howard

Unless I misunderstand your question, this is a purely xml related question
and isn't likely to get answered here.  I'd reccomend reading a good
introduction to xml (e.g., http://www.xml.com/pub/a/98/10/guide0.html, see
also http://xml.apache.org/cocoon/link/xml.html for more xml related links).
Your questions seem based on a misconception that xml has a universally
defined set of elements like html does.  Element definitions are eXtensible
(the x in xml) by default and are defined by anyone.  While there are some
common standards floating out there, they are not in any way necessary for
beginning to work in xml.  Having said that, you will want to look for
information on DTD (Document Type Definition) and XML Schema, which are both
are standards for defining and automatically validating shared element
definitions.

Geoff Howard

 -Original Message-
 From: Bobby Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 25, 2002 3:34 PM
 To: [EMAIL PROTECTED]
 Subject: XML Elements
 
 
 Where can I find a list of XML elements? Also, I want to create some 
 custom XML elements. How can I do this?
 
 -- 
 Robert J. (Bobby) Mitchell
 Systems Administrator
 NASA Institute for Advanced Concepts
 555A 14th St Atlanta, Ga. 30318
 Phone: (404)347-9633 Fax: (404)347-9638
 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
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: NullPointerException, pizza, searching

2002-07-25 Thread Vadim Gritsenko

 From: icewind [mailto:[EMAIL PROTECTED]]
 
 I got the latest cocoon code out of CVS and built it.
 (latest as in today)
 
 Things seem to work fine, except when I go to Search
 the Docs in the samples section. When I do that, I
 get the error I have attached below.
 
 It seems to have something to do with pizza. I tried
 to copy the pizza jar file to $TOMCAT_HOME/common/lib,
 but I still get the same result.

Pizza is optional. Remove pizza from lib/optional, build clean, build
-D... webapp.

PS Cocoon 2.0.4-dev works ok for me.

PPS Do you want to fix bugs in Pizza? Contact guys at
pizzacompiler.sourceforge.net

Vadim



 
 I am working with Tomcat 4.0.3, JDK, 1.3 and the
 latest cocoon from CVS.
 
 Here is the error... (I cut some of the lines out to
 keep this short)
 
 rg.apache.cocoon.ProcessingException:
 java.lang.NullPointerException
   at

org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGener
ator.j
 ava:210)
   at

org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPi
peline
 (AbstractProcessingPipeline.java:367)
   at

org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.s
 etupPipeline(AbstractCachingProcessingPipeline.java:289)
   at

org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(Abstr
 actProcessingPipeline.java:474)
   at

org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
Serial
 izeNode.java:146)
   at

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invoke
 Nodes(AbstractParentProcessingNode.java:83)
 
 ... cut ...
 
 java.lang.NullPointerException
   at

net.sf.pizzacompiler.compiler.Namer.findMethod(C:\pizza\main\src\net\sf\
pizzac
 ompiler\compiler\Namer.pizza:306)
   at

net.sf.pizzacompiler.compiler.Namer.resolveSelectFromType(C:\pizza\main\
src\ne
 t\sf\pizzacompiler\compiler\Namer.pizza:648)
   at

net.sf.pizzacompiler.compiler.Attr.attribSelect(C:\pizza\main\src\net\sf
\pizza
 compiler\compiler\Attr.pizza:1572)
   at

net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\p
izzaco
 mpiler\compiler\Attr.pizza:1359)
   at

net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\p
izzaco
 mpiler\compiler\Attr.pizza:1113)
   at

net.sf.pizzacompiler.compiler.Attr.attribStat(C:\pizza\main\src\net\sf\p
izzaco
 mpiler\compiler\Attr.pizza:692)
   at

net.sf.pizzacompiler.compiler.Attr.attribStats(C:\pizza\main\src\net\sf\
pizzac
 ompiler\compiler\Attr.pizza:750)
   at

net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pi
zzacom
 piler\compiler\Attr.pizza:472)
   at

net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pi
zzacom
 piler\compiler\Attr.pizza:424)
   at

net.sf.pizzacompiler.compiler.Attr.attribute(C:\pizza\main\src\net\sf\pi
zzacom
 piler\compiler\Attr.pizza:355)
   at

net.sf.pizzacompiler.compiler.Main.process(C:\pizza\main\src\net\sf\pizz
acompi
 ler\compiler\Main.pizza:228)
   at

net.sf.pizzacompiler.compiler.Main.compile(C:\pizza\main\src\net\sf\pizz
acompi
 ler\compiler\Main.pizza:309)
   at

org.apache.cocoon.components.language.programming.java.Pizza.compile(Piz
za.jav
 a:114)
   at

org.apache.cocoon.components.language.programming.java.JavaLanguage.comp
ile(Ja
 vaLanguage.java:225)
 


-
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: XML Elements

2002-07-25 Thread Stan Dyck

You don't need to be a rocket scientist. (Sorry...couldn't resist that
one).

To answer your question, there is no definitive list of xml elements.
You are free to create your own or use a set that are defined by someone
else. XML element schema are generally packaged in one of three manners
(though nothing in the XML specification precludes you from using your
own method or even using no method at all):

1. Document Type Definitions (DTD) - The syntax for DTDs is legacy from
SGML, XML's parent markup language. The XML specification [1] itself
defines the format for writing a DTD. If you want to see examples of the
cocoon DTDs, look in the WEB-INF/entities directory of your cocoon
installation. Note though that modifying these directly could break the
compatibility of your installation and is not advisable. 

2. XML Schema - This is the W3C's new and improved version of DTDs
[2]. A key difference is that an XML Schema is itself an XML format
while DTDs have their own, different syntax. XML Schema provide a lot
more functionality than DTDs. You can do things like define complex
types, specify element level validation parameters and even inherit
types in an Object Oriented sort of way. I should say that some consider
XML Schema to be excessively complex and bloated with functionality.

3. James Clark, the markup guru has thrown his considerable weight
behind a specification he co-developed with Murata Makato [3]. It seeks
(and succeeds nicely IMHO) in striking a balance between the relative
simplicity of DTDs and the full featured nature of XML Schema. Like XML
Schema, a RELAX NG schema is in XML format, though there is also a
simplified, more readable format that can be used. It's well worth a
look if DTDs don't meet your needs.

As I said, none of this is strictly required by the XML specifications.
You could (and many do) simply define your own set of elements and use
them as you see fit, but if you are interested in having other people
use your format or interoperating with it, it is in your best interests
to provide a schema in one (or all) of these formats.

Others can correct me if I'm wrong since I'm still fairly new to it, but
Cocoon does not require that you use any particular schema either for
representing your data. You are free to use your own format. The
difficulty is that if you want to go out on your own like this, you need
to provide your own handling of your format (i.e. write your own
stylesheets, in most cases).

[1] http://www.w3.org/TR/REC-xml
[2] http://www.w3.org/XML/Schema
[3] http://www.oasis-open.org/committees/relax-ng/spec-20011203.html

hope this helps,
Stan Dyck

-Original Message-
From: Bobby Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 25, 2002 12:34 PM
To: [EMAIL PROTECTED]
Subject: XML Elements

Where can I find a list of XML elements? Also, I want to create some 
custom XML elements. How can I do this?

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




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

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


-
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: LanguageException errors on startup

2002-07-25 Thread Vadim Gritsenko

 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 
 All of the .log files have the same sequence of messages starting with
the
 ProcessingException:
...

Here is the second stacktrace:

 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 at

org.apache.cocoon.components.language.programming.java.JavaLanguage.load
Prog
 ram(JavaLanguage.java:186)

Unfortunately (for you), I don't have redhat to experiment with and ran
out of suggestions... No, wait a second. I've got several more (assuming
you don't want to move to 4.0.4 right now):

1. Try with X running. Launch X and start tomcat under same user, and
(IIRC) not root.

2. Remove lib/optional/batik, build clean, build  It will create
totally X-less setup.

3. Try Cocoon 2.0.3 release

These are all guesses because I can't imagine why class could not be
loaded.

PS I have Cocoon running with tomcat 4.0.4, mandrake, some Sun jdk.

Vadim

...

 We are looking at going to Tomcat 4 so maybe that will take care of
things.
 However, for now I'd like to see it working on 3.2.2 so I can complete
the
 integration with my existing app.
 
 mark
...


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




XML/XSLT to html including JavaScript question

2002-07-25 Thread Jeanine Meyer

Hello,
(Forgive any redundancy with previous messages.)
I'm having problems with what I think is a simple task: recreating the 
standard image swap in on mouse over.
I have other examples of xml citing xsl working using IE6 and also NS6.2.
However, in this example, the javascript function doesn't seem to be called.
Also, when I use saxon, a file is produced that works in NS6.2 but not 
in IE6.
Here is the xml file:
?xml version=1.0 ?
?xml-stylesheet href=mouseover2.xsl type=text/xsl?

pictures
  oimageLiz-book.jpg/oimage
  nimageDarcy3.jpg/nimage
/pictures
***mouseover2.xsl
?xml version=1.0 ?
xsl:transform xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
version=1.0
xsl:output method=html /
xsl:template match=/pictures
html
head
title Rollover test /title
script language=JavaScript type=text/javascript src=movein.js
/script
/head
body
xsl:element name=a
  xsl:attribute name=href/xsl:attribute
  xsl:attribute name=onMouseOvermovein('xsl:value-of 
select=nimage/');/xsl:attribute
  xsl:attribute name=onMouseOutmovein('xsl:value-of 
select=oimage/');/xsl:attribute
  xsl:attribute name=onClickreturn false;/xsl:attribute
  xsl:element name=img
xsl:attribute name=srcxsl:value-of 
select=oimage//xsl:attribute
xsl:attribute name=idpicture1/xsl:attribute
  /xsl:element
/xsl:element
/body
/html
/xsl:template
/xsl:transform
*the result of using saxon
html
   head
  meta http-equiv=Content-Type content=text/html; charset=utf-8
  
  title Rollover test /titlescript language=JavaScript 
type=text/javascript src=movein.js/script/head
   bodya href= onMouseOver=movein('Darcy3.jpg'); 
onMouseOut=movein('Liz-book.jpg'); onClick=return false;img 
src=Liz-book.jpg id=picture1/a/body
/html
movein.js
function movein(image)
{
window.document.picture1.src=image;
}


I get the same results when I put in the function movein.js directly in 
the mouseover.xsl (that is, when the resulting html doesn't use an external
javascript, but a local one).

HELP.
thanks,
Jeanine Meyer


-
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: Excel generator

2002-07-25 Thread Ryan Hoegg

Hi,

You might check out the POI project (hunt around for the HSSF stuff). 
 They claim to be working on Generators and Serializers for Cocoon for 
all the formats.

http://jakarta.apache.org/poi/index.html

Ryan

Michael Wechner wrote:

 Hi

 Is there an Excel Generator, which creates from an Excel (xls) file
 some XML? Or what approach would you take to convert existing Excel
 documents into some useful XML?

 Thanks  a lot

 Michael


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

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




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

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




Re: Excel generator

2002-07-25 Thread Andrew C. Oliver

Ryan do note that the HSSFSerializer is already part of cocoon:

http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html

-Andy

Ryan Hoegg wrote:

 Hi,

 You might check out the POI project (hunt around for the HSSF stuff). 
 They claim to be working on Generators and Serializers for Cocoon for 
 all the formats.

 http://jakarta.apache.org/poi/index.html

 Ryan

 Michael Wechner wrote:

 Hi

 Is there an Excel Generator, which creates from an Excel (xls) file
 some XML? Or what approach would you take to convert existing Excel
 documents into some useful XML?

 Thanks  a lot

 Michael


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

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




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

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






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

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




Re: XML/XSLT to html including JavaScript question

2002-07-25 Thread Joerg Heinicke

Hello Jeanine,

either change the name of the attribute of the image from 'id' to 'name' 
or change the javascript to 
window.document.getElementById('picture1').src=image;.

Regards,

Joerg


Jeanine Meyer wrote:
 Hello,
 (Forgive any redundancy with previous messages.)
 I'm having problems with what I think is a simple task: recreating the 
 standard image swap in on mouse over.
 I have other examples of xml citing xsl working using IE6 and also NS6.2.
 However, in this example, the javascript function doesn't seem to be 
 called.
 Also, when I use saxon, a file is produced that works in NS6.2 but not 
 in IE6.
 Here is the xml file:
 ?xml version=1.0 ?
 ?xml-stylesheet href=mouseover2.xsl type=text/xsl?
 
 pictures
  oimageLiz-book.jpg/oimage
  nimageDarcy3.jpg/nimage
 /pictures
 ***mouseover2.xsl
 ?xml version=1.0 ?
 xsl:transform xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
 version=1.0
 xsl:output method=html /
 xsl:template match=/pictures
 html
 head
 title Rollover test /title
 script language=JavaScript type=text/javascript src=movein.js
 /script
 /head
 body
 xsl:element name=a
  xsl:attribute name=href/xsl:attribute
  xsl:attribute name=onMouseOvermovein('xsl:value-of 
 select=nimage/');/xsl:attribute
  xsl:attribute name=onMouseOutmovein('xsl:value-of 
 select=oimage/');/xsl:attribute
  xsl:attribute name=onClickreturn false;/xsl:attribute
  xsl:element name=img
xsl:attribute name=srcxsl:value-of 
 select=oimage//xsl:attribute
xsl:attribute name=idpicture1/xsl:attribute
  /xsl:element
 /xsl:element
 /body
 /html
 /xsl:template
 /xsl:transform
 *the result of using saxon
 html
   head
  meta http-equiv=Content-Type content=text/html; charset=utf-8
  
  title Rollover test /titlescript language=JavaScript 
 type=text/javascript src=movein.js/script/head
   bodya href= onMouseOver=movein('Darcy3.jpg'); 
 onMouseOut=movein('Liz-book.jpg'); onClick=return false;img 
 src=Liz-book.jpg id=picture1/a/body
 /html
 movein.js
 function movein(image)
 {
 window.document.picture1.src=image;
 }
 
 
 I get the same results when I put in the function movein.js directly in 
 the mouseover.xsl (that is, when the resulting html doesn't use an external
 javascript, but a local one).
 
 HELP.
 thanks,
 Jeanine Meyer


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




JBOSS3.0.0/TOMCAT4.0.3 - COCOON2.0.3

2002-07-25 Thread Terry Anderson

Sorry if this is a duplicate ... I looked through the archieve, and
didn't see anything.

Has anyone gotten Cocoon2.0.3 running on Jboss3.0.0/Tomcat4.0.3 in
Windows2000? If so, please let me know what you did.

I am getting a MAPPING configuration error for request URI error when
attempting to see the Cocoon welcome page
(http://localhost:8080/cocoon/).

Thanks in advance!  TA



-
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: NullPointerException, pizza, searching

2002-07-25 Thread icewind

I removed the pizza jar (and removed its entry in
jars.xml, rebuilt and I still can't access the Search
the Docs section in the samples. It seems that all XSP
pages do not work. Is pizza required for this? It
seems like it is required for anything XSP.


The error I am getting now is:
org.apache.cocoon.ProcessingException: Lookup of
generator for role 'serverpages' failed.:
org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the
component for hint: serverpages

Is there another 2.1 branch I can use? I was using
2.0.3 but was getting errors when trying to index some
xml docs using the indexer you can run from the
Search the Docs section.



--- Vadim Gritsenko [EMAIL PROTECTED]
wrote:
  From: icewind [mailto:[EMAIL PROTECTED]]
  
  I got the latest cocoon code out of CVS and built
 it.
  (latest as in today)
  
  Things seem to work fine, except when I go to
 Search
  the Docs in the samples section. When I do that,
 I
  get the error I have attached below.
  
  It seems to have something to do with pizza. I
 tried
  to copy the pizza jar file to
 $TOMCAT_HOME/common/lib,
  but I still get the same result.
 
 Pizza is optional. Remove pizza from lib/optional,
 build clean, build
 -D... webapp.
 
 PS Cocoon 2.0.4-dev works ok for me.
 
 PPS Do you want to fix bugs in Pizza? Contact guys
 at
 pizzacompiler.sourceforge.net
 
 Vadim
 
 
 
  
  I am working with Tomcat 4.0.3, JDK, 1.3 and the
  latest cocoon from CVS.
  
  Here is the error... (I cut some of the lines out
 to
  keep this short)
  
  rg.apache.cocoon.ProcessingException:
  java.lang.NullPointerException
   at
 

org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGener
 ator.j
  ava:210)
   at
 

org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPi
 peline
  (AbstractProcessingPipeline.java:367)
   at
 

org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
 line.s
 

etupPipeline(AbstractCachingProcessingPipeline.java:289)
   at
 

org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
 (Abstr
  actProcessingPipeline.java:474)
   at
 

org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
 Serial
  izeNode.java:146)
   at
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
 invoke
  Nodes(AbstractParentProcessingNode.java:83)
  
  ... cut ...
  
  java.lang.NullPointerException
   at
 

net.sf.pizzacompiler.compiler.Namer.findMethod(C:\pizza\main\src\net\sf\
 pizzac
  ompiler\compiler\Namer.pizza:306)
   at
 

net.sf.pizzacompiler.compiler.Namer.resolveSelectFromType(C:\pizza\main\
 src\ne
  t\sf\pizzacompiler\compiler\Namer.pizza:648)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribSelect(C:\pizza\main\src\net\sf
 \pizza
  compiler\compiler\Attr.pizza:1572)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\p
 izzaco
  mpiler\compiler\Attr.pizza:1359)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\p
 izzaco
  mpiler\compiler\Attr.pizza:1113)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribStat(C:\pizza\main\src\net\sf\p
 izzaco
  mpiler\compiler\Attr.pizza:692)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribStats(C:\pizza\main\src\net\sf\
 pizzac
  ompiler\compiler\Attr.pizza:750)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pi
 zzacom
  piler\compiler\Attr.pizza:472)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pi
 zzacom
  piler\compiler\Attr.pizza:424)
   at
 

net.sf.pizzacompiler.compiler.Attr.attribute(C:\pizza\main\src\net\sf\pi
 zzacom
  piler\compiler\Attr.pizza:355)
   at
 

net.sf.pizzacompiler.compiler.Main.process(C:\pizza\main\src\net\sf\pizz
 acompi
  ler\compiler\Main.pizza:228)
   at
 

net.sf.pizzacompiler.compiler.Main.compile(C:\pizza\main\src\net\sf\pizz
 acompi
  ler\compiler\Main.pizza:309)
   at
 

org.apache.cocoon.components.language.programming.java.Pizza.compile(Piz
 za.jav
  a:114)
   at
 

org.apache.cocoon.components.language.programming.java.JavaLanguage.comp
 ile(Ja
  vaLanguage.java:225)
  
 
 

-
 Please check that your question  has not already
 been answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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

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




2.0.2 - 2.0.3: ClassNotFoundException on startup

2002-07-25 Thread Mark S. Kent

I decided to get the src for 2.0.3 and did a build on it instead of the
2.0.2 I couldn't get to work.  Now I'm getting different (but somewhat less
arcane) errors when starting.

in access.log:
=
DEBUG   (2002-07-25) 16:47.28:377   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class: org.hsqldb.jdbcDriver
WARN(2002-07-25) 16:47.28:396   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Could not force-load class:
org.hsqldb.jdbcDriver
java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

  ... extra removed ...

INFO(2002-07-25) 16:47.28:411   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Reloading from:
file:/usr/local/jakarta-tomcat-3.2.2/we
ERROR   (2002-07-25) 16:47.28:412   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Exception reloading
java.lang.ClassNotFoundException: org.apache.cocoon.Cocoon
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

  ... extra removed ...

ERROR   (2002-07-25) 17:01.08:814   [access] (/cocoon/)
Thread-7/CocoonServlet: Problem with Cocoon servlet
java.lang.NullPointerException
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)

  ... extra removed ...

INFO(2002-07-25) 17:01.08:972   [access] (/cocoon/)
Thread-7/CocoonServlet: '' Processed by Apache Cocoon 2.0.3 in 510
milliseconds.
ERROR   (2002-07-25) 17:02.09:203   [access] (/cocoon/)
Thread-8/CocoonServlet: Problem with Cocoon servlet
java.lang.NullPointerException
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)


Is this an easier one to eradicate?  :)


mark s. kent - web dev
vistyx corp. - www.vistyx.com
972.755.0447 x 107

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 3:27 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: LanguageException errors on startup


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 All of the .log files have the same sequence of messages starting with
the
 ProcessingException:
...

Here is the second stacktrace:

 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 at

org.apache.cocoon.components.language.programming.java.JavaLanguage.load
Prog
 ram(JavaLanguage.java:186)

Unfortunately (for you), I don't have redhat to experiment with and ran
out of suggestions... No, wait a second. I've got several more (assuming
you don't want to move to 4.0.4 right now):

1. Try with X running. Launch X and start tomcat under same user, and
(IIRC) not root.

2. Remove lib/optional/batik, build clean, build  It will create
totally X-less setup.

3. Try Cocoon 2.0.3 release

These are all guesses because I can't imagine why class could not be
loaded.

PS I have Cocoon running with tomcat 4.0.4, mandrake, some Sun jdk.

Vadim

...

 We are looking at going to Tomcat 4 so maybe that will take care of
things.
 However, for now I'd like to see it working on 3.2.2 so I can complete
the
 integration with my existing app.

 mark
...


-
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: NullPointerException, pizza, searching

2002-07-25 Thread Vadim Gritsenko

 From: icewind [mailto:[EMAIL PROTECTED]]
 
 I removed the pizza jar (and removed its entry in
 jars.xml, rebuilt and I still can't access the Search
 the Docs section in the samples. It seems that all XSP
 pages do not work. Is pizza required for this?

No. You can use javac if you want to. If all is ok, you will get
javac.jar in WEB-INF lib (from jre/lib/tools.jar) and
org.apache.cocoon...Javac compiler in the cocoon.xconf.

However, all the samples work well with pizza, including searching and
indexing. This was tested by many people before 2.0.3 release.

Vadim


 It seems like it is required for anything XSP.
 
 
 The error I am getting now is:
 org.apache.cocoon.ProcessingException: Lookup of
 generator for role 'serverpages' failed.:
 org.apache.avalon.framework.component.ComponentException:
 UnnamedSelector: ComponentSelector could not find the
 component for hint: serverpages
 Is there another 2.1 branch I can use? I was using
 2.0.3 but was getting errors when trying to index some
 xml docs using the indexer you can run from the
 Search the Docs section.
 
...


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




Name Resolution

2002-07-25 Thread Peter Schwenke


In Tomcat 4.x I've seen an enableLookups attribute on some of the
connectors can set in server.xml. Setting it to false would stop what
you're seeing.  I've had a look in my old 3.2.1 config and don't see
anything similar.

A longshot and probably not the correct approach...The DNS timeouts
might be configurable at a JVM level.  There used to be (maybe still
is ?) an issue where the JVM would cache the results of DNS lookups
and I know there was a switch (i.e. java property) to stop that behaviour.

...Peter
[EMAIL PROTECTED] writes:
  Hello guys,
  
  we are using cocoon 2.0.2 in a prototype and love the results. Implementation
  was fast and very efficient. However, there is one problem (or should I say
  challenge):
  whenever someone accesses cocoon over the internet from a client that does not
  have a DNS-entry (e.g. a client before a firewall at a IP-adress that has no
  name associated), cocoon is terribly slow The reason seems to be that cocoon
  performs reverse DNS-queries. If the nameserver does not find the right
  hostname, it takes a very long until a timeout is received by cocoon. Is there a
  way to turn that off? 
  
  It seems like RequestSessionContext.buildMiscXML() calls Request.getRemoteHost()
  that calls InetAddress.getHostName() that triggers the host name lookup.
  OOur Config:
  Apache
  Tomcat 3.2
  Linux 
  
  Thanks a lot for your help
  
  Ernst Nusterer
  
  
  
  -
  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: 2.0.2 - 2.0.3: ClassNotFoundException on startup

2002-07-25 Thread Vadim Gritsenko

 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 
 I decided to get the src for 2.0.3 and did a build on it instead of
the
 2.0.2 I couldn't get to work.  Now I'm getting different (but somewhat
less
 arcane) errors when starting.
 
 in access.log:
 =
 DEBUG   (2002-07-25) 16:47.28:377   [access] (Unknown-URI)
 Unknown-thread/CocoonServlet: Trying to load class:
org.hsqldb.jdbcDriver
 WARN(2002-07-25) 16:47.28:396   [access] (Unknown-URI)
 Unknown-thread/CocoonServlet: Could not force-load class:
 org.hsqldb.jdbcDriver
 java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 
   ... extra removed ...
 
 INFO(2002-07-25) 16:47.28:411   [access] (Unknown-URI)
 Unknown-thread/CocoonServlet: Reloading from:
 file:/usr/local/jakarta-tomcat-3.2.2/we
 ERROR   (2002-07-25) 16:47.28:412   [access] (Unknown-URI)
 Unknown-thread/CocoonServlet: Exception reloading
 java.lang.ClassNotFoundException: org.apache.cocoon.Cocoon
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 
   ... extra removed ...
 
 ERROR   (2002-07-25) 17:01.08:814   [access] (/cocoon/)
 Thread-7/CocoonServlet: Problem with Cocoon servlet
 java.lang.NullPointerException
 at

org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 
   ... extra removed ...
 
 INFO(2002-07-25) 17:01.08:972   [access] (/cocoon/)
 Thread-7/CocoonServlet: '' Processed by Apache Cocoon 2.0.3 in 510
 milliseconds.
 ERROR   (2002-07-25) 17:02.09:203   [access] (/cocoon/)
 Thread-8/CocoonServlet: Problem with Cocoon servlet
 java.lang.NullPointerException
 at

org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 
 
 Is this an easier one to eradicate?  :)

Does *anything* works on your box?? :)

0. Do you use the *same* JRE to compile and run Cocoon?

1. Check that user you use to launch tomcat can read jars:
chmod 666 $TOMCAT_HOME/webapps/cocoon/WEB-INF/*

Or even: chmod -R 666 $TOMCAT_HOME/webapps/cocoon


2. Check that your java can read these jars:
java -cp $TOMCAT_HOME/webapps/cocoon/WEB-INF/cocoon-2.0.3.jar:...
org.apache.cocoon.Cocoon

If all is ok, should say:

  Exception in thread main java.lang.NoSuchMethodError: main

Repeat same for org.hsqldb.jdbcDriver.



Vadim


 mark s. kent - web dev
 vistyx corp. - www.vistyx.com
 972.755.0447 x 107
...


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