RE: Cocoon 2 international language support

2002-01-11 Thread Alex Kachanov

How can I make Cocoon insert charset information in the header of the response?

Right now it just gives 

Content-Type: text/x-hdml

I want 

Content-Type: text/x-hdml; charset=shift_jis



with best wishes
Alexander Kachanov

-
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: JBuilder Cocoon2

2002-01-11 Thread Nicola Ken Barozzi


- Original Message -
From: Wap Brunei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 3:15 AM
Subject: JBuilder Cocoon2


 Could anyone tell me how to setup Cocoon2 in JBuilder5 and JBuilder5 do
not
 include .xmap and xconf file. Can i just drop the cocoon.war generated by
 JBuilder5 to work with Tomcat 4.0?

JBuilder doesn't copy files that it doesn't recognize as important to the
build in the build dir.
Maybe adding the xmap and xconf file types to the config of JBuilder should
do it.
Look at the JBuilder community faqs in the www.borland.com site to have more
insight on this.

--
Nicola Ken Barozzi [EMAIL PROTECTED]

These are the days of miracle and wonder...
  ...so don't cry baby, don't cry...
  Paul Simon



smime.p7s
Description: application/pkcs7-signature


XHTML

2002-01-11 Thread sxk99c

How do I output XHTML from cocoon? Is it a matter of changing the
serializer?

Bobby Koya




-
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 on JRun 3.0 installation problem

2002-01-11 Thread Torsten Curdt


Just a few days ago someone posted a JRun installation instruction.
You might want to search in the archieves.
--
Torsten

On Thu, 10 Jan 2002, Charles Levy wrote:

 I am getting the following error message when running the default
 Cocoon2 Web application on JRun 3.0.  I would very much appreciate
 help with this problem.  Thank you in advance.  Chareles Levy

 500 Internal Server Error
 /cocoon/:

 javax.servlet.ServletException: javax.xml.parsers.SAXParser: method
 getXMLReader()Lorg/xml/sax/XMLReader; not found
 java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method
 getXMLReader()Lorg/xml/sax/XMLReader; not found
   at
 org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.
 (DefaultConfigurationBuilder.java:37)
   at
 org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:
 433)
   at
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
   at
 allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServlet
 Loader.java, Compiled Code)
   at
 allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServlet
 Loader.java:190)
   at
 allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.j
 ava:177)
   at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
   at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
   at
 allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatch
 er.java:88)
   at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
   at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
   at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
   at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
   at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)


-
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: RE: Cocoon 2 international language support

2002-01-11 Thread YANG Qiandong

Change HTML serializer encoding setting in cocoon.xmap:

   map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
 encodingyouencoding/encoding
   /map:serializer

  thus, HTML returned from C2 has correct charset information:

META http-equiv=Content-Type content=text/html; charset=youencoding

How can I make Cocoon insert charset information in the header of the response?

Right now it just gives 

Content-Type: text/x-hdml

I want 

Content-Type: text/x-hdml; charset=shift_jis



with best wishes
Alexander Kachanov





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

2002-01-11 Thread david . greaves

I believe that you should serialise with type=xml

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 11 January 2002 08:47
 To: [EMAIL PROTECTED]
 Subject: XHTML
 
 
 How do I output XHTML from cocoon? Is it a matter of changing the
 serializer?
 
 Bobby Koya
 
 
 
 
 -
 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]




dynamic sitemap ?

2002-01-11 Thread Robert Koberg

I see from some archives that SM does not like dynamic sitemaps. My tool
needs dynamic sitemaps.  Would cocoon be the wrong choice? I mean does the
burden of recompiling the sitemap on each update make it impractical?

thanks,
-Rob


-
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: RE: Cocoon 2 international language support

2002-01-11 Thread Alex Kachanov

I do not need it in meta
I need it in HTTP header



-Original Message-
From: YANG Qiandong [mailto:[EMAIL PROTECTED]]
Sent: 11 §ñ§ß§Ó§Ñ§â§ñ 2002 §Ô. 18:46
To: [EMAIL PROTECTED]
Subject: Re: RE: Cocoon 2 international language support


Change HTML serializer encoding setting in cocoon.xmap:

   map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
 encodingyouencoding/encoding
   /map:serializer

  thus, HTML returned from C2 has correct charset information:

META http-equiv=Content-Type content=text/html; charset=youencoding

How can I make Cocoon insert charset information in the header of the response?

Right now it just gives 

Content-Type: text/x-hdml

I want 

Content-Type: text/x-hdml; charset=shift_jis



with best wishes
Alexander Kachanov





-
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: dynamic sitemap ?

2002-01-11 Thread david . greaves

Do you need a dynamic sitemap or a dynamic site structure?

The sitemap is (becomes) HTTP request-response mapping code.
It needs recompiling for each change to the sitemap.xmap file - a massive
overhead on a per-request basis (!)
You can include code that interrogates a dynamic system and influence the
response - this may be what you mean ? :)

