newbie question with wildcard in sitemap

2003-07-01 Thread Sliman Bouchareb
hi cocooners,

i have the following directory structrue:

cocoon:|
 |protected-
|-docs -
  |-home
  |-fr
  |.
|-stylsheets
|-descriptors
|-css

and the followinf sitemap:

map:match pattern=do-login
!-- first validate whether submitted values are ok --
map:act type=form-validator
  map:parameter name=descriptor
value=context://protected/descriptors/params.xml/
  map:parameter name=validate value=username/
  !-- now try to log in --
  map:act type=db-authenticator
map:parameter name=descriptor
value=context://protected/descriptors/auth.xml/
!-- now go to protected area --
map:redirect-to uri=home/home.section/
  /map:act
/map:act
!-- something was wrong, try it again --
map:redirect-to uri=error/
  /map:match


* after a successfull login i call the uri  home/home.section

and then i have the following match:


map:match pattern=*/*.*
!-- first validate whether user has logged in --
map:act type=session-validator
  map:parameter name=descriptor
value=context://protected//descriptors/params.xml/
  map:parameter name=validate
value=username,department_id,theme/
  !-- generate protected content --
  !-- map:generate type=serverpages
src=docs/protected.xsp/ --
  !-- map:transform src=stylesheets/{theme}-page2html.xsl/ --


map:generate src=docs/home/home.xml/
map:transform src=stylesheets/page.xsl
  map:parameter name=section value=home/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform

map:transform src=stylesheets/menupage.xsl
  map:parameter name=section value=home/
  map:parameter name=request-url value=home.section/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=css-stylesheet value=default.css/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform
map:serialize/
/map:act
!-- something was wrong, redirect to login page --
map:redirect-to uri=login/
  /map:match

* well this works fine, nut i want to substitute map:generate
src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml /
because i have many ressources, but this dont work :-(, why that ?


thanx



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



Re: newbie question with wildcard in sitemap

2003-07-01 Thread Joerg Heinicke
You have a map:act/ surrounding not only this map:generate/. This 
map:act/ makes it necessary to use {../1}:

map:generate src=docs/{../1}/home.xml /

Regards,

Joerg

Sliman Bouchareb wrote:
hi cocooners,

i have the following directory structrue:

cocoon:|
 |protected-
|-docs -
  |-home
  |-fr
  |.
|-stylsheets
|-descriptors
|-css
and the followinf sitemap:

map:match pattern=do-login
!-- first validate whether submitted values are ok --
map:act type=form-validator
  map:parameter name=descriptor
value=context://protected/descriptors/params.xml/
  map:parameter name=validate value=username/
  !-- now try to log in --
  map:act type=db-authenticator
map:parameter name=descriptor
value=context://protected/descriptors/auth.xml/
!-- now go to protected area --
map:redirect-to uri=home/home.section/
  /map:act
/map:act
!-- something was wrong, try it again --
map:redirect-to uri=error/
  /map:match
* after a successfull login i call the uri 	home/home.section

and then i have the following match:

map:match pattern=*/*.*
!-- first validate whether user has logged in --
map:act type=session-validator
  map:parameter name=descriptor
value=context://protected//descriptors/params.xml/
  map:parameter name=validate
value=username,department_id,theme/
  !-- generate protected content --
  !-- map:generate type=serverpages
src=docs/protected.xsp/ --
  !-- map:transform src=stylesheets/{theme}-page2html.xsl/ --
map:generate src=docs/home/home.xml/
map:transform src=stylesheets/page.xsl
  map:parameter name=section value=home/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform
map:transform src=stylesheets/menupage.xsl
  map:parameter name=section value=home/
  map:parameter name=request-url value=home.section/
  map:parameter name=toc-file value=../docs/toc.xml/
  map:parameter name=css-stylesheet value=default.css/
  map:parameter name=base-url value=/cocoon/protected/
/map:transform
map:serialize/
/map:act
!-- something was wrong, redirect to login page --
map:redirect-to uri=login/
  /map:match
* well this works fine, nut i want to substitute map:generate
src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml /
because i have many ressources, but this dont work :-(, why that ?
thanx
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Suggestion for a Cocoon newbie

2003-06-24 Thread Alberto Zanon
Hello!

I'm a Java developer and I'm looking for a solid system to construct my
sites.
I have already realized an e-commerce site, but without rules.
My jsp pages contain both logic and presentation layer.
Only the data layer is encapsulated into java classes called from jsp.
Now I have to construct an intranet at my company where employees
will register their activity during the day.
The site involves form validation, business logic, and the use of a
database.
Before becoming aware of Cocoon, I thought I would build the site this way:
- a layer of java classes that interface with the database;
- a layer of java classes for business logic;
- a layer of jsp for presentation;

Now I have downloaded the latest version of Cocoon and read many pages of
documentation.
But I'm very confused! I read about XSP but I read also about XMLForm ...
and where I put
my business logic? For example, I downloaded a tutorial from IBM about
Cocoon and databases
but it shows only the XSP pages to dialog with the database and format the
data ... no business
logic in it.
I'm interested about Cocoon because one goal of it is the MVC or SoC
approach
when a site is developed.

Please, can anyone suggest me the right way to use Cocoon?

Thanks

--
Alberto Zanon

Sistemi  Servizi Informatica Srl
tel +39 0423 722324
fax +39 0423 498302
web http://www.sistemi-servizi.it



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



RE: Newbie user

2003-06-21 Thread Geoff Howard
The book you're reading is for the previous 2.0.x release of cocoon - you're
using the 2.1 branch so some details like that are going to be out of whack.
There is a status document, and an upgrading guide that might give you some
overview of major changes.  The core concepts of the book should be mostly
still valid with a few exceptions.

Further, the light version of Jetty (bundled now with cocoon for
convenience of test driving) that you are starting by doing cocoon.sh by
default launches cocoon at the root context.  Where you see /cocoon/ in urls
in examples or demos, they are assuming you've installed cocoon into a
servlet container under a named context - as you would if you dropped
cocoon.war
into the webapps folder of Tomcat.

The existing documentation for the 2.1 branch is a little out of date in
parts
and we could use your help discovering problem areas.  In fact, new
documentation
is happening over at the cocoon wiki (http://wiki.cocoondev.org).

Have fun and write back with anything you have trouble with.

Geoff

 -Original Message-
 From: Richard Doust [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 21, 2003 1:16 PM
 To: [EMAIL PROTECTED]
 Subject: Newbie user


 Hi.
 I've just downloaded (from CVS) the latest code for cocoon (for the first
 time) and built it according to some (somewhat) conflicting/confusing
 instructions (naming build target webapp). I'm running 'cocoon servlet'
 after doing the build. I can open my browser on localhost:
 and I see the
 'Welcome to Cocoon!' page that says I've successfully installed
 Cocoon with
 the button that will take me to cocoon.apache.org. According to the book
 'Cocoon: Building XML Applications' I should see a whole bunch of links to
 example pages if I go to localhost:/cocoon.
 I get this:

 Cocoon 2 - Resource not found
 type resource-not-found
 message Resource not found
 description The requested URI /cocoon was not found
 sender org.apache.cocoon.servlet.CocoonServlet
 source Cocoon servlet
 cause
 No pipeline matched request: cocoon
 request-uri
 /cocoon
 path-info
 cocoon

 If I go to localhost:/cocoon/ I get this:

 Cocoon 2 - Resource not found
 type resource-not-found
 message Resource not found
 description The requested URI /cocoon/ was not found
 sender org.apache.cocoon.servlet.CocoonServlet
 source Cocoon servlet
 cause
 Resource not found
 file:/C:/Projects/apache/xml-cocoon2/build/webapp/cocoon/sitemap.xmap
 request-uri
 /cocoon/
 path-info
 cocoon/

 I find the fact that it's looking for the sitemap.xmap file in
 .../build/webapp/cocoon somewhat surprising when it hasn't been put there.
 It's in the .../build/webapp directory.

 What have I done wrong? Anyone?
 Thanks in advance.
 Rich


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





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



Newbie: writing XML files with Cocoon

2003-06-04 Thread Phil Coultard
Hi,

Apologies if this is a basic question.

I'm just starting with Cocoon really and am trying to produce a content
management system using it to see whether it really is suitable for my
needs.

As part of this I need to edit xml files via the browser but it occurs to me
this must be something that loads of people have done already. My question
is therefore what content management projects exist or failing that what
browser based XML editing tools exist.

I'm using:
Win98
Tomcat 4.1.24
JDK 1.3.1
Cocoon 2.1

Thanks in advance

Phil Coultard
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/03


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



Re: Newbie: writing XML files with Cocoon

2003-06-04 Thread Upayavira
 Apologies if this is a basic question.
 
 I'm just starting with Cocoon really and am trying to produce a
 content management system using it to see whether it really is
 suitable for my needs.
 
 As part of this I need to edit xml files via the browser but it occurs
 to me this must be something that loads of people have done already.
 My question is therefore what content management projects exist or
 failing that what browser based XML editing tools exist.
 
 I'm using:
 Win98
 Tomcat 4.1.24
 JDK 1.3.1
 Cocoon 2.1

If you're using 2.1, you should try Stefano's Linotype. I haven't yet tried it (but 
will 
soon). It looks really cool. Unfortunately the download link is broken, so I can't 
tell you 
where to get it, and Stefano is apparently hiking up an inca trail towards Machu 
Picchu, which doesn't help! But it is well worth waiting for. It uses client side 
wysiwyg 
editing on IE6 and Moz6, and flow behind the scenes.

Hope that helps (and doesn't cause too much 'I can't find it' frustration).

Regards, Upayavira



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



Re: Newbie: writing XML files with Cocoon

2003-06-04 Thread Andreas Kuckartz
 I'm just starting with Cocoon really and am trying to produce a content
 management system using it to see whether it really is suitable for my
 needs.

First of all I would recommend that you participate in developing Apache
Lenya (see http://lenya.org/ or http://cocoon.apache.org/lenya/) which is a
CMS based on Cocoon.

 As part of this I need to edit xml files via the browser but it occurs to
me
 this must be something that loads of people have done already. My question
 is therefore what content management projects exist or failing that what
 browser based XML editing tools exist.

You will find answers to this question on the Lenya website.

Andreas


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



RE: Newbie: writing XML files with Cocoon

2003-06-04 Thread Oleg Lyebyedyev
http://www.betaversion.org/~stefano/software/linotype/

-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 4:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie: writing XML files with Cocoon

 Apologies if this is a basic question.
 
 I'm just starting with Cocoon really and am trying to produce a
 content management system using it to see whether it really is
 suitable for my needs.
 
 As part of this I need to edit xml files via the browser but it occurs
 to me this must be something that loads of people have done already.
 My question is therefore what content management projects exist or
 failing that what browser based XML editing tools exist.
 
 I'm using:
 Win98
 Tomcat 4.1.24
 JDK 1.3.1
 Cocoon 2.1

If you're using 2.1, you should try Stefano's Linotype. I haven't yet
tried it (but will 
soon). It looks really cool. Unfortunately the download link is broken,
so I can't tell you 
where to get it, and Stefano is apparently hiking up an inca trail
towards Machu 
Picchu, which doesn't help! But it is well worth waiting for. It uses
client side wysiwyg 
editing on IE6 and Moz6, and flow behind the scenes.

Hope that helps (and doesn't cause too much 'I can't find it'
frustration).

Regards, Upayavira



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



--
The information transmitted is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking on any action in reliance 
upon, this information by persons or entities other than the intended recipient is 
prohibited. If you received this in error, please contact the sender and delete the 
material from any computer. Visit us at: Http://www.perfectforpeople.nl 
--

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



Newbie Question: Where do I add actions to sitemap?

2003-05-29 Thread Ross Bleakney
Cocooners,
I have created an action, but I need to modify my sitemap.xmap like so:

map:actions
map:action name=myName src=com.mycompany.myclass /
/map:actions

Where do I put this? I've tried putting it before the components, after
the components, etc. I've looked at a bunch of examples, but they don't
show the entire file (only snippets).

Thanks,
Ross





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



RE: Newbie Question: Where do I add actions to sitemap?

2003-05-29 Thread Steven Cummings
Actions go *inside* components (actions are a type of component, like generator, 
serializer, transformer, etc.):

map:sitemap ...
  map:components
map:actions.../map:actions
map:generators/map:transformers/ etc. etc.

HTH

/S

Ross Bleakney [EMAIL PROTECTED] wrote:

Cocooners,
I have created an action, but I need to modify my sitemap.xmap like so:

map:actions
map:action name=myName src=com.mycompany.myclass /
/map:actions

Where do I put this? I've tried putting it before the components, after
the components, etc. I've looked at a bunch of examples, but they don't
show the entire file (only snippets).

Thanks,
Ross





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




-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114
MSN:   [EMAIL PROTECTED]


__
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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



Re: Newbie Question: Where do I add actions to sitemap?

2003-05-29 Thread Ross Bleakney
Nevermind, I found the answer: put the actions element inside
components/components
Thanks,
Ross

On Wed, 2003-05-28 at 17:35, Ross Bleakney wrote:
 Cocooners,
 I have created an action, but I need to modify my sitemap.xmap like so:
 
 map:actions
 map:action name=myName src=com.mycompany.myclass /
 /map:actions
 
 Where do I put this? I've tried putting it before the components, after
 the components, etc. I've looked at a bunch of examples, but they don't
 show the entire file (only snippets).
 
 Thanks,
 Ross
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-06 Thread Perry Molendijk




Try "com.mysql.jdbc.Driver" instead of "org.gjt.mm.mysql.Driver".
I have had a similar error message like that before and the above seem to fix 
it.

Perry

  - Original Message - 
  From: 
  Phil 
  Coultard 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, April 05, 2003 1:52 
  AM
  Subject: Newbie: yet ANOTHER problem: db 
  access (NoValidConnectionException)
  Geoff: Thanks for all your help, you are a star.Big 
  apologies from a newbie struggling with the basics of Cocoon...I have 
  run into yet another problem which I don't seem to be able to 
  getover...This time I am trying to connect z}x}x} MySQL db 
  but get the message:ERROR (2003-04-04) 
  16:18.09:150 
  [sitemap.generator.serverpages](/ltd_coultard/mount/com_coultard/tickets) 
  Thread-10/tickets_xsp: Could notget the 
  datasourceorg.apache.avalon.excalibur.datasource.NoValidConnectionException: 
  No validJdbcConnection class availablein the error log 
  file(tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my 
  xsp(enclosed below)I am also new to MySQL but am familiar with 
  MSSQL so...I have:-made the dx}v}v}alled coultard) and made 
  sure MySQL is running (it works finesolo)-put the MySQL db jar file 
  (mysql-connector-java-3.0.6-stable-bin.jar) inC:\tomcat\common\lib-put 
  the init-param for preloading the driver in web.xml as below.-defined the 
  connection pool as below-attempted to run the xsp belowI just 
  spits out the title of the page and the session user value (which Ihave 
  set via a login script) which would be consistent with their being 
  noresults except the same sql statement returns rv}t}t}ts if run 
  directly inMySQL and the error message suggests to me it's not even 
  getting that far.I am using:Win 98JDK 1.3.1Tomcat 
  4.1.24Cocoon 2.0.4MySQL 4.0.12Winjar file from: 
  mysql-connector-java-3.0.6-stableWhat confuses me is that my book 
  (Cocoon developers handbook) assures methat any errors preloading the 
  driver or defining the connection pool willbe thrown up when they are 
  attempted (when the application starts) and shownin access.log and 
  core.log respectfully. My entt}r}r} in these two logs 
  lookfine:DEBUG 
  (2003-04-04) 16:14.22:850 [access] 
  (Unknown-URI)Unknown-thread/CocoonServlet: Trying to load class: 
  org.gjt.mm.mysql.DriverDEBUG 
  (2003-04-04) 16:14.24:010 [core.manager] 
  (Unknown-URI)Unknown-thread/Der}p}p}tComponentFactory: logger 
  attribute iscore.datasources.coultardDEBUG (2003-04-04) 
  16:14.24:390 [core.manager] 
  (Unknown-URI)Unknown-thread/ThreadSafeComponentHandler: ComponentHandler 
  initialized 
  for:org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSourceDEBUG 
  (2003-04-04) 16:14.24:390 [core.manager] 
  (Unknown-URI)Unknown-thread/ExcaliburComponentSelector: 
  Addingorg.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource 
  forhint [coultard]DEBUG 
  (2003-04-p}n}n}16:14.24:390 [core.manager] 
  (Unknown-URI)Unknown-thread/ThreadSafeComponentHandler: ComponentHandler 
  initialized 
  for:org.apache.avalon.excalibur.component.ExcaliburComponentSelectorAnd 
  yet the error thrown when I try to load the page rather suggests to methat 
  it can't find, or hasn't 'installed' the jar file properly...On the 
  assumption that the preload and connection pool substantiations areworking 
  I hn}xl}xl}two theories (which I'm sure are probably wrong!)1. That 
  the param-valueorg.gjt.mm.mysql.Driver is incorrect. I got 
  thisvalue from my book but it is sadly for an older MySQL driver. I 
  notice thefirst line of the README which comes with the jar file reads 
  "MySQLConnector/J 3.0.6 Stable (formerly MM.MySQL)" and was wondering if 
  thischange in naming convention is mirrored somehow in it. I have been 
  unable tofind a reference for the correct string for this value (MySQL 
  referring to"read youxl}hj}hj}rvlet engine or application server 
  vendor's documentation";Cocoon seemingly not making a reference to what 
  these strings should beexcept for the commented WebSphere, Oracle and 
  IBMWebshpere). Furtherattempts to substantiate this theory and attempts at 
  guessing its value havebeen unfruitful.2. That my reference to the 
  dburl is incorrect. My db is physically locatedin C:\mysql\data\ and not 
  under the tomcat/webapps dir so I was wondering ifthis had any influence 
  on the 
  matter.Thankfuhj}Xh}Xh}Philextract 
  from 
  tomcat/webapps/applicationname/WEB-INF/web.xml---

RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-05 Thread Andrew Savory

Hi Phil,

On Sat, 5 Apr 2003, Phil Coultard wrote:

 Frustrated and feeling rather thick,

Don't worry, I've spent many hours on db connection problems, it's always
a sticking point and a nightmare to get sorted out.

Here's some step-by-step checks (worth repeating, as typos are often the
problem!):

1) Is the mysql server running and accepting connections?

- Test this using the mysql command-line client:

  mysql -D your_db_name -h localhost -P 3306 -pyour_password -u your_user

  Make sure you can select the information you want to use in the XSP (to
  ensure the user you're connecting as has rights to the db and the
  table):

  SELECT foo FROM bar;

- Test connections with telnet:

  telnet localhost 3306
  (you should see something like 3.23.56-log$8,u+r} which shows you
  can at least connect to localhost)

2) Is the (right) mysql jar available?

- Check that you downloaded the correct jar for your JDK, as jdbc
connectors are java version-specific.

- Check in $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib/ for the presence of
mysql-connector-java-3.0.6-bin.jar or similar.

- Check that it is correctly referenced in WEB-INF/web.xml:

init-param
  param-nameload-class/param-name
  param-value
!-- For Database Driver: --
com.mysql.jdbc.Driver
  /param-value
/init-param

3) Is the Cocoon database connection pool configured?

- Check that it's correctly configured in WEB-INF/cocoon.xconf:

  datasources
jdbc logger=core.datasources.your_db_name name=your_db_name
  pool-controller max=10 min=5/
  dburljdbc:mysql://localhost:3306/your_db_name/dburl
  useryour_user/user
  passwordyour_password/password
/jdbc
  /datasources

4) Is the XSP written correctly?

- Try the simplest possible XSP that could work, first:

?xml version=1.0?

xsp:page language=java xmlns:xsp=http://apache.org/xsp; 
xmlns:esql=http://apache.org/cocoon/SQL/v2;

  page

esql:connection
  esql:poolyour_db_name/esql:pool
  esql:execute-query
esql:querySELECT foo FROM bar/esql:query
esql:results
  esql:row-results
fooesql:get-string column=foo//foo
  /esql:row-results
/esql:results
  /esql:execute-query
/esql:connection

  /page

/xsp:page

That said, from looking at what you've done so far, you've got everything
correct :-/


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk

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



RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-05 Thread Geoff Howard
Definitely go carefully through Andrew's list of checks first
but I don't think that's your problem.

