Re: Newbie FAQ (was Re: Just starting COCOON

2002-02-18 Thread Peter Flynn

Peter Schwenke writes:
 There has been discussions on the list that it is better to stick
 with Tomcat 4.0.2 for now.
 (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101363193404329w=2)

But that's what I'm trying to install.

 Is the war file OK - Can you do a jar tvf on it? Permissions OK etc

Yep. 

-rw-r--r--1 tomcat4  tomcat4  12052601 Feb 15 16:12 cocoon.war

  I and some co-workers have also been trying to get Cocoon
  running. I was recently put on a different project, but my
  co-workers report that downgrading to Tomcat 4.0.1 made things
  work. You might try that.

Ah. Should that have read 4.0.1 above? Many thanks, I'll try.

///Peter


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

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




Re: Newbie FAQ (was Re: Just starting COCOON

2002-02-18 Thread Peter Flynn

Found it. 4.0.1 only delivers and init.d script, no link.
Started up fine, but it still ignores cocoon.war

What *is* the trick to make tomcat recognise cocoon.war?
Why the mystery?

///Peter

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

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




Trouble with actions

2002-02-18 Thread Henrik Hofmann
Title: Message



Hi,

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

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

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

This works 
perfectly



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

This works fine 
too




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

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


I also have a minor 
problem.

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

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

Thnx in 
advance


Re: Trouble with actions

2002-02-18 Thread Torsten Curdt

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

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

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

 I also have a minor problem.

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

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

Where does he tell?
--
Torsten


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

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




RE: Announce: Portal and Authentication Components Donated

2002-02-18 Thread Nael Mohammad
Title: RE: Announce: Portal and Authentication Components Donated





Can you provide the CVS link for this?


-Original Message-
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 18, 2002 2:37 AM
To: Cocoon-Dev; Cocoon-Users
Subject: Announce: Portal and Authentication Components Donated



Hi Cocoon'ers!


We are proud to announce the donation of the portal and authentication components into the scratchpad section of the current CVS. As previously mentioned, these components were originally written for a product offering we have that extends Cocoon with additional functionality.

The donation consists of the actual components, an example portal (startable from the samples page) that uses the components and documentation (in the developers section).

For a first look at what you can do with the portal - look here: http://www.need-a-cake.com/stories/2002/02/14/cocoonPortalFirstLook.html

We look forward to your comments and seeing some great portals being built with Cocoon!


Carsten Ziegeler / Matthew Langham


Open Source Group sunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
www.s-und-n.de mailto: [EMAIL PROTECTED]




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

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





RE: Trouble with actions

2002-02-18 Thread Henrik Hofmann



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

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

I copied the wrong error message.

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

When I use it without the action it works fine.





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



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

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




RE: Trouble with actions

2002-02-18 Thread Torsten Curdt

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

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

 I copied the wrong error message.

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

 When I use it without the action it works fine.

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

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

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


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

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




RE: Announce: Portal and Authentication Components Donated

2002-02-18 Thread Carsten Ziegeler

Its the usual CVS access for Apache Cocoon:

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login (password
anoncvs)
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout xml-cocoon2
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic logout

Carsten


-Original Message-
From: Nael Mohammad [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 11:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Announce: Portal and Authentication Components Donated


Can you provide the CVS link for this?
-Original Message-
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 2:37 AM
To: Cocoon-Dev; Cocoon-Users
Subject: Announce: Portal and Authentication Components Donated


Hi Cocoon'ers!
We are proud to announce the donation of the portal and authentication
components into the scratchpad section of the current CVS. As previously
mentioned, these components were originally written for a product offering
we have that extends Cocoon with additional functionality.
The donation consists of the actual components, an example portal (startable
from the samples page) that uses the components and documentation (in the
developers section).
For a first look at what you can do with the portal - look here:
http://www.need-a-cake.com/stories/2002/02/14/cocoonPortalFirstLook.html
We look forward to your comments and seeing some great portals being built
with Cocoon!
Carsten Ziegeler / Matthew Langham
Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
www.s-und-n.de  mailto: [EMAIL PROTECTED]



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


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

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




Re: Carriage returns

2002-02-18 Thread Jean-Philippe Courson

Vadim Gritsenko wrote:
From: Jean-Philippe Courson [mailto:[EMAIL PROTECTED]]

Hi,

Does anybody know how to tell cocoon not to add carriage returns

 during
 
xsl transformation ?

For example when in an xsl file you write :

alert('xsl:value-of select=message/');

You obtain

alert('
messageValue
');

that causes js errors.

  
 Cocoon has nothing to do with it. Your message tag has return
 characters inside it. Read on XSLT, there is a link on Cocoon website to
 the XSLT mailing list and FAQ (IIRC)
 
 Vadim

Effectivelly, carriage returns were in my XSP :-(

Thanks for the reply.

JP


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

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




Truble with actions 2

2002-02-18 Thread Henrik Hofmann
Title: Message



I can't use action 
sets and don't know why.


 
map:actions map:action 
name="LogOff" 
src="com.creon.webapp.Cocoon.Actions.LogOffWebUser"/ 
map:action name="LogOn" 
src="com.creon.webapp.Cocoon.Actions.LogOnAction"/ 
map:action name="CheckLogon" 
src="com.creon.webapp.Cocoon.Actions.CheckLogonAction"/ 
map:action name="SessionCreator" 
src="com.creon.webapp.Cocoon.Actions.SessionCreator"/ 
/map:actions   
map:action-sets map:action-set 
name="creon" map:act type="LogOn" 
action="LogOn"/ map:act type="LogOff" 
action="LogOff"/ 
/map:action-set 
/map:action-sets


This is how i want 
to use them

 map:match 
pattern="search.html"  
  map:act 
set="creon"  
map:act 
type="CheckLogon" 
map:generate 
src="f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml" 
type="serverpages"/ 
map:transform 
src="f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml"/ 
map:serialize 
type="html"/ 
/map:act 
/map:act
 
/map:match


But it always gives 
me this error message and i don't know what to do.



  
  

  

org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap:
Line 640, column 34:  Method action_set_creon(org.apache.cocoon.sitemap.SitemapRedirector, java.lang.String, java.util.List, org.apache.cocoon.environment.Environment, java.util.Map, java.lang.String, org.apache.avalon.framework.parameters.Parameters) not found in class org.apache.cocoon.www.creon.sitemap_xmap.
Line 0, column 0: 
Note: F:\Webserver\tomcat\work\localhost_8080%2Fcocoon\cocoon-files\org\apache\cocoon\www\creon\sitemap_xmap.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.
1 error, 1 warning


 
/map:match


RE: Truble with actions 2

2002-02-18 Thread Matthew Langham

Hi Henrik,

I am not sure what exactly you are trying to do but you can use the
action-set in the pipeline as so;

map:act set=creon
map:generate
src=f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml
type=serverpages/
map:transform
src=f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml/
map:serialize type=html/
/map:act

And then use the cocoon-action in your form with a value of LogOn etc.
to trigger the actual Action that is called.

Hope this helps

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=


-Original Message-
From: Henrik Hofmann [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 1:35 PM
To: [EMAIL PROTECTED]
Subject: Truble with actions 2


I can't use action sets and don't know why.


  map:actions
  map:action name=LogOff
src=com.creon.webapp.Cocoon.Actions.LogOffWebUser/
   map:action name=LogOn
src=com.creon.webapp.Cocoon.Actions.LogOnAction/
   map:action name=CheckLogon
src=com.creon.webapp.Cocoon.Actions.CheckLogonAction/
   map:action name=SessionCreator
src=com.creon.webapp.Cocoon.Actions.SessionCreator/
  /map:actions


   map:action-sets
map:action-set name=creon
 map:act type=LogOn action=LogOn/
 map:act type=LogOff action=LogOff/
/map:action-set
   /map:action-sets


This is how i want to use them

map:match pattern=search.html

  map:act set=creon
map:act type=CheckLogon
map:generate
src=f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml
type=serverpages/
map:transform
src=f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml/
map:serialize type=html/
   /map:act
/map:act
/map:match


But it always gives me this error message and i don't know what to do.


org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 640, column 34:  Method
action_set_creon(org.apache.cocoon.sitemap.SitemapRedirector,
java.lang.String, java.util.List, org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.String,
org.apache.avalon.framework.parameters.Parameters) not found in class
org.apache.cocoon.www.creon.sitemap_xmap.
Line 0, column 0:
Note:
F:\Webserver\tomcat\work\localhost_8080%2Fcocoon\cocoon-files\org\apache\coc
oon\www\creon\sitemap_xmap.java uses or overrides a deprecated API.
Recompile with -deprecation for details.
1 error, 1 warning





/map:match


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

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




different error???

2002-02-18 Thread Anthony Diodato

Error found handling the request

java.lang.Exception: XSP Java Compiler: Compilation failed for
_postCase.java
180: Identifier expected.
document.createTextNode(\t\n )

Im not really to sure about this one

Anthony Diodato
Webmaster - IT
Prophet 21, Inc.
19 West College Avenue
Yardley, PA 19067
1-800-776-7438, ext. 4600
Fax: 215-321-8014 
[EMAIL PROTECTED]
http://www.p21.com/
Prophet 21 -- Powering the Distribution Industry for the Digital Age 

For the latest press releases from Prophet 21 --
http://www.p21.com/press/press.html 
*   2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise
(E2E) Commerce 
*   2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available
*   2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim
For the latest articles on Prophet 21
http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate.
htm 
http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm 
http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm




Visit our website at http://www.p21.com/visit 
The information in this e-mail is confidential and may contain legally
privileged information.  It is intended solely for the person or entity to
which it is addressed.  Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, action taken, or action omitted to be taken in
reliance on it, is prohibited and may be unlawful.  If you received this
e-mail in error, please contact the sender and delete the material from any
computer. 



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

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




RE: Cocoon-based CMS?

2002-02-18 Thread Matthew Langham


You will find this very timely and interesting:

http://www.need-a-cake.com/stories/2002/02/14/cocoonPortalFirstLook.html


Thanks for the plug :-).

Yes we donated the components today. So you can check them out via CVS.
Probably currently more at home in cocoon-dev though.

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=


-Original Message-
From: Brian Blakeley [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 4:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon-based CMS?


You will find this very timely and interesting:

http://www.need-a-cake.com/stories/2002/02/14/cocoonPortalFirstLook.html

There are a number of reference in the archives that will point you to some
projects.

Brian




- Original Message -
From: Alessandro Bottoni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 18, 2002 9:57 AM
Subject: Cocoon-based CMS?


 Cocoon is a wonderful platform for developing sophisticated web
 applications and now seems to be quite mature and stable.

 I wonder if anybody has ever evaluated the possibility to use Cocoon for
 developing a content management system, a portal framework or an
 application server (call it as you like most) like ezPublish
 (http://developer.ez.no), Midgard (http://www.midgard-project.org/), Zope
 (http://www.zope.org), PHPNuke (http://www.phpnuke.org) or PostNuke
 (http://www.postnuke.com/). A framework like that would make dramatically
 easier to develop a complete, working web application with Cocoon.

 Any info? Any suggestion?

 Thanks in advance

 Alessandro Bottoni


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

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



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

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


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

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




org.xml.sax.SAXParseException

2002-02-18 Thread Anthony Diodato

How would you handle this problem.
When I access a page that should be a 404 error, I get the following error.
What I would like to do is throw it to a 404 html page.
Any suggestions would be greatly appreciated.
My error is below.



Error found handling the request.
org.xml.sax.SAXParseException: File
file:C:/jakarta-tomcat-3.2.4/webapps/cocoon/yCust/index.xml not found.
at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.java:512)
at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:304)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:899)
at
org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:85)
at
org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
a:78)
at org.apache.cocoon.Engine.handle(Engine.java:359)
at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
6)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


Anthony Diodato
Webmaster - IT
Prophet 21, Inc.
19 West College Avenue
Yardley, PA 19067
1-800-776-7438, ext. 4600
Fax: 215-321-8014 
[EMAIL PROTECTED]
http://www.p21.com/
Prophet 21 -- Powering the Distribution Industry for the Digital Age 

For the latest press releases from Prophet 21 --
http://www.p21.com/press/press.html 
*   2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise
(E2E) Commerce 
*   2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available
*   2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim
For the latest articles on Prophet 21
http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate.
htm 
http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm 
http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm




Visit our website at http://www.p21.com/visit 
The information in this e-mail is confidential and may contain legally
privileged information.  It is intended solely for the person or entity to
which it is addressed.  Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, action taken, or action omitted to be taken in
reliance on it, is prohibited and may be unlawful.  If you received this
e-mail in error, please contact the sender and delete the material from any
computer. 



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

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




Cocoon Portal: Great!

2002-02-18 Thread Alessandro Bottoni

Please, allow me to congratulate Matthew Langham and all the involved 
people at http://www.need-a-cake.com/ for the development of the Cocoon 
Portal and its donation to the Cocoon community. Very nice software and 
very nice distribution policy!

I will try it at once and, later, I will try to contribute back some 
module, if possible. I hope this app will collect a lot of enthusiastic 
programmers. It is the kind of application we need for making Cocoon widely 
accepted by the community of real-world web developers (you know: little 
time + a lot of work = little time to study cocoon...).

A few notes:
1) A good documentation (and a clean plug-in architecture) is required 
for having many programmers working on it and its modules. Please, make 
available some developer documentation asap.

2) For the people willing to develop a module: a good idea of which 
components can be useful in a generic portal, and how they can be designed, 
can be seen at the ezPublish web site (http://developer.ez.no). That CMS 
has many well focused and well designed modules we could/should port to 
Cocoon portal.

3) It seems that the portal is intended to became part of the standard 
Cocoon distribution. That is a great idea! Better again: use it as the 
default application to be run just after the installation. It will make 
clear what can be done with Cocoon and it will supply a very good starting 
point for the user, no matter what he have to build.

Alessandro Bottoni


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

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




RE: Cocoon Portal: Great!

2002-02-18 Thread Matthew Langham

Hi Alessandro,

thanks for the feedback. Just a couple of remarks:


Please, allow me to congratulate Matthew Langham and all the involved
people at http://www.need-a-cake.com/ for the development of the Cocoon
Portal and its donation to the Cocoon community. Very nice software and
very nice distribution policy!

The link you have listed is ONLY my weblog!

The components were developed as part of a product called sunShine. Carsten
and I work for a software company here in Paderborn, Germany that pays us -
so please do not confuse this.


1) A good documentation (and a clean plug-in architecture) is required
for having many programmers working on it and its modules. Please, make
available some developer documentation asap.