David


 -Original Message-
 From: Robert Koberg [mailto:[EMAIL PROTECTED]]
 Sent: 11 January 2002 11:44
 To: cocoon-users
 Subject: dynamic sitemap ?
 
 
 I see from some archives that SM does not like dynamic 
 sitemaps. My tool
 needs dynamic sitemaps.  Would cocoon be the wrong choice? I 
 mean does the
 burden of recompiling the sitemap on each update make it impractical?
 
 thanks,
 -Rob
 
 
 -
 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: Use request parameter selection in pipeline

2002-01-11 Thread RAJU RAO


Thanks, Vadim.

It works.

Raju


   
  
Vadim Gritsenko  
  
vadim.gritsenko@veTo: [EMAIL PROTECTED]   
  
rizon.net cc: 
  
   Subject: RE: Use request parameter 
selection  
01/10/02 08:17 PM  in pipeline 
  
Please respond to  
  
cocoon-users   
  
   
  
   
  




 From: Maksimov, Aleksey [mailto:[EMAIL PROTECTED]]

  Hi Aleksey,
 
  If I were to do what you suggest. How would the pipeline know
  which request
  parameter it is accessing, since in my different pipelines I may
have
  different parameter names to select?

 I tried that case this way first:

  map:selector name=request
 src=org.apache.cocoon.selection.RequestSelector
 parameter-namexsl/parameter-name
 parameter-namexslOne/parameter-name
  /map:selector

 but this doesn't work. So the only solution, I could think of, is have

Of course doesn't.


 multiple selectors like this:

  map:selector name=request
 src=org.apache.cocoon.selection.RequestSelector
 parameter-namexsl/parameter-name
  /map:selector
  map:selector name=requestOne
 src=org.apache.cocoon.selection.RequestSelector
 parameter-namexslOne/parameter-name
  /map:selector

Try this one (it may be more useful for you):

map:selector name=request
src=org.apache.cocoon.selection.RequestSelector/

...

map:select type=request
  map:parameter name=parameter-name value=xsl/
  map:when test=...
  ... skipped a lot ...
  /map:otherwise
/map:select

Vadim


-
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 2 international language support

2002-01-11 Thread Joerg Heinicke

AFAIK is the meta for the server too. It has to read it and set the
HTTP-header correctly.

Joerg

Alex Kachanov wrote:

 I do not need it in meta
 I need it in HTTP header
 
 
 
 -Original Message-
 From: YANG Qiandong [mailto:[EMAIL PROTECTED]]
 Sent: 11 §ñ§ß§Ó§Ñ§â§ñ 2002 §Ô. 18:46
 To: [EMAIL PROTECTED]
 Subject: Re: RE: Cocoon 2 international language support
 
 
 Change HTML serializer encoding setting in cocoon.xmap:
 
map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
  encodingyouencoding/encoding
/map:serializer
 
   thus, HTML returned from C2 has correct charset information:
 
 META http-equiv=Content-Type content=text/html; charset=youencoding
 
How can I make Cocoon insert charset information in the header of the response?

Right now it just gives 

Content-Type: text/x-hdml

I want 

Content-Type: text/x-hdml; charset=shift_jis



with best wishes
Alexander Kachanov


-- 

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


-
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 international language support

2002-01-11 Thread Alex Kachanov

Well, it appears that it's not
At least Tomcat does not do this



-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Sent: 11 §ñ§ß§Ó§Ñ§â§ñ 2002 §Ô. 22:55
To: [EMAIL PROTECTED]
Subject: Re: Cocoon 2 international language support


AFAIK is the meta for the server too. It has to read it and set the
HTTP-header correctly.

Joerg

Alex Kachanov wrote:

 I do not need it in meta
 I need it in HTTP header
 
 
 
 -Original Message-
 From: YANG Qiandong [mailto:[EMAIL PROTECTED]]
 Sent: 11 §ñ§ß§Ó§Ñ§â§ñ 2002 §Ô. 18:46
 To: [EMAIL PROTECTED]
 Subject: Re: RE: Cocoon 2 international language support
 
 
 Change HTML serializer encoding setting in cocoon.xmap:
 
map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
  encodingyouencoding/encoding
/map:serializer
 
   thus, HTML returned from C2 has correct charset information:
 
 META http-equiv=Content-Type content=text/html; charset=youencoding
 
How can I make Cocoon insert charset information in the header of the response?

Right now it just gives 

Content-Type: text/x-hdml

I want 

Content-Type: text/x-hdml; charset=shift_jis



with best wishes
Alexander Kachanov


-- 

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


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




RES: JBuilder Cocoon2

2002-01-11 Thread Gustavo Fernandes


