Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread LEBRETON Philippe
Ludovic de Beaurepaire wrote:

 Hi Philippe,

 - try to have your 3 tags on one line only (!)
 - or insert the java generated code directly :
  XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);

I try tis two method and i have the same problem.
I think it is a bug

Philippe



 Ludovic

 - Original Message -
 From: LEBRETON Philippe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 11:09 AM
 Subject: Re: with Cocoon 2.0.3 include-expr does'nt work

  Christian Haul wrote:
 
   On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
With cocoon 2.0.2, i use include-expr to include string with XML
 data
in my XML:
   
 util:include-exprutil:exprSortieXML/util:expr/util:include-expr
and it work.
  
   Although the error message does not fit the diagnosis, please add
   xsp:expr/ around SortieXML.
 
  Ok i add xsp:exprlike this :
  util:include-expr
 util:expr
  xsp:expr
   SortieXML
  /xsp:expr
 /util:expr
/util:include-expr
 
  and it does'nt work
 
  
  
   Chris.
   --
   C h r i s t i a n   H a u l
   [EMAIL PROTECTED]
   fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
  
   -
   Please check that your question  has not already been answered in the
   FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 

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

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


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

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




Re: with Cocoon 2.0.3 include-expr does'nt work

2002-12-02 Thread LEBRETON Philippe
Sylvain Wallez wrote:

 LEBRETON Philippe wrote:

 Ludovic de Beaurepaire wrote:
 
 
 
 Hi Philippe,
 
 - try to have your 3 tags on one line only (!)
 - or insert the java generated code directly :
  XSPUtil.includeString(SortieXML,this.manager, this.contentHandler);
 
 
 
 I try tis two method and i have the same problem.
 I think it is a bug
 
 

 Is the content of SortieXML a syntactically correct XML document ?

No, my XML data string content data without root element.
thanks

Philippe



 You have to be aware that, even if included, this cannot be an XML
 fragment but must be a _full_ XML document, i.e. with one root element
 and no text outside that root element. The error message seems to reveal
 some text outside the root element.

 Sylvain

 --
 Sylvain Wallez  Anyware Technologies
 http://www.apache.org/~sylvain   http://www.anyware-tech.com
 { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

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

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


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

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




[HELP]Exception in ServerPagesGenerator.generate()

2002-11-29 Thread LEBRETON Philippe


I want include a String with a content XML in my XML and i used :
util:include-expr>util:expr>xsp:expr>Car.toString()/xsp:expr>/util:expr>/util:include-expr>
Car is declared :
StringBuffer Car = new StringBuffer();
Car content :
bdo>
Pac>1/Pac>
TP>1/TP>
/bdo>
Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate():

java.lang.RuntimeException: Could not include page Content is not allowed in prolog.
Help me.
Whereis the problem.
This expression work with Cocoon 2.0.2 and not with Cocoon 2.0.3
Thanks
Philippe LEBRETON
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


with Cocoon 2.0.3 include-expr does'nt work

2002-11-29 Thread LEBRETON Philippe
With cocoon 2.0.2, i use include-expr to include string with XML data
in my XML:
util:include-exprutil:exprSortieXML/util:expr/util:include-expr
and it work.

i upgrade my cocoon to 2.0.3 and i have a exception :


Original exception : java.lang.RuntimeException: Could not include page
Content is not allowed in prolog.
  at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeInputSource(XSPUtil.java:359)

  at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeString(XSPUtil.java:336)

  at
org.apache.cocoon.www.pac.etatpac_PROD_xsp.ExecCmd(/var/cache/tomcat4/localhost/cocoon/cocoon-files/org/apache/cocoon/www/pac/etatpac_PROD_xsp.java:142)

Where is the problem?

Help me.

Thanks

Philippe LEBRETON


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

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




how to send request paramater to a pipeline?

2002-04-24 Thread LEBRETON Philippe

I have this firt pipeline :

map:pipeline
map:match pattern=etatdb
 map:generate type=serverpages
src=etatdb.xsp/
map:transform src=etatdb.xsl/
map:serialize/
/map:pipeline

when i use this pipeline, my URL is :
http:://localhost/cocoon/phl/etatdb?client=1region=PL

I have a second pipeline, that use database update action and i want
redirect  to the first pipeline when database is update :
map:pipeline
map:match pattern=majetatdb
  map:act set=etatdb
   map:parameter name=descriptor
value=context://phl/histo_etatdb.xml/
   map:redirect-to uri=/etatdb/
 /map:act

 map:generate type=serverpages
src=majetatdb.xsp/
map:transform src=majetatdb.xsl/
  map:serialize/
/map:match
/map:pipeline

my question is :
how i can force the request parameter to the map:redirect-to
uri=/etatdb/.

thanks

Philippe LEBRETON


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




esql:get-date doesnt work with a column type datetime

2002-04-22 Thread LEBRETON Philippe

In my datase i have a column with datetime type and when i used
esql:get-date i have a exeption.
Does esql-get-date work with a datetime type or only with a date type?
i want to use the format attribute of esql:get-date, with my datetime
column.

thanks

Philippe LEBRETON


-
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 2.0.2 installation problem : Error compiling sitemap: java.lang.NoSuchFieldError: manager

2002-04-16 Thread LEBRETON Philippe

i used cocoon 2.0.0 with TOMCAT 3.3 Final and i want upgrade to cocoon
2.0.2.
I have an error :
Cocoon 2 - Internal server error



type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling
sitemap: java.lang.NoSuchFieldError: manager

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoSuchFieldError: manager
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:484)
java.lang.NoSuchFieldError: manager
at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:356)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)