Change your port back to 3306 or get rid of it from your connect
string.  8080 is the tomcat port, but not the mysql port (by
default at least - if you overrode that in configuring mysql
and set it to 8080 then you'll need to fix that!)

How did you get your version of cocoon?  I assume you downloaded
a distribution like cocoon-2.0.4-vm14-bin.zip.  If you still have
this around, or can reconstruct/remember which one you chose
make sure you did _NOT_ get the one above but instead got
cocoon-2.0.4-bin.zip.  The excalibur project classes that
handle the datasource pool had a version dependency on java
version.  Since you're using JDK 1.3, if you are trying to
use the cocoon release for JDK 1.4 you'll get this exception.

You should also be able to go to lib\ and look for the excalibur
datasource jar (don't remember if all excalibur classes were
bundled together or separate in 2.0.4 release) - it should have
some kind of version info on it, including the target JDK it was
compiled for.  If there is a conflict you have a couple of choices:
- Switch to JDK 1.4 OR
- Download the correct cocoon dist. OR
- Replace the excalibur datasource jar with the version from the other
distribution.  This may not work, but if you're on a slow dialup and
can find someone to send you the right version of just that jar, it's
worth a shot first.

For some reason I seem to remember this also being thrown with
a permissions problem in mysql.  I thought that root usually
got full access from all hosts and can't find any messages in
the archives along these lines so perhaps I'm wrong. But if
clearing up the jdk dependency doesn't work, try explicitly
giving root access to the database you're using for the wildcard
host: %.  I seem to remember that mysql does not think you're
coming from localhost when you connect via jdbc.  You'll need to
consult the mysql manual for the grant command.

I noticed your jar was in a tomcat lib directory.  You may want to
follow Andrew's advice and move it to the WEB-INF\lib\ directory.
Should work either place, but there are some classloader subtleties
that could be throwing things off.

Geoff

 -Original Message-
 From: Phil Coultard [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 04, 2003 3:40 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 Hi HTH,

 Thanks for your suggestion but that didn't work - I'm still
 getting the same
 message (even after re-starting the server and deleting the work
 directory).

 I have read the readme enclosed with the jar but to my uneducated eye it
 does not seem to enclose a ref to what I should call the class.

 Kind Regards

 Phil

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 04 April 2003 19:20
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: AW: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 hi phil,

 please try com.mysql.jdbc.Driver as the driver class. that should
 work. your
 dburl seems to be correct.

 otherwise have a look into your mysql-connector jar. there should be a
 README inside.

 HTH

  -Ursprngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Auftrag von Phil Coultard
  Gesendet: Freitag, 4. April 2003 19:53
  An: [EMAIL PROTECTED]
  Betreff: Newbie: yet ANOTHER problem: db access
  (NoValidConnectionException)
 
 
  Geoff: Thanks for all your help, you are a star.
 
  Big apologies from a newbie struggling with the basics of Cocoon...
 
  I have run into yet another problem which I don't seem to be able to get
  over...
 
  This time I am trying to connect to a MySQL db but get the message:
 
  ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
  (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
  Could not
  get the datasource
  org.apache.avalon.excalibur.datasource.NoValidConnectionException:
   No valid
  JdbcConnection class available
 
  in the error log file
  (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I
 run my xsp
  (enclosed below)
 
  I am also new to MySQL but am familiar with MSSQL so...
 
  I have:
  -made the db (called coultard) and made sure MySQL is running (it
  works fine
  solo)
  -put the MySQL db jar file
 (mysql-connector-java-3.0.6-stable-bin.jar) in
  C:\tomcat\common\lib
  -put the init-param for preloading the driver in web.xml as below.
  -defined the connection pool as below
  -attempted to run the xsp below
 
  I just spits out the title of the page and the session user
 value (which I
  have set via a login script) which would be consistent with
 their being no
  results except the same sql statement returns results if run directly in
  MySQL and the error message suggests to me it's not even
 getting that far.
 
  I am using:
  Win 98
  JDK 1.3.1
  Tomcat 4.1.24
  Cocoon 2.0.4
 
  MySQL 4.0.12Win

Newbie: Suggestions for development environment

2003-04-05 Thread Joe Williams



I am a technical writer learning to use Cocoon. I 
have read the FAQs and done Google searches for an answer to this question 
(which doesn't mean that it is not out there somewhere, of course).

I have installed Cocoon and experimented with it 
somewhat successfully and would like to begin building and deploying a webapp 
that will create dynamic documentation.

I am creating my project on a Linux box on a home 
network, and will deploy to a Web server on the Internet.

I would like to keep the full Cocoon installation 
(2.0.3 on Tomcat 4.1.18) on my home box, but don't particularly want to burden 
my hosting provider with all of the samples, documentation, and other overhead 
of the full install.

I am confused after reading about setting up a 
development environment and deploying webapps. 

I have created multiple Cocoon instances, but am 
not sure this is the best way to do it. The reason I say this, is that when I 
access localhost/cocoon I see the directory page; but when I access 
localhost/cocoon_dev (the second instance, set up with intentions of creating a 
Cocoon instance with minimal overhead for my webapp) I get a 404 error. This 
tells me that something is amiss (I think).

Another method I have read says that the way to do 
it is to create a webapp directory within the cocoon/mount directory and use a 
subsitemap.

OK. But when I deploy from my local (home network) 
machine to my provider's machine (on the Internet) I will have to create a new 
sitemap that references whatever components the webapp requires. Maybe this is 
no big deal to experienced Cocoon developers/users but it seems like an 
opportunity for a lot of confusion and extra work.

What is the best practice for this that allows the 
most hassle-free deployment with the least opportunity for breaking the webapp 
in moving it from local machine to host machine?

You may reply off-list if you like and I will post 
whatever works for other newbies.

As always, let me know if I have left out 
information that would be helpful in understanding the question, and I will 
provide it. Or, if there is a link that explains this, that would be fine, as 
well.

Thanks.

Joe


RE: Newbie: Suggestions for development environment

2003-04-05 Thread Argyn



I'm not sure I 
understand what you want to achieve. To have two cocoons on tomcat, you can 
simply put two war files with different names. For example, put cocoon.war and 
its copy under name cocoon-dev.war in webapps directory. So, you'll have two 
cocoons: http://localhost:8080/cocoon/ and http://localhost:8080/cocoon-dev/.When 
I play with settings, sometimes, I simply copy extracted cocoon directory in 
Tomcat's webapps folder into a different name, like 
/webapps/cocoon1.

There was also a 
thread on "minimal" cocoon deployment, maybe that's what you need to search for 
in this mailing list.

  -Original Message-From: Joe Williams 
  [mailto:[EMAIL PROTECTED]Sent: Saturday, April 05, 
  2003 11:02 AMTo: [EMAIL PROTECTED]Subject: 
  Newbie: Suggestions for development environment
  
  I have created multiple Cocoon instances, but am 
  not sure this is the best way to do it. The reason I say this, is that when I 
  access localhost/cocoon I see the directory page; but when I access 
  localhost/cocoon_dev (the second instance, set up with intentions of creating 
  a Cocoon instance with minimal overhead for my webapp) I get a 404 error. This 
  tells me that something is amiss (I think).
  


RE: Newbie: Suggestions for development environment

2003-04-05 Thread Phil Coultard
I am also a Newbie but, having the same outlook as yourself I think I
understand what you want...

snip/

I have created multiple Cocoon instances, but am not sure this is the best
way to do it. The
reason I say this, is that when I access localhost/cocoon I see the
directory page; but when I
access localhost/cocoon_dev (the second instance, set up with intentions of
creating a Cocoon
instance with minimal overhead for my webapp) I get a 404 error. This tells
me that something is
amiss (I think).

I think you are looking for a so called minimal install. This includes the
requirements of Cocoon but does not include all the other stuff. See the
http://wiki.cocoondev.org/ (thanks to Geoff Howard) site for more info. I
found the page rather hidden away being a link under Main, For Beginners,
Set up cocoon in 15 minutes, [scroll down] MinimalCocoonConfiguration so
here's a direct link:
http://wiki.cocoondev.org/Wiki.jsp?page=MinimalCocoonConfiguration. However,
as an ignorant novice I noted that this tutorial didn't go quite far enough:
having deleted all the pipelines you have to put at least one back and a
corresponding file (of course) to test whether it works or you'll just get
an error!

Another method I have read says that the way to do it is to create a webapp
directory within
the cocoon/mount directory and use a subsitemap.

snip/

What is the best practice for this that allows the most hassle-free
deployment with the
least opportunity for breaking the webapp in moving it from local machine
to host machine?

Don't know myself yet sorry! With my limited experience it seems that sub
apps are nice and portable but may have app specific (rather than cocoon
specific) requirements (e.g. db connection pools, logicsheets) that are set
in the main app so it kinda depends what you are doing I guess.

HTH(!)

Phil Coultard
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/03


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



RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-05 Thread Andrew Savory
On Sat, 5 Apr 2003, Geoff Howard wrote:

 But if clearing up the jdk dependency doesn't work, try explicitly
 giving root access to the database you're using for the wildcard host:
 %.

Also, try explicitly adding localhost - MySQL regards localhost as
different to the wildcard every host, for goodness knows what reason.
(Although that will throw a connection error with the command-line client
as well as Cocoon.)

Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk

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



RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-05 Thread Phil Coultard
 From: Andrew Savory
 Sent: 05 April 2003 22:29

 On Sat, 5 Apr 2003, Geoff Howard wrote:

  But if clearing up the jdk dependency doesn't work, try explicitly
  giving root access to the database you're using for the wildcard host:
  %.

 Also, try explicitly adding localhost - MySQL regards localhost as
 different to the wildcard every host, for goodness knows what reason.
 (Although that will throw a connection error with the command-line client
 as well as Cocoon.)

Nope. That didn't work either... still getting the same message:

ERROR   (2003-04-06) 00:50.36:940   [sitemap.generator.serverpages]
(/ltd_coultard/tickets.xsp) Thread-11/tickets_xsp: Could not get the
datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

This is one mild mannered Englishman who is off out to buy a baseball bat
soon ;-)

Phil
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 24/03/03


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



RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-05 Thread Faron Dutton
Hi All,

I was having the same problem with Phoenix. It turns out that the
excalibur-datasource-1.0.jar is missing
org.apache.avalon.excalibur.datasource.JdbcConnection. Must have been a
build problem :( After adding it everything works fine.

Faron

-Original Message-
From: Phil Coultard [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 05, 2003 6:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Newbie: yet ANOTHER problem: db access
(NoValidConnectionException)


 From: Andrew Savory
 Sent: 05 April 2003 22:29

 On Sat, 5 Apr 2003, Geoff Howard wrote:

  But if clearing up the jdk dependency doesn't work, try explicitly
  giving root access to the database you're using for the wildcard host:
  %.

 Also, try explicitly adding localhost - MySQL regards localhost as
 different to the wildcard every host, for goodness knows what reason.
 (Although that will throw a connection error with the command-line client
 as well as Cocoon.)

Nope. That didn't work either... still getting the same message:

ERROR   (2003-04-06) 00:50.36:940   [sitemap.generator.serverpages]
(/ltd_coultard/tickets.xsp) Thread-11/tickets_xsp: Could not get the
datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

This is one mild mannered Englishman who is off out to buy a baseball bat
soon ;-)

Phil
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 24/03/03


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

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



Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Phil Coultard
Geoff: Thanks for all your help, you are a star.

Big apologies from a newbie struggling with the basics of Cocoon...

I have run into yet another problem which I don't seem to be able to get
over...

This time I am trying to connect to a MySQL db but get the message:

ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
(/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp: Could not
get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

in the error log file
(tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my xsp
(enclosed below)

I am also new to MySQL but am familiar with MSSQL so...

I have:
-made the db (called coultard) and made sure MySQL is running (it works fine
solo)
-put the MySQL db jar file (mysql-connector-java-3.0.6-stable-bin.jar) in
C:\tomcat\common\lib
-put the init-param for preloading the driver in web.xml as below.
-defined the connection pool as below
-attempted to run the xsp below

I just spits out the title of the page and the session user value (which I
have set via a login script) which would be consistent with their being no
results except the same sql statement returns results if run directly in
MySQL and the error message suggests to me it's not even getting that far.

I am using:
Win 98
JDK 1.3.1
Tomcat 4.1.24
Cocoon 2.0.4

MySQL 4.0.12Win
jar file from: mysql-connector-java-3.0.6-stable

What confuses me is that my book (Cocoon developers handbook) assures me
that any errors preloading the driver or defining the connection pool will
be thrown up when they are attempted (when the application starts) and shown
in access.log and core.log respectfully. My entries in these two logs look
fine:



DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class: org.gjt.mm.mysql.Driver





DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
Unknown-thread/DefaultComponentFactory: logger attribute is
core.datasources.coultard
DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
Unknown-thread/ThreadSafeComponentHandler: ComponentHandler initialized for:
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
Unknown-thread/ExcaliburComponentSelector: Adding
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource for
hint [coultard]
DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
Unknown-thread/ThreadSafeComponentHandler: ComponentHandler initialized for:
org.apache.avalon.excalibur.component.ExcaliburComponentSelector



And yet the error thrown when I try to load the page rather suggests to me
that it can't find, or hasn't 'installed' the jar file properly...

On the assumption that the preload and connection pool substantiations are
working I have two theories (which I'm sure are probably wrong!)
1. That the param-valueorg.gjt.mm.mysql.Driver is incorrect. I got this
value from my book  but it is sadly for an older MySQL driver. I notice the
first line of the README which comes with the jar file reads MySQL
Connector/J 3.0.6 Stable (formerly MM.MySQL) and was wondering if this
change in naming convention is mirrored somehow in it. I have been unable to
find a reference for the correct string for this value (MySQL referring to
read your servlet engine or application server vendor's documentation;
Cocoon seemingly not making a reference to what these strings should be
except for the commented WebSphere, Oracle and IBMWebshpere). Further
attempts to substantiate this theory and attempts at guessing its value have
been unfruitful.

2. That my reference to the dburl is incorrect. My db is physically located
in C:\mysql\data\ and not under the tomcat/webapps dir so I was wondering if
this had any influence on the matter.


Thankfully

Phil




extract from tomcat/webapps/applicationname/WEB-INF/web.xml


init-param
  param-nameload-class/param-name
  param-value
org.gjt.mm.mysql.Driver
  /param-value
/init-param



extract from tomcat/webapps/applicationname/WEB-INF/cocoon.xconf


  !-- Datasources: --
  datasources
jdbc name=coultard logger=core.datasources.coultard
  pool-controller max=10 min=5/
  auto-commitfalse/auto

AW: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Marco Rolappe
hi phil,

please try com.mysql.jdbc.Driver as the driver class. that should work. your
dburl seems to be correct.

otherwise have a look into your mysql-connector jar. there should be a
README inside.

HTH

 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Phil Coultard
 Gesendet: Freitag, 4. April 2003 19:53
 An: [EMAIL PROTECTED]
 Betreff: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 Geoff: Thanks for all your help, you are a star.

 Big apologies from a newbie struggling with the basics of Cocoon...

 I have run into yet another problem which I don't seem to be able to get
 over...

 This time I am trying to connect to a MySQL db but get the message:

 ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
 (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
 Could not
 get the datasource
 org.apache.avalon.excalibur.datasource.NoValidConnectionException:
  No valid
 JdbcConnection class available

 in the error log file
 (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my xsp
 (enclosed below)

 I am also new to MySQL but am familiar with MSSQL so...

 I have:
 -made the db (called coultard) and made sure MySQL is running (it
 works fine
 solo)
 -put the MySQL db jar file (mysql-connector-java-3.0.6-stable-bin.jar) in
 C:\tomcat\common\lib
 -put the init-param for preloading the driver in web.xml as below.
 -defined the connection pool as below
 -attempted to run the xsp below

 I just spits out the title of the page and the session user value (which I
 have set via a login script) which would be consistent with their being no
 results except the same sql statement returns results if run directly in
 MySQL and the error message suggests to me it's not even getting that far.

 I am using:
 Win 98
 JDK 1.3.1
 Tomcat 4.1.24
 Cocoon 2.0.4

 MySQL 4.0.12Win
 jar file from: mysql-connector-java-3.0.6-stable

 What confuses me is that my book (Cocoon developers handbook) assures me
 that any errors preloading the driver or defining the connection pool will
 be thrown up when they are attempted (when the application
 starts) and shown
 in access.log and core.log respectfully. My entries in these two logs look
 fine:

 --
 --
 
 DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
 Unknown-thread/CocoonServlet: Trying to load class:
 org.gjt.mm.mysql.Driver
 --
 --
 

 --
 --
 
 DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
 Unknown-thread/DefaultComponentFactory: logger attribute is
 core.datasources.coultard
 DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
 Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
 initialized for:
 org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
 DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
 Unknown-thread/ExcaliburComponentSelector: Adding
 org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource for
 hint [coultard]
 DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
 Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
 initialized for:
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector
 --
 --
 

 And yet the error thrown when I try to load the page rather suggests to me
 that it can't find, or hasn't 'installed' the jar file properly...

 On the assumption that the preload and connection pool substantiations are
 working I have two theories (which I'm sure are probably wrong!)
 1. That the param-valueorg.gjt.mm.mysql.Driver is incorrect. I got this
 value from my book  but it is sadly for an older MySQL driver. I
 notice the
 first line of the README which comes with the jar file reads MySQL
 Connector/J 3.0.6 Stable (formerly MM.MySQL) and was wondering if this
 change in naming convention is mirrored somehow in it. I have
 been unable to
 find a reference for the correct string for this value (MySQL referring to
 read your servlet engine or application server vendor's documentation;
 Cocoon seemingly not making a reference to what these strings should be
 except for the commented WebSphere, Oracle and IBMWebshpere). Further
 attempts to substantiate this theory and attempts at guessing its
 value have
 been unfruitful.

 2. That my reference to the dburl is incorrect. My db is
 physically located
 in C:\mysql\data\ and not under the tomcat/webapps dir so I was
 wondering if
 this had any influence on the matter.


 Thankfully

 Phil


 --
 --
 
 extract from tomcat/webapps/applicationname/WEB-INF/web.xml

RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Phil Coultard
Hi HTH,

Thanks for your suggestion but that didn't work - I'm still getting the same
message (even after re-starting the server and deleting the work directory).

I have read the readme enclosed with the jar but to my uneducated eye it
does not seem to enclose a ref to what I should call the class.

Kind Regards

Phil

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 19:20
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: AW: Newbie: yet ANOTHER problem: db access
(NoValidConnectionException)


hi phil,

please try com.mysql.jdbc.Driver as the driver class. that should work. your
dburl seems to be correct.

otherwise have a look into your mysql-connector jar. there should be a
README inside.

HTH

 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Phil Coultard
 Gesendet: Freitag, 4. April 2003 19:53
 An: [EMAIL PROTECTED]
 Betreff: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 Geoff: Thanks for all your help, you are a star.

 Big apologies from a newbie struggling with the basics of Cocoon...

 I have run into yet another problem which I don't seem to be able to get
 over...

 This time I am trying to connect to a MySQL db but get the message:

 ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
 (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
 Could not
 get the datasource
 org.apache.avalon.excalibur.datasource.NoValidConnectionException:
  No valid
 JdbcConnection class available

 in the error log file
 (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I run my xsp
 (enclosed below)

 I am also new to MySQL but am familiar with MSSQL so...

 I have:
 -made the db (called coultard) and made sure MySQL is running (it
 works fine
 solo)
 -put the MySQL db jar file (mysql-connector-java-3.0.6-stable-bin.jar) in
 C:\tomcat\common\lib
 -put the init-param for preloading the driver in web.xml as below.
 -defined the connection pool as below
 -attempted to run the xsp below

 I just spits out the title of the page and the session user value (which I
 have set via a login script) which would be consistent with their being no
 results except the same sql statement returns results if run directly in
 MySQL and the error message suggests to me it's not even getting that far.

 I am using:
 Win 98
 JDK 1.3.1
 Tomcat 4.1.24
 Cocoon 2.0.4

 MySQL 4.0.12Win
 jar file from: mysql-connector-java-3.0.6-stable

 What confuses me is that my book (Cocoon developers handbook) assures me
 that any errors preloading the driver or defining the connection pool will
 be thrown up when they are attempted (when the application
 starts) and shown
 in access.log and core.log respectfully. My entries in these two logs look
 fine:

 --
 --
 
 DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
 Unknown-thread/CocoonServlet: Trying to load class:
 org.gjt.mm.mysql.Driver
 --
 --
 

 --
 --
 
 DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
 Unknown-thread/DefaultComponentFactory: logger attribute is
 core.datasources.coultard
 DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
 Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
 initialized for:
 org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
 DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
 Unknown-thread/ExcaliburComponentSelector: Adding
 org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource for
 hint [coultard]
 DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
 Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
 initialized for:
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector
 --
 --
 

 And yet the error thrown when I try to load the page rather suggests to me
 that it can't find, or hasn't 'installed' the jar file properly...

 On the assumption that the preload and connection pool substantiations are
 working I have two theories (which I'm sure are probably wrong!)
 1. That the param-valueorg.gjt.mm.mysql.Driver is incorrect. I got this
 value from my book  but it is sadly for an older MySQL driver. I
 notice the
 first line of the README which comes with the jar file reads MySQL
 Connector/J 3.0.6 Stable (formerly MM.MySQL) and was wondering if this
 change in naming convention is mirrored somehow in it. I have
 been unable to
 find a reference for the correct string for this value (MySQL referring to
 read your servlet engine or application server vendor's documentation;
 Cocoon seemingly not making a reference to what these strings should be
 except for the commented

Re[2]: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Jens Maukisch
Hi,

maybe you should include the port in your dburl
dburljdbc:mysql://localhost:3306/coultard/dburl

-- 
* best regards
* Jens Maukisch 


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



AW: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Marco Rolappe
first, HTH = Hope That Helps ;-), my first name is marco,

my mysql driver jar's name is 'mysql-connector-java-2.0.14-bin.jar' (which
is in WEB-INF/lib).

within the jar I have a file README. a snip from the section 'USAGE AND
INSTALLATION':

...
If you are going to use the driver with the JDBC DriverManager, you would
use
com.mysql.jdbc.Driver as the class that implements java.sql.Driver.

You might use this name in a Class.forName() call to load the driver:

Class.forName(com.mysql.jdbc.Driver).newInstance();

To connect to the database, you need to use a JDBC url with the following
format ([xxx] denotes optional url components):


jdbc:mysql://[hostname][:port]/[dbname][?param1=value1][param2=value2].

URL Parameters (can be passed as properties in
DriverManager.getConnection() as well):
...

so the driver class to load at startup in my case is com.mysql.jdbc.Driver.

the README also lists URL parameters that can be supplied in the driver url.

 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Phil Coultard
 Gesendet: Freitag, 4. April 2003 22:40
 An: [EMAIL PROTECTED]
 Betreff: RE: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 Hi HTH,

 Thanks for your suggestion but that didn't work - I'm still
 getting the same
 message (even after re-starting the server and deleting the work
 directory).

 I have read the readme enclosed with the jar but to my uneducated eye it
 does not seem to enclose a ref to what I should call the class.

 Kind Regards

 Phil

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 04 April 2003 19:20
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: AW: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 hi phil,

 please try com.mysql.jdbc.Driver as the driver class. that should
 work. your
 dburl seems to be correct.

 otherwise have a look into your mysql-connector jar. there should be a
 README inside.

 HTH

  -Ursprngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Auftrag von Phil Coultard
  Gesendet: Freitag, 4. April 2003 19:53
  An: [EMAIL PROTECTED]
  Betreff: Newbie: yet ANOTHER problem: db access
  (NoValidConnectionException)
 
 
  Geoff: Thanks for all your help, you are a star.
 
  Big apologies from a newbie struggling with the basics of Cocoon...
 
  I have run into yet another problem which I don't seem to be able to get
  over...
 
  This time I am trying to connect to a MySQL db but get the message:
 
  ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
  (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
  Could not
  get the datasource
  org.apache.avalon.excalibur.datasource.NoValidConnectionException:
   No valid
  JdbcConnection class available
 
  in the error log file
  (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I
 run my xsp
  (enclosed below)
 
  I am also new to MySQL but am familiar with MSSQL so...
 
  I have:
  -made the db (called coultard) and made sure MySQL is running (it
  works fine
  solo)
  -put the MySQL db jar file
 (mysql-connector-java-3.0.6-stable-bin.jar) in
  C:\tomcat\common\lib
  -put the init-param for preloading the driver in web.xml as below.
  -defined the connection pool as below
  -attempted to run the xsp below
 
  I just spits out the title of the page and the session user
 value (which I
  have set via a login script) which would be consistent with
 their being no
  results except the same sql statement returns results if run directly in
  MySQL and the error message suggests to me it's not even
 getting that far.
 
  I am using:
  Win 98
  JDK 1.3.1
  Tomcat 4.1.24
  Cocoon 2.0.4
 
  MySQL 4.0.12Win
  jar file from: mysql-connector-java-3.0.6-stable
 
  What confuses me is that my book (Cocoon developers handbook) assures me
  that any errors preloading the driver or defining the
 connection pool will
  be thrown up when they are attempted (when the application
  starts) and shown
  in access.log and core.log respectfully. My entries in these
 two logs look
  fine:
 
  --
  --
  
  DEBUG   (2003-04-04) 16:14.22:850   [access] (Unknown-URI)
  Unknown-thread/CocoonServlet: Trying to load class:
  org.gjt.mm.mysql.Driver
  --
  --
  
 
  --
  --
  
  DEBUG   (2003-04-04) 16:14.24:010   [core.manager] (Unknown-URI)
  Unknown-thread/DefaultComponentFactory: logger attribute is
  core.datasources.coultard
  DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown-URI)
  Unknown-thread/ThreadSafeComponentHandler: ComponentHandler
  initialized for:
  org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
  DEBUG   (2003-04-04) 16:14.24:390   [core.manager] (Unknown

RE: Newbie: yet ANOTHER problem: db access (NoValidConnectionException)

2003-04-04 Thread Phil Coultard
Hi Marco,

Thanks for your help in pointing me to the right section of the README

I have replaced the driver ref with the right string but I'm still getting
the same error message when I try to run the xsp.

Jens,

Thanks for your suggestion too of including the port number in the .xconf
dburl in the form dburljdbc:mysql://localhost:8080/dbname but that just
makes the server startup procedure hang half way through. I don't really
understand why this is.

Frustrated and feeling rather thick,

Phil

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 23:01
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: AW: Newbie: yet ANOTHER problem: db access
(NoValidConnectionException)


first, HTH = Hope That Helps ;-), my first name is marco,

my mysql driver jar's name is 'mysql-connector-java-2.0.14-bin.jar' (which
is in WEB-INF/lib).

within the jar I have a file README. a snip from the section 'USAGE AND
INSTALLATION':

...
If you are going to use the driver with the JDBC DriverManager, you would
use
com.mysql.jdbc.Driver as the class that implements java.sql.Driver.

You might use this name in a Class.forName() call to load the driver:

Class.forName(com.mysql.jdbc.Driver).newInstance();

To connect to the database, you need to use a JDBC url with the following
format ([xxx] denotes optional url components):


jdbc:mysql://[hostname][:port]/[dbname][?param1=value1][param2=value2].

URL Parameters (can be passed as properties in
DriverManager.getConnection() as well):
...

so the driver class to load at startup in my case is com.mysql.jdbc.Driver.

the README also lists URL parameters that can be supplied in the driver url.

 -Ursprngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Phil Coultard
 Gesendet: Freitag, 4. April 2003 22:40
 An: [EMAIL PROTECTED]
 Betreff: RE: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 Hi HTH,

 Thanks for your suggestion but that didn't work - I'm still
 getting the same
 message (even after re-starting the server and deleting the work
 directory).

 I have read the readme enclosed with the jar but to my uneducated eye it
 does not seem to enclose a ref to what I should call the class.

 Kind Regards

 Phil

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 04 April 2003 19:20
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: AW: Newbie: yet ANOTHER problem: db access
 (NoValidConnectionException)


 hi phil,

 please try com.mysql.jdbc.Driver as the driver class. that should
 work. your
 dburl seems to be correct.

 otherwise have a look into your mysql-connector jar. there should be a
 README inside.

 HTH

  -Ursprngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Auftrag von Phil Coultard
  Gesendet: Freitag, 4. April 2003 19:53
  An: [EMAIL PROTECTED]
  Betreff: Newbie: yet ANOTHER problem: db access
  (NoValidConnectionException)
 
 
  Geoff: Thanks for all your help, you are a star.
 
  Big apologies from a newbie struggling with the basics of Cocoon...
 
  I have run into yet another problem which I don't seem to be able to get
  over...
 
  This time I am trying to connect to a MySQL db but get the message:
 
  ERROR   (2003-04-04) 16:18.09:150   [sitemap.generator.serverpages]
  (/ltd_coultard/mount/com_coultard/tickets) Thread-10/tickets_xsp:
  Could not
  get the datasource
  org.apache.avalon.excalibur.datasource.NoValidConnectionException:
   No valid
  JdbcConnection class available
 
  in the error log file
  (tomcat/webapps/applicationname/WEB-INF/logs/error.log) when I
 run my xsp
  (enclosed below)
 
  I am also new to MySQL but am familiar with MSSQL so...
 
  I have:
  -made the db (called coultard) and made sure MySQL is running (it
  works fine
  solo)
  -put the MySQL db jar file
 (mysql-connector-java-3.0.6-stable-bin.jar) in
  C:\tomcat\common\lib
  -put the init-param for preloading the driver in web.xml as below.
  -defined the connection pool as below
  -attempted to run the xsp below
 
  I just spits out the title of the page and the session user
 value (which I
  have set via a login script) which would be consistent with
 their being no
  results except the same sql statement returns results if run directly in
  MySQL and the error message suggests to me it's not even
 getting that far.
 
  I am using:
  Win 98
  JDK 1.3.1
  Tomcat 4.1.24
  Cocoon 2.0.4
 
  MySQL 4.0.12Win
  jar file from: mysql-connector-java-3.0.6-stable
 
  What confuses me is that my book (Cocoon developers handbook) assures me
  that any errors preloading the driver or defining the
 connection pool will
  be thrown up when they are attempted (when the application
  starts) and shown
  in access.log and core.log respectfully. My entries in these
 two logs look
  fine:
 
  --
  --
  
  DEBUG   (2003-04-04) 16:14.22

Question from a newbie

2003-04-01 Thread Sean McCormick
Hi folks,

I apologize in advance if this mailing list is not the appropriate
place for this question, but I think I've nearly worn out Google
trying to find the solution to my problem. I have been asked to locate
software that can dynamically create a newsletter from numerous RSS
feeds according to individual user preferences and then pass it along
to a message transfer agent.  Here is the process my boss envisions:

  1.. Readers subscribe to a newsletter, and specify the content areas
and sub-domains they would like to receive information on.

  2.. Each newsletter is dynamically generated with the content
specified by the individual subscriber.

  3.. The newsletter is emailed to the subscriber.

All of my research indicates that Apache Cocoon is practically manna
from heaven in this area, except that I can't find any examples of it
being used for e-mail applications - just Web applications. Is anyone
here aware of whether or not Cocoon can be put to work with dynamic
e-mail applications? If so, are there any examples I can show my boss?

Any information/advice is appreciated.

Regards,

Sean McCormick
---
Digiteyesed Photography
http://www.digiteyesed.com/
Free desktop wallpaper for download.


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



RE: Question from a newbie

2003-04-01 Thread Jeff Sallade
Sean,

This is exaclty the type of application that is demonstrated in
the book, Cocoon:  Building XML Applications by Matthew Langham
and Carsten Ziegeler, published by New Riders.  There are 3 versions
of a news portal that increase in complexity.  I have found the
book to be a great resource for Cocoon in general and it should
have exactly what you need.  I'm sure the book is widely available.

Jeff Sallade

-Original Message-
From: Sean McCormick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: Question from a newbie


Hi folks,

I apologize in advance if this mailing list is not the appropriate
place for this question, but I think I've nearly worn out Google
trying to find the solution to my problem. I have been asked to locate
software that can dynamically create a newsletter from numerous RSS
feeds according to individual user preferences and then pass it along
to a message transfer agent.  Here is the process my boss envisions:

  1.. Readers subscribe to a newsletter, and specify the content areas
and sub-domains they would like to receive information on.

  2.. Each newsletter is dynamically generated with the content
specified by the individual subscriber.

  3.. The newsletter is emailed to the subscriber.

All of my research indicates that Apache Cocoon is practically manna
from heaven in this area, except that I can't find any examples of it
being used for e-mail applications - just Web applications. Is anyone
here aware of whether or not Cocoon can be put to work with dynamic
e-mail applications? If so, are there any examples I can show my boss?

Any information/advice is appreciated.

Regards,

Sean McCormick
---
Digiteyesed Photography
http://www.digiteyesed.com/
Free desktop wallpaper for download.


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

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



Re: Question from a newbie

2003-04-01 Thread Sean McCormick
Jeff,

You've made my day - thank you so much! I've just ordered both Cocoon
books that are available from New Riders.

Sean
---
Digiteyesed Photography
http://www.digiteyesed.com/
Free desktop wallpaper for download.

- Original Message -
From: Jeff Sallade [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:45 PM
Subject: RE: Question from a newbie


: Sean,
:
: This is exaclty the type of application that is demonstrated in
: the book, Cocoon:  Building XML Applications by Matthew Langham
: and Carsten Ziegeler, published by New Riders.  There are 3 versions
: of a news portal that increase in complexity.  I have found the
: book to be a great resource for Cocoon in general and it should
: have exactly what you need.  I'm sure the book is widely available.
:
: Jeff Sallade


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



Tomcat problem (newbie)

2003-03-31 Thread Joe Williams
After changing a parameter in my main sitemap, and then restoring the
original config, my Tomcat will not start.

Looking at the catalina.out log, I find the error pasted below. Clues,
please?

java.lang.NoClassDefFoundError
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:115)
 at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
 at org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
 at org.apache.jk.server.JkMain.start(JkMain.java:346)
 at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
 at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1056)
 at org.apache.catalina.core.StandardService.start(StandardService.java:506)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] JkMain - -Can't create channelSocket
java.lang.NoClassDefFoundError


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



Re: Tomcat problem (newbie)

2003-03-31 Thread Joe Williams
Sorry for the waste of bandwidth, but you can disregard the previous
message.

Joe


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



Newbie: Ok I've got it installed but can't get a new stand alone application to run

2003-03-30 Thread Phil Coultard
Hi All,

Big thanks to Geoff Howard for his swift and fruitful reply to my last post.

I am just starting with Cocoon and I'm sorry to ask yet more what I'm sure
are stupid questions but...

Following Geoff's advice I have read the enclosed documentation and looked
on http://wiki.cocoondev.org. However both sources seem to concentrate on
the concepts and skip the more basic set-up procedures... Using these two
sources I have set up work as a sub-dir of mount and put in it two files:
sitemap.xmap and home.html, the source for which is shown below. When I
browse to http://localhost:8080/cocoon/mount/work/ I receive the following
message:

Cocoon 2 - Resource not found


type resource-not-found
message Resource not found
description The requested URI /cocoon/mount/work/home.html was not found.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/mount/work/home.html
path-info
mount/work/home.html

I can see that it clearly is getting as far as looking for the file
home.html in the root folder of the app but I don't understand why it
doesn't find it: it is there! Clearly I'm missing a point somewhere...

I am running:
Win 98
JDK 1.3.1
Tomcat 4.1.24
Cocoon 2.0.4

Cocoon runs ok: the examples work just fine.

Thanks in advance,

Kind Regards,

Phil Coultard





sitemap.xmap


?xml version=1.0?
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

  map:components
map:generators   default=file/
map:transformers default=xslt/
map:readers  default=resource/
map:serializers  default=html/
map:matchers default=wildcard/
  /map:components

  map:pipelines
  map:pipeline
   map:match pattern=
 map:redirect-to uri=home.html/
   /map:match

/map:pipeline

  /map:pipelines
/map:sitemap



home.html


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titleUntitled/title
/head

body
Hi There!


/body
/html
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/03


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



RE: Newbie: Ok I've got it installed but can't get a new stand alone application to run

2003-03-30 Thread Geoff Howard
 -Original Message-
 From: Phil Coultard [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 7:04 AM
 To: [EMAIL PROTECTED]
 Subject: Newbie: Ok I've got it installed but can't get a new stand
 alone application to run


snip/

 Following Geoff's advice I have read the enclosed documentation and looked
 on http://wiki.cocoondev.org. However both sources seem to concentrate on
 the concepts and skip the more basic set-up procedures... Using these two
 sources I have set up work as a sub-dir of mount and put in it
 two files:
 sitemap.xmap and home.html, the source for which is shown below. When I
 browse to http://localhost:8080/cocoon/mount/work/ I receive the following
 message:

Ok, good way to get started playing around.


 Cocoon 2 - Resource not found
 --
 type resource-not-found
 message Resource not found
 description The requested URI /cocoon/mount/work/home.html was
 not found.
 sender org.apache.cocoon.servlet.CocoonServlet
 source Cocoon servlet
 request-uri
 /cocoon/mount/work/home.html
 path-info
 mount/work/home.html

 I can see that it clearly is getting as far as looking for the file
 home.html in the root folder of the app but I don't understand why it
 doesn't find it: it is there! Clearly I'm missing a point somewhere...

Yes, see below.

 --
 sitemap.xmap
 --
 ?xml version=1.0?
 map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

   map:components
 map:generators   default=file/
 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components

   map:pipelines
   map:pipeline
map:match pattern=
  map:redirect-to uri=home.html/
/map:match

!-- You need a match for pattern=home.html.  Cocoon never automatically
maps uris to actual resources on disk without an appropriate matcher. --

 !-- read html and stream it directly, bypassing cocoon's sax
pipeline --
 map:match pattern=home.html
map:read mime-type=text/html src=home.html
 /map:match

!-- OR --

!-- parse html as xml using the file generator.  you can add
transformer(s) and
serializer as you like here, but if your html is not well-formed xml,
the processing will fail --
 map:match pattern=home.html
  map:generate src=home.html/
  !--map:transform src=your_transform.xsl/--
map:serialize/
 /map:match

!-- OR --
!-- use Tidy to parse html and make it well-formed xml --
 map:match pattern=home.html
  map:generate type=html src=home.html/
  !--map:transform src=your_transform.xsl/--
map:serialize/
 /map:match

!-- Note: to use pattern matching to serve all html in that dir in the same
way,
change the match to pattern=*.html and use src={1}.html in your
generator/reader. --

 /map:pipeline

   /map:pipelines
 /map:sitemap

Hope that helps,

Geoff


 --
 home.html
 --
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

 html
 head
   titleUntitled/title
 /head

 body
 Hi There!


 /body
 /html
 ---


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



Cocoon installation error: Wrapper cannot find servlet class org.apache.cocoon.Cocoon from an ignorant newbie convert from Microsoft:-)

2003-03-29 Thread Phil Coultard
Hi,

I am a recent convert (only two weeks old) to Java, Tomcat et al from the
world of Microsoft ASP and .Net. As such please forgive me for asking what
I'm sure is a very basic question. However, I have checked the Cocoon FAQ's,
read my books (Java, JavaServer Pages, Java and XML, O'Reilly) and searched
the mail archive still drawing a blank.

Basically I have installed Cocoon according to the instructions on the site
(http://xml.apache.org/cocoon1/install.html) and also those in 'Java and XML
Ch10 P.248 and I get the message:
Wrapper cannot find servlet class org.apache.cocoon.Cocoon or a class it
depends on
(I include the complete error message below for your reference)

I am Using:
Win98 (boo hoo)
Java 1.3.1
Tomcat 4.1.24
Cocoon 1.8.2
I also have Personal Web Server installed but I have made no attempt to
connect the two.

Tomcat works fine: I have run several example scripts without fail.

I have checked over my Cocoon installation several times and over several
days (to allow for the I DID do it right I'm SURE factor).
I have noticed that I need to set up the files [TOMCAT HOME]/conf/server.xml
slightly differently from the instructions which tell me to use the value:
Context path=/cocoon docbase=webapps/cocoon...
I find this returns a 404 and only if I set it to
Context path=/cocoon docbase=cocoon...
or remove it completely does it work. I assume this is down to my Tomcat
being 4.1.24 rather than Brett McLaughlin's (Java and XML, O'Reilly) Tomcat
3.2.1 the comments preceding the section in the document supporting this:
 Define properties for each web application.  This is only
needed
 if you want to set non-default properties, or have web
application
 document roots in places other than the virtual host's appBase
 directory

I have concluded (rightly or wrongly) the problem is that it can't find the
cocoon.properties file which is referenced by the [TOMCAT
HOME]/webapps/cocoon/WEB-INF/web.xml. The instructions tell me to set this
to WEB-INF/cocoon.properties which I have tried but I have also played
around with this value as cocoon/WEB-INF/cocoon.properties and
cocoon.properties without success. I know it's a relative path so I haven't
tried any absolute paths.

It currently looks like this:
 servlet
  servlet-nameorg.apache.cocoon.Cocoon/servlet-name
  servlet-classorg.apache.cocoon.Cocoon/servlet-class
  init-param
   param-nameproperties/param-name
   param-valueWEB-INF/cocoon.properties/param-value
  /init-param
 /servlet

Any help would be gratefully appreciated: I don't have much hair left to
pull out!!

Thanks in advance

Kind Regards,

Phil Coultard
[EMAIL PROTECTED]
www.coultard.com



Complete Error returned:


HTTP Status 503 - Servlet org.apache.cocoon.Cocoon is currently unavailable

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.cocoon.Cocoon or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
1)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 

RE: Cocoon installation error: Wrapper cannot find servlet class org.apache.cocoon.Cocoon from an ignorant newbie convert from Microsoft:-)

2003-03-29 Thread Geoff Howard
You may find some people still able to help you with cocoon 1.x, but I would
_highly_ suggest ignoring that now outdated chapter, and using the current
release version 2.0.4 which is significantly changed and improved from
the 1.8.x version.  You'll find good up to date installation instructions,
and
a lot more people here that will be able to help you if something goes
wrong.

There are several good books now available for Cocoon 2 if you want to go
that route, but you should also be able to make good headway using the
provided
documentation and samples, as well as the breeding ground for new
documentation,
http://wiki.cocoondev.org.

Hope that helps,
Geoff

 -Original Message-
 From: Phil Coultard [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 4:51 AM
 To: [EMAIL PROTECTED]
 Subject: Cocoon installation error: Wrapper cannot find servlet class
 org.apache.cocoon.Cocoon from an ignorant newbie convert from
 Microsoft:-)


 Hi,

 I am a recent convert (only two weeks old) to Java, Tomcat et al from the
 world of Microsoft ASP and .Net. As such please forgive me for asking what
 I'm sure is a very basic question. However, I have checked the
 Cocoon FAQ's,
 read my books (Java, JavaServer Pages, Java and XML, O'Reilly)
 and searched
 the mail archive still drawing a blank.

 Basically I have installed Cocoon according to the instructions
 on the site
 (http://xml.apache.org/cocoon1/install.html) and also those in
 'Java and XML
 Ch10 P.248 and I get the message:
 Wrapper cannot find servlet class org.apache.cocoon.Cocoon or a class it
 depends on
 (I include the complete error message below for your reference)

 I am Using:
 Win98 (boo hoo)
 Java 1.3.1
 Tomcat 4.1.24
 Cocoon 1.8.2
 I also have Personal Web Server installed but I have made no attempt to
 connect the two.

 Tomcat works fine: I have run several example scripts without fail.

 I have checked over my Cocoon installation several times and over several
 days (to allow for the I DID do it right I'm SURE factor).
 I have noticed that I need to set up the files [TOMCAT
 HOME]/conf/server.xml
 slightly differently from the instructions which tell me to use the value:
 Context path=/cocoon docbase=webapps/cocoon...
 I find this returns a 404 and only if I set it to
 Context path=/cocoon docbase=cocoon...
 or remove it completely does it work. I assume this is down to my Tomcat
 being 4.1.24 rather than Brett McLaughlin's (Java and XML,
 O'Reilly) Tomcat
 3.2.1 the comments preceding the section in the document supporting this:
  Define properties for each web application.  This is only
 needed
  if you want to set non-default properties, or have web
 application
  document roots in places other than the virtual
 host's appBase
  directory

 I have concluded (rightly or wrongly) the problem is that it
 can't find the
 cocoon.properties file which is referenced by the [TOMCAT
 HOME]/webapps/cocoon/WEB-INF/web.xml. The instructions tell me to set this
 to WEB-INF/cocoon.properties which I have tried but I have also played
 around with this value as cocoon/WEB-INF/cocoon.properties and
 cocoon.properties without success. I know it's a relative path so
 I haven't
 tried any absolute paths.

 It currently looks like this:
  servlet
   servlet-nameorg.apache.cocoon.Cocoon/servlet-name
   servlet-classorg.apache.cocoon.Cocoon/servlet-class
   init-param
param-nameproperties/param-name
param-valueWEB-INF/cocoon.properties/param-value
   /init-param
  /servlet

 Any help would be gratefully appreciated: I don't have much hair left to
 pull out!!

 Thanks in advance

 Kind Regards,

 Phil Coultard
 [EMAIL PROTECTED]
 www.coultard.com

 --
 --
 
 Complete Error returned:
 --
 --
 
 HTTP Status 503 - Servlet org.apache.cocoon.Cocoon is currently
 unavailable

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 javax.servlet.ServletException: Wrapper cannot find servlet class
 org.apache.cocoon.Cocoon or a class it depends on
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapp
 er.java:89
 1)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.
 java:668)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.ja
 va:210)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardConte
 xtValve.ja
 va:191)
   at
 org.apache.catalina.core.StandardPipeline

Newbie question about CSS display

2003-03-28 Thread Joe Williams
Forgive the elementary nature of this question, but I am new to Cocoon, my
background is documentation and not development, and I have read and
searched for an explanation for this weirdness without success.

Using DocBook XML and the DocBook XSL with a customization layer, I want to
change the styles using a CSS.

My formatting changes are displayed when I run the transformation from the
command line, but not when I use Cocoon.

Is this to be expected, or what? Does the transformation occur differently
when using Cocoon than when using Xalan alone?

A helpful link or answer would be appreciated.


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



Re: Newbie question about CSS display

2003-03-28 Thread Yves Vindevogel
Check your sitemap ... You probably don't have the correct pipeline/match for 
it.

 Forgive the elementary nature of this question, but I am new to Cocoon, my
 background is documentation and not development, and I have read and
 searched for an explanation for this weirdness without success.

 Using DocBook XML and the DocBook XSL with a customization layer, I want to
 change the styles using a CSS.

 My formatting changes are displayed when I run the transformation from the
 command line, but not when I use Cocoon.

 Is this to be expected, or what? Does the transformation occur differently
 when using Cocoon than when using Xalan alone?

 A helpful link or answer would be appreciated.


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

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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



Re: Newbie question about CSS display

2003-03-28 Thread Lionel Crine
Joe,

you're question is so wide.

Here is how I use a CSS in an XSL file.

load the CSS.

map:pipeline
  map:match pattern=style/*.css
map:read mime-type=text/css src=demo/{1}.css/
  /map:match
/map:pipeline
load the file :

map:match pattern=welcome
  map:generate type=file src=proto/xml/welcome.xml/
  map:transform type=xslt src=proto/xsl/welcome.xsl/
  map:serialize type=html/
/map:match
In the XSL file :

xsl:template match=/
  html
   head
  link rel=stylesheet type=text/css href=style.css/ -- link 
to the style.
   /head
   body
xsl:apply-templates/
   /body
  /html
/xsl:template



hope this help.
At 17:19 28/03/2003 +0100, you wrote:
Hello Joe,

you don't give very exact error description, only it does not work. So 
it's only possible to guess. Or you give us more information.

I guess the error is a missing or a wrong match for the CSS.

The information you can provide:

1. Which URL do you type in the browser for the Cocoon delivered HTML.

2. How does the according match pattern in the sitemap for the docbook 
transformation look like.

3. How does the link/ tag for the CSS in the generated HTML look like?

4. How does the according match pattern in the sitemap for the CSS look like?

The transformation offline or in Cocoon may be different (but I don't 
really think so), but has nothing to do with the loading of the CSS.

Regards,

Joerg

Joe Williams wrote:
Forgive the elementary nature of this question, but I am new to Cocoon, my
background is documentation and not development, and I have read and
searched for an explanation for this weirdness without success.
Using DocBook XML and the DocBook XSL with a customization layer, I want to
change the styles using a CSS.
My formatting changes are displayed when I run the transformation from the
command line, but not when I use Cocoon.
Is this to be expected, or what? Does the transformation occur differently
when using Cocoon than when using Xalan alone?
A helpful link or answer would be appreciated.
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Newbie question about CSS display

2003-03-28 Thread Joe Williams
The link to the stylesheet appears in the HTML output.

I am using a sub-sitemap with the pipeline:

map:pipeline
map:match pattern=book
map:generate src=book.xml/
map:transform src=book.xsl
map:parameter name=css-stylesheet value=book.css/
/map:transform
map:serialize/
/map:match
map:match pattern=*.css
map:read src={1}.css mime-type=text/css/
/map:match
/map:pipeline

And I am adding the parameters to my DocBook customization layer, per Norm
and Bob's documentation:

xsl:param name=html.stylesheet select='book.css'/
xsl:param name=html.stylesheet.typetext/css/xsl:param

- Original Message -
From: Yves Vindevogel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 9:27 AM
Subject: Re: Newbie question about CSS display


Check your sitemap ... You probably don't have the correct pipeline/match
for
it.

 Forgive the elementary nature of this question, but I am new to Cocoon, my
 background is documentation and not development, and I have read and
 searched for an explanation for this weirdness without success.

 Using DocBook XML and the DocBook XSL with a customization layer, I want
to
 change the styles using a CSS.

 My formatting changes are displayed when I run the transformation from the
 command line, but not when I use Cocoon.

 Is this to be expected, or what? Does the transformation occur differently
 when using Cocoon than when using Xalan alone?

 A helpful link or answer would be appreciated.


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

--
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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



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



Re: Newbie question about CSS display

2003-03-28 Thread Lionel Crine
It's a little bit confused but if you want to do it.

You should declare do :
map:pipeline
map:match pattern=*.css
map:read src={1}.css mime-type=text/css/
/map:match
/map:pipeline
then :

map:pipeline
map:match pattern=book
map:generate src=book.xml/
map:transform src=book.xsl
map:parameter name=css-stylesheet value=cocoon:/book.css/  -- I'm 
not really sure value attribute can get a cocoon protocol, but why not.
/map:transform
map:serialize/
/map:match
/map:pipeline

In the xsl document :

xsl:param name=css-stylesheet select=book.css/ -- I'm not sure this 
is working because if you want to call an URL, you  should use the 
document() fonction like this.  document('host:8080/book.css).
xsl:param name=html.stylesheet.typetext/css/xsl:param



Lionel

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


Re: Newbie question about CSS display

2003-03-28 Thread Joerg Heinicke
Hello Joe,

Joe Williams wrote:
Thanks for the response, let me see if this makes things clearer.

I'm not getting an error message, but the formatting changes to the DocBook
XSL (by means of my CSS) do not appear in the browser.
The URL:

http://myserver:8080/cocoon/book/book

This succeeds in calling the document. When I view the source of the
displayed HTML, the link to the CSS stylesheet appears:
link href=book.css rel=stylesheet type=text/css
so far everything seems to be clear and ok. Try to access

http://myserver:8080/cocoon/book/book.css

in your browser to see if you get the CSS.

Therefore, I expect the changes to appear, but they do not. The CSS is in
the same directory (book) as the XML source (book.xml) the XSL
stylesheet (book.xsl) and the CSS (book.css)
This is more or less not interesting for the browser. Important is only the 
mapping in the sitemap. You wrote already you have the following two pipelines:

map:pipeline
  map:match pattern=book
map:generate src=book.xml/
map:transform src=book.xsl
  map:parameter name=css-stylesheet value=book.css/
/map:transform
map:serialize/
  /map:match
  map:match pattern=*.css
map:read src={1}.css mime-type=text/css/
  /map:match
/map:pipeline
Only here (= for the sitemap) the directories are interesting. As you wrote 
the pipeline it's correct to have both files in the same directory.

What do you want to reach with

map:parameter name=css-stylesheet value=book.css/

?? Do you have a global xsl:param name=css-stylesheet/ in your book.xsl? 
Otherwise the map:parameter/ is useless. You already configured your 
DocBook with

xsl:param name=html.stylesheet select='book.css'/

and that's correct.

This only for clarification. Test the stylesheet independent of the DocBook 
HTML with http://myserver:8080/cocoon/book/book.css;. If you get it, hmm, I 
don't know. If not, what do you get?

I have not tried Lionel's suggestions yet, but will do so.
Sorry, but this won't help you much. You don't want to include the CSS in 
the DocBook HTML, but a link element refering to the CSS. So you only must 
pass the CSS's name and not the CSS itself to the XSLT stylesheet.

Using document('host:8080/book.css') won't work either, because you can't 
read text with it, only XML.

And the third suggestion using a xsl:template match=// can break the 
DocBook transformation completely. Use the parameterization as suggested by 
Norman Walsh and as you already did it.

Regards,

Joerg

- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]

Hello Joe,

you don't give very exact error description, only it does not work. So
it's only possible to guess. Or you give us more information.
I guess the error is a missing or a wrong match for the CSS.

The information you can provide:

1. Which URL do you type in the browser for the Cocoon delivered HTML.

2. How does the according match pattern in the sitemap for the docbook
transformation look like.
3. How does the link/ tag for the CSS in the generated HTML look like?

4. How does the according match pattern in the sitemap for the CSS look
like?

The transformation offline or in Cocoon may be different (but I don't
really

think so), but has nothing to do with the loading of the CSS.

Regards,

Joerg
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie question about CSS display

2003-03-28 Thread Joe Williams
When I try to reach the CSS directly, I get a Cocoon error (see below).

 What do you want to reach with

 map:parameter name=css-stylesheet value=book.css/

 ?? Do you have a global xsl:param name=css-stylesheet/ in your
book.xsl?

No, I do not. I commented that line out, and the link to the CSS still
appears in the HTML result, so it obviously doesn't do anything useful here.
Not sure why I put that in there, except for my newbieness...just hacking
around to see if I could get it to work.

 This only for clarification. Test the stylesheet independent of the
DocBook
 HTML with http://myserver:8080/cocoon/book/book.css;. If you get it, hmm,
I
 don't know. If not, what do you get?

When I follow the suggestion to access the CSS alone, I get this error:

type resource-not-found

message Resource not found

description The requested URI /cocoon/book/book.css was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/book/book.css

path-info

book/book.css



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



Re: Newbie question about CSS display

2003-03-28 Thread Jörg Heinicke
  This only for clarification. Test the stylesheet independent of the
 DocBook
  HTML with http://myserver:8080/cocoon/book/book.css;. If you get it,
 hmm,
 I
  don't know. If not, what do you get?
 
 When I follow the suggestion to access the CSS alone, I get this error:
 
 type resource-not-found
 
 message Resource not found
 
 description The requested URI /cocoon/book/book.css was not found.
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 request-uri
 
 /cocoon/book/book.css
 
 path-info
 
 book/book.css

Stupid mail client, simply ignores the reply-to header ...

I wrote, that the above error message is probably caused by the not found
CSS file on a place, where it should be to found, because it's specified in the
sitemap. There can not be many reasons:
1. the file is not in the same directory as the xml (according to the
earlier sent match patterns and pipelines),
2. the pipeline for the CSS does not look like the sent one
3. or there is another pipeline matching on *.css before the sent one. And
this one searches for the CSS file on another place on the disk.

A look into the log file, especially for stacktraces, will help I think.
Maybe one can see a FileNotFoundException (or Resource...) with the specified
path, where the file was searched for.

Regards,

Joerg

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



Re: Newbie question about CSS display

2003-03-28 Thread Joe Williams
 1. the file is not in the same directory as the xml (according to the
 earlier sent match patterns and pipelines),
 2. the pipeline for the CSS does not look like the sent one
 3. or there is another pipeline matching on *.css before the sent one. And
 this one searches for the CSS file on another place on the disk.

 A look into the log file, especially for stacktraces, will help I think.
 Maybe one can see a FileNotFoundException (or Resource...) with the
specified
 path, where the file was searched for.

In access.log:

WARN (2003--3-28) 16:41.55.945 [access] (/cocoon/book/book.css)
Thread-7/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
book/book.css

In sitemap.log:

DEBUG (2003-03-28) 16:41:55.909 [sitemap] (/cocoon/book/book.css)
Thread-7/sitemap_xmap: Matched wildcard pattern book/*
DEBUG (2003-03-28) 16:41:55.909 [sitemap] (/cocoon/book/book.css)
Thread-7/AbstractSitemap:
Current Sitemap Parameters:
PARAM: VALUE: 'book.css'
PARAM: '0' VALUE: 'book'/book.css'


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



Re: Newbie question about CSS display

2003-03-28 Thread Joe Williams
 Ah, interesting ;-) As I expected it ...

 Please have a look into the log files. You should get more information
 there, e.g. something like a stacktrace. It seems, that the book.css can't
be
 found on the disk, where it should be to found (as you specified it in the
 sitemap). But the pipeline matching on *.css you sent already in this
thread looked
 ok. Maybe another pipeline matches already earlier on *.css in the
sitemap?

There is a *.css in the main sitemap. Would that conflict with this one in
this sub-sitemap (cocoon/book/sitemap.xmap)?


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



Re: Newbie question about CSS display--CORRECTION

2003-03-28 Thread Joe Williams
There is no *.css in main sitemap, but I have not looked through all the
files.
- Original Message -
From: Joe Williams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 4:52 PM
Subject: Re: Newbie question about CSS display


  Ah, interesting ;-) As I expected it ...
 
  Please have a look into the log files. You should get more information
  there, e.g. something like a stacktrace. It seems, that the book.css
can't
 be
  found on the disk, where it should be to found (as you specified it in
the
  sitemap). But the pipeline matching on *.css you sent already in this
 thread looked
  ok. Maybe another pipeline matches already earlier on *.css in the
 sitemap?
 
 There is a *.css in the main sitemap. Would that conflict with this one in
 this sub-sitemap (cocoon/book/sitemap.xmap)?


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



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



Re: Newbie question about CSS display

2003-03-28 Thread Joerg Heinicke
Hello Joe,

you don't give very exact error description, only it does not work. So 
it's only possible to guess. Or you give us more information.

I guess the error is a missing or a wrong match for the CSS.

The information you can provide:

1. Which URL do you type in the browser for the Cocoon delivered HTML.

2. How does the according match pattern in the sitemap for the docbook 
transformation look like.

3. How does the link/ tag for the CSS in the generated HTML look like?

4. How does the according match pattern in the sitemap for the CSS look like?

The transformation offline or in Cocoon may be different (but I don't really 
think so), but has nothing to do with the loading of the CSS.

Regards,

Joerg

Joe Williams wrote:
Forgive the elementary nature of this question, but I am new to Cocoon, my
background is documentation and not development, and I have read and
searched for an explanation for this weirdness without success.
Using DocBook XML and the DocBook XSL with a customization layer, I want to
change the styles using a CSS.
My formatting changes are displayed when I run the transformation from the
command line, but not when I use Cocoon.
Is this to be expected, or what? Does the transformation occur differently
when using Cocoon than when using Xalan alone?
A helpful link or answer would be appreciated.
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie question about CSS display

2003-03-28 Thread Joe Williams
Thanks for the response, let me see if this makes things clearer.

I'm not getting an error message, but the formatting changes to the DocBook
XSL (by means of my CSS) do not appear in the browser.

The URL:

http://myserver:8080/cocoon/book/book

This succeeds in calling the document. When I view the source of the
displayed HTML, the link to the CSS stylesheet appears:

link href=book.css rel=stylesheet type=text/css

Therefore, I expect the changes to appear, but they do not. The CSS is in
the same directory (book) as the XML source (book.xml) the XSL
stylesheet (book.xsl) and the CSS (book.css)

I have not tried Lionel's suggestions yet, but will do so.


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 10:19 AM
Subject: Re: Newbie question about CSS display


 Hello Joe,

 you don't give very exact error description, only it does not work. So
 it's only possible to guess. Or you give us more information.

 I guess the error is a missing or a wrong match for the CSS.

 The information you can provide:

 1. Which URL do you type in the browser for the Cocoon delivered HTML.

 2. How does the according match pattern in the sitemap for the docbook
 transformation look like.

 3. How does the link/ tag for the CSS in the generated HTML look like?

 4. How does the according match pattern in the sitemap for the CSS look
like?

 The transformation offline or in Cocoon may be different (but I don't
really
 think so), but has nothing to do with the loading of the CSS.

 Regards,

 Joerg

 Joe Williams wrote:
  Forgive the elementary nature of this question, but I am new to Cocoon,
my
  background is documentation and not development, and I have read and
  searched for an explanation for this weirdness without success.
 
  Using DocBook XML and the DocBook XSL with a customization layer, I want
to
  change the styles using a CSS.
 
  My formatting changes are displayed when I run the transformation from
the
  command line, but not when I use Cocoon.
 
  Is this to be expected, or what? Does the transformation occur
differently
  when using Cocoon than when using Xalan alone?
 
  A helpful link or answer would be appreciated.

 --

 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de


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



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



RE: Newbie: DocBook XSL success

2003-03-27 Thread Joe Williams
Thanks, Joerg.

I replaced the old xalan with Xalan-J 2.4.1 and the transformation works,
except for a problem with CSS.

For subsequent newbies looking for a setup that works, here's what I am
using.

Cocoon 2.0.3 with jre 1.3.1_06
DocBook XML DTD 4.2
DocBook XSL 1.5

The following .jar files are in the cocoon/WEB-INF/lib
xalan-2.4.1.jar

xalan2.jar (docbook extensions from Norm)

xercesImpl-2.0.0.jar

xml-apis.jar


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



Newbie: Best practices for DocBook XSL on Cocoon

2003-03-26 Thread Joe Williams



I have a question about using DocBook XSL with 
Cocoon, for anyone who has been successful in doing so. In hopes of getting some 
help and maybe helping others, I offer the following background.

After reading numerous posts to the archives for 
this list, and other resources, I am aware that not everyone is in favor of 
using the DocBook XSL stylesheets with Cocoon. However, I have also found that 
some people have done so successfully, and would like to do so 
myself.

I have been successful in serving DocBook XML 
content with a homegrown XSL stylesheet and CSS, but when I attempted to use the 
DocBook XSL to produce html, I get a blank page. (The transform runs fine from 
the command line.)

Looking at cocoon/WEB-INF/logs/error.log I see a 
fatal exception in "docbook/html/common/common.xsl; Line 1576; Column 35", 
"javax.xml.transform.TransformerException: 13 = 1" and farther down in the 
log, I see"java.lang.ArrayIndexOutOfBoundsException: 13 = 
1"

Going to "docbook/html/common/common.xsl; Line 
1576; Column 35", I see the following:

xsl:when test="$value !="''"

OK, so xalan doesn't like this line, I 
guess?

Here's my setup:

Cocoon 2.0.3

Using these classes in 
/usr/tomcat/webapps/cocoon/WEB-INF/lib:

xalan-2.3.1.jar

xalan2.jar (docbook extensions from 
Norm)

xercesImpl-2.0.0.jar

xml-apis.jar

Using jre 1.3.1_06

DocBook XML DTD 4.2

DocBook XSL 1.5

I would like to keep using xalan, but if I have to 
add saxon, please point me to a good procedure for doing so. Ditto for any other 
suggestions.

When I get the setup working, I will post the info 
to the list.

Thanks.

Joe


Re: Newbie: Best practices for DocBook XSL on Cocoon

2003-03-26 Thread Joerg Heinicke
Hello Joe,

I used DocBook without any problems in Cocoon. It's a few months ago and 
I don't know what versions of Cocoon and Xalan I used. I guess it was 
Cocoon 2.0.3, Xalan 2.3.1 and DocBook 1.51. So try to test it with a 
more current version of DocBook (I don't have a file 
docbook/html/common/common.xsl, only docbook/common/common.xsl, but no 
line 1576). Furthermore it's possible, that it is a bug in Xalan 2.3.1, 
so try 2.4.1.

Regards,

Joerg

Joe Williams wrote:
I have a question about using DocBook XSL with Cocoon, for anyone who 
has been successful in doing so. In hopes of getting some help and maybe 
helping others, I offer the following background.
 
After reading numerous posts to the archives for this list, and other 
resources, I am aware that not everyone is in favor of using the DocBook 
XSL stylesheets with Cocoon. However, I have also found that some people 
have done so successfully, and would like to do so myself.
 
I have been successful in serving DocBook XML content with a homegrown 
XSL stylesheet and CSS, but when I attempted to use the DocBook XSL to 
produce html, I get a blank page. (The transform runs fine from the 
command line.)
 
Looking at cocoon/WEB-INF/logs/error.log I see a fatal exception in 
docbook/html/common/common.xsl; Line 1576; Column 35, 
javax.xml.transform.TransformerException: 13 = 1 and farther down in 
the log, I see java.lang.ArrayIndexOutOfBoundsException: 13 = 1
 
Going to docbook/html/common/common.xsl; Line 1576; Column 35, I see 
the following:
 
xsl:when test=$value !=''
 
OK, so xalan doesn't like this line, I guess?
 
Here's my setup:
 
Cocoon 2.0.3
 
Using these classes in /usr/tomcat/webapps/cocoon/WEB-INF/lib:
 
xalan-2.3.1.jar
 
xalan2.jar (docbook extensions from Norm)
 
xercesImpl-2.0.0.jar
 
xml-apis.jar
 
Using jre 1.3.1_06
 
DocBook XML DTD 4.2
 
DocBook XSL 1.5
 
I would like to keep using xalan, but if I have to add saxon, please 
point me to a good procedure for doing so. Ditto for any other suggestions.
 
When I get the setup working, I will post the info to the list.
 
Thanks.
 
Joe


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


Newbie Sitemap Help

2003-03-17 Thread amsmith
Hello All,

I am really new to working with Cocoon platform, and was trying to 
read and understand all that I could before posting for help.  have 
been having trouble setting up a sitemap for a test application that 
I am currently developing. 

First off, I am just trying to get a working prototype. I hoping to 
accomplish a way for a user to request a foo.html document have the 
HTML Generator with a jtidy.properties file convert it to xml/xhtml 
and the use a xsl sheet to convert the it to wml and serailze it with 
wap/wml.

At this point I am really stuck on why I keep getting a fatal 
language error.  I am not sure if it is a sitemap error or something 
in the pipeline causing the error. 

I tried placing the documents into a separate folder under 
$COCOON_HOME/mount/foo/

I wrote a sub-sitemap in the foo directory.  Each time I try 
requesting the foo.html I get a couple fatal language errors.  I am 
rather lost at this point and if anybody has an idea for me to try 
please let me know. Any help would be most appreciated.

Thanks,
Andrew Smith

I have included a short message error and my sub-sitemap.

Message: Langeuage Exception

Description:

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error 
compiling sitemap_xmap: Line 213, column 54: '}' expected Line 63, 
column 11: class org.apache.cocoon.www.mount.html.sitemap_xmap should 
be declared abstract; it does not define method process
(org.apache.cocoon.environment.Environment, 
org.apache.cocoon.components.pipeline.StreamPipeline, 
org.apache.cocoon.components.pipeline.EventPipeline) in class 
org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors 

Current Setup
Linux Redhat 8.0
Tomcat 4.1.18/Cocoon 2.0.4
JDK 1.4.1_01 

?xml version=1.0 encoding=iso-8859-1?
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;^

map:components

 map:generator src=org.apache.cocoon.generation.HTMLGenerator 
type=html
   jtidy-configjtidy.properties/jtidy-config  
/map:generator

 map:transformer name=xslt 
src=org.apache.cocoon.transformation.TraxTransformer
   use-request-parametersfalse/use-request-parameters
 /map:transformer

 map:serializer name=wml mime-type=text/vnd.wap.wml 
logger=sitemap.serializer.wml
 src=org.apache.cocoon.serialization.XMLSerializer
doctype-public-//WAPFORUM//DTD WML 1.1//EN/doctype-public
doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype-
system
encodingACII/encoding
omit-xml-declarationyes/omit-xml-declaration
   /map:serializer

   /map:components

map:pipelines
map:pipeline

map:match pattern=*.html
map:generate src={1}.html/
map:transform src=html2wml.xsl/
map:serialize type=wml/
  /map:match
!--
  map:handle-errors
map:serialize status-code=500/
   /map:handle-errors
--

/map:pipeline^M

  /map:pipelines^M
/map:sitemap
!-- End of File --^M


-- 

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



AW: Newbie

2003-03-15 Thread Marco Rolappe
hi richard (again ;-),

you may have a stylesheet for it, but from the sitemap.xmap attached I don't
see it applied to your xml.

another thing; you're not getting any images displayed, are you? just asking
because I see your matches on *.gif and *.jpg not being defined within
pipelines. the paths in the @src attributes of the readers are most probably
wrong (I think the one starting with 'cocoon/' is definitely wrong.

let's sort things out a bit; I assume when installing you put the cocoon war
in tomcat's webapps directory ($TOMCAT_HOME/webapps). afterwards tomcat
unpacked this war and you then had (and now have) cocoon in
$TOMCAT_HOME/webapps/cocoon. let's call the latter $COCOON_HOME. in this
directory you have a sitemap.xmap file which represents the _root sitemap_.
I infer you created a subdirectory 'soundpool' within $COCOON_HOME and
inserted a mount for this in your _root sitemap_. something like the
following:

map:match pattern=soundpool/**
map:mount src=soundpool/ uri-prefix=soundpool/
/map:match

what you need to understand here is _contexts_. each sitemap represents a
different context. and all relative paths within sitemaps are evaluated
against the context.

examples (assuming a normal cocoon installation, i.e. reachable via
http://localhost:8080/cocoon/):

1. localhost:8080/cocoon/foo.xml
the 'cocoon' part maps to cocoon's servlet, thus cocoon gets a request for
'foo.xml'. since all the request processing starts from the root sitemap,
it would have to be handled here.

2. localhost:8080/cocoon/soundpool/foo.xml
assuming the mount of your 'soundpool' sitemap mentioned above. this time
cocoon gets a request for   'soundpool/foo.xml'. since you have a matcher in
your sitemap for anything starting with 'soundpool'
(map:match pattern=soundpool/**) this request is handed to your
'soundpool' sitemap/context (via the map:mount).
note here that before being processed by your sub-sitemap/context the
prefix 'soundpool' is removed from the request  uri (because of the
@uri-prefix=soundpool); 'soundpool/foo.xml' becomes 'foo.xml' and is now
handed to your sub- sitemap for processing.

3. localhost:8080/cocoon/soundpool/foo/bar/baz.xml
same assumptions as in 2. 'foo/bar/baz.xml' is handed to your sub-sitemap.


another important point for you to know here is the context's directory
(which is the directory the sitemap.xmap for your sub-sitemap/context
lives). when you have relative references in your sitemap (e.g. map:read
mime-type=image/gif src=foo/bar.gif/) these are resolved against the
subsitemap's/context's directory.

so, taking your attached sitemap (which I assume lives in
$COCOON_HOME/soundpool):

!-- images Readers --
map:match pattern=*.gif
map:read mime-type=image/gif
src=cocoon/soundpool/images/{1}.gif/
/map:match
map:match pattern=soundpool/images/*.jpg
map:read mime-type=image/jpg src=images/{1}.jpg/
/map:match

1. localhost:8080/cocoon/soundpool/foo.gif
same assumptions as in examples above. 'foo.gif' is handed to your
sub-sitemap/context. your first matcher matches.then the reader tries to
read from 'cocoon/soundpool/images/foo.gif' (the {1} was replaced with the
text the '*'matched). this finally resolves (against your context's dir)
to $COCOON_HOME/soundpool/cocoon/soundpool/images/foo.gif.
so this file would have to exist for things to work. but I assume that you
have an 'images' directory in your soundpool
folder. thus, your relative references to the image files must be relative
to your context's dir. for the .jpgs this is
right already. but as mentioned at the beginning, the sitemap snippet above
must go into a map:pipeline element.


one last point regarding the matching; the single '*' only matches 'flat'
file names, e.g. foo.gif, bar.gif, but not paths like foo/bar.gif or
foo/bar/baz.gif. though I just tell you before you run into problems.

 -Ursprungliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Richard Cunliffe
 Gesendet: Freitag, 14. Marz 2003 09:42
 An: [EMAIL PROTECTED]
 Betreff: RE: Newbie



 Dave and Joerg,

 I am also having problems with going onto the 3rd web page. When the
 link is clicked only the XML displays, despite there being a style sheet
 for it. I have a attached my sitemap so you can check my pipelines.

 The   !-- soundpool Database (PC Quick Queries) -- is the third page
 deep.

 Richard.


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



RE: Newbie

2003-03-14 Thread Richard Cunliffe
Dave and Joerg,

I am also having problems with going onto the 3rd web page. When the
link is clicked only the XML displays, despite there being a style sheet
for it. I have a attached my sitemap so you can check my pipelines.

The !-- soundpool Database (PC Quick Queries) -- is the third page
deep.

Richard.

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: 13 March 2003 23:41
To: [EMAIL PROTECTED]
Subject: Re: Newbie

Hallo Dave,

without further information it's only happy guessing ;-)

How does the pipelines in the sitemap look like?

Did you test the transformation independent from Cocoon/offline?

Regards,

Joerg

[EMAIL PROTECTED] wrote:
 Hi,
 
 Im not sure if this is the right place to ask this question?
 
 I have set cocoon up and everything is up and running. My problem is
that
 when i click on the 2nd link from the root, the xml file doesnt pick
up
 its
 stylesheet.
 
 eg.
 
 www.website.com
|- link to books
|-link to chapters
 
 It is this chapters link that is causing my trouble. When i click the
link
 it goes to the webpage, but only dispalys the xml (i looked at the
source
 in IE6), this means its not using a stylesheet.
 
 Either I am forgetting to do something, or do I need to inform cocoon
of
 the depth
 of the site?
 
 I have added the pipeline to the sitemap (obviously because its
displaying
 the xml).
 
 Any feedback would be great.
 
 Dave.


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




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



RE: Newbie

2003-03-14 Thread Richard Cunliffe

Dave and Joerg,

I am also having problems with going onto the 3rd web page. When the
link is clicked only the XML displays, despite there being a style sheet
for it. I have a attached my sitemap so you can check my pipelines.

The !-- soundpool Database (PC Quick Queries) -- is the third page
deep.

Richard.









-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: 13 March 2003 23:41
To: [EMAIL PROTECTED]
Subject: Re: Newbie

Hallo Dave,

without further information it's only happy guessing ;-)

How does the pipelines in the sitemap look like?

Did you test the transformation independent from Cocoon/offline?

Regards,

Joerg

[EMAIL PROTECTED] wrote:
 Hi,
 
 Im not sure if this is the right place to ask this question?
 
 I have set cocoon up and everything is up and running. My problem is
that
 when i click on the 2nd link from the root, the xml file doesnt pick
up
 its
 stylesheet.
 
 eg.
 
 www.website.com
|- link to books
|-link to chapters
 
 It is this chapters link that is causing my trouble. When i click the
link
 it goes to the webpage, but only dispalys the xml (i looked at the
source
 in IE6), this means its not using a stylesheet.
 
 Either I am forgetting to do something, or do I need to inform cocoon
of
 the depth
 of the site?
 
 I have added the pipeline to the sitemap (obviously because its
displaying
 the xml).
 
 Any feedback would be great.
 
 Dave.


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



sitemap.xmap
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Newbie

2003-03-13 Thread davewedd
Hi,

Im not sure if this is the right place to ask this question?

I have set cocoon up and everything is up and running. My problem is that
when i click on the 2 link from the root, the xml file doesnt pick up its
stylesheet.

eg.

www.website.com
   |- link to books
   |-link to chapters

It is this chapters link that is causing my trouble. When i click the link
it goes to the webpage, but only dispalys the xml (i looked at the source
in IE6), this means its not using a stylesheet.

Either what am i forgetting to do, or do need to inform cocoon of the depth
of the site?

I have add the pipeline to the sitemap (obviously because its displaying
the xml).

Any feedback would be great.

Dave.



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



Newbie

2003-03-13 Thread davewedd
Hi,

Im not sure if this is the right place to ask this question?

I have set cocoon up and everything is up and running. My problem is that
when i click on the 2nd link from the root, the xml file doesnt pick up
its
stylesheet.

eg.

www.website.com
   |- link to books
   |-link to chapters

It is this chapters link that is causing my trouble. When i click the link
it goes to the webpage, but only dispalys the xml (i looked at the source
in IE6), this means its not using a stylesheet.

Either I am forgetting to do something, or do I need to inform cocoon of
the depth
of the site?

I have added the pipeline to the sitemap (obviously because its displaying
the xml).

Any feedback would be great.

Dave.


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



Re: Newbie

2003-03-13 Thread Joerg Heinicke
Hallo Dave,

without further information it's only happy guessing ;-)

How does the pipelines in the sitemap look like?

Did you test the transformation independent from Cocoon/offline?

Regards,

Joerg

[EMAIL PROTECTED] wrote:
Hi,

Im not sure if this is the right place to ask this question?

I have set cocoon up and everything is up and running. My problem is that
when i click on the 2nd link from the root, the xml file doesnt pick up
its
stylesheet.
eg.

www.website.com
   |- link to books
   |-link to chapters
It is this chapters link that is causing my trouble. When i click the link
it goes to the webpage, but only dispalys the xml (i looked at the source
in IE6), this means its not using a stylesheet.
Either I am forgetting to do something, or do I need to inform cocoon of
the depth
of the site?
I have added the pipeline to the sitemap (obviously because its displaying
the xml).
Any feedback would be great.

Dave.


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


Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Christian Haul
On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote:
 Thanks for responding and sorry for the ambiguity of
 my post. Your reply was helpful.
 
 The parameters that I am referring to are request
 parameters sent from a post in an HTML form to a
 pipeline in my sitemap. That pipeline has a mod-db
 action. 
 I'd like to capture one of the input parameters from
 the form to be available as a parameter in an XSLT 
 transformer after that input parameter has been used
 by the mod-db action.
 Is it possible? My interpretation of your response
 along with the behavior that I see is that the request
 parameter is consumed by the mod-db action.

This is absolutely possible! Request parameter are read-only and are
not removed after reading them. BTW none of the input modules removes
a value. Conceptually, they are only for reading values, not modifying
state. Although this is not enforced, all current ones obey this
principle.

You can verify that the parameter is still there for example by using
the request generator in the same pipeline as you have the action.

If you can't make it work, include the pipeline and your xsl file
(head and template that uses the parameter).

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

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



Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Samuel Bruce
Thank you once again.

Before I created this post to cocoon-users, I tried
using the request generator after the mod-db action
and all of the request parameters were gone (weren't
displayed with xml serializer). Before the mod-db
action they were all there (using the request
generator). That's why I created this thread.
Maybe I did something wrong. I'll try again - work on
it some more. If I'm successful, I'll let you know. If
not, I'll send my pipeline and xsl. 

Thanks so much for your assistance and patience with a
newbie!

--- Christian Haul
[EMAIL PROTECTED] wrote:
 On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote:
  Thanks for responding and sorry for the ambiguity
 of
  my post. Your reply was helpful.
  
  The parameters that I am referring to are request
  parameters sent from a post in an HTML form to a
  pipeline in my sitemap. That pipeline has a mod-db
  action. 
  I'd like to capture one of the input parameters
 from
  the form to be available as a parameter in an XSLT
 
  transformer after that input parameter has been
 used
  by the mod-db action.
  Is it possible? My interpretation of your response
  along with the behavior that I see is that the
 request
  parameter is consumed by the mod-db action.
 
 This is absolutely possible! Request parameter are
 read-only and are
 not removed after reading them. BTW none of the
 input modules removes
 a value. Conceptually, they are only for reading
 values, not modifying
 state. Although this is not enforced, all current
 ones obey this
 principle.
 
 You can verify that the parameter is still there for
 example by using
 the request generator in the same pipeline as you
 have the action.
 
 If you can't make it work, include the pipeline and
 your xsl file
 (head and template that uses the parameter).
 
   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
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Samuel Bruce
I don't know what I did the first time, but whatever I
did wrong I must not have had enough patience to look
at it closer.
The request parameters ARE displayed with the request
generator after the db action. Thank you again for
your help!

--- Samuel Bruce [EMAIL PROTECTED] wrote:
 Thank you once again.
 
 Before I created this post to cocoon-users, I tried
 using the request generator after the mod-db action
 and all of the request parameters were gone (weren't
 displayed with xml serializer). Before the mod-db
 action they were all there (using the request
 generator). That's why I created this thread.
 Maybe I did something wrong. I'll try again - work
 on
 it some more. If I'm successful, I'll let you know.
 If
 not, I'll send my pipeline and xsl. 
 
 Thanks so much for your assistance and patience with
 a
 newbie!
 
 --- Christian Haul
 [EMAIL PROTECTED] wrote:
  On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote:
   Thanks for responding and sorry for the
 ambiguity
  of
   my post. Your reply was helpful.
   
   The parameters that I am referring to are
 request
   parameters sent from a post in an HTML form to a
   pipeline in my sitemap. That pipeline has a
 mod-db
   action. 
   I'd like to capture one of the input parameters
  from
   the form to be available as a parameter in an
 XSLT
  
   transformer after that input parameter has been
  used
   by the mod-db action.
   Is it possible? My interpretation of your
 response
   along with the behavior that I see is that the
  request
   parameter is consumed by the mod-db action.
  
  This is absolutely possible! Request parameter are
  read-only and are
  not removed after reading them. BTW none of the
  input modules removes
  a value. Conceptually, they are only for reading
  values, not modifying
  state. Although this is not enforced, all current
  ones obey this
  principle.
  
  You can verify that the parameter is still there
 for
  example by using
  the request generator in the same pipeline as you
  have the action.
  
  If you can't make it work, include the pipeline
 and
  your xsl file
  (head and template that uses the parameter).
  
  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
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Christian Haul
On 04.Mar.2003 -- 06:26 AM, Samuel Bruce wrote:
 I don't know what I did the first time, but whatever I
 did wrong I must not have had enough patience to look
 at it closer.
 The request parameters ARE displayed with the request
 generator after the db action. Thank you again for
 your help!

Good to hear your problem is solved!
Take care.

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

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



Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Samuel Bruce
Thanks. Solved with your help.

Take care, be well, God bless.

--- Christian Haul
[EMAIL PROTECTED] wrote:
 On 04.Mar.2003 -- 06:26 AM, Samuel Bruce wrote:
  I don't know what I did the first time, but
 whatever I
  did wrong I must not have had enough patience to
 look
  at it closer.
  The request parameters ARE displayed with the
 request
  generator after the db action. Thank you again for
  your help!
 
 Good to hear your problem is solved!
 Take care.
 
   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
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Newbie Use of Request Params with DB Action

2003-03-03 Thread Samuel Bruce
Hello,

I'm using a version of cocoon that I built from CVS
back in October of 2002, running with tomcat 4.1.12 on
WIN XP.

I have a pipeline that generates an HTML form and
passes  parameters to a mod-db action which inserts DB
records successfully.

Can any of those parameters passed to the action be
passed to another pipeline after the mod-db action or
are those parameters gone?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Newbie Use of Request Params with DB Action

2003-03-03 Thread Christian Haul
Samuel Bruce wrote:
Hello,

I'm using a version of cocoon that I built from CVS
back in October of 2002, running with tomcat 4.1.12 on
WIN XP.
I have a pipeline that generates an HTML form and
passes  parameters to a mod-db action which inserts DB
records successfully.
Can any of those parameters passed to the action be
passed to another pipeline after the mod-db action or
are those parameters gone?
Mmmh, if by parameters you mean sitemap parameters, e.g.
map:paramter ./, they are per component.
Request parameters OTOH are per request. Redirects cause
new requests.
Everything else. please be more specific.

	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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DirectoryGenerator depth attrib (newbie)

2003-03-03 Thread Joerg Heinicke
hi Mark,

Mark Anquoe wrote:
ok I've started pulling my hair out. I am really having problems getting 
the DirectoryGenerator to display anything more than the contents of the 
current directory. I can't seem to get the depth attribute to do anything.
we never had any problem with it.

I modified my just installed sitemap directory matching to look like this:

  map:match pattern=**/
   map:generate src={1} type=directory map:parameter 
name=depth value=3/
   /map:generate
 map:transform src=stylesheets/system/directory2html.xsl/
   map:serialize//map:match

now shouldn't I be seeing 3 levels deep into the directory tree?
does directory2html.xsl not allow for more than one level?
how can I see the sax events being served to the xsl page to know where 
the problem is?
Simply remove the transformer and change the type of the serializer to xml.

Joerg

thanks everyone
mark


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


Re: Newbie Use of Request Params with DB Action

2003-03-03 Thread Samuel Bruce
Thanks for responding and sorry for the ambiguity of
my post. Your reply was helpful.

The parameters that I am referring to are request
parameters sent from a post in an HTML form to a
pipeline in my sitemap. That pipeline has a mod-db
action. 
I'd like to capture one of the input parameters from
the form to be available as a parameter in an XSLT 
transformer after that input parameter has been used
by the mod-db action.
Is it possible? My interpretation of your response
along with the behavior that I see is that the request
parameter is consumed by the mod-db action.

--- Christian Haul [EMAIL PROTECTED]
wrote:
 Samuel Bruce wrote:
  Hello,
  
  I'm using a version of cocoon that I built from
 CVS
  back in October of 2002, running with tomcat
 4.1.12 on
  WIN XP.
  
  I have a pipeline that generates an HTML form and
  passes  parameters to a mod-db action which
 inserts DB
  records successfully.
  
  Can any of those parameters passed to the action
 be
  passed to another pipeline after the mod-db action
 or
  are those parameters gone?
 
 Mmmh, if by parameters you mean sitemap parameters,
 e.g.
 map:paramter ./, they are per component.
 
 Request parameters OTOH are per request. Redirects
 cause
 new requests.
 
 Everything else. please be more specific.
 
   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
 
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Newbie: where is the error?

2003-02-17 Thread Nesto



Hi!

I use someJSP for the xml-data 
generation.
These JSPs import some java classes for query a 
database, and so on...
These classes are used ONLY in the 
JSPs.

Where I have to put these java classes on the 
cocoon context??
In the folder cocoon/WEB-INF?
Or somewhere inside the cocoon/myApp 
folder??
Do I have to configure the file cocoon.xconf for 
using of my customclasses?

Sorryfor my newbiequestion, butI 
can't find where the error is!
In thesub-sitemap I 
wrote:
map:match 
pattern="userdata.jsp"
map:act type="request"
 map:parameter name="parameters" 
value="true"/
 map:generate type="jsp" 
src="" 
mime-type="text/xml"/
map:transform 
src=""/ --
 map:serialize 
type="xhtml"/
 /map:act
/map:match


But, 
when I request http://myHost:8080/cocoon/myApp/userdata.jsp 
(of course with the parameters passed through an xhtml form) I can only obtain 
this:

HTTP Status 500 - 

type Exception report
message 
description The server encountered an internal error 
() that prevented it from fulfilling this request.

exception java.lang.IllegalStateException
	at org.apache.coyote.tomcat4.CoyoteResponseFacade.reset(CoyoteResponseFacade.java:251)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1115)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)...Thank you for the help!Nesto


AW: Newbie: where is the error?

2003-02-17 Thread Marco Rolappe



hi 
nesto,

that 
IllegalStateException is a current cocoon bug (should by now be resolved in 
cocoon-2.0.5-dev and 2.1). cocoon is trying to notify an error, i.e. the one you 
are searching for. please have a look at your logs to see what the actual error 
is. if the cocoon logs don't reveal anything try the tomcat logs 
also.

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Im 
  Auftrag von NestoGesendet: Montag, 17. Februar 2003 
  11:30An: [EMAIL PROTECTED]Betreff: Newbie: 
  where is the error?
  Hi!
  
  I use someJSP for the xml-data 
  generation.
  These JSPs import some java classes for query a 
  database, and so on...
  These classes are used ONLY in the 
  JSPs.
  
  Where I have to put these java classes on the 
  cocoon context??
  In the folder cocoon/WEB-INF?
  Or somewhere inside the cocoon/myApp 
  folder??
  Do I have to configure the file cocoon.xconf for 
  using of my customclasses?
  
  Sorryfor my newbiequestion, 
  butI can't find where the error is!
  In thesub-sitemap I 
  wrote:
  map:match 
  pattern="userdata.jsp"
  map:act type="request"
   map:parameter name="parameters" 
  value="true"/
   map:generate type="jsp" 
  src="" 
  mime-type="text/xml"/
  map:transform 
  src=""/ --
   map:serialize 
  type="xhtml"/
   /map:act
  /map:match
  
  
  But, when I request http://myHost:8080/cocoon/myApp/userdata.jsp 
  (of course with the parameters passed through an xhtml form) I can only obtain 
  this:
  
  HTTP Status 500 - 
  
  type Exception report
  message 
  description The server encountered an internal 
  error () that prevented it from fulfilling this request.
  
  exception java.lang.IllegalStateException
	at org.apache.coyote.tomcat4.CoyoteResponseFacade.reset(CoyoteResponseFacade.java:251)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1115)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)...Thank you for the help!Nesto


DirectoryGenerator depth attrib (newbie)

2003-02-14 Thread Mark Anquoe
ok I've started pulling my hair out. I am really having problems getting 
the DirectoryGenerator to display anything more than the contents of the 
current directory. I can't seem to get the depth attribute to do anything.

I modified my just installed sitemap directory matching to look like this:

  map:match pattern=**/
   map:generate src={1} type=directory 
map:parameter name=depth value=3/
   /map:generate
  
   map:transform src=stylesheets/system/directory2html.xsl/
   map:serialize/  
  /map:match

now shouldn't I be seeing 3 levels deep into the directory tree?
does directory2html.xsl not allow for more than one level?
how can I see the sax events being served to the xsl page to know where 
the problem is?

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



Newbie

2003-02-06 Thread Sean McKaharay
I just started looking at Cocoon and I find the portal piece really nice. I
tried building the src with the correct option but I don't know how to build
and deploy the portal piece. When you run the option and then build it comes
up with 2 jar files. Are they independent files or do they get dropped in the
web-apps directory and explode by themselves?
 
Any help would be great
 
Sean



Re: Newbie

2003-02-06 Thread SAXESS - Hussayn Dabbous
You may look at the following place to get the portal running.

http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install

in fact this page doesnt tell explicitly how the portal is comnpiled, this
jaust happens under the hood. so just follow the cookbook and
your done (im speeking for cocoon-2.0.4 only, no idea about the HEAD version)

hussayn

Sean McKaharay wrote:

 I just started looking at Cocoon and I find the portal piece really nice. I
 tried building the src with the correct option but I don't know how to build
 and deploy the portal piece. When you run the option and then build it comes
 up with 2 jar files. Are they independent files or do they get dropped in the
 web-apps directory and explode by themselves?

 Any help would be great

 Sean

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
D-50935 Köln
tel.:+49 221 56011 0
fax.:+49 221-56011 20
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]




Re: newbie xsp question

2003-02-04 Thread Jim Bearce
I don't know why the simple.xsp was done the way it was but I believe 
you should also be able to write it this way:

xsp:logic
 for (int i=0; i lt; 3; i++) {
   liItem xsp:expri/xsp:expr/li
 }
/xsp:logic

I think wrapping it in CDATA sections is just to make it possible to use 
the  in the for statement

I-Lin Kuo wrote:

In the sample xsp provided with cocoon, on the page

docs/samples/xsp/simple.xsp

There's a section of code that looks like this:

xsp:logic
  ![CDATA[
  for (int i=0; i3; i++) {]]![CDATA[
  ]]
li
  Item xsp:expri/xsp:expr
/li
  ![CDATA[
  } ]]![CDATA[
  ]]
/xsp:logic

I understand that the CDATA sections are needed to escape the  in 
the for loop declaration, but it seems to me that only one such is 
needed. To test this, I made up another page with the following:

ul
xsp:logic
![CDATA[
for (int j=0;j3;j++) ]]{
liItem xsp:exprj/xsp:expr/li
}
/xsp:logic
/ul

This worked, and confirmed my suspicions. So my question is, why were 
there so many CDATA sections in the original, and when am I supposed 
to use them?

Also, I'd appreciate it if someone could explain what xsp:content is 
supposed to do, or refer me to some place in the documentation where 
all the tags are listed (I couldn't find any).

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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




newbie xsp question

2003-02-03 Thread I-Lin Kuo
In the sample xsp provided with cocoon, on the page

docs/samples/xsp/simple.xsp

There's a section of code that looks like this:

xsp:logic
  ![CDATA[
  for (int i=0; i3; i++) {]]![CDATA[
  ]]
li
  Item xsp:expri/xsp:expr
/li
  ![CDATA[
  } ]]![CDATA[
  ]]
/xsp:logic

I understand that the CDATA sections are needed to escape the  in the for 
loop declaration, but it seems to me that only one such is needed. To test 
this, I made up another page with the following:

ul
xsp:logic
![CDATA[
	for (int j=0;j3;j++) ]]{
		liItem xsp:exprj/xsp:expr/li
	}
/xsp:logic
/ul

This worked, and confirmed my suspicions. So my question is, why were there 
so many CDATA sections in the original, and when am I supposed to use them?

Also, I'd appreciate it if someone could explain what xsp:content is 
supposed to do, or refer me to some place in the documentation where all the 
tags are listed (I couldn't find any).

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



newbie question

2003-01-27 Thread Tellis George
Hi,

I am quite new to cocoon. I am evaulating web publishing frameworks for my 
company.
Although Cocoon sounds very promising I am not entiely sure because the 
pages in my
web application are not static. All of them are dynamically generated on the 
fly. The backend services
although still under design may be developed using JINI, object databases, 
LDAP etc

The main reason why I was drawn to cocoon was its multichanel capabilities. 
We may want to target
the pages to a number of devices - mobiles, PDAs, PCs etc My original 
(very simplistic) design was
to simply have servlets generate XML and then transform these using XSLT. 
This is where I thought cocoon would help.

My question is - is cocoon good for static pages or can it be used for 
highly interactive dynamic pages?


Regards
Tellis









_
Stay in touch with absent friends - get MSN Messenger 
http://messenger.msn.co.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: newbie question

2003-01-27 Thread Luca Morandini
Tellis,

Cocoon is aimed at generating dynamic content, first and foremost.

Anyway, you can, as the Cocoon-based Forrest does, generate static content out of XMLs 
in batch mode and then drop them in a
web-serves, to improve performance.

Regards,

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


 -Original Message-
 From: Tellis George [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 27, 2003 11:16 AM
 To: [EMAIL PROTECTED]
 Subject: newbie question


 Hi,

 I am quite new to cocoon. I am evaulating web publishing frameworks for my
 company.
 Although Cocoon sounds very promising I am not entiely sure because the
 pages in my
 web application are not static. All of them are dynamically generated on the
 fly. The backend services
 although still under design may be developed using JINI, object databases,
 LDAP etc

 The main reason why I was drawn to cocoon was its multichanel capabilities.
 We may want to target
 the pages to a number of devices - mobiles, PDAs, PCs etc My original
 (very simplistic) design was
 to simply have servlets generate XML and then transform these using XSLT.
 This is where I thought cocoon would help.

 My question is - is cocoon good for static pages or can it be used for
 highly interactive dynamic pages?


 Regards
 Tellis









 _
 Stay in touch with absent friends - get MSN Messenger
 http://messenger.msn.co.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]



-
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: newbie question

2003-01-27 Thread Derek Hohls
Tellis
 
You ask is cocoon good for static pages or can it be used for 
highly interactive dynamic pages?
 
Very short version answer is:
Yes, Cocoon can be used for both.
 
Slightly longer:
Cocoon essentially *is* a servlet, designed to enable the creation of
XML (from static files, databases, web services or other sources) and
provide an efficient and effective framework for manipluating that XML
into a variety of output formats (including all the ones you list). 
Cocoon
works whether you have a single file or a whole multitude with any 
combination of static or dynamic.
 
Even longer (from the Cocoon Home Page at:
http://xml.apache.org/cocoon/)
Designed for performance and scalability around pipelined SAX
processing,
 Cocoon offers a flexible environment based on a separation of concerns

between content, logic, and style. Cocoon's centralized configuration
system
helps you to create, deploy, and maintain rock-solid XML server
applications. 
Cocoon interacts with most data sources, including filesystems, RDBMS,

LDAP, native XML databases, and network-based data sources. 
It adapts content delivery to the capabilities of different devices
like 
HTML, WML, PDF, SVG, and RTF, to name just a few. 
You can run Cocoon as a Servlet as well as through a powerful,
commandline interface. 
The deliberate design of its abstract environment gives you the freedom

to extend its functionality to meet your special needs in a highly
modular fashion. 


By now this should have answered your question (but you probably have
others!) -
look through the Overview ( http://xml.apache.org/cocoon/overview.html
) and 
browse from there - also look at the
http://wiki.cocoondev.org/Wiki.jsp?page=Main
Wiki site; mostly maintained by folk who also asking questions and
trying to explain
what they find to others...


 [EMAIL PROTECTED] 27/01/2003 12:16:04 
Hi,

I am quite new to cocoon. I am evaulating web publishing frameworks for
my 
company.
Although Cocoon sounds very promising I am not entiely sure because the

pages in my
web application are not static. All of them are dynamically generated
on the 
fly. The backend services
although still under design may be developed using JINI, object
databases, 
LDAP etc

The main reason why I was drawn to cocoon was its multichanel
capabilities. 
We may want to target
the pages to a number of devices - mobiles, PDAs, PCs etc My
original 
(very simplistic) design was
to simply have servlets generate XML and then transform these using
XSLT. 
This is where I thought cocoon would help.

My question is - is cocoon good for static pages or can it be used for

highly interactive dynamic pages?


Regards
Tellis









_
Stay in touch with absent friends - get MSN Messenger 
http://messenger.msn.co.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]



-- 
This message has been scanned for viruses and dangerous content by 
MailScanner, and is believed to be clean.

The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.  
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and 
Internet Policy.


-
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: newbie question

2003-01-27 Thread SAXESS - Hussayn Dabbous
from my experience i can say, cocoon can be used for
highly dynamic pages.
You have to individually check on performance issues,
but in general until today i have been quite satisfied with
what i can gain from using it.
I must admit, that i currently only use the basics. never tried
the esql thing, and more sophisticated onse, but so far im
very shure, it can be used especially in a multi channel
environment.

hussayn


Tellis George wrote:

Hi,

I am quite new to cocoon. I am evaulating web publishing frameworks for 
my company.
Although Cocoon sounds very promising I am not entiely sure because the 
pages in my
web application are not static. All of them are dynamically generated on 
the fly. The backend services
although still under design may be developed using JINI, object 
databases, LDAP etc

The main reason why I was drawn to cocoon was its multichanel 
capabilities. We may want to target
the pages to a number of devices - mobiles, PDAs, PCs etc My 
original (very simplistic) design was
to simply have servlets generate XML and then transform these using 
XSLT. This is where I thought cocoon would help.

My question is - is cocoon good for static pages or can it be used for 
highly interactive dynamic pages?


Regards
Tellis









_
Stay in touch with absent friends - get MSN Messenger 
http://messenger.msn.co.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]


--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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: newbie question

2003-01-27 Thread Niclas Hedhman
On Monday 27 January 2003 18:16, Tellis George wrote:
 My question is - is cocoon good for static pages or can it be used for
 highly interactive dynamic pages?

Consensus here is; WEYWY
What Ever You Want You Get

or so it seems...

-
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: newbie question

2003-01-27 Thread Tellis George
Thanks for the excellent information. One of my main concern was how to 
integrate cocoon with existing services and servlets without necessarily 
making them part of cocoon ...

From: Derek Hohls [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: newbie question
Date: Mon, 27 Jan 2003 12:36:06 +0200

Tellis

You ask is cocoon good for static pages or can it be used for
highly interactive dynamic pages?

Very short version answer is:
Yes, Cocoon can be used for both.

Slightly longer:
Cocoon essentially *is* a servlet, designed to enable the creation of
XML (from static files, databases, web services or other sources) and
provide an efficient and effective framework for manipluating that XML
into a variety of output formats (including all the ones you list).
Cocoon
works whether you have a single file or a whole multitude with any
combination of static or dynamic.

Even longer (from the Cocoon Home Page at:
http://xml.apache.org/cocoon/)
Designed for performance and scalability around pipelined SAX
processing,
 Cocoon offers a flexible environment based on a separation of concerns

between content, logic, and style. Cocoon's centralized configuration
system
helps you to create, deploy, and maintain rock-solid XML server
applications.
Cocoon interacts with most data sources, including filesystems, RDBMS,

LDAP, native XML databases, and network-based data sources.
It adapts content delivery to the capabilities of different devices
like
HTML, WML, PDF, SVG, and RTF, to name just a few.
You can run Cocoon as a Servlet as well as through a powerful,
commandline interface.
The deliberate design of its abstract environment gives you the freedom

to extend its functionality to meet your special needs in a highly
modular fashion.


By now this should have answered your question (but you probably have
others!) -
look through the Overview ( http://xml.apache.org/cocoon/overview.html
) and
browse from there - also look at the
http://wiki.cocoondev.org/Wiki.jsp?page=Main
Wiki site; mostly maintained by folk who also asking questions and
trying to explain
what they find to others...


 [EMAIL PROTECTED] 27/01/2003 12:16:04 
Hi,

I am quite new to cocoon. I am evaulating web publishing frameworks for
my
company.
Although Cocoon sounds very promising I am not entiely sure because the

pages in my
web application are not static. All of them are dynamically generated
on the
fly. The backend services
although still under design may be developed using JINI, object
databases,
LDAP etc

The main reason why I was drawn to cocoon was its multichanel
capabilities.
We may want to target
the pages to a number of devices - mobiles, PDAs, PCs etc My
original
(very simplistic) design was
to simply have servlets generate XML and then transform these using
XSLT.
This is where I thought cocoon would help.

My question is - is cocoon good for static pages or can it be used for

highly interactive dynamic pages?


Regards
Tellis









_
Stay in touch with absent friends - get MSN Messenger
http://messenger.msn.co.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]



--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy.


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



_
Stay in touch with MSN Messenger http://messenger.msn.co.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: newbie question

2003-01-27 Thread SAXESS - Hussayn Dabbous
hy, Tellis

im just working on a project, where:

1.) an existing webapp can't be merged with the cocoon-webapp
due to incompatible jar versions

2.) the existing webapp may not be modified, except the creation
of an additional XML-layer for read/write access.

I am working on howto get a cocoon-based presentation layer in the 
middle between the legacyapp and the browser frontend. Things start
working and i make quick progress at the moment. If you are
interested, i can tell more about this...

regards, hussayn

Tellis George wrote:
Thanks for the excellent information. One of my main concern was how to 
integrate cocoon with existing services and servlets without necessarily 
making them part of cocoon ...



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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: newbie question

2003-01-27 Thread Derek Hohls



Tellis

OK; this is getting into deeper waters  again, it is 
certainly possible (and is often discussed on this mailing
list) but some of the explanations of 'how" are probably
best left until you understand a little of why/how Cocoon
operates. A lot will also depend on which services and
servlets you are working with and how *they* are configured
and what their capabilities/limitations are.

Derek [EMAIL PROTECTED] 27/01/2003 01:25:39 
Thanks for the excellent information. One of my main concern was 
how to integrate cocoon with existing services and servlets without 
necessarily making them part of cocoon ...From: "Derek Hohls" 
[EMAIL PROTECTED]Reply-To: 
[EMAIL PROTECTED]To: 
[EMAIL PROTECTED]Subject: Re: newbie 
questionDate: Mon, 27 Jan 2003 12:36:06 
+0200TellisYou ask "is cocoon good for static 
pages or can it be used forhighly interactive dynamic 
pages?"Very short version answer is:Yes, Cocoon can be 
used for both.Slightly longer:Cocoon essentially *is* a 
servlet, designed to enable the creation ofXML (from static files, 
databases, web services or other sources) andprovide an efficient and 
effective framework for manipluating that XMLinto a variety of output 
formats (including all the ones you list).Cocoonworks whether 
you have a single file or a whole multitude with anycombination of 
static or dynamic.Even longer (from the Cocoon Home Page 
at:http://xml.apache.org/cocoon/)Designed 
for performance and scalability around pipelined 
SAXprocessing, Cocoon offers a flexible environment based 
on a separation of concernsbetween content, logic, and style. 
Cocoon's centralized configurationsystemhelps you to create, 
deploy, and maintain rock-solid XML serverapplications.Cocoon 
interacts with most data sources, including filesystems, 
RDBMS,LDAP, native XML databases, and network-based data 
sources.It adapts content delivery to the capabilities of different 
deviceslikeHTML, WML, PDF, SVG, and RTF, to name just a 
few.You can run Cocoon as a Servlet as well as through a 
powerful,commandline interface.The deliberate design of its 
abstract environment gives you the freedomto extend its 
functionality to meet your special needs in a highlymodular 
fashion.By now this should have answered your question 
(but you probably haveothers!) -look through the Overview ( http://xml.apache.org/cocoon/overview.html) 
andbrowse from there - also look at thehttp://wiki.cocoondev.org/Wiki.jsp?page=MainWiki 
site; mostly maintained by folk who also asking questions andtrying to 
explainwhat they find to others...  
[EMAIL PROTECTED] 27/01/2003 12:16:04 Hi,I 
am quite new to cocoon. I am evaulating web publishing frameworks 
formycompany.Although Cocoon sounds very promising I am 
not entiely sure because thepages in myweb application 
are not static. All of them are dynamically generatedon thefly. 
The backend servicesalthough still under design may be developed using 
JINI, objectdatabases,LDAP etcThe main 
reason why I was drawn to cocoon was its 
multichanelcapabilities.We may want to targetthe pages 
to a number of devices - mobiles, PDAs, PCs etc 
Myoriginal(very simplistic) design wasto simply have 
servlets generate XML and then transform these usingXSLT.This is 
where I thought cocoon would help.My question is - is cocoon 
good for static pages or can it be used forhighly interactive 
dynamic 
pages?RegardsTellis_Stay 
in touch with absent friends - get MSN Messengerhttp://messenger.msn.co.uk-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]--This 
message has been scanned for viruses and dangerous content 
byMailScanner, and is believed to be clean."The CSIR 
exercises no editorial control over E-mail messages and/orattachments 
thereto/links referred to therein originating in theorganisation and the 
views in this message/attachments thereto aretherefore not necessarily 
those of the CSIR and/or its employees.The sender of this e-mail is, 
moreover, in terms of the CSIR's Conditionsof Service, subject to 
compliance with the CSIR's internal E-mail andInternet 
Policy."-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]_Stay 
in touch with MSN Messenger http://messenger.msn.co.uk-Please 
check that your question has not already been answered in theFAQ 
before postin

Re: newbie question

2003-01-27 Thread Derek Hohls



Tellis

Also have a look at:
http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet

As you can see, it assumes some knowledge of Cocoon
wrt to pipelines and other jargon - but you may be able
to get the essence of it [EMAIL PROTECTED] 
27/01/2003 01:25:39 Thanks for the excellent information. One of 
my main concern was how to integrate cocoon with existing services and 
servlets without necessarily making them part of cocoon ...From: 
"Derek Hohls" [EMAIL PROTECTED]Reply-To: 
[EMAIL PROTECTED]To: 
[EMAIL PROTECTED]Subject: Re: newbie 
questionDate: Mon, 27 Jan 2003 12:36:06 
+0200TellisYou ask "is cocoon good for static 
pages or can it be used forhighly interactive dynamic 
pages?"Very short version answer is:Yes, Cocoon can be 
used for both.Slightly longer:Cocoon essentially *is* a 
servlet, designed to enable the creation ofXML (from static files, 
databases, web services or other sources) andprovide an efficient and 
effective framework for manipluating that XMLinto a variety of output 
formats (including all the ones you list).Cocoonworks whether 
you have a single file or a whole multitude with anycombination of 
static or dynamic.Even longer (from the Cocoon Home Page 
at:http://xml.apache.org/cocoon/)Designed 
for performance and scalability around pipelined 
SAXprocessing, Cocoon offers a flexible environment based 
on a separation of concernsbetween content, logic, and style. 
Cocoon's centralized configurationsystemhelps you to create, 
deploy, and maintain rock-solid XML serverapplications.Cocoon 
interacts with most data sources, including filesystems, 
RDBMS,LDAP, native XML databases, and network-based data 
sources.It adapts content delivery to the capabilities of different 
deviceslikeHTML, WML, PDF, SVG, and RTF, to name just a 
few.You can run Cocoon as a Servlet as well as through a 
powerful,commandline interface.The deliberate design of its 
abstract environment gives you the freedomto extend its 
functionality to meet your special needs in a highlymodular 
fashion.By now this should have answered your question 
(but you probably haveothers!) -look through the Overview ( http://xml.apache.org/cocoon/overview.html) 
andbrowse from there - also look at thehttp://wiki.cocoondev.org/Wiki.jsp?page=MainWiki 
site; mostly maintained by folk who also asking questions andtrying to 
explainwhat they find to others...  
[EMAIL PROTECTED] 27/01/2003 12:16:04 Hi,I 
am quite new to cocoon. I am evaulating web publishing frameworks 
formycompany.Although Cocoon sounds very promising I am 
not entiely sure because thepages in myweb application 
are not static. All of them are dynamically generatedon thefly. 
The backend servicesalthough still under design may be developed using 
JINI, objectdatabases,LDAP etcThe main 
reason why I was drawn to cocoon was its 
multichanelcapabilities.We may want to targetthe pages 
to a number of devices - mobiles, PDAs, PCs etc 
Myoriginal(very simplistic) design wasto simply have 
servlets generate XML and then transform these usingXSLT.This is 
where I thought cocoon would help.My question is - is cocoon 
good for static pages or can it be used forhighly interactive 
dynamic 
pages?RegardsTellis_Stay 
in touch with absent friends - get MSN Messengerhttp://messenger.msn.co.uk-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]--This 
message has been scanned for viruses and dangerous content 
byMailScanner, and is believed to be clean."The CSIR 
exercises no editorial control over E-mail messages and/orattachments 
thereto/links referred to therein originating in theorganisation and the 
views in this message/attachments thereto aretherefore not necessarily 
those of the CSIR and/or its employees.The sender of this e-mail is, 
moreover, in terms of the CSIR's Conditionsof Service, subject to 
compliance with the CSIR's internal E-mail andInternet 
Policy."-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]_Stay 
in touch with MSN Messenger http://messenger.msn.co.uk-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]-- 
This message has been scanned for viruses and da

Re: newbie question

2003-01-27 Thread Tellis George
Hi Derek, Hussayn,

Thanks for the replies. Now that I know it is very much in the realms of 
possibility, I will
read up a bit more on cocoon and understand how it works.  Once I read up a 
bit more I should
be able to ask more specific questions  

Thanks a lot for all your support 

Regards
Tellis



From: Derek Hohls [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: newbie question
Date: Mon, 27 Jan 2003 13:55:07 +0200

Tellis

Also have a look at:
http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet

As you can see, it assumes some knowledge of Cocoon
wrt to pipelines and other jargon - but you may be able
to get the essence of it

 [EMAIL PROTECTED] 27/01/2003 01:25:39 
Thanks for the excellent information. One of my main concern was how to

integrate cocoon with existing services and servlets without
necessarily
making them part of cocoon ...

From: Derek Hohls [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: newbie question
Date: Mon, 27 Jan 2003 12:36:06 +0200

Tellis

You ask is cocoon good for static pages or can it be used for
highly interactive dynamic pages?

Very short version answer is:
Yes, Cocoon can be used for both.

Slightly longer:
Cocoon essentially *is* a servlet, designed to enable the creation of
XML (from static files, databases, web services or other sources) and
provide an efficient and effective framework for manipluating that
XML
into a variety of output formats (including all the ones you list).
Cocoon
works whether you have a single file or a whole multitude with any
combination of static or dynamic.

Even longer (from the Cocoon Home Page at:
http://xml.apache.org/cocoon/)
Designed for performance and scalability around pipelined SAX
processing,
  Cocoon offers a flexible environment based on a separation of
concerns

between content, logic, and style. Cocoon's centralized configuration
system
helps you to create, deploy, and maintain rock-solid XML server
applications.
Cocoon interacts with most data sources, including filesystems,
RDBMS,

LDAP, native XML databases, and network-based data sources.
It adapts content delivery to the capabilities of different devices
like
HTML, WML, PDF, SVG, and RTF, to name just a few.
You can run Cocoon as a Servlet as well as through a powerful,
commandline interface.
The deliberate design of its abstract environment gives you the
freedom

to extend its functionality to meet your special needs in a highly
modular fashion.


By now this should have answered your question (but you probably have
others!) -
look through the Overview ( http://xml.apache.org/cocoon/overview.html

) and
browse from there - also look at the
http://wiki.cocoondev.org/Wiki.jsp?page=Main
Wiki site; mostly maintained by folk who also asking questions and
trying to explain
what they find to others...


  [EMAIL PROTECTED] 27/01/2003 12:16:04 
Hi,

I am quite new to cocoon. I am evaulating web publishing frameworks
for
my
company.
Although Cocoon sounds very promising I am not entiely sure because
the

pages in my
web application are not static. All of them are dynamically generated
on the
fly. The backend services
although still under design may be developed using JINI, object
databases,
LDAP etc

The main reason why I was drawn to cocoon was its multichanel
capabilities.
We may want to target
the pages to a number of devices - mobiles, PDAs, PCs etc My
original
(very simplistic) design was
to simply have servlets generate XML and then transform these using
XSLT.
This is where I thought cocoon would help.

My question is - is cocoon good for static pages or can it be used
for

highly interactive dynamic pages?


Regards
Tellis









_
Stay in touch with absent friends - get MSN Messenger
http://messenger.msn.co.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]



--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's
Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy.


-
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

Re: AW: newbie: creating a cocoon action and Sleep Deprivation

2003-01-21 Thread Julian Klein
Hi,

  Thanks for the help yesterday, but after getting
some sleep I found my problem.  It is at its basic
level attributed to my stupidity, but it was that I
had the class in the wrong package when I placed it
into the cocoon jar.  Thanks for the help guys, sorry
for wasting your time.

all apologies,
-Julian

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]




Newbie questions about Actions

2003-01-20 Thread Lenya L. Khachaturov
Hello,

I've read through userdocs/concepts/actions.html, but still I dont't get
the following (and the docs do not explain this):
I've got Java code of an action. HOW do I compile this and WHERE should I
put the resulting .class file after this.

-- 
Lenya Khachaturov
mailto:[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: Newbie questions about Actions

2003-01-20 Thread Marco Rolappe
hi lenya,

you compile the java Action code like any other java code, i.e. via javac,
IDE, etc.

if you package the resulting classes as JAR this has to be in WEB-INF/lib of
your cocoon. otherwise the classes go to WEB-INF/classes of you cocoon.

note that the package structure has to be reflected in the directory
hierarchy, i.e. if your class 'bar' is in package 'foo', the class would
have to be in WEB-INF/classes/foo/bar.class.

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von Lenya L. Khachaturov
Gesendet: Montag, 20. Januar 2003 17:34
An: [EMAIL PROTECTED]
Betreff: Newbie questions about Actions


Hello,

I've read through userdocs/concepts/actions.html, but still I dont't get
the following (and the docs do not explain this):
I've got Java code of an action. HOW do I compile this and WHERE should I
put the resulting .class file after this.

--
Lenya Khachaturov
mailto:[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]




newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Julian Klein
Hi all,

I am currently trying to create my own action for
cocoon 2.  Moreover, I am trying to use the
AbstractMultiAction class so I can call methods on the
action via a http post form field.  Unfortunately I
have been able to compile it, but get a Class Not
Found Exception when I try access the URL that points
to the sitemap with the mounted action.  I am not
trying to use the action, I just have the action
mounted.  Below is my java action code and I have
attached my stack trace/sitemap as one text file.  Any
help would be appreciated.  I am using red hat 8.0,
j2sdk 1.4, and a cocoon 2.x build from about a month
ago.

Thanks in Advance


*ACTION JAVA CODE**
/*
 * TaskAction.java
 *
 * Created on January 14, 2003, 12:16 PM
 */
package org.apache.cocoon.acting;
/**
 *
 * @author  Julian
 */ 

import org.apache.avalon.framework.context.Context;
import
org.apache.avalon.framework.context.ContextException;
import
org.apache.avalon.framework.context.Contextualizable;
import
org.apache.avalon.framework.parameters.ParameterException;
import
org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.thread.ThreadSafe;

import org.apache.cocoon.Constants;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.acting.AbstractMultiAction;
import
org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;

import java.util.Map;

import com.ethidium.wEMR.classes.Task;
import com.ethidium.wEMR.classes.TaskManager;
import com.ethidium.wEMR.classes.TaskGroup;

public class TaskAction extends AbstractMultiAction
implements ThreadSafe {

  public static final String TASK_ACTION =
task-action;
  public static final String SUBJECT_NODE =
task-subject-node;
  public static final String CATEGORY =
task-category;
  public static final String DEST_CATEGORY =
task-dest-category;
  public static final String DEST_SUBJECT_NODE =
task-dest-subject-node;
  public static final String TASK_TITLE =
task-title;
  public static final String TASK_DESCRIPTION =
task-description;
  public static final String TASK_DUE_DATE =
task-due-date;
  public static final String TASK_PRIORITY =
task-priority;
  public static final String TASK_STATUS =
task-status;
  public static final String TASK_URI = task-uri;
  public static final String TASK_OWNER =
task-owner;
  
  /*public Map act (Redirector redirector, 
  SourceResolver resolver, 
  Map objectModel, 
  String source, 
  Parameters params) {
Map sitemapParams = new HashMap();
sitemapParams.put(world, hello);

Request request =
ObjectModelHelper.getRequest(objectModel);

action = request.getAttribute(action);

return sitemapParams;
  }*/
  
  public Map doCreateTask(Redirector redirector,
   SourceResolver resolver,
   Map objectModel,
   String src,
   Parameters parameters) throws
Exception {
   
Request request =
ObjectModelHelper.getRequest(objectModel);

//determine dest of task to be created
String subjectNode =
parameters.getParameter(SUBJECT_NODE,
 
request.getParameter(SUBJECT_NODE));
String category =
parameters.getParameter(CATEGORY,
 
request.getParameter(CATEGORY));
//get task values
String taskTitle =
parameters.getParameter(TASK_TITLE,
 
request.getParameter(TASK_TITLE));
String taskDescription =
parameters.getParameter(TASK_DESCRIPTION,
 
request.getParameter(TASK_DESCRIPTION));
String taskDueDate =
parameters.getParameter(TASK_DUE_DATE,
 
request.getParameter(TASK_DUE_DATE));
String taskPriority =
parameters.getParameter(TASK_PRIORITY,
 
request.getParameter(TASK_PRIORITY));
String taskStatus =
parameters.getParameter(TASK_STATUS,
 
request.getParameter(TASK_STATUS));
String taskURI =
parameters.getParameter(TASK_URI,
 
request.getParameter(TASK_URI));
String taskOwner =
parameters.getParameter(TASK_OWNER,
 
request.getParameter(TASK_OWNER));

getLogger().info(create task +taskTitle+ at
+subjectNode+/+category);

TaskManager taskManager = new TaskManager();
Task task = new Task(taskOwner, taskTitle,
taskDescription, taskURI, taskDueDate, taskPriority,
taskStatus);
taskManager.storeTask(subjectNode, category,
task);

return EMPTY_MAP;
  }
}

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Re: newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Marcus Crafter
Hi Julian,

Not sure what the problem is exactly, but your source file has
your action in the package 'org.apache.cocoon.acting', whereas your
sitemap.xmap file says that is under 'com.ethidium.cocoon.action'.

Perhaps that's causing things to go a bit pear shaped. Hope that
helps.

Cheers,

Marcus

On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian Klein wrote:
 
 *ACTION JAVA CODE**
 /*
  * TaskAction.java
  *
  * Created on January 14, 2003, 12:16 PM
  */
 package org.apache.cocoon.acting;

...snip/...

 ***SITEMAP

...snip/...

   map:actions
map:action name=eTask src=com.ethidium.cocoon.action.TaskAction/

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_'
  .
:

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

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




Re: newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Julian Klein
Hey Marcus,
 Yeah I'm sorry, but I had fixed that (I jsut sent the
old sitemap DUH).  You see I tried it in the original
package of com.ethidium, but then thought my class
should be in the cocoon dev jar so I moved it to
org.apache.cocoon.acting and changed the sitemap.
Unfortunately neither worked eventhough the sitemap
matched the location of the class.  I know it is
accessing the class since it is looking for the
AbstractMultiAction class (it's superclass).  I am
running also the slide sample from the scratchpad
which has actions that use the AbstractMultiAction
class as well...but they works fine.  I am boggled
about this...could it have something to do with Thread
safety from the Avalon framework or some funny
classloading issue?

Thanks Again,
Julian


--- Marcus Crafter
[EMAIL PROTECTED] wrote:
 Hi Julian,
 
   Not sure what the problem is exactly, but your
 source file has
   your action in the package
 'org.apache.cocoon.acting', whereas your
   sitemap.xmap file says that is under
 'com.ethidium.cocoon.action'.
   
   Perhaps that's causing things to go a bit pear
 shaped. Hope that
   helps.
   
   Cheers,
   
   Marcus
   
 On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian
 Klein wrote:
  
  *ACTION JAVA
 CODE**
  /*
   * TaskAction.java
   *
   * Created on January 14, 2003, 12:16 PM
   */
  package org.apache.cocoon.acting;
 
 ...snip/...
 
 

***SITEMAP
 
 ...snip/...
 
map:actions
 map:action name=eTask
 src=com.ethidium.cocoon.action.TaskAction/
 
 -- 
 .
  ,,$,  Marcus Crafter
 ;$'  ':Computer Systems Engineer
 $: :   ManageSoft GmbH
  $   o_)$$$:   82-84 Mainzer Landstrasse
  ;$,_/\ :'   60327 Frankfurt Germany
' /( 
\_'
   .
 :
 

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


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]




AW: newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Marco Rolappe
the stacktrace says that the AbstractMultiAction can't be found.

make sure that this class is in the classpath (it should be in the cocoon
JAR, but you better check that out).

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von Julian Klein
Gesendet: Montag, 20. Januar 2003 22:27
An: [EMAIL PROTECTED]
Betreff: Re: newbie: creating a cocoon action using AbstractMultiAction


Hey Marcus,
 Yeah I'm sorry, but I had fixed that (I jsut sent the
old sitemap DUH).  You see I tried it in the original
package of com.ethidium, but then thought my class
should be in the cocoon dev jar so I moved it to
org.apache.cocoon.acting and changed the sitemap.
Unfortunately neither worked eventhough the sitemap
matched the location of the class.  I know it is
accessing the class since it is looking for the
AbstractMultiAction class (it's superclass).  I am
running also the slide sample from the scratchpad
which has actions that use the AbstractMultiAction
class as well...but they works fine.  I am boggled
about this...could it have something to do with Thread
safety from the Avalon framework or some funny
classloading issue?

Thanks Again,
Julian


--- Marcus Crafter
[EMAIL PROTECTED] wrote:
 Hi Julian,

   Not sure what the problem is exactly, but your
 source file has
   your action in the package
 'org.apache.cocoon.acting', whereas your
   sitemap.xmap file says that is under
 'com.ethidium.cocoon.action'.

   Perhaps that's causing things to go a bit pear
 shaped. Hope that
   helps.

   Cheers,

   Marcus

 On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian
 Klein wrote:
 
  *ACTION JAVA
 CODE**
  /*
   * TaskAction.java
   *
   * Created on January 14, 2003, 12:16 PM
   */
  package org.apache.cocoon.acting;

 ...snip/...

 

***SITEMAP**
**

 ...snip/...

map:actions
 map:action name=eTask
 src=com.ethidium.cocoon.action.TaskAction/

 --
 .
  ,,$,  Marcus Crafter
 ;$'  ':Computer Systems Engineer
 $: :   ManageSoft GmbH
  $   o_)$$$:   82-84 Mainzer Landstrasse
  ;$,_/\ :'   60327 Frankfurt Germany
' /( 
\_'
   .
 :


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

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



=
Live simply so others may simply live.

-Ghandi

Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily

-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: AW: newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Julian Klein
Thanks, but the class is in the cocoon-2.1-dev.jar
under $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib.  I
tried moving it into $TOMCAT_HOME/common/lib, but
after that Cocoon would not even start...so based on
that result I did not put it on the machine's
CLASSPATH and just let TOMCAT load the classes from
the jar.

Thanks,
Julian

--- Marco Rolappe [EMAIL PROTECTED] wrote:
 the stacktrace says that the AbstractMultiAction
 can't be found.
 
 make sure that this class is in the classpath (it
 should be in the cocoon
 JAR, but you better check that out).
 
 -Ursprungliche Nachricht-
 Von:

[EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]Im
 Auftrag von Julian Klein
 Gesendet: Montag, 20. Januar 2003 22:27
 An: [EMAIL PROTECTED]
 Betreff: Re: newbie: creating a cocoon action using
 AbstractMultiAction
 
 
 Hey Marcus,
  Yeah I'm sorry, but I had fixed that (I jsut sent
 the
 old sitemap DUH).  You see I tried it in the
 original
 package of com.ethidium, but then thought my class
 should be in the cocoon dev jar so I moved it to
 org.apache.cocoon.acting and changed the sitemap.
 Unfortunately neither worked eventhough the sitemap
 matched the location of the class.  I know it is
 accessing the class since it is looking for the
 AbstractMultiAction class (it's superclass).  I am
 running also the slide sample from the scratchpad
 which has actions that use the AbstractMultiAction
 class as well...but they works fine.  I am boggled
 about this...could it have something to do with
 Thread
 safety from the Avalon framework or some funny
 classloading issue?
 
 Thanks Again,
 Julian
 
 
 --- Marcus Crafter
 [EMAIL PROTECTED] wrote:
  Hi Julian,
 
  Not sure what the problem is exactly, but your
  source file has
  your action in the package
  'org.apache.cocoon.acting', whereas your
  sitemap.xmap file says that is under
  'com.ethidium.cocoon.action'.
 
  Perhaps that's causing things to go a bit pear
  shaped. Hope that
  helps.
 
  Cheers,
 
  Marcus
 
  On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian
  Klein wrote:
  
   *ACTION JAVA
  CODE**
   /*
* TaskAction.java
*
* Created on January 14, 2003, 12:16 PM
*/
   package org.apache.cocoon.acting;
 
  ...snip/...
 
  
 

***SITEMAP**
 **
 
  ...snip/...
 
 map:actions
  map:action name=eTask
  src=com.ethidium.cocoon.action.TaskAction/
 
  --
  .
   ,,$,  Marcus Crafter
  ;$'  ':Computer Systems Engineer
  $: :   ManageSoft GmbH
   $   o_)$$$:   82-84 Mainzer Landstrasse
   ;$,_/\ :'   60327 Frankfurt Germany
 ' /( 
 \_'
.
  :
 
 

-
  Please check that your question  has not already
  been answered in the
  FAQ before posting.
  http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 =
 Live simply so others may simply live.
 
 -Ghandi
 
 Pluralitas non est ponenda sine neccesitate.
 Entities should not be multiplied unneccesarily
 
 -William of Occam
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.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]
 


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]




[documentation request] Re: newbie trying samples from: Cocoon:Building XML Apps... (answer)

2002-12-24 Thread Joerg Heinicke
Ray Tayek wrote:

it appears to work using:

cocoon-2.0.4/
j2sdk1.4.1_01/
jakarta-tomcat-4.1.18-LE-jdk14/

if you follow the instructions at 
http://xml.apache.org/cocoon/installing/index.html about copying the 
xalan and
xerces jars  (which are in lib, not lib/core).

Can somebody add this information (directory lib/core in source 
distribution or CVS vs. directory lib in WAR or after deploy in 
container) to the file? It was the second time somebody had a problem 
with it in the last week.

Joerg


-
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: newbie trying samples from: Cocoon: Building XML Apps... (answer)

2002-12-23 Thread Ray Tayek
At 09:49 AM 12/21/02 -0800, you wrote:

hi, newbie here trying to run the samples from the above book on linux.

dropped the war in to tomcat 4.0.1. with jdk1.4.1 and things went downhill 
fast.

finaly gave up and installed 1.3.1_03 and the tomcat off the book's cd. 
(3.3.? final or something like that). (that's what the book says to do). 
has anyone made the sample work? if so, what versions of jdk and tomcat 
were you using?

what versions of tomcat, jdk and jdkee would you recommend in general?


it appears to work using:

cocoon-2.0.4/
j2sdk1.4.1_01/
jakarta-tomcat-4.1.18-LE-jdk14/

if you follow the instructions at 
http://xml.apache.org/cocoon/installing/index.html about copying the xalan and
xerces jars  (which are in lib, not lib/core). i don't know about the jdbc 
issue since afaik it is not using any jdbc.

thanks

---
ray tayek http://home.attbi.com/~rtayek/ actively seeking mentoring or 
telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


-
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: newbie trying samples from: Cocoon: Building XML Apps...

2002-12-21 Thread Lajos Moczar
Hi Ray -

I hope your other book is mine  Jeremy's - Cocoon Developer's Handbook 
;) The easiest configuration I've found is Tomcat 4.0.5 or greater, with 
JDK 1.3.x. I have been able to drop Cocoon 2.0.3/2.0.4 into Tomcat 
4.0.5/4.0.6/4.1.12 without any problems. Just note that if you build 
2.0.4 yourself, be sure in include the scratchpad libs.

Regards,

Lajos


Ray Tayek wrote:
hi, newbie here trying to run the samples from the above book on linux.

dropped the war in to tomcat 4.0.1. with jdk1.4.1 and things went 
downhill fast.

finaly gave up and installed 1.3.1_03 and the tomcat off the book's cd. 
(3.3.? final or something like that). (that's what the book says to do). 
has anyone made the sample work? if so, what versions of jdk and tomcat 
were you using?

what versions of tomcat, jdk and jdkee would you recommend in general? 
(i have  another cocoon book coming or i can roll my own samples or use 
the one that come with the download?.

what is the easiest path to get started?

thanks

---
ray tayek http://home.attbi.com/~rtayek/ actively seeking mentoring or 
telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


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




--
galatea.com
Cocoon training, consulting  support


-
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: newbie trying samples from: Cocoon: Building XML Apps...

2002-12-21 Thread Ray Tayek
At 11:28 AM 12/21/02 -0700, you wrote:

Hi Ray -

I hope your other book is mine  Jeremy's - Cocoon Developer's Handbook ;)


no, but yours (and another are on the way from amazon). thanks to all of 
you who wrote these, they make learning new stuff like cocoon *much* easier.

The easiest configuration I've found is Tomcat 4.0.5 or greater, with JDK 
1.3.x. I have been able to drop Cocoon 2.0.3/2.0.4 into Tomcat 
4.0.5/4.0.6/4.1.12 without any problems. Just note that if you build 2.0.4 
yourself, be sure in include the scratchpad libs.

ok, will give it a try.

thanks



Ray Tayek wrote:

hi, newbie here trying to run the samples from the above book on linux.
dropped the war in to tomcat 4.0.1. with jdk1.4.1 and things went 
downhill fast.
finaly gave up and installed 1.3.1_03 and the tomcat off the book's cd. 
(3.3.? final or something like that). (that's what the book says to do). 
has anyone made the sample work? if so, what versions of jdk and tomcat 
were you using?
what versions of tomcat, jdk and jdkee would you recommend in general? (i 
have  another cocoon book coming or i can roll my own samples or use the 
one that come with the download?.
what is the easiest path to get started? ...

---
ray tayek http://home.attbi.com/~rtayek/ actively seeking mentoring or 
telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


-
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: newbie trying samples from: Cocoon: Building XML Apps...

2002-12-21 Thread Ray Tayek
At 10:46 AM 12/21/02 -0800, you wrote:

I've use the latest version of Jetty without any issues so far.  It does 
not require any funky copying of xml*.jars anywhere as they are loaded as 
application specific resources by default in the case of cocoon.

i am used to tomcat. i may give jetty a try if all else fails.

thanks


On Saturday, December 21, 2002, at 10:28  AM, Lajos Moczar wrote:


Hi Ray -

I hope your other book is mine  Jeremy's - Cocoon Developer's Handbook 
;) The easiest configuration I've found is Tomcat 4.0.5 or greater, with 
JDK 1.3.x. I have been able to drop Cocoon 2.0.3/2.0.4 into Tomcat 
4.0.5/4.0.6/4.1.12 without any problems. Just note that if you build 
2.0.4 yourself, be sure in include the scratchpad libs. ...

Ray Tayek wrote:
hi, newbie here trying to run the samples from the above book on linux.
dropped the war in to tomcat 4.0.1. with jdk1.4.1 and things went 
downhill fast.
finaly gave up and installed 1.3.1_03 and the tomcat off the book's cd. 
(3.3.? final or something like that). (that's what the book says to do). 
has anyone made the sample work? if so, what versions of jdk and tomcat 
were you using?
what versions of tomcat, jdk and jdkee would you recommend in general? 
(i have  another cocoon book coming or i can roll my own samples or use 
the one that come with the download?.
what is the easiest path to get started? ...

---
ray tayek http://home.attbi.com/~rtayek/ actively seeking mentoring or 
telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


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




Newbie Question - Sunshine sample problem

2002-11-28 Thread Gal Nitzan
Hi,

When I tried to login (guest,guest) to the sunspotdemo at:
http://localhost:8080/cocoon/sunspotdemo-portal

I get the following: 

---
Cocoon 2 - Internal server error
---

type fatal
message null
description java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet

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.SunRise.checkAuthentication(SunRise.java:766)
at
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122)
at
org.apache.cocoon.www.sitemap_xmap.matchN4004A5(/usr/local/jakarta-tomcat-5.0.0/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5363)
at
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-tomcat-5.0.0/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3330)
at
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-tomcat-5.0.0/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)



Machine P4 - 2GHZ

My Environment (extracted from cocoon status):
classpath
* /usr/java/j2sdk1.4.1_01/lib/tools.jar
* /usr/local/jakarta-tomcat-5.0.0/bin/bootstrap.jar

memory
total 47.5 MB ( 49811456 )
free 1558.64 KB ( 1596048 )

jre
version 1.4.1_01
java-vendor Sun Microsystems Inc.

operating-system
name Linux
architecture i386
version 2.4.18-18.8.0

Store-Janitor
- org.apache.cocoon.components.store.MRUMemoryStore (hash = 0xe0e515)

Any Help would be appreciated,

TIA,

Gal Nitzan





-
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: Newbie advice for Mac OS X install?

2002-11-25 Thread Daniel Smith
Thank you both very much. I can't wait to try it. Have a nice week all.

Daniel



From: Deepak Mehta [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Newbie advice for Mac OS X install?
Date: Sun, 24 Nov 2002 21:46:54 +0100

which is a symlink to 
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home

which is also where the symlink /Library/Java/Home points too... this one 
just looks more simpler!

Dp

On Sunday, Nov 24, 2002, at 19:31 Europe/Brussels, Thor Heinrichs-Wolpert 
wrote:

My setting is a little different,
$JAVA_HOME is set to /System/Library/Frameworks/JavaVM.framework/Home

I also use the 1.3.1 VM under OSX 10.2

Cheers,
Thor HW

On Thursday, November 21, 2002, at 02:54  AM, Deepak Mehta wrote:


Daniel,

both versions of MacOS X work perfectly. Used any Tomcat/Cocoon 
combination that is supported. I personally use Tomcat 4.0.6/Cocoon 2.0.3 
as a webservice on an EJB container.

As long as you stick to the JavaVM 1.3.1 which is standard on MacOS X 
Server and Client 10.1 or 10.2. I have not yet tried the JavaVM 1.4.1 DP5 
which is available... I'd rather wait for the final release!

Just make sure that your $JAVA_HOME is set to /Library/Java/Home

Regards
Dp

On Thursday, Nov 21, 2002, at 11:42 Europe/Brussels, Daniel Smith wrote:

Hi all. My first post here. Thanks much for the existence of this 
project and list. I checked the archives and there was some 
documentation on OS X, but I wondered if anyone could give me any update 
who is currently running on any versions of this? Would any particular 
version be better to use? 10.1 or 10.2, or the basic Server or Jaguar 
Server? I have them all, so I thought it best to check first. Thanks a 
lot.

Yours,

Daniel

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


--
Sooner or later you must pay for your sins.

Those who have already paid may disregard this message


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

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





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



--
   __ |
  _ww   _a+D |
   y#,  _r^ # _*^  y` |
  q0 0 a   W*`F      |
   ;  #^ Mw`  __`. .  4-~~^^` |
  _  _P   ` /'^   `www=.  |
, $  +F`q | Deepak 'Dp' Mehta
K ] ^K`   | [EMAIL PROTECTED]
  , #_. ___ r],   | http://www.dp.com/
  _*.^'.__dP^^~#,  ,_ *,  | GSM: +32-475-612620
  ^b/ _ `` _F   ]  ]_ |
   '___  '   ~~^]   [ |
   :` ]b_~k_   ,`  yl |
 #P`*a__   __a~   z~` |
 #L _  ^--~^`   ,/|
  ~-vww*v_   _/` |
  ^q_ _x|
   __#my..___p/`mma   |
   _awP,`,^-_^


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



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


-
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: Newbie advice for Mac OS X install?

2002-11-25 Thread Thor Heinrichs-Wolpert
Yes, they are symlinks, but not necessarily to  
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home.

Both are symlinks to your current JVM, either 1.3.1 or 1.4.1 (if you're  
using DP5).  I flick back and forth between the 2 to check on a few  
things.

Cheers,
Thor HW

On Sunday, November 24, 2002, at 12:46  PM, Deepak Mehta wrote:

which is a symlink to  
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home

which is also where the symlink /Library/Java/Home points too... this  
one just looks more simpler!

Dp

On Sunday, Nov 24, 2002, at 19:31 Europe/Brussels, Thor  
Heinrichs-Wolpert wrote:

My setting is a little different,
$JAVA_HOME is set to /System/Library/Frameworks/JavaVM.framework/Home

I also use the 1.3.1 VM under OSX 10.2

Cheers,
Thor HW

On Thursday, November 21, 2002, at 02:54  AM, Deepak Mehta wrote:


Daniel,

both versions of MacOS X work perfectly. Used any Tomcat/Cocoon  
combination that is supported. I personally use Tomcat 4.0.6/Cocoon  
2.0.3 as a webservice on an EJB container.

As long as you stick to the JavaVM 1.3.1 which is standard on MacOS  
X Server and Client 10.1 or 10.2. I have not yet tried the JavaVM  
1.4.1 DP5 which is available... I'd rather wait for the final  
release!

Just make sure that your $JAVA_HOME is set to /Library/Java/Home

Regards
Dp

On Thursday, Nov 21, 2002, at 11:42 Europe/Brussels, Daniel Smith  
wrote:

Hi all. My first post here. Thanks much for the existence of this  
project and list. I checked the archives and there was some  
documentation on OS X, but I wondered if anyone could give me any  
update who is currently running on any versions of this? Would any  
particular version be better to use? 10.1 or 10.2, or the basic  
Server or Jaguar Server? I have them all, so I thought it best to  
check first. Thanks a lot.

Yours,

Daniel

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


--
Sooner or later you must pay for your sins.

Those who have already paid may disregard this message


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

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





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



--
   __ |
  _ww   _a+D |
   y#,  _r^ # _*^  y` |
  q0 0 a   W*`F      |
   ;  #^ Mw`  __`. .  4-~~^^` |
  _  _P   ` /'^   `www=.  |
, $  +F`q | Deepak 'Dp' Mehta
K ] ^K`   | [EMAIL PROTECTED]
  , #_. ___ r],   | http://www.dp.com/
  _*.^'.__dP^^~#,  ,_ *,  | GSM: +32-475-612620
  ^b/ _ `` _F   ]  ]_ |
   '___  '   ~~^]   [ |
   :` ]b_~k_   ,`  yl |
 #P`*a__   __a~   z~` |
 #L _  ^--~^`   ,/|
  ~-vww*v_   _/` |
  ^q_ _x|
   __#my..___p/`mma   |
   _awP,`,^-_^


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

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





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

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




  1   2   3   4   >