Ummm... documentation is provided. Also there is a clean architecture for
adding content to the portal with sunlets.


Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=



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

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




Re: Cocoon 2.0.1 + Tomcat 4.0 + JDK 1.4

2002-02-18 Thread Daniel Schneider

 Richard Korthuis wrote:
 
 Hello,
 
 I have already seen several posts about getting Cocoon 2.0 to work with Tomcat 4.0 
and
 JDK 1.4, but I haven't found one that had a solution to the error everyone gets (The
 major.minor version '48.0' is too recent for this tool to understand.)
 Is there already a fix for this problem?
 
 Regards
 
 Richard Korthuis

I got cocoon SOURCE and made a fresh cocoon.jar.

(See with a browser that can read client XML:
  http://tecfa.unige.ch/guides/xml/cocoon/install-notes-2-simple.xml
)

- Daniel

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

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




Having a function in a XSP.

2002-02-18 Thread Olivier Rossel

Supposing I repaet the same XSP fragment several times in my XSP page.
And I wish to factorize that with a function which receives 
parameters,  and
is a kind of XSP fragment.

Is it possible?
Can I create an inner class with methods inside a XSP?


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

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




Re: Cocoon 2.0.1 + Tomcat 4.0 + JDK 1.4

2002-02-18 Thread Bert Van Kets