You can use AntRunner to build your project instead of JB default buld
tool(http://antrunner.sourceforge.net/).AntRunner is a JB´s open tool,wich
integrates Ant to the JB IDE.You should create a project containing the
cocoon sources,include an Ant build file (xml) ,and specify the deploy
dir.Then with a single command,you can run Ant from inside JBuilder,and see
its output in a window below the code window
In order to JB recognize .xmap and .xconf files as xml (and thus providing
all the JB´s xml built-in facilities for these files),you should add the
following lines to the user.properties file in the JBuilder dir :

file.types;custom.xmap=xml/properties
file.types;custom.xconf=xml/properties

These hints are for Cocoon 2.0 deployed in JBoss 5 Enterprise and windows
2000.

Feel free to contact me if you have any doubts

Gustavo




-Mensagem original-
De: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 06:36
Para: [EMAIL PROTECTED]
Assunto: Re: JBuilder Cocoon2



- Original Message -
From: Wap Brunei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 3:15 AM
Subject: JBuilder Cocoon2


 Could anyone tell me how to setup Cocoon2 in JBuilder5 and JBuilder5 do
not
 include .xmap and xconf file. Can i just drop the cocoon.war generated by
 JBuilder5 to work with Tomcat 4.0?

JBuilder doesn't copy files that it doesn't recognize as important to the
build in the build dir.
Maybe adding the xmap and xconf file types to the config of JBuilder should
do it.
Look at the JBuilder community faqs in the www.borland.com site to have more
insight on this.

--
Nicola Ken Barozzi [EMAIL PROTECTED]

These are the days of miracle and wonder...
  ...so don't cry baby, don't cry...
  Paul Simon


-
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: dynamic sitemap ?

2002-01-11 Thread Christoph Henrici

Robert Koberg wrote:

I see from some archives that SM does not like dynamic sitemaps. My tool
needs dynamic sitemaps. 

Still a newby, but definitely understanding a bit more about the
concepts of cocoon 2, i think are your
probably confusing different levels of requirements with regard to
change --- or just like me a couple of
days ago, not getting to grips completly with the concepts of cocoon 2,
what is dynamic and what should'nt be

The sitemap is fairly static by definition, but dynamic by usage .
With fairly i mean: you can change the sitemap,
it can grow, it can get smaller etc, but not in the same with the same
life-cycle as the content and even structural
apperance of your site. The sitemap defines all potential pipelines,
aggregations, filters etc.of all possible structural
combinations to produce dynamically the content of your site. This
surely does not have the same change cycle as content
and structural appearance itself, and it can be complex: just like the
structure of a structure
of a specific sentence of a language versus the structure of the
language itself. You can produce language in a
fairly dynamic and creative way, but the underlying structure, albeit
fairly complex, is at any given time static.
It evolves also, but very slowly .. Ok, the comparision does'nt
suite all that well, since we are inventing languages
all the time  the life - cycle of a site is much shorter than with
our natural language, there may requirements
for managing different overlapping life - cycles of different sitemaps,
just like with any code, but that does'nt mean that the
sitemap is dynamic. This goes more into the realm of configuration and
change management of code  see also the link:
http://chello.sourceforge.net/
For early stages of developing complex sites, i also would'nt use
cocoon2 that much, but tools with which you can fairly
quickly prototype your requirements. After you know more about your
requirements, move on to cocoon2, it will help you
greatly! If at poiint you have requirements to be able to apply
different structural combinations dynamically
depending on eg. user preferences etc. That is done generatively by
using generators by combining different
pipelets (cinclude/xinclude) dynamically , by filtering and/or by
aggregation based on the same it is static sitemap.

Would cocoon be the wrong choice? I mean does the
burden of recompiling the sitemap on each update make it impractical?

Specially if unnecessary ..



thanks,
-Rob


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


Christoph Henrici



-
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 international language support

2002-01-11 Thread Lewis, Andrew J

I've just recently gone through a bit of research on this - servers have no obligation 
to respect META tags - they are an HTML element, not a part of the HTTP protocol. As a 
rule, if you want the server to care, you need to set tyhe header yourself. There are 
exceptions to the rule, but I'm not aware of many in this case...

 --
 From: Alex Kachanov[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, January 11, 2002 8:04 AM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Cocoon 2 international language support
 
 Well, it appears that it's not
 At least Tomcat does not do this
 
 
 
 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
 Sent: 11  §ñ§ß§Ó§Ñ§â§ñ 2002 §Ô. 22:55
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon 2 international language support
 
 
 AFAIK is the meta for the server too. It has to read it and set the
 HTTP-header correctly.
 
 Joerg
 
 Alex Kachanov wrote:
 
  I do not need it in meta
  I need it in HTTP header
  
  
  
  -Original Message-
  From: YANG Qiandong [mailto:[EMAIL PROTECTED]]
  Sent: 11 §ñ§ß§Ó§Ñ§â§ñ 2002 §Ô. 18:46
  To: [EMAIL PROTECTED]
  Subject: Re: RE: Cocoon 2 international language support
  
  
  Change HTML serializer encoding setting in cocoon.xmap:
  
 map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
   encodingyouencoding/encoding
 /map:serializer
  
thus, HTML returned from C2 has correct charset information:
  
  META http-equiv=Content-Type content=text/html; charset=youencoding
  
 How can I make Cocoon insert charset information in the header of the response?
 
 Right now it just gives 
 
 Content-Type: text/x-hdml
 
 I want 
 
 Content-Type: text/x-hdml; charset=shift_jis
 
 
 
 with best wishes
 Alexander Kachanov
 
 
 -- 
 
 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7411
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de
 
 
 -
 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]




RE: Error Message on Cocoon 1.8.2

2002-01-11 Thread Anthony Diodato

I found a fix for this problem, but I don't know how to implement it.
I found a new Utils.java file that supposedly fixes this error in a Cocoon
archive somewhere on the Internet.

How do I take this new Utils.java file and have it compiled to work with
Cocoon 1.8.2

Any information would be greatly appreciated.
Thanks
Tony

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 8:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Error Message on Cocoon 1.8.2


Make sure that the resource specified is there. This is telling you that a
referenced logicsheet is missing or couldn't be loaded.

Carlos

On 01/10/02 11:24, Anthony Diodato [EMAIL PROTECTED] wrote:

 Specifics, Cocoon 1.8.2, Tomcat 4.0.1, IIS 5.0, jdk1.3.1
 
 
 Can anyone give a helping hand with the below error.
 
 I have Cocoon processing the XML pages, but the are throwing this error.
 Any thoughts would be greatly appreciated.
 
 Thanks
 Tony
 
 Publishing Engine could not be initialized.
 java.lang.RuntimeException: Error loading logicsheet at
 resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to
 java.lang.Exception: Resource not found or retrieving error.
 at
 org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
 at org.apache.cocoon.framework.Manager.create(Manager.java:109)
 at org.apache.cocoon.framework.Router.init(Router.java:80)
 at org.apache.cocoon.framework.Manager.create(Manager.java:109)
 at org.apache.cocoon.Engine.init(Engine.java:179)
 at org.apache.cocoon.Engine.getInstance(Engine.java:232)
 at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:214)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:201)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
 )
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at

