xmlform error ( Failed to execute pipeline.: ArrayIndexOutOfBoundsException )

2003-02-18 Thread Richard Reyes



Hi Guys,
 
I am trying to build an application from the 
xmlform sample included in the 2.1dev version.
I have managed to run the sample 
cocoon/samples/xmlform/wizard. But now I am having an error on my own 
application.
 
i am trying to call welcome.html in the 
browser. and im receiving this error...
 

stack-trace
 
org.apache.cocoon.ProcessingException: Failed to 
execute pipeline.: java.lang.ArrayIndexOutOfBoundsException at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:302) at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481) at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158) at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.


 
attached are some of my files. 
 
any help is appreciated.
thanks


sitemap.xmap
Description: Binary data
stack-trace

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:302)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:9

I18n and DB

2003-02-18 Thread Hong Gia Dinh
Title: I18n and DB





Hi all,


I am wondering if Cocoon support I18N and DB?
I mean if i choose one language for example English and then in page english i input some data and then save to database, the DB then must save this data for english part and then if i type these data but in french and save to DB this data typed in french must be saved in french!

and afterwards if i retrieve the values in DB if i currently in french mode, it must get french data!!!


can somebody tell me can Cocoon support something like that? and how to use it?


Thanks a lot
GD





Firebird with Cocoon

2003-02-18 Thread Upayavira
Dear All,

Has anyone out there succeeded in connecting Cocoon to a Firebird database? It 
just times out on me if I use the org.firebirdsql.jdbc.FBDriver driver, or tells me 
that 
I am using an unsupported JDBC 2.0 feature if I use the 
interbase.interclient.Driver driver.

I'm using a connection string of the sort:

jdbc:firebirdsql://localhost:3050//c:/desktop/database.gdb

A connection test from IBConsole tells me that I'm using "WI-V6.2.794 Firebird 
1.0".

Any pointers?

Thanks,

Upayavira


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: MySQL date conversion with modular database action

2003-02-18 Thread Christian Haul
Andre Taube wrote:



> Trying to set column pcm_contract.start_date from request-param using 
getAttribute method
> Setting column pcm_contract.start_date [0] 2/9/2003

This shows cleanly that you haven't requested the "attribute" mode here. 
Please check your table set!

	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. 

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



Re: cocoon-2.0.4-vm14, jboss-3.0.4_tomcat-4.1.12: Problem runningPortal Sample

2003-02-18 Thread Hartmut Schlotterbeck
[EMAIL PROTECTED] schrieb:


in Cocoon 2.0.x the portal is only in the scratchpad
libraries, not in the binary distribution.
You need to build cocoon including the scratchpad libs
from source, then it works.
Or build 2.1 dev from source (no scratchpad libs needed
here)
 

I have tested the binary distribution of cocoon 2.0.4 under a standalone 
installation of apache tomcat 4.1.12. There the portal sample works very 
well without building cocoon from source. Are the scratchpad libraries 
included in the standalone version of tomcat?

Hartmut



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



RE: MySQL date conversion with modular database action

2003-02-18 Thread Andre Taube
I am running the latest cocoon that I got from the CVS.

My table descriptor is


















pcm_contract.start_date


   





pcm_contract.end_date


   






And my logs only show:

DEBUG   (2003-02-18) 09:24.53:804   [sitemap]
(/pcm1/contract_admin.contract.html) Thread-26/DefaultComponentFactory:
ComponentFactory creating new instance of
org.apache.cocoon.acting.modular.DatabaseUpdateAction.
DEBUG   (2003-02-18) 09:24.53:805   [sitemap]
(/pcm1/contract_admin.contract.html) Thread-26/DefaultComponentFactory:
logger attribute is sitemap.action.DatabaseUpdateAction
DEBUG   (2003-02-18) 09:24.53:807   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html)
Thread-26/AbstractComplementaryConfigurableAction: Using cached
configuration for contract_admin/contract_descriptor.xml
DEBUG   (2003-02-18) 09:24.53:823   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: modeTypes :
{2=request-attr, 1=others, 0=autoincr}
DEBUG   (2003-02-18) 09:24.53:843   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=0
DEBUG   (2003-02-18) 09:24.53:845   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=1
DEBUG   (2003-02-18) 09:24.53:846   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=2
DEBUG   (2003-02-18) 09:24.53:847   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=3
DEBUG   (2003-02-18) 09:24.53:848   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=4
DEBUG   (2003-02-18) 09:24.53:849   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=5
DEBUG   (2003-02-18) 09:24.53:851   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=6
DEBUG   (2003-02-18) 09:24.53:852   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=7
DEBUG   (2003-02-18) 09:24.53:853   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: i=8
DEBUG   (2003-02-18) 09:24.53:855   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: query: UPDATE
pcm_contract SET contract_name= ?, contract_type= ?, contract_code= ?,
job_number= ?, misc_code= ?, start_date= ?, end_date= ?, contract_status= ?
WHERE id= ?
DEBUG   (2003-02-18) 09:24.53:857   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Trying to set
column pcm_contract.id from request-param using getAttribute method
DEBUG   (2003-02-18) 09:24.53:859   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Setting
column pcm_contract.id [0] 19
DEBUG   (2003-02-18) 09:24.53:860   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Trying to set
column pcm_contract.contract_name from request-param using getAttribute
method
DEBUG   (2003-02-18) 09:24.53:861   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Setting
column pcm_contract.contract_name [0] Date Test
DEBUG   (2003-02-18) 09:24.53:862   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Trying to set
column pcm_contract.contract_type from request-param using getAttribute
method
DEBUG   (2003-02-18) 09:24.53:863   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Setting
column pcm_contract.contract_type [0] 1
DEBUG   (2003-02-18) 09:24.53:864   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Trying to set
column pcm_contract.contract_code from request-param using getAttribute
method
DEBUG   (2003-02-18) 09:24.53:865   [sitemap.action.DatabaseUpdateAction]
(/pcm1/contract_admin.contract.html) Thread-26/DatabaseAction: Setting
column pcm_contract.contract_code [0] TEMP 123
DEBUG   (2003-

[ignore] pls

2003-02-18 Thread ĎURDINA Michal
[ignore] pls
[ignore] pls
[ignore] pls
[ignore] pls


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: cocoon-2.0.4-vm14, jboss-3.0.4_tomcat-4.1.12: Problem running Portal Sample

2003-02-18 Thread hgadm
Hartmut,

in Cocoon 2.0.x the portal is only in the scratchpad
libraries, not in the binary distribution.
You need to build cocoon including the scratchpad libs
from source, then it works.
Or build 2.1 dev from source (no scratchpad libs needed
here)

Holger

On Mon, 17 Feb 2003, Hartmut Schlotterbeck wrote:

> 
> Hi,
> 
> I have installed cocoon-2.0.4-vm14 under
> jboss-3.0.4_tomcat-4.1.12 under 
> W2K, J2SE 1.4.1_01
> 
> I have put the java classes xalan-2.3.1.jar,
> xercesImpl-2.0.0.jar, 
> xml-apis.jar from Cocoon's WEB-INF\lib in
> jre\lib\endorsed  form J2SE.
> 
> I have removed crimson.jar and jaxp.jar from 
> jboss-3.0.4_tomcat-4.1.12\lib and repaced with
> xml-apis.jar from 
> Cocoon's WEB-INF\lib
> 
> Then I put cocoon.war to
> jboss-3.0.4_tomcat-4.1.12\server\default\deploy 
> and started the JBoss server.
> 
> Cocoon is working so far. But checking the samples,
the
> Portal & 
> Authentication Sample doesn't work. After logging in
> with guest/guest 
> JBoss shows the following Cocoon exception and the
> Portal is not working.
> 
> Has anyone an idea how to solve this problem, because
I
> want to use the 
> sunrise portal functions.
> 
> Thanks
> Hartmut
> 
> 13:28:13,053 ERROR [Engine]
> StandardWrapperValve[Cocoon2]: 
> Servlet.service() for
>  servlet Cocoon2 threw exception
> java.lang.IllegalStateException
> at 
>
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.jav
> a:252)
> at 
>
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:11
> 15)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
> at 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
> at 
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:260)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
> at 
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
> .java:246)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
> at 
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2396)
> at 
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:170)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:172)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 469)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
> at 
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:174)
> at 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
> at 
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
> r.java:1040)
> at 
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
> va:1151)
> at java.lang.Thread.run(Thread.java:536)
> 
> 
>
-
> Please check that your question  has not already been
> answered in the
> FAQ before posting.
> ">http:/

Re: dynamic sitemap dependent on response mimetype ?

2003-02-18 Thread SAXESS - Hussayn Dabbous
Hy;

My original problem came up, when i started to gather data
from another site under authentication. This site happened
to send back a login form instead of the expected XML-data
stream uppon first request. Unfortuntely the site did NOT
send back a HTTP-401 from which i could setup some error
handling.

It would have been great, when this login form could be
processed instead of the original datastream and handed
over to my browser instead of the expected data.
But the only hint i have here is the mime type i get back.
And even this gets broken, if the errorpage would also be
an XML-document.
OK, the whole things needs a major rethought anyway...
thanks again for your support  ;-)

hussayn

Geoff Howard wrote:

At 10:23 AM 2/18/2003, you wrote:


Anyway i think, your answer saved me from
doing unnecessary experiments...

regards, Hussayn



Good - that's why I wrote that despite not really having time to 
understand fully what you were trying to do. ;)

Geoff

Geoff Howard wrote:


Sounds like you're asking to dynamically affect the pipeline setup 
after the generator is called which is by design impossible.  If so, 
you'll need a component that executes before pipeline setup (which 
therefore can alter pipeline setup) which limits you to actions, 
matchers, and selectors.  (did i miss one?)  Most likely, you're 
going to want an action.
Geoff
At 06:20 AM 2/18/2003, you wrote:

Hy;

Can i overcome following problem:

Within a match i read or aggregate some XML-sources from another
server, e.g.:


  http://myserver/mypage.xml"/>
  
  


Now suppose, myserver does not send back the content of
mypage.xml, but another HTTP-200 response containing an
HTML message with some informal message in it, like
"site is currenlty down", or something similar.

What happens in the above case is, that my style sheet simply
gets something very different from what it expected. Possibly
even the response is not well formed... In fact getting the wrong
mimetype is an error, but what i received is still valuable and i
want to send this back instead of the expected xml-data:

What i search is a possibility to simply skip the transformation if i
get something else, than say "plain/xml" as mimetype back from
myserver. Instead doing the transformation, i want directly send back
what i gathered from myserver so far.
How can this be done ?