at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)

at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248)

at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)

request-uri

/cocoon/

path-info


thanks

Philippe LEBRETON


-
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 2.0 and SQL transformer sample does'nt work with Postgresql 6.5 and JK 1.3

2002-02-22 Thread LEBRETON Philippe

In Cocoon 2.0 Sample, The SQL transformer sample does'nt work but esql
samples is OK. I have the error :

Error creating the resource
Could not read resource
file:/app/java/jakarta-tomcat-3.3/webapps/cocoon/docs/samples/sql/sql-page.xml

 details
 from
 source
org.apache.cocoon.ProcessingException
 description
org.apache.cocoon.ProcessingException: Could not read resource
file:/app/java/jakarta-tomcat-3.3/webapps/cocoon/docs/samples/sql/sql-page.xml:
This method is not yet implemented.
 extra info
org.apache.cocoon.ProcessingException: Could not read resource
file:/app/java/jakarta-tomcat-3.3/webapps/cocoon/docs/samples/sql/sql-page.xml:
This method is not yet implemented.

org.apache.cocoon.ProcessingException: Could not read resource
file:/app/java/jakarta-tomcat-3.3/webapps/cocoon/docs/samples/sql/sql-page.xml:
This method is not yet implemented.
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)

at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:210)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:359)

at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400409(sitemap_xmap.java:6873)

at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2922)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2511)
at
org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)

at org.apache.tomcat.core.Handler.service(Unknown
Source)
at
org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at
org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown
Source)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)
This method is not yet implemented.
at
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:291)

at
org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTransformer.java:398)

at
org.apache.cocoon.transformation.SQLTransformer.endElement(SQLTransformer.java:632)

at
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:81)

at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)

at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204)

at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:100)

at
org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:327)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)

at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:210)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:359)

at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400409(sitemap_xmap.java:6873)

at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2922)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2511)
at
org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at 

problem with the connection pool

2002-02-07 Thread LEBRETON Philippe

In my cocoon.xconf i have declare a connection pool with a database
install in other host.
When this host backup the database, the database is down and on my
cocoon, the connection pool does work.
how i can restart only the connection pool but not cocoon?

Thanks

Philippe LEBRETON


-
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 2 and XLINK

2002-01-03 Thread LEBRETON Philippe

does Cocoon2 work with XLINK?
Have you some example of XLINK and Cocoon 2?

Thanks

Philippe LEBRETOn


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




With Cocoon 2, in my xsl file SCRIPT LANGUAGE='JavaScript1.2' SRC=hierMenus.txt does'nt work

2002-01-03 Thread LEBRETON Philippe

When in my xsl file i want to include a javscript like :
SCRIPT LANGUAGE='JavaScript1.2' SRC=hierMenus.txt
i have a error 404, file not found.

Where is the problem?
How i can configure my sitemap to work correctly?

Thanks

Philipe LEBRETON


-
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 2 and XLINK

2001-12-31 Thread LEBRETON Philippe

does Cocoon2 work with XLINK?
Have you some example of XLINK and Cocoon 2?

Thanks

Philippe LEBRETOn


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




The Request Logicsheets and HTML form with enctype=multipart/form-data

2001-12-19 Thread LEBRETON Philippe

does the request Logicsheets work with a HTML form with
enctype=mutlipart/form-data?
I want use the upload file possibility of te input type=file.

Thanks

Philippe LEBRETON

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





request Logicsheets and multipart/form-data

2001-12-18 Thread LEBRETON Philippe

does he request Logicsheets work with a form of
enctype=mutlipart/form-data?
I want use the upload file possibility of te input type file.

Thanks

Philippe LEBRETON


-
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 2.0 and TOMCAT 3.3 installation

2001-12-04 Thread LEBRETON Philippe

does sombody installed Cocoon 2.0 under TOMCAT 3.0?

I have somme problem :
1 - cocoon can't find hte jdk tools.jar (tomcat find it)

2 - all xml file don't work : my browser say not data for this page

Have somebody a idea

Philippe LEBRETON




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




how to create dynamic graphique with XML

2001-07-17 Thread LEBRETON Philippe

I have an XML file with many data. And i want transform this data in
graphic representation (like gif, jpeg, etc, not svg).
Does some body know a tools that create a gif in dynamic with an
XML file?

Thanks

Philippe LEBRETON


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




FP taglib and concurency access

2001-07-06 Thread LEBRETON Philippe

i try the samples FP taglib, and my question is for the conurency access
of the index.xml and the item node.
what's append when two user edit the same item and save different
infomation?
does FP manage the concurrency access of the same node?

Thanks

Philippe LEBRETON


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




MERLOT XMLEDITOR and the DTD of cocoon

2001-06-22 Thread LEBRETON Philippe

I have download the MERLOT XMLEDITOR, but when i want to create a
XML file, the editor want a DTD.
Does somebody know where i can download the DTD of XSP and all libary
(sql, mail, ...) of COCOON

thank

Philippe LEBRETON


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