org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :163)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1011)
 at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
 )
 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 

Help! Where to put Action classes?

2002-01-11 Thread Miller, Grant

Hi,
I am using tomcat 4 and cocoon2. I have written an action class (almost
exactly the same as the Hello World example) and added it to my sitemap.
However I get a sitemap error as the class cannot be found. I cannot find
anything in the documentation to say where the class should be. 
The action is to add the current date as a string to the parameters map so
that it can be accessed via xsp-request.
My package is called 'com.mycompany.app' and my action is defined as:

map:actions
   map:action name=get_date class=com.mycompany.app.DateAction/
/map:actions

Reading other postings I get the impression that my class should be
automatically be picked up if I put the DateAction.class file in:

web-inf\classes\com\mycompany\app

but this doesn't work.
Please help!

Cheers,

Grant


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




Apache 1.3, tomcat and Cocoon

2002-01-11 Thread Olivier MOUGEL



Hi cocooners,

I'm looking for a brief tutorial which explain the 
configuration of Apache1.3, tomcat4.0 and cocoon on a win32 machine 
(sorry..)


Thank's

Olivier
Bordeaux - FRANCE



Install Question

2002-01-11 Thread David McInnis

Can anyone explain this to me.  I have set the JAVA_HOME variable but it
is not working.   It is making me crazy.


Here is my JAVA_HOME info (This is the path to my sun java2 sdk)

echo $JAVA_HOME
/usr/java/j2sdk1.4.0/bin/

When I run this:

./build.sh -Dinclude.webapp.libs=yes webapp

I get this:

Apache Cocoon 2 Build System

Warning: JAVA_HOME environment variable is not set.
  If build fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.


/usr/xml-cocoon2/bin/and: java: command not found

Thanks,

David McInnis


-
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: Install Question

2002-01-11 Thread Berin Loritsch

David McInnis wrote:

 Can anyone explain this to me.  I have set the JAVA_HOME variable but it
 is not working.   It is making me crazy.



This is an issue with JDK 1.4.  I can't remember how I got around it,
but using other JDKs works better.


 
 
 Here is my JAVA_HOME info (This is the path to my sun java2 sdk)
 
 echo $JAVA_HOME
 /usr/java/j2sdk1.4.0/bin/
 
 When I run this:
 
 ./build.sh -Dinclude.webapp.libs=yes webapp
 
 I get this:
 
 Apache Cocoon 2 Build System
 
 Warning: JAVA_HOME environment variable is not set.
   If build fails because sun.* classes could not be found
   you will need to set the JAVA_HOME environment variable
   to the installation directory of java.
 
 
 /usr/xml-cocoon2/bin/and: java: command not found
 
 Thanks,
 
 David McInnis
 
 
 -
 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]
 
 .
 
 



-- 

They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety.
 - Benjamin Franklin


-
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: Install Question

2002-01-11 Thread Gianugo Rabellino

David McInnis wrote:

  Can anyone explain this to me.  I have set the JAVA_HOME variable but it
  is not working.   It is making me crazy.


Quick and silly question: did you export JAVA_HOME? I spent a couple of
hours on a Solaris machine to remind me that plain sh (unlike bash)
doesn't automagically export variables to the environment.

Ciao,

-- 
Gianugo Rabellino


-
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: Install Question

2002-01-11 Thread David McInnis

Bingo.

Thanks,

David

On Fri, 2002-01-11 at 09:06, Gianugo Rabellino wrote:
 David McInnis wrote:
 
   Can anyone explain this to me.  I have set the JAVA_HOME variable but it
   is not working.   It is making me crazy.
 
 
 Quick and silly question: did you export JAVA_HOME? I spent a couple of
 hours on a Solaris machine to remind me that plain sh (unlike bash)
 doesn't automagically export variables to the environment.
 
 Ciao,
 
 -- 
 Gianugo Rabellino
 
 
 -
 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]




authorization of a subproject

2002-01-11 Thread Giuseppe Di Pierri

Hi Guys,