There's an error opening the file.
As far as I can tell you've got an  on line 1 thant's not part of a tag.
Bert
At 17:38 18/02/2002 +0100, you wrote:
  Richard Korthuis wrote:
 
  Hello,
 
  I have already seen several posts about getting Cocoon 2.0 to work with 
 Tomcat 4.0 and
  JDK 1.4, but I haven't found one that had a solution to the error 
 everyone gets (The
  major.minor version '48.0' is too recent for this tool to understand.)
  Is there already a fix for this problem?
 
  Regards
 
  Richard Korthuis

I got cocoon SOURCE and made a fresh cocoon.jar.

(See with a browser that can read client XML:
   http://tecfa.unige.ch/guides/xml/cocoon/install-notes-2-simple.xml
)

- Daniel

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

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


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

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




RE: Cocoon-based CMS?

2002-02-18 Thread Luca Morandini

Alessandro,

back in January there was some talk about developing a CMS on Cocoon: just
go to the mail archives and search for CMS to find those threads.

Best regards,

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


 -Original Message-
 From: Alessandro Bottoni [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 18, 2002 3:57 PM
 To: [EMAIL PROTECTED]
 Subject: Cocoon-based CMS?


 Cocoon is a wonderful platform for developing sophisticated web
 applications and now seems to be quite mature and stable.

 I wonder if anybody has ever evaluated the possibility to use Cocoon for
 developing a content management system, a portal framework or an
 application server (call it as you like most) like ezPublish
 (http://developer.ez.no), Midgard (http://www.midgard-project.org/), Zope
 (http://www.zope.org), PHPNuke (http://www.phpnuke.org) or PostNuke
 (http://www.postnuke.com/). A framework like that would make dramatically
 easier to develop a complete, working web application with Cocoon.

 Any info? Any suggestion?

 Thanks in advance

 Alessandro Bottoni


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

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



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

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




Newbie question about patterns in sitemap.xmap

2002-02-18 Thread George Agnelli

Hi,

I couldn't find an answer to this question in the archives or in the Cocoon
docs so apologies if it's a dumb one.

I'm simply trying to match a filename pattern in the sitemap.xmap for
testing purposes. The file names could be like this Item1.html, Item2.html
and so on, or item1.html, item2.html and so on. In grep I can match these
patterns using [Ii]tem[0-9*].html but when I use this in the sitemap like
this map:match pattern=xslt/[Ii]tem[0-9*].html it can't find the files.
Is it possible to use these kind of expressions or do I need to try
something else?

Thanks

George



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

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




Cocoon2: select with 'accepts()'

2002-02-18 Thread Johannes Koch

Hi there,

in [1] Stefano Mazzocchi gives the following example:

map:match pattern=images/logo
 map:generate src=./images/logo.svg/
 map:select type=browser
  map:when test=accepts('image/png')
   map:serialize type=svg2png/
  /map:when
  map:otherwise
   map:serialize type=svg2jpg/
  /map:otherwise
 /map:select
/map:match

He uses 'accepts()' in the value for the test attribute.

I tried the following with no success (Cocoon 2.0 on Tomcat 4.0, Win NT
4.0 SP6):

map:match pattern=test/
  map:generate src=docs/test/index.xml/
  map:select type=browser
map:when test=accepts('text/vnd.wap.wml')
  map:transform src=stylesheets/test/wap/test.xsl/
  map:serialize type=wap/
/map:when
map:otherwise
  map:transform src=stylesheets/test/screen/test.xsl/
  map:serialize type=html/
/map:otherwise
  /map:select
/map:match

I used the Nokia Mobile Toolkit. The string 'text/vnd.wap.wml' is part
of the Accept Header. But the HTML version was served. What is wrong
with my example?

[1] http://www.xml.com/lpt/a/2002/02/13/cocoon2.html
-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355

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

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




Re: Newbie question about patterns in sitemap.xmap

2002-02-18 Thread Tony Collen

George Agnelli wrote:

Hi,

I couldn't find an answer to this question in the archives or in the Cocoon
docs so apologies if it's a dumb one.

I'm simply trying to match a filename pattern in the sitemap.xmap for
testing purposes. The file names could be like this Item1.html, Item2.html
and so on, or item1.html, item2.html and so on. In grep I can match these
patterns using [Ii]tem[0-9*].html but when I use this in the sitemap like
this map:match pattern=xslt/[Ii]tem[0-9*].html it can't find the files.
Is it possible to use these kind of expressions or do I need to try
something else?

Thanks

George


Try:

map:match type=regexp pattern=xslt/[Ii]tem[0-9*].html

You need to tell Cocoon that you're using a Regular Expression instead 
of a normal pattern.

Hope this helps..

Tony


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

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




RE: Cocoon2: select with 'accepts()'

2002-02-18 Thread Sean Malone

You should use

 map:when test=wap

 this will be true when you open the url using the Nokia emulator
 look at the default selector in sitemap.xmap

-Original Message-
From: Johannes Koch [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 19:20
To: cocoon-users Mailingliste
Subject: Cocoon2: select with 'accepts()'


Hi there,

in [1] Stefano Mazzocchi gives the following example:

map:match pattern=images/logo
 map:generate src=./images/logo.svg/
 map:select type=browser
  map:when test=accepts('image/png')
   map:serialize type=svg2png/
  /map:when
  map:otherwise
   map:serialize type=svg2jpg/
  /map:otherwise
 /map:select
/map:match

He uses 'accepts()' in the value for the test attribute.

I tried the following with no success (Cocoon 2.0 on Tomcat 4.0, Win NT
4.0 SP6):

map:match pattern=test/
  map:generate src=docs/test/index.xml/
  map:select type=browser
map:when test=accepts('text/vnd.wap.wml')
  map:transform src=stylesheets/test/wap/test.xsl/
  map:serialize type=wap/
/map:when
map:otherwise
  map:transform src=stylesheets/test/screen/test.xsl/
  map:serialize type=html/
/map:otherwise
  /map:select
/map:match

I used the Nokia Mobile Toolkit. The string 'text/vnd.wap.wml' is part
of the Accept Header. But the HTML version was served. What is wrong
with my example?

[1] http://www.xml.com/lpt/a/2002/02/13/cocoon2.html
--
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355

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

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



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

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




[Act] DatabaseAddAction, uploading binary content and DatabaseReader

2002-02-18 Thread Pascal Davoust

Hi all,

I'm trying to use the DatabaseAddAction to insert/update a record containing
a blob (an 'Image' in SQL Svr world) which content must be specified by a
file uploaded by the user (pretty common situation, right?). This is
obviously an image.

So I've had a look at the xsp/upload example, and tried to use the
mentionned action. I'm able to store something in the Blob (but quite
frankly I'm almost sure that it's not correct, it doesn't have the correct
size).

Then I try to get the Blob as an image using the DatabaseReader, but I'm
unable to get it working.

I didn't find anything in the mailing list archive, and the documentation
for the DatabaseReader is quite thin (the source code looks for parameter
'use-connection', for instance, and it's not mentionned at all in the
JavaDoc).

I'd be grateful if somebody could share a code snippet, first to create the
record with the content of the uploaded file, and second to read the record
back and serve it as an image.

Thanks in advance,

Pascal.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

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




RE: Cocoon Portal: Great!

2002-02-18 Thread Chitharanjan Das

Hello Mathew,
Could you please provide sitemap entries for Sunlets and some
examples to demonstrate sunlets.

Thanks in advance,
Chiths



Hi Alessandro,

thanks for the feedback. Just a couple of remarks:


Please, allow me to congratulate Matthew Langham and all the involved
people at http://www.need-a-cake.com/ for the development of the Cocoon
Portal and its donation to the Cocoon community. Very nice software and
very nice distribution policy!

The link you have listed is ONLY my weblog!

The components were developed as part of a product called sunShine.
Carsten
and I work for a software company here in Paderborn, Germany that pays
us -
so please do not confuse this.


1) A good documentation (and a clean plug-in architecture) is required
for having many programmers working on it and its modules. Please, make
available some developer documentation asap.

Ummm... documentation is provided. Also there is a clean architecture
for
adding content to the portal with sunlets.


Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=



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

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





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

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




Re: Having a function in a XSP.

2002-02-18 Thread Nicola Ken Barozzi

From: Olivier Rossel [EMAIL PROTECTED]

 Supposing I repeat the same XSP fragment several times in my XSP page.
 And I wish to factorize that with a function which receives
 parameters,  and
 is a kind of XSP fragment.
 Is it possible?

Taglibs have this role, to become libraries of commonly used xsp fragments.
But they are not functions, they behave similarly to macros AFAIK.

Taglibs are basically stylesheets that are applied to your XSP before it
gets compiled. This means that you cannot use taglibs as functions that
recieve live data; you can call taglibs only with predefined parameters. A
common way is to use attributes.

What can be done, is passing code fragments, so that the taglib uses those
to get live data.
I think that call-template can help you in calling taglibs with parameters.

A simple way of doing taglibs is to transform your xsp with your taglib
using Xalan and checking that the resulting file is the xsp that you want;
it's the xsp that gets compiled.

 Can I create an inner class with methods inside a XSP?

Don't think so. All XSP code goes in the resulting Generator's generate()
method. What you should do IMHO is to use helper classes.

For more information on taglibs, I suggest you to look at the cocoon builtin
taglibs in the sourcecode.

--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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

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