And going one step further what can i do in this case:


  http://myserver/mypage"/>
  ...


Now lets say, i don't know at all, what mimetype myserver
will return, but i wanted to do something, if mimetype is plain/xml
and simply return the data as is in any other case...
How could i achieve this ?

Or is there something, that is so obvious and i simply
don't see it ?

regards, hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: dynamic sitemap dependent on response mimetype ?

2003-02-18 Thread Geoff Howard
At 10:23 AM 2/18/2003, you wrote:


Anyway i think, your answer saved me from
doing unnecessary experiments...

regards, Hussayn


Good - that's why I wrote that despite not really having time to understand 
fully what you were trying to do. ;)

Geoff

Geoff Howard wrote:

Sounds like you're asking to dynamically affect the pipeline setup after 
the generator is called which is by design impossible.  If so, you'll 
need a component that executes before pipeline setup (which therefore can 
alter pipeline setup) which limits you to actions, matchers, and 
selectors.  (did i miss one?)  Most likely, you're going to want an action.
Geoff
At 06:20 AM 2/18/2003, you wrote:

Hy;

Can i overcome following problem:

Within a match i read or aggregate some XML-sources from another
server, e.g.:


  http://myserver/mypage.xml"/>
  
  


Now suppose, myserver does not send back the content of
mypage.xml, but another HTTP-200 response containing an
HTML message with some informal message in it, like
"site is currenlty down", or something similar.

What happens in the above case is, that my style sheet simply
gets something very different from what it expected. Possibly
even the response is not well formed... In fact getting the wrong
mimetype is an error, but what i received is still valuable and i
want to send this back instead of the expected xml-data:

What i search is a possibility to simply skip the transformation if i
get something else, than say "plain/xml" as mimetype back from
myserver. Instead doing the transformation, i want directly send back
what i gathered from myserver so far.
How can this be done ?

And going one step further what can i do in this case:


  http://myserver/mypage"/>
  ...


Now lets say, i don't know at all, what mimetype myserver
will return, but i wanted to do something, if mimetype is plain/xml
and simply return the data as is in any other case...
How could i achieve this ?

Or is there something, that is so obvious and i simply
don't see it ?

regards, hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: dynamic sitemap dependent on response mimetype ?

2003-02-18 Thread SAXESS - Hussayn Dabbous
Hy, Geoff;

Thank's for the info.
I hoped there was a better integrated solution.
Ok, then i have to think about what that means
for my current project in more detail.
Anyway i think, your answer saved me from
doing unnecessary experiments...

regards, Hussayn


Geoff Howard wrote:

Sounds like you're asking to dynamically affect the pipeline setup after 
the generator is called which is by design impossible.  If so, you'll 
need a component that executes before pipeline setup (which therefore 
can alter pipeline setup) which limits you to actions, matchers, and 
selectors.  (did i miss one?)  Most likely, you're going to want an action.

Geoff

At 06:20 AM 2/18/2003, you wrote:

Hy;

Can i overcome following problem:

Within a match i read or aggregate some XML-sources from another
server, e.g.:


  http://myserver/mypage.xml"/>
  
  


Now suppose, myserver does not send back the content of
mypage.xml, but another HTTP-200 response containing an
HTML message with some informal message in it, like
"site is currenlty down", or something similar.

What happens in the above case is, that my style sheet simply
gets something very different from what it expected. Possibly
even the response is not well formed... In fact getting the wrong
mimetype is an error, but what i received is still valuable and i
want to send this back instead of the expected xml-data:

What i search is a possibility to simply skip the transformation if i
get something else, than say "plain/xml" as mimetype back from
myserver. Instead doing the transformation, i want directly send back
what i gathered from myserver so far.
How can this be done ?

And going one step further what can i do in this case:


  http://myserver/mypage"/>
  ...


Now lets say, i don't know at all, what mimetype myserver
will return, but i wanted to do something, if mimetype is plain/xml
and simply return the data as is in any other case...
How could i achieve this ?

Or is there something, that is so obvious and i simply
don't see it ?

regards, hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: jboss and cocoon

2003-02-18 Thread Hunsberger, Peter
arnaud asked:

> 
> does anybody used cocoon with jboss ?

Yes, we deploy Cocoon as an EAR under Jboss.  The EJB classes are packaged
as a JAR within the EAR and Cocoon is packaged as WAR inside the EAR. The
EJB remote interfaces are included in the Cocoon lib.  You can of course
deploy separately if you'd like...

> 
> i would like to use mey ejb method : toXML()
> who transform ejb data in xml
> 

Just call your remote interfaces from any Cocoon classes as normal. As long
as you've got the remote interfaces available to Cocoon there is no issue.

> what kind of generator may i use ?
> 

Any kind you'd like :-)




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Server-side includes

2003-02-18 Thread Yury Mikhienko

Sorry by jump, but how I can Include non xml document (not welformed document like 
html)?

HTMLGenegator does'nt work with non-english encoded pages properly :((

On Tue, 18 Feb 2003 08:44:19 -0500
Geoff Howard <[EMAIL PROTECTED]> wrote:

> Read the docs about "aggregation" in the sitemap using map:aggregate and 
> also read the docs for the xinclude and cinclude transformers
> 
> Geoff Howard
> 
> At 04:21 AM 2/18/2003, you wrote:
> >Dear Cocoon users,
> >
> > I want use server-side includes in a xsl page. I'm using the apache 
> > ones ok in my static content, but I think this doesn't work on Cocoon. I 
> > have Apache+Tomcat+Cocoon with mod Jk2.
> >
> > How can I do that?
> >
> > Thanks in advance.
> >
> > Eduardo.



-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: jboss and cocoon

2003-02-18 Thread Schaper, Christoph
Or write a custom generator. We have a custom writer transforming certain
JAVA classes to SAX events and use it in a generator
like

myJAVA = getSomehowTheJAVA();
contentHandler.startDocument();
XMLSaxWriter writer;
// generate the actual xml
writer = new XMLSaxWriter(contentHandler);
writer.toXML(resultList);
contentHandler.endDocument();



Christoph


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 15:18
To: [EMAIL PROTECTED]
Subject: AW: jboss and cocoon


Whats about castor? Serienlize your DataVO to XML and deserialize the XML
file to a DataVO.

Juraj



-Ursprüngliche Nachricht-
Von: arnaud [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 18. Februar 2003 14:58
An: cocoon
Betreff: jboss and cocoon


hi

does anybody used cocoon with jboss ?

i would like to use mey ejb method : toXML()
who transform ejb data in xml

what kind of generator may i use ?

thanks

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XSP and JavaBeans

2003-02-18 Thread Nesto



Hi,
 
I want to convert my JSP (that actually 
generates my xml data)  in XSP for use them with 
Cocoon.
My JSP are based on JavaBeans and import some 
custom classes.
 
Is there a way to reuse this 
components?
My classes can be imported with the element 
, but how can I include my Beans in a way similar to the 
 directive?
 
Thank you!
Nesto


AW: jboss and cocoon

2003-02-18 Thread Juraj . Lenharcik
Whats about castor? Serienlize your DataVO to XML and deserialize the XML file to a 
DataVO.

Juraj



-Ursprüngliche Nachricht-
Von: arnaud [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 18. Februar 2003 14:58
An: cocoon
Betreff: jboss and cocoon


hi

does anybody used cocoon with jboss ?

i would like to use mey ejb method : toXML()
who transform ejb data in xml

what kind of generator may i use ?

thanks

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: CLI

2003-02-18 Thread Upayavira
Darren,

I have often wondered why the CLI isn't a standard part of the binary distribution.

I have posted a message to the dev list to ask if there is a reason why it isn't there,
and if not to offer at least have a go at creating the necessary scripts.

Regards, Upayavira

> CLI doesn't work "out of the box" with the binary distribution and that
> is the source of most of the pleas on this list for help regarding the
> CLI.  It can be made to work with the binary distribution by setting
> your class path but it's not straightforward.   I found for me that the
> "easiest" way to use the CLI was via the source distribution of Cocoon
> and ./run.sh.
>
> Ines,  I suggest the path of least resistance to successfully using the
> CLI is via compiling the Cocoon source distribution.
>
> Once done as Upayavira stated the CLI is documented on the Wiki page
>
> http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine
>
> Darren
>
>
> On Tuesday, February 18, 2003, at 11:34 AM, Konstantin Piroumian wrote:
>
> > From: "Robert Sösemann" <[EMAIL PROTECTED]>
> >
> >> The CLI is part of the cocoon.jar, so is contained in your cocoon
> >> version.
> >>
> >> You call it by:
> >>
> >> BUT, it doesn't work. Noone who ever asked this list for help on the
> >> cli
> >> received a helpful answer. The reason to my opinion is not a lack of
> >> cooperation, but the lack of experience with the cli and the
> >> frustrating
> >> experience when trying to test it on your own.
> >
> > Absolutely false statement.
> >
> > Cocoon CLI *works*! Otherwise you won't get any Cocoon docs/site and
> > there
> > would be no Forrest project (http://xml.apache.org/forrest). Parts of
> > Apache
> > XML site are also generated using Cocoon CLI/Forrest.
> >
> >>
> >> In short: I think CLI sucks and doens't work properly. BUT that's no
> >> problem. There are dozens of  much better web downloader/offline
> >> browsers
> > to
> >> make a cocoon site static.
> >
> > You contradict yourself. If it doesn't work then how could it work
> > inproperly?
> >
> > Ines,
> >
> > Examples of running Cocoon from command line you'll find in Cocoon's
> > build.xml. Take a look at the 'docs' target:
> >
> >  > dir="${build.context}"
> >   failonerror="true" maxmemory="128m">
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> > 
> >   
> > 
> > 
> > 
> >   
> > 
> >
> >
> > Basically you'll need to set several command line options, then invoke
> > the
> > jar as you've done below. But Cocoon CLI is not an interactive tool
> > and it
> > simply works in batch mode. It starts from the URL you've specified in
> > the
> > command line (it's the index.html in the above snippet).
> >
> > As for the other tools, then yes, you can use something like wget
> > instead of
> > Cocoon CLI to generate the static site.
> >
> > --
> >   Konstantin
> >
> >>
> >> In our project we are using HTTrack, a wonderful open source tool. It
> > comes
> >> with a Window gui and a fully blown command line - much better that
> >> the
> >> cocoon cli. Download at www.httrack.com/
> >>
> >> I hope I could help.
> >>
> >> Robert
> >>
> >>
> >> - Original Message -
> >> From: "Ines Robbers" <[EMAIL PROTECTED]>
> >> To: "Cocoon Mailingliste" <[EMAIL PROTECTED]>
> >> Sent: Monday, February 17, 2003 5:23 PM
> >> Subject: CLI
> >>
> >>
> >>> Hello!
> >>>
> >>> I'm trying to understand the command-line interface of Cocoon -
> >>> unfortunately without much success so far.
> >>> The Cocoon version I'm using is 2.0.4. Where do I find the java.class
> >>> that starts the CLI? Do I have to download anything?
> >>> Is it correct that once the class has started I type in:
> >>>
> >>> java -jar cocoon.jar -c  (as an example)
> >>>
> >>> to start with whatever I intend to do?
> >>>
> >>> Many thanks for help!
> >>>
> >>> Ines
> >>>
> >>>
> >>>
> >>> -
> >>> Please check that your question  has not already been answered in the
> >>> FAQ before posting. 
> >>>
> >>> 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. 
> >>
> >> 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. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >

Re: XT Transformer or XSLT Transformer?

2003-02-18 Thread Joerg Heinicke
Will cocoon support XSLT 2.0 in the future?


Cocoon uses Xalan by default, you can choose and use another XSLT
processor like XT or Saxon. The Xalan developer group has a XSLT 2 
branch in the CVS, but it's still experimental.

Joerg


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: CLI

2003-02-18 Thread Darren Petrie
CLI doesn't work "out of the box" with the binary distribution and that 
is the source of most of the pleas on this list for help regarding the 
CLI.  It can be made to work with the binary distribution by setting 
your class path but it's not straightforward.   I found for me that the 
"easiest" way to use the CLI was via the source distribution of Cocoon 
and ./run.sh.

Ines,  I suggest the path of least resistance to successfully using the 
CLI is via compiling the Cocoon source distribution.

Once done as Upayavira stated the CLI is documented on the Wiki page

http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine

Darren


On Tuesday, February 18, 2003, at 11:34 AM, Konstantin Piroumian wrote:

From: "Robert Sösemann" <[EMAIL PROTECTED]>


The CLI is part of the cocoon.jar, so is contained in your cocoon 
version.

You call it by:

BUT, it doesn't work. Noone who ever asked this list for help on the 
cli
received a helpful answer. The reason to my opinion is not a lack of
cooperation, but the lack of experience with the cli and the 
frustrating
experience when trying to test it on your own.

Absolutely false statement.

Cocoon CLI *works*! Otherwise you won't get any Cocoon docs/site and 
there
would be no Forrest project (http://xml.apache.org/forrest). Parts of 
Apache
XML site are also generated using Cocoon CLI/Forrest.


In short: I think CLI sucks and doens't work properly. BUT that's no
problem. There are dozens of  much better web downloader/offline 
browsers
to

make a cocoon site static.


You contradict yourself. If it doesn't work then how could it work
inproperly?

Ines,

Examples of running Cocoon from command line you'll find in Cocoon's
build.xml. Take a look at the 'docs' target:


dir="${build.context}"
  failonerror="true" maxmemory="128m">
  
  
  
  
  
  
  
  
  


  



  



Basically you'll need to set several command line options, then invoke 
the
jar as you've done below. But Cocoon CLI is not an interactive tool 
and it
simply works in batch mode. It starts from the URL you've specified in 
the
command line (it's the index.html in the above snippet).

As for the other tools, then yes, you can use something like wget 
instead of
Cocoon CLI to generate the static site.

--
  Konstantin


In our project we are using HTTrack, a wonderful open source tool. It

comes

with a Window gui and a fully blown command line - much better that 
the
cocoon cli. Download at www.httrack.com/

I hope I could help.

Robert


- Original Message -
From: "Ines Robbers" <[EMAIL PROTECTED]>
To: "Cocoon Mailingliste" <[EMAIL PROTECTED]>
Sent: Monday, February 17, 2003 5:23 PM
Subject: CLI


Hello!

I'm trying to understand the command-line interface of Cocoon -
unfortunately without much success so far.
The Cocoon version I'm using is 2.0.4. Where do I find the java.class
that starts the CLI? Do I have to download anything?
Is it correct that once the class has started I type in:

java -jar cocoon.jar -c  (as an example)

to start with whatever I intend to do?

Many thanks for help!

Ines



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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. 

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



Darren Petrie
[EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




jboss and cocoon

2003-02-18 Thread arnaud
hi

does anybody used cocoon with jboss ?

i would like to use mey ejb method : toXML()
who transform ejb data in xml

what kind of generator may i use ?

thanks

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




partial answer of cocoon-reload parameter

2003-02-18 Thread Lionel Crine
I have a partial answer about cocoon-reload.

In my transformer, I initialized a parser like this :

 public void compose( ComponentManager manager ) {
super.compose(manager);
	

try {
	this.parser = (Parser) manager.lookup(Parser.ROLE);
} catch ( ComponentException cme ) {
getLogger().warn( "Could not get the DataSource Selector", cme );
}
}

Then, I invoke the recycle method :

  public void recycle()
{
super.recycle();
	this.inputStringSource = null;
	this.url = null;
	this.domain = null;	
	this.server = null;
	this.base = null;
	this.login = null;
	this.password = null;
	this.request = null;
	this.manager.release(this.parser);
	//	this.parser = null;
	

I have commented this line above, so I do not empty the parser.
Now I don't have to use "cocoon-reload" parameter and when I relod the page 
I still have my data.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



Re: dynamic sitemap dependent on response mimetype ?

2003-02-18 Thread Geoff Howard
Sounds like you're asking to dynamically affect the pipeline setup after 
the generator is called which is by design impossible.  If so, you'll need 
a component that executes before pipeline setup (which therefore can alter 
pipeline setup) which limits you to actions, matchers, and selectors.  (did 
i miss one?)  Most likely, you're going to want an action.

Geoff

At 06:20 AM 2/18/2003, you wrote:
Hy;

Can i overcome following problem:

Within a match i read or aggregate some XML-sources from another
server, e.g.:


  http://myserver/mypage.xml"/>
  
  


Now suppose, myserver does not send back the content of
mypage.xml, but another HTTP-200 response containing an
HTML message with some informal message in it, like
"site is currenlty down", or something similar.

What happens in the above case is, that my style sheet simply
gets something very different from what it expected. Possibly
even the response is not well formed... In fact getting the wrong
mimetype is an error, but what i received is still valuable and i
want to send this back instead of the expected xml-data:

What i search is a possibility to simply skip the transformation if i
get something else, than say "plain/xml" as mimetype back from
myserver. Instead doing the transformation, i want directly send back
what i gathered from myserver so far.
How can this be done ?

And going one step further what can i do in this case:


  http://myserver/mypage"/>
  ...


Now lets say, i don't know at all, what mimetype myserver
will return, but i wanted to do something, if mimetype is plain/xml
and simply return the data as is in any other case...
How could i achieve this ?

Or is there something, that is so obvious and i simply
don't see it ?

regards, hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: cocoon-reload parameter

2003-02-18 Thread Geoff Howard
At 03:31 AM 2/18/2003, you wrote:

You're right, but when I don't use it the sax events from my transformer 
are lost.
They are in the tomcat "console" (the windows where we see the error) but 
the xslt transformer do not get them.

Given that no other transformers exhibit this problem, I'd guess that 
something's wrong with your transformer.  I'm sorry if I've missed it, but 
have you tried looking for help on it specifically here on the list?

Geoff

At 13:22 17/02/2003 -0500, you wrote:

I would really suggest going back and finding the solution to the problem 
that made cocoon-reload necessary.  That causes the entire cocoon 
instance to be destroyed and reloaded - reading all configuration from 
files on disk, re-initializing all components, etc.  It is going to be a 
very big drain on your system to use it the way you are.  Additionally, 
I'd highly recommend disabling its use (in web.xml) for live sites.

Geoff Howard

At 04:28 AM 2/17/2003, you wrote:
I generate file from a form and I need to use cocoon-reload parameter, I 
don't know why but I had to.

To use it I'm doing, from my xsl file.
...
   
...

Is there another way to use it without passing it in the URL.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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. 

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. 

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




Re: Server-side includes

2003-02-18 Thread Geoff Howard
Read the docs about "aggregation" in the sitemap using map:aggregate and 
also read the docs for the xinclude and cinclude transformers

Geoff Howard

At 04:21 AM 2/18/2003, you wrote:
Dear Cocoon users,

I want use server-side includes in a xsl page. I'm using the apache 
ones ok in my static content, but I think this doesn't work on Cocoon. I 
have Apache+Tomcat+Cocoon with mod Jk2.

How can I do that?

Thanks in advance.

Eduardo.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: extending XMLForms for different kinds of models...opinions?

2003-02-18 Thread Christian Haul
Josema Alonso wrote:

When I tried not to use Java, the hard part was not the CRUD one but the
validation against the DB. Mixing both was a nightmare when not using Java.
When using Java code and the helper class I only had to write very few lines
and everything was working.


Yes, that really is a mess when trying to do it from sitemap. From 
flowscript however, it works nicely.



Do you feel this would be clearer if using two different parameters? One for
the java model and the other for the SourceResolver models?


Indeed, that is my feeling. Given that the necessity to support both at 
the same time is coming up, it appears even more sensible to separate 
this. OTOH the two models requirement might as well require two models 
of the same type...

Additionally, the behaviour differs: In case of a class, it is loaded,
instantiated, initialized &c. In case of a DOM, it is retrieved. Does it
make sense to attach a listener to each model? (Should the class
instance be automatically registered as listener if it implements the
right interface?)


Good point. I'm not sure about what to think about it yet. Do you have a use
for the Listener already?


No ;-)


These are just thoughts without further reflection. They create the BT
(thanks Steven for this new acronym for belly thought ;-) that in the
heart of things a DOM model and a java model differ too much.



Yes, they differ. But remember we're just trying to support both easily.
Current implementation of xmlforms only allows java models, we propose
adding a new kind of models, the pure XML models, that could be solved by
the SourceResolver. That was the original idea.


I'm all in favour of a DOM based model as additional model class. I just 
don't like prefix approach here.

I finally got to get the thread in the dev list and see your Input Modules
approach. It happens to me the same that happens to Sylvain. It seems cool
but too complicated for me right now. I have to learn more about Input
Modules and I really hope better documentation about them would exist...


Well, there's not much to say about them in general. They behave by and 
large like request parameters but are not limited to them. In addition, 
some can be layered or stacked upon others. They can be used wherever 
there's support for them: there's wildcard matcher, a regexp matcher, 
database actions, transformers for filling in forms or rewriting links, 
and of course use from sitemap as variable. That's it.

Everything else is very specific to the particular module and documented 
inside the corresponding javadocs.

One module for example looks up a form by id and uses jxpath to query 
the model.

Again this seems to try avoiding unnecessary steps, and I think we all would
like that. Note that I think we could make some kind of auto-modeling sooner
or later but I think validation for that auto-models will be harder to
accomplish.


Absolutely. I'm not arguing against Castor, OJB & friends. Those are 
great. (Although I wonder why not use container managed persistence, but 
that's another story ;-)

	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. 

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



Re: [Jetty] Quicker startup

2003-02-18 Thread Jeremy Quinn

On Monday, February 17, 2003, at 07:23 PM, Upayavira wrote:


Tony,

If you're using Windows, you can use the batch file I've attached. 
Otherwise, you
can try Pier's Unix script at:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104337896731869&w=2

I am confused about this script.
Where does it expect $COCOON-HOME to be after a standard build?


thanks

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




dynamic sitemap dependent on response mimetype ?

2003-02-18 Thread SAXESS - Hussayn Dabbous
Hy;

Can i overcome following problem:

Within a match i read or aggregate some XML-sources from another
server, e.g.:


  http://myserver/mypage.xml"/>
  
  


Now suppose, myserver does not send back the content of
mypage.xml, but another HTTP-200 response containing an
HTML message with some informal message in it, like
"site is currenlty down", or something similar.

What happens in the above case is, that my style sheet simply
gets something very different from what it expected. Possibly
even the response is not well formed... In fact getting the wrong
mimetype is an error, but what i received is still valuable and i
want to send this back instead of the expected xml-data:

What i search is a possibility to simply skip the transformation if i
get something else, than say "plain/xml" as mimetype back from
myserver. Instead doing the transformation, i want directly send back
what i gathered from myserver so far.
How can this be done ?

And going one step further what can i do in this case:


  http://myserver/mypage"/>
  ...


Now lets say, i don't know at all, what mimetype myserver
will return, but i wanted to do something, if mimetype is plain/xml
and simply return the data as is in any other case...
How could i achieve this ?

Or is there something, that is so obvious and i simply
don't see it ?

regards, hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: MySQL date conversion with modular database action

2003-02-18 Thread Christian Haul
Andre Taube wrote:

Thanks, that's exactly what I need.  However, my date is in MM/dd/
format, how could I pass a format string to the DateMetaInputModule?  API
says: "Configuration options: child element "input-module" holds InputModule
to obtain the string from, attribute "format" to "input-module" that holds a
java.text.SimpleDateFormat format string"

but the following does not work for me:


   
   
  
  start_date

MM/dd/

  



   



If this doesn't work, make sure that a) you are running a recent 
snapshot (either branch) and b) include complete file (i.e. table-set) 
and logs showing invokation of your action.

	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. 

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



Re: CLI

2003-02-18 Thread Konstantin Piroumian
From: "Robert Sösemann" <[EMAIL PROTECTED]>

> The CLI is part of the cocoon.jar, so is contained in your cocoon version.
>
> You call it by:
>
> BUT, it doesn't work. Noone who ever asked this list for help on the cli
> received a helpful answer. The reason to my opinion is not a lack of
> cooperation, but the lack of experience with the cli and the frustrating
> experience when trying to test it on your own.

Absolutely false statement.

Cocoon CLI *works*! Otherwise you won't get any Cocoon docs/site and there
would be no Forrest project (http://xml.apache.org/forrest). Parts of Apache
XML site are also generated using Cocoon CLI/Forrest.

>
> In short: I think CLI sucks and doens't work properly. BUT that's no
> problem. There are dozens of  much better web downloader/offline browsers
to
> make a cocoon site static.

You contradict yourself. If it doesn't work then how could it work
inproperly?

Ines,

Examples of running Cocoon from command line you'll find in Cocoon's
build.xml. Take a look at the 'docs' target:


  
  
  
  
  
  
  
  
  


  



  



Basically you'll need to set several command line options, then invoke the
jar as you've done below. But Cocoon CLI is not an interactive tool and it
simply works in batch mode. It starts from the URL you've specified in the
command line (it's the index.html in the above snippet).

As for the other tools, then yes, you can use something like wget instead of
Cocoon CLI to generate the static site.

--
  Konstantin

>
> In our project we are using HTTrack, a wonderful open source tool. It
comes
> with a Window gui and a fully blown command line - much better that the
> cocoon cli. Download at www.httrack.com/
>
> I hope I could help.
>
> Robert
>
>
> - Original Message -
> From: "Ines Robbers" <[EMAIL PROTECTED]>
> To: "Cocoon Mailingliste" <[EMAIL PROTECTED]>
> Sent: Monday, February 17, 2003 5:23 PM
> Subject: CLI
>
>
> > Hello!
> >
> > I'm trying to understand the command-line interface of Cocoon -
> > unfortunately without much success so far.
> > The Cocoon version I'm using is 2.0.4. Where do I find the java.class
> > that starts the CLI? Do I have to download anything?
> > Is it correct that once the class has started I type in:
> >
> > java -jar cocoon.jar -c  (as an example)
> >
> > to start with whatever I intend to do?
> >
> > Many thanks for help!
> >
> > Ines
> >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

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




RE: Problems with double click in coplet links.

2003-02-18 Thread bruno nunes jacinto
Hi Matthew.
Do you have any news about "multiclick on coplet links" on portal?
I really need to solve this problem.
Can you give me more tips about the resolution of this problem?

Best Regards
Bruno Jacinto



-Original Message-
From:   "bruno nunes jacinto" <[EMAIL PROTECTED]>
Sent:   Mon, 3 Feb 2003 18:35:28 -
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, 
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject:RE: Problems with double click in coplet links.


The problem "lots of clicks on coplets links” , not only happen in configuration link 
in the coplet (like minimize or maximize), but in any other links that exits inside of 
a coplet.

It seems that you have reproduced the problem correctly.

About your question ( If I then do a normal refresh in the browser the page renders 
correctly – is that the same for you? ), the answer is yes, it renders perfectly.

Best regards
Bruno Jacinto



-Original Message-
From:   "Matthew Langham" <[EMAIL PROTECTED]>
Sent:   Mon, 3 Feb 2003 18:22:52 +0100
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject:RE: Problems with double click in coplet links.

Hi Bruno,

>
> When I make double click or  lots of clicks in a coplet link,
> one of  two things can happen:
>   1- I receive a page without some coplets.
>   OR
>   2 I receive an error page.
>
> This instability happens frequently, so help me as soon as possible.
>

If you are talking about a configuration link in the coplet (like minimize
or maximize) then I just tried to reproduce this on a Cocoon 2.1-dev
version. With success :-(.

It looks to me as if the number of parallel requests to the portal handler
is causing a hiccup. I do not know why this is.

If I then do a normal refresh in the browser the page renders correctly - is
that the same for you?

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
Weblogs:
  http://radio.weblogs.com/0103021/
  http://www.oreillynet.com/weblogs/author/1014
=





> I already tried in cocoon 2.04, cocoon 2.1-dev with tomcat 4.1.12
> or 4.1.18, under win 2000, but the problem still happens.
>
> Best Regards:
> Bruno Jacinto ( [EMAIL PROTECTED] )
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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. 

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. 

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




Server-side includes

2003-02-18 Thread Eduardo Zurita



Dear Cocoon users,
 
    I want use server-side includes 
in a xsl page. I'm using the apache ones ok in my static content, but I think 
this doesn't work on Cocoon. I have Apache+Tomcat+Cocoon with mod 
Jk2.
    
    How can I do that?
 
    Thanks in advance.
 
    
Eduardo.


Re: cocoon-reload parameter

2003-02-18 Thread Lionel Crine
The pipeline :




  http://localhost/there.wdsl"/>
  
  
  
  
  
  

  



The xsl document :
...


 
   
 
   
   
   IXIASOFT DEMO

   
 
   
   
 

...
etc

hope this help

At 08:38 18/02/2003 +, you wrote:
Lionel,

> You're right, but when I don't use it the sax events from my transformer
> are lost.
> They are in the tomcat "console" (the windows where we see the error) but
> the xslt transformer do not get them.

Could you post the  section of your 
sitemap, so
that we can see what you are trying to do?

Thanks,

Upayavira

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: XT Transformer or XSLT Transformer?

2003-02-18 Thread Yury Mikhienko
XT transformation is based on jclark API (faster than standard javax.xml.transform 
API? ) and implement any extension functions

XSLT transformation is based on standard javax.xml.transform API (why not on Xalan?) 
and implement the XSL Transformations (XSLT) Version 1.0 (not 2.0 - more powerful)

What shall I  use to transform my documents?

Any suggestions? Will cocoon support XSLT 2.0 in the future?

> Are you refering to something specific?
> 
> As far as I know XT *is a* XSLT processor. http://www.blnz.com/xt/index.html
> 
> I don't know if there is any XT, which can be compared to XSLT, and I 
> don't think so.
> 
> Joerg
> 
> Yury Mikhienko wrote:
> > Hi all!
> > 
> > Can anyone sent me any differents between the XT and XSLT transformation (or path 
>to doc resource)
> > 
> > Thanks.
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: cocoon-reload parameter

2003-02-18 Thread Upayavira
Lionel,

> You're right, but when I don't use it the sax events from my transformer 
> are lost.
> They are in the tomcat "console" (the windows where we see the error) but 
> the xslt transformer do not get them.

Could you post the  section of your sitemap, so 
that we can see what you are trying to do?

Thanks,

Upayavira

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: cocoon-reload parameter

2003-02-18 Thread Lionel Crine
You're right, but when I don't use it the sax events from my transformer 
are lost.
They are in the tomcat "console" (the windows where we see the error) but 
the xslt transformer do not get them.




At 13:22 17/02/2003 -0500, you wrote:
I would really suggest going back and finding the solution to the problem 
that made cocoon-reload necessary.  That causes the entire cocoon instance 
to be destroyed and reloaded - reading all configuration from files on 
disk, re-initializing all components, etc.  It is going to be a very big 
drain on your system to use it the way you are.  Additionally, I'd highly 
recommend disabling its use (in web.xml) for live sites.

Geoff Howard

At 04:28 AM 2/17/2003, you wrote:
I generate file from a form and I need to use cocoon-reload parameter, I 
don't know why but I had to.

To use it I'm doing, from my xsl file.
...
   
...

Is there another way to use it without passing it in the URL.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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. 

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