need help for easly manage Access Control Lists.

I would have more than one protected area, under which dozen of pages have
to be protected by means of session-validator action.

Is it possible to declare in sitemap.xmap (one level up to each protected
areas) something like that (not exactly the same of course ) ?


map:match pattern=protected/*
  map:act type=session-validator
map:parameter name=descriptor value=params.xml/
map:parameter name=validate value=username/
  map:mount uri-prefix=protected src=protected/ check-reload=yes/
  /map:act
  map:redirect-to uri=AuthorizationFailure.html/
/map:match

The purpose is to protect an entire subproject, without mention
session-validation for each of its pages.

Thank you in advance for your answer

Regards

Pino



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




AW: Help! Where to put Action classes?

2002-01-11 Thread Reinhard Pötz

Did you put the class in the right package (com.mycompany.app)?

If the answer is yes and it doesn't work try making a jar-file.

Regards,
Reinhard

  -Ursprüngliche Nachricht-
  Von: Miller, Grant [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 11. Jänner 2002 14:58
  An: '[EMAIL PROTECTED]'
  Betreff: Help! Where to put Action classes?
 
 
  Hi,
  I am using tomcat 4 and cocoon2. I have written an action class (almost
  exactly the same as the Hello World example) and added it to my sitemap.
  However I get a sitemap error as the class cannot be found. I cannot find
  anything in the documentation to say where the class should be.
  The action is to add the current date as a string to the
  parameters map so
  that it can be accessed via xsp-request.
  My package is called 'com.mycompany.app' and my action is defined as:
 
  map:actions
 map:action name=get_date class=com.mycompany.app.DateAction/
  /map:actions
 
  Reading other postings I get the impression that my class should be
  automatically be picked up if I put the DateAction.class file in:
 
  web-inf\classes\com\mycompany\app
 
  but this doesn't work.
  Please help!
 
  Cheers,
 
  Grant
 
 
  -
  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: Help! Where to put Action classes?

2002-01-11 Thread Tom Klaasen (TeleRelay)

I think you should use WEB-INF instead of web-inf (and far, far away in
my memory I think I see a shade of a message saying yes, even on
windows, but I'm not 100% sure about that)

hth,
tomK


 -Original Message-
 From: Miller, Grant [mailto:[EMAIL PROTECTED]] 
 Sent: vrijdag 11 januari 2002 14:58
 To: '[EMAIL PROTECTED]'
 Subject: Help! Where to put Action classes?
 
 
 Hi,
 I am using tomcat 4 and cocoon2. I have written an action 
 class (almost
 exactly the same as the Hello World example) and added it to 
 my sitemap.
 However I get a sitemap error as the class cannot be found. I 
 cannot find
 anything in the documentation to say where the class should be. 
 The action is to add the current date as a string to the 
 parameters map so
 that it can be accessed via xsp-request.
 My package is called 'com.mycompany.app' and my action is defined as:
 
 map:actions
map:action name=get_date class=com.mycompany.app.DateAction/
 /map:actions
 
 Reading other postings I get the impression that my class should be
 automatically be picked up if I put the DateAction.class file in:
 
 web-inf\classes\com\mycompany\app
 
 but this doesn't work.
 Please help!
 
 Cheers,
 
 Grant
 
 
 -
 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]




Publishing Engine could not be initialized HELP!!

2002-01-11 Thread Anthony Diodato

Hi Cocoon users, 
Im having a problem installing Cocoon 1.8.2 on Tomcat 4.0.1 with IIS.

Here is the error I am receiving.
Publishing Engine could not be initialized.
java.lang.RuntimeException: Error loading logicsheet at
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to
java.lang.Exception: Resource not found or retrieving error.
at
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
at org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.framework.Router.init(Router.java:80)
at org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.Engine.init(Engine.java:179)
at org.apache.cocoon.Engine.getInstance(Engine.java:232)
at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)

Any help would be appreciated.
Thanks
Anthony




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 

RE: authorization of a subproject

2002-01-11 Thread SANSONE, AARON M [Non-Pharmacia/1000]

Pino,

We control access to our entire project using nested match patters like
this:

map:match pattern=*
map:act type=session-validator
map:parameter name=descriptor
value=context://descriptors/params.xml/
map:parameter name=validate value=username,password/

map:match pattern=*.xhtml
map:read src=xhtml/{1}.xhtml
mime-type=text/html/
/map:match

... other matchers...

/map:act
map:redirect-to uri=login/
/map:match


The * match pattern is the first filtered match which then falls through to
other matchers.  In this manner the session-validator makes certain a vaild
session is available (with username and password which is set on
authorization).

Ciao,

Aaron


-Original Message-
From: Giuseppe Di Pierri [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: authorization of a subproject


Hi Guys,

need help for easly manage Access Control Lists.

I would have more than one protected area, under which dozen of pages have
to be protected by means of session-validator action.

Is it possible to declare in sitemap.xmap (one level up to each protected
areas) something like that (not exactly the same of course ) ?


map:match pattern=protected/*
  map:act type=session-validator
map:parameter name=descriptor value=params.xml/
map:parameter name=validate value=username/
  map:mount uri-prefix=protected src=protected/
check-reload=yes/
  /map:act
  map:redirect-to uri=AuthorizationFailure.html/
/map:match

The purpose is to protect an entire subproject, without mention
session-validation for each of its pages.

Thank you in advance for your answer

Regards

Pino



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




telling apache about cocoon?

2002-01-11 Thread David McInnis

Is there something that I have to do to let apache know about cocoon? 
something in the apache httpd.conf?  I am running apache on redhat 7.2.

I get to the point in the installation (install under tomcat4) where it
says to access localhost, but nothing happens except for a browser error
saying that the site does not exist.

(Also, I went to the /var/tomcat4/bin directory and there was no startup
file.  only a bootstrap.jar so I restarted using
/etc/rc.d/init.d/tomcat4 restart which restarted tomcat4)



David McInnis




-
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: Apache 1.3, tomcat and Cocoon

2002-01-11 Thread David McInnis

http://xml.apache.org/cocoon/ctwig/ctwig-gettingstarted.html


On Fri, 2002-01-11 at 08:47, Olivier MOUGEL wrote:
 Hi cocooners,
 
 I'm looking for a brief tutorial which explain the configuration of Apache1.3, 
tomcat4.0 and cocoon on a win32 machine (sorry..)
 
 
 Thank's
 
 Olivier
 Bordeaux - FRANCE
 



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




Xpath queries with xindice and cocoon2

2002-01-11 Thread Thomas Sempf
 Hi,
i am still trying to get the openorb thing right. So i copied the openorb jars in the common/lib directory. But i still get the same error.

I try a xpath query like this, is it correct(?):

http://localhost:8080/cocoon/xmldb/bible//fl[contains(text(),'God')]

I read something about adding this line:

System.setProperty("openorb.home","file:///opt/xindice/docs/");

But where to do this?
Here my error message:

Could not read resource xmldb:xindice://localhost:4080/bible/fl[contains(text(),'God')]

More precisly:

org.apache.cocoon.ProcessingException: Could not read resource xmldb:xindice://localhost:4080/bible/fl[contains(text(),'God')]: org.xmldb.api.base.XMLDBException: A connection to the Database instance 'bible' could not be created. Error: Cannot create resource URL. Please set the openorb.home property.

I thankfull for any hints.

Greetings,
Thomas Sempf



RE: Cocoon 2 international language support

2002-01-11 Thread Vadim Gritsenko

This might work (I did not try):

map:serialize mime-type=text/html; charset=youencoding/

Vadim

 -Original Message-
 From: Alex Kachanov [mailto:[EMAIL PROTECTED]]
 
 How can I make Cocoon insert charset information in the header of the
 response?


-
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: authorization of a subproject

2002-01-11 Thread Giuseppe Di Pierri

Thanks a lot Aaron
Bye
Pino


On Fri, 11 Jan 2002, SANSONE, AARON M [Non-Pharmacia/1000] wrote:

 Pino,
 
 We control access to our entire project using nested match patters like
 this:
 
 map:match pattern=*
   map:act type=session-validator
   map:parameter name=descriptor
 value=context://descriptors/params.xml/
   map:parameter name=validate value=username,password/
 
   map:match pattern=*.xhtml
   map:read src=xhtml/{1}.xhtml
 mime-type=text/html/
   /map:match
 
   ... other matchers...
 
   /map:act
   map:redirect-to uri=login/
 /map:match
 
 
 The * match pattern is the first filtered match which then falls through to
 other matchers.  In this manner the session-validator makes certain a vaild
 session is available (with username and password which is set on
 authorization).
 
 Ciao,
 
 Aaron
 
 
 -Original Message-
 From: Giuseppe Di Pierri [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 11, 2002 11:15 AM
 To: [EMAIL PROTECTED]
 Subject: authorization of a subproject
 
 
 Hi Guys,
 
 need help for easly manage Access Control Lists.
 
 I would have more than one protected area, under which dozen of pages have
 to be protected by means of session-validator action.
 
 Is it possible to declare in sitemap.xmap (one level up to each protected
 areas) something like that (not exactly the same of course ) ?
 
 
 map:match pattern=protected/*
   map:act type=session-validator
 map:parameter name=descriptor value=params.xml/
 map:parameter name=validate value=username/
   map:mount uri-prefix=protected src=protected/
 check-reload=yes/
   /map:act
   map:redirect-to uri=AuthorizationFailure.html/
 /map:match
 
 The purpose is to protect an entire subproject, without mention
 session-validation for each of its pages.
 
 Thank you in advance for your answer
 
 Regards
 
 Pino
 
 
 
 -
 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]




RE: Help! Where to put Action classes?

2002-01-11 Thread Vadim Gritsenko

 From: Miller, Grant [mailto:[EMAIL PROTECTED]]
 
 My package is called 'com.mycompany.app' and my action is defined as:
 
 map:actions
map:action name=get_date class=com.mycompany.app.DateAction/
 /map:actions
 
 Reading other postings I get the impression that my class should be
 automatically be picked up if I put the DateAction.class file in:
 
 web-inf\classes\com\mycompany\app
 
 but this doesn't work.
 Please help!

Works for me. You need to restart your servlet engine though.
Resin servlet engine would even recompile classes for me dynamically if
I change corresponding java files.

Vadim


-
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: Apache 1.3, tomcat and Cocoon

2002-01-11 Thread Vadim Gritsenko

Cocoon + Tomcat: http://xml.apache.org/cocoon/installing/index.html

 From: David McInnis [mailto:[EMAIL PROTECTED]]
 
 http://xml.apache.org/cocoon/ctwig/ctwig-gettingstarted.html
 
 
 On Fri, 2002-01-11 at 08:47, Olivier MOUGEL wrote:
  Hi cocooners,
 
  I'm looking for a brief tutorial which explain the configuration of
 Apache1.3, tomcat4.0 and cocoon on a win32 machine (sorry..)
 
 
  Thank's
 
  Olivier
  Bordeaux - FRANCE


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




Can Coocoon not parse elements

2002-01-11 Thread George Pieri



Is there a way besides wrapping each column with CDATA to tell cocoon
or the xml parser NOT to parse the ELEMENTS defined in the XML ?


All our data comes from the database and some of the columns at times may
have the special characters (e.g.   ) so in order to resolve this issue
we
wrap the data within the !CDATA[ ]] tag. This however makes the XML string
MUCH larger than it needs to be because wrapping every column multipled by
the
number of rows produces alot of extra text.

My thought was to build a DTD for the data coming back from the database
telling the parser NOT to parse the content by defining the ELEMENT as a
CDATA
type or some type that will allow these characters.
Unfortunately CDATA cannot be used for ELEMENTs.


Question
---
!DOCTYPE DATA  [
!ELEMENT DATA  ANY --- Produces error because of 
]
DATA
GRENADA CW
/DATA



!DOCTYPE DATA  [
!ELEMENT DATA   
]
DATA
GRENADA CW
/DATA






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




[Fwd: Cocoon 2 international language support]

2002-01-11 Thread Stefano Mazzocchi

Ended up in the wrong mailing list :)

-- 
Stefano Mazzocchi  One must still have chaos in oneself to be
  able to give birth to a dancing star.
[EMAIL PROTECTED] Friedrich Nietzsche

---BeginMessage---

I have test Cocoon2 Chinese support, descipted as following.

1. Change HTML serializer encoding setting in cocoon.xmap:

   map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
 encodingGB2312/encoding
   /map:serializer

  thus, HTML returned from C2 has correct charset:

META http-equiv=Content-Type content=text/html; charset=GB2312

2. Change encoding of your XML and XSP file:

?xml version=1.0 encoding=GB2312?

  thus, you can type any Chinese character in any XML value or Java variable, browser 
will display correctly as you think.

3. C2 and MySQL chinese support

  3.1 Add MySQL driver setting in web.xml:

init-param
  param-nameload-class/param-name
  param-valueorg.gjt.mm.mysql.Driver/param-value
/init-param
 
  3.2 Add MySQL datasource in cocoon.xconf datasource section:

jdbc name=mysql
  pool-controller min=2 max=10/
  
dburljdbc:mysql://localhost/test?useUnicode=truecharacterEncoding=GB2312/dburl
  usermyuser/user
  passwordmypassword/password
/jdbc

  3.3 Put mm.mysql.jar to cocoon/lib, and restart Tomcat
  Execute cocoon\docs\samples\sql\sql-page.xml.sql in mysql to create test tables.
  Modify xsp/esql.xsp, change xml encoding, and change personnel to mysql, 
  then visit http://localhost:8080/cocoon/xsp/esql, 
  everything ok!

  You must use useUnicode=truecharacterEncoding=GB2312 connection parameter to 
support 
   Chinese string in SQL query string and parameters.

4. Support Chinse in parameters returned from URL or forms action:
   xsp-request:get-parameter name=yourparametername form-encoding=GB2312/

   form-encoding attribute is not documented in C2 user document.





---End Message---

-
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: Apache 1.3, tomcat and Cocoon

2002-01-11 Thread Olivier MOUGEL

My question is more complex

I need more information about mod_jk apache module in order to link cocoon
on apache via tomcat...

Any help ?

Olivier



- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 8:47 PM
Subject: RE: Apache 1.3, tomcat and Cocoon


 Cocoon + Tomcat: http://xml.apache.org/cocoon/installing/index.html

  From: David McInnis [mailto:[EMAIL PROTECTED]]
 
  http://xml.apache.org/cocoon/ctwig/ctwig-gettingstarted.html
 
 
  On Fri, 2002-01-11 at 08:47, Olivier MOUGEL wrote:
   Hi cocooners,
  
   I'm looking for a brief tutorial which explain the configuration of
  Apache1.3, tomcat4.0 and cocoon on a win32 machine (sorry..)
  
  
   Thank's
  
   Olivier
   Bordeaux - FRANCE


 -
 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: Apache 1.3, tomcat and Cocoon

2002-01-11 Thread Luca Morandini

Oliver,

what about Tomcat's own documentation ?

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html


Best regards,

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


 -Original Message-
 From: Olivier MOUGEL [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 11, 2002 9:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Apache 1.3, tomcat and Cocoon


 My question is more complex

 I need more information about mod_jk apache module in order to link cocoon
 on apache via tomcat...

 Any help ?

 Olivier



 - Original Message -
 From: Vadim Gritsenko [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, January 11, 2002 8:47 PM
 Subject: RE: Apache 1.3, tomcat and Cocoon


  Cocoon + Tomcat: http://xml.apache.org/cocoon/installing/index.html
 
   From: David McInnis [mailto:[EMAIL PROTECTED]]
  
   http://xml.apache.org/cocoon/ctwig/ctwig-gettingstarted.html
  
  
   On Fri, 2002-01-11 at 08:47, Olivier MOUGEL wrote:
Hi cocooners,
   
I'm looking for a brief tutorial which explain the configuration of
   Apache1.3, tomcat4.0 and cocoon on a win32 machine (sorry..)
   
   
Thank's
   
Olivier
Bordeaux - FRANCE
 
 
  -
  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]




Error when executing example esql.xml in Cocoon1.8.2

2002-01-11 Thread Ivan Manuel Andrade Muñoz

Hello to all, Happy New Year.

The error is:

***
---
Cocoon 1.8.2
---
Error found handling the request.

java.lang.RuntimeException: Error loading driver: org.gjt.mm.mysql.Driver
at 
_usr._local._jakarta._build._tomcat._webapps._cocoon._samples._memoriaII._esql.populateDocument(_esql.java:141)
at 
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
at 
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:527)
at org.apache.cocoon.Engine.handle(Engine.java:384)
at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
---

Warning: this page has been dynamically generated.

Copyright (c) 1999-2001 The Apache XML Project.
All rights reserved.


I have installed:

Red Hat Linux 7.2
Sun JDK 1.3.1_01
Apache 1.3.19
Tomcat 3.2.3
Cocoon 1.8.2
Postgresql 7.1.3
jdbc7.1-1.2
-
Note: form postgresql 7.1.3, with the option -- with-java

I have formed my archive:

My file .bash_profile.

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

JAKARTA_HOME=/usr/local/jakarta
ANT_HOME=$JAKARTA_HOME/jakarta-ant
PATH=$PATH:$HOME/bin:/usr/java/jdk1.3.1_01/bin:$ANT_HOME/bootstrap/bin:/usr/local/pgsql/bin
BASH_ENV=$HOME/.bashrc
USERNAME=root
JAVA_HOME=/usr/java/jdk1.3.1_01
#JAKARTA_HOME=/usr/local/jakarta
#ANT_HOME=$JAKARTA_HOME/jakarta-ant
TOMCAT_HOME=$JAKARTA_HOME/build/tomcat
COCOON_HOME=/usr/local/cocoon1.8.2/
PG=/usr/local/pgsql
PGLIB=$PG/lib
PGDATA=$PG/data
MANPATH=$MANPATH:$PG/man
CLASSPATH=/usr/local/jdbc7.1-1.2.jar
export USERNAME BASH_ENV JAVA_HOME JAKARTA_HOME ANT_HOME TOMCAT_HOME 
COCOON_HOME PATH CLASSPATH
---

That I must make to make run this example?
That I must add or modify to the archives: tomcat.properties or 
cocoon.properties. So that the example esql.xml runs.


_
MSN Photos es la manera más sencilla de compartir e imprimir sus fotos: 
http://photos.latam.msn.com/Support/WorldWide.aspx


-
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: Install Question

2002-01-11 Thread Joseph Jupin

need to set it in your script.  you probably have an 
overriding definition like:

#!/usr/bin/sh

JAVA_HOME=

...

This will override your outside declaration.
Just remove that variable or tell it export from
the outside - or better yet, change it to:

JAVA_HOME=/blah/blah/blah...

you get the idea...  I've had this problem several times 
with scripts ignoring environment settings...

good luck...

peace.  JOe...

On 11 Jan 2002 08:47:35 -0800
  David McInnis [EMAIL PROTECTED] wrote:
Can anyone explain this to me.  I have set the JAVA_HOME 
variable but it
is not working.   It is making me crazy.


Here is my JAVA_HOME info (This is the path to my sun 
java2 sdk)

echo $JAVA_HOME
/usr/java/j2sdk1.4.0/bin/

When I run this:

./build.sh -Dinclude.webapp.libs=yes webapp

I get this:

Apache Cocoon 2 Build System

Warning: JAVA_HOME environment variable is not set.
   If build fails because sun.* classes could not be 
found
   you will need to set the JAVA_HOME environment 
variable
   to the installation directory of java.


/usr/xml-cocoon2/bin/and: java: command not found

Thanks,

David McInnis


-
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 Content Manager - Cimande

2002-01-11 Thread Chris Perrin

If nothing happened, I would like to work on a project like it or similar.

-Original Message-
From: Colm O'Riordan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 1:28 PM
To: [EMAIL PROTECTED]
Subject: Cocoon Content Manager - Cimande


Does anyone know what became of this project ?


-
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: Install Question

2002-01-11 Thread Gianugo Rabellino

David McInnis wrote:

 Can anyone explain this to me.  I have set the JAVA_HOME variable but it
 is not working.   It is making me crazy.


Quick and silly question: did you export JAVA_HOME? I spent a couple of 
hours on a Solaris machine to remind me that plain sh (unlike bash) 
doesn't automagically export variables to the environment.

Ciao,

-- 
Gianugo Rabellino



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