Best Practice of caching XML

2002-11-16 Thread Thorsten Mauch
> Hi All 
> In my cocoon application i have a productdescription stored as a xml
> string.
> After i query the database i want do store this description is a cache. In
> terms
> of performance what is the recommended way do that. Store the string or as
> 
> Dom docment ? what is the fastest way to generate the sax events ?
> Or is there a way to store the Sax event it self ?
> 
> Thanx Thorsten
> 

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




Cocoon 2.1 DEV with Jboss 3.0.4/Jboss WEB (jetty) Redirection Problem

2002-11-14 Thread Thorsten Mauch
Hi 
No i try to run cocoon with Jboss Web witch is jetty. 
When i type:

http://127.0.0.1:8080/cocoon

then I get
HTTP ERROR: 404 /documents/index Not Found
RequestURI=/documents/index 
becuase it redirects to http://127.0.0.1:8080/documents/index


while:
http://127.0.0.1:8080/cocoon/documents/index.html
show the correct cocoon page





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




AW: Error with Portal and Jboss

2002-11-14 Thread Thorsten Mauch
as a endorsement:
my OS is win200, JDK 1.4_02 and i compiled cocoon with

build -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp

also i reviwd all logfiles, but i can't find any error

-Ursprüngliche Nachricht-
Von: Thorsten Mauch [mailto:mauch@;imkenberg.de]
Gesendet: Donnerstag, 14. November 2002 15:01
An: '[EMAIL PROTECTED]'
Betreff: Error with Portal and Jboss 


Hi All
I use teh lastest cocoon from CVS with Jboss 3.0.4 bundled
with tomcat 4.1.12. 
When is log on in the portal sample i receive an error:

java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:252)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
at java.lang.Thread.run(Thread.java:536)

and ideas ?

Thanx Thorsten


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




Error with Portal and Jboss

2002-11-14 Thread Thorsten Mauch
Hi All
I use teh lastest cocoon from CVS with Jboss 3.0.4 bundled
with tomcat 4.1.12. 
When is log on in the portal sample i receive an error:

java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:252)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
at java.lang.Thread.run(Thread.java:536)

and ideas ?

Thanx Thorsten


-
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-3.0.3_Tomcat-4.1.12 with cocoon 2.1

2002-10-06 Thread Thorsten Mauch

Hi All
 I try to setup my cocoon Application to work inside the Jboss-tomcat.
I changed from crimson/jaxp to xerces. I also copy some of the jars 
form cocoon/WEB-INF/lib to /server/default/deploy to avoid classnotfound
exceptions.
Currently i can run the cocoon and i see the documentaion. But i got a lot
errors about logging
like:

01:03:31,186 INFO  [Engine] DEBUG   (2002-10-07) 01:03.31:186   []
(/cocoon/webshop/index) HttpProcessor[8080][1]/DefaultLogKitManag
er: Logger for category sitemap.KONT not defined in configuration. New
Logger created and returned
01:03:31,456 INFO  [Engine] DEBUG   (2002-10-07) 01:03.31:456   []
(/cocoon/webshop/index) HttpProcessor[8080][1]/DefaultLogKitManag
er: Logger for category sitemap.generator.file not defined in configuration.
New Logger created and returned

When I try to run my own application I get also a error:
ERROR   (2002-10-07) 01:03.26:539   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Cocoon servlet threw an Exception while trying
to close stream.
java.io.IOException: The stream has been closed
at
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:238)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
at java.lang.Thread.run(Thread.java:484)

I have no idea what this means and where I have to search for this error. 
If anybody have a instruction how to setup Jboss 3.0.3 with cocoon
it would make me really happy ;)

Thanx a lot Thorsten

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




CastorTranformer

2002-02-19 Thread Thorsten Mauch

Hi 
I wrote a Castor Transfomer it Marshals a object from the 
Session or the Sitemap  into a series of SAX events.
So it can replace a element with marshalled object.
I wan't to ask if you want this Transformer as a 
conribution ?


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




JDOMTransformer

2002-02-14 Thread Thorsten Mauch

Hi All
I made a simple JDOMTransformer. If you like it, i contribute it. Somebody
can commmit it to CVS.
I don't made any tests how the performance is affected by 
this transformer. But is comfortable to use :)

package org.apache.cocoon.transformation;

import org.jdom.Document;
import org.jdom.input.DOMBuilder;
import org.jdom.output.DOMOutputter;
/**
 * Title: A simple JDOM transformer
 * @author Thorsten Mauch
 * @version 1.0
 */

public abstract class AbstractJDOMTransformer extends AbstractDOMTransformer
{


  protected org.w3c.dom.Document transform(org.w3c.dom.Document doc) {
DOMBuilder builder = new DOMBuilder();
DOMOutputter outputter = new DOMOutputter();

try{
  return outputter.output(transform(builder.build(doc)));
}
catch(Exception e){
  log.error("Error while JDOMTransformation",e);
  return doc;
}


  }
  protected abstract Document transform(Document doc);

}

-
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: Cocoon, XForms, ExFormula,, Struts, etc

2002-02-13 Thread Thorsten Mauch

Hi
we are working on a integeration from 
cocoon chiba and castor-xml
http://sourceforge.net/projects/chiba/

we like to use castor to perform
the data exchange automaticly.
Beside this we wrote some basic
actions to handle Xforms request.

I hope that you will see a basic
version of that in the Chiba CVS



-Ursprüngliche Nachricht-
Von: Ivanov, Ivelin [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Februar 2002 06:49
An: '[EMAIL PROTECTED]'
Betreff: Cocoon, XForms, ExFormula,, Struts, etc



Hi,

After using successfully JSPs+Struts for a relatively big enterprise
project, I've grown to appreciate the MVC model, but have also found some
places where it can be improved.

Before starting a long discussion, I'm first just looking for a short answer
to the following question:

Does Cocoon 2 have a mechanism for achieving automatic Form population and
validation, similar to Struts ?

I've noticed that in the project archive XForms and ExFormula have been
discussed on a number of ocasions, but they've been integrated in C2. Am I
wrong?

I will appreciate a prompt response.

Thank you.

-= Ivelin Ivanov =-




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




Selector problem

2002-02-08 Thread Thorsten Mauch

Hi All 
without the seelctor everything works well, but
with the parameterselector in my pipeline
get the following error:

java.lang.RuntimeException: 
Stylesheet directed termination at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3174) 
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:433) 
at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) 
at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) 
at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230) 
at
org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidato
r.java:1146) 
at
org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch
(XMLDocumentScanner.java:1499) 
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381) 
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) 
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) 
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) 

my pipline looks like:




 














 





What's my failure ?


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




can't extend AbstractDOMTransformer, aditional info

2002-02-07 Thread Thorsten Mauch

in the sitemap.log I found:
org.apache.cocoon.ProcessingException: 
Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/sapdb.xml:
java.lang.NullPointerException
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:209)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:355)
at
org.apache.cocoon.www.chiba.sitemap_xmap.matchN1002B(sitemap_xmap.java:461)
at
org.apache.cocoon.www.chiba.sitemap_xmap.process(sitemap_xmap.java:369)
at
org.apache.cocoon.www.chiba.sitemap_xmap.process(sitemap_xmap.java:312)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
at
org.apache.cocoon.www.sitemap_xmap.matchN102CF(sitemap_xmap.java:3617)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2626)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2432)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
at org.apache.cocoon.Cocoon.process(Cocoon.java:582)

-Ursprüngliche Nachricht-
Von: Thorsten Mauch [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 23:30
An: '[EMAIL PROTECTED]'
Betreff: can't extend AbstractDOMTransformer, was Could not read
resource file


Hi all 
You may seen my previous messages. Now I
can explain my exact environment.
Under win2000 I installed
a new version from
Tomcat 4.01
and Cocoon 2.0.1
jdk1.3.1

I wrote a simple Transformer that extends AbstractDOMTransformer:

public class XFormTrans extends AbstractDOMTransformer {
  protected Document transform(Document doc) {
return doc;
  }
}

if i add this transformer to the sitemap:







the sitemap is setuped correctly, but if I access the the pipe
I get a error message:

type fatal
message Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml
description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml:
java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet

If I exchange the domtransfomer with the xslt-transformer 
no error occour.

I tried also Tomcat 4.0 and jdk 1.3, 1.4 beta3 
with the same result.

At least any ideas in what where I can seek
this error ?

thanx thorsten


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




can't extend AbstractDOMTransformer, was Could not read resource file

2002-02-07 Thread Thorsten Mauch

Hi all 
You may seen my previous messages. Now I
can explain my exact environment.
Under win2000 I installed
a new version from
Tomcat 4.01
and Cocoon 2.0.1
jdk1.3.1

I wrote a simple Transformer that extends AbstractDOMTransformer:

public class XFormTrans extends AbstractDOMTransformer {
  protected Document transform(Document doc) {
return doc;
  }
}

if i add this transformer to the sitemap:







the sitemap is setuped correctly, but if I access the the pipe
I get a error message:

type fatal
message Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml
description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml:
java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet

If I exchange the domtransfomer with the xslt-transformer 
no error occour.

I tried also Tomcat 4.0 and jdk 1.3, 1.4 beta3 
with the same result.

At least any ideas in what where I can seek
this error ?

thanx thorsten


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




AW: Could not read resource file

2002-02-07 Thread Thorsten Mauch

Hi 
meanwhile I know a little bit more.
The error only orccure with a Transformer 
that extends AbstractDOMTransformer exist
in the pipe.
To be sure that is not related to my code 
i implement a simplest thinkable DOMTransformer:

public class XFormTrans extends AbstractDOMTransformer {

  public XFormTrans() {
  }
  protected Document transform(Document doc) {
return doc;
  }
}

with this transformer the error occur, with xslt transformer
it don't




-Ursprüngliche Nachricht-
Von: Thorsten Mauch [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 02:14
An: '[EMAIL PROTECTED]'
Betreff: Could not read resource file


Hi All 
I upgraded from cocoon 2 rc1 to version 2.01.
with rc1 everything was ok, but now i get:
type fatal
message Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml
description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml:
java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/chiba/buglet.view
path-info
chiba/buglet.view



The error message makes no sense because 
the file realy exist
C:/tomcat/webapps/cocoon/chiba/buglet.xml

my sitemap looks like:



  



Thx Thorsten



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




Could not read resource file

2002-02-06 Thread Thorsten Mauch

Hi All 
I upgraded from cocoon 2 rc1 to version 2.01.
with rc1 everything was ok, but now i get:
type fatal
message Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml
description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/tomcat/webapps/cocoon/chiba/buglet.xml:
java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/chiba/buglet.view
path-info
chiba/buglet.view



The error message makes no sense because 
the file realy exist
C:/tomcat/webapps/cocoon/chiba/buglet.xml

my sitemap looks like:



  



Thx Thorsten



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




Howto access javax.servlet.http.HttpServletRequest

2002-01-29 Thread Thorsten Mauch

Hi All
I try to integate Chiba with Cocoon. Unfornatunaly
the XMLRequest class from Chiba use the 
javax.servlet.http.HttpServletRequest  as parameter.

Is it possible to access the HttpServletRequest dircetly from
a cocoon action ?

Thanx Thorsten

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




AW: forms in coocon2, is SchemoX dead ?

2001-07-16 Thread Thorsten Mauch

Our Company is also interessed to help. 
Do you have already a design ? 
BTW whats the relation from between XFDL http://www.w3.org/TR/NOTE-XFDL
and Xforms http://www.w3.org/TR/xforms/?

Is it correct that xforms is only for the web 
while XFDL is a more gernaeral aproach ?

>From the SchemoX website i understand XForms
and XFDL only describe the layout of a form while
SchemoX has a wider approach. 

So i share the Opinion from Jakob to review SchemoX.

Regarding XForms i may make sense to study the source
from X-Smiles. http://www.x-smiles.org/

X-Smiles is an XML-browser that can display Xforms.

i will do that now :)


-Ursprüngliche Nachricht-
Von: java guru [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 16. Juli 2001 21:02
An: [EMAIL PROTECTED]
Betreff: Re: forms in coocon2, is SchemoX dead ?


Great.,
   I am positively interested in this...please let me
know the details..


 --- Sergio Carvalho <[EMAIL PROTECTED]> wrote:
> 
> I also need form generation and validation. I am
> basing mu implementation 
> in XFDL, a W3C recomendation for generic business
> forms (not wonly web-based, but 
> paper-based ones too).
> 
> If there's interest in a joint effort, I think we
> could set up a repository
> somewhere (sourceforge...) and release it under a
> BSD type license. Reply if 
> interested.
> 
> On Mon, 16 Jul 2001 16:39:26 +0100 (BST), java guru
> <[EMAIL PROTECTED]> wrote:
> --
> > I have posted similar requirement sometime back
> but no
> > response...Meantime here is what i found
> > 
> > 1. XForm from nanoworks
> > http://xform.nanoworks.org/
> > 
> > I tried this but didnt feel comfortable to fit in
> with
> > cocoon2..
> > 
> > I think the form processing in c2 with
> form-validator
> > stuff is slowly moving towards this goal of full
> blown
> > form processing and validation..
> > 
> > I was really(and desperately) looking for simple
> and
> > effective mechanism to describe forms in xml and
> have
> > someother component deal with preparing form and
> > handling the validation stuff...Hope that arrives
> > soon...
> > 
> > 
> >  --- Thorsten Mauch <[EMAIL PROTECTED]> wrote: >
> Hi
> > All
> > > Does anyone knows a MVC  framework for from
> > > processing in cocoon2 ?
> > > I downloaded the CVS from SchemoX , but the last
> > > change was in January. So
> > > it my impression is that SchemoX is dead. Is
> this
> > > correct ?
> > > Are there other projetcs related to Form
> processing
> > > ?
> > > 
> > > Thanx Thorsten
> > > 
> > > 
> > > 
> > >
> >
>
-
> > > 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]>
> > >  
> > 
> >
>

> > Do You Yahoo!?
> > For regular News updates go to
> http://in.news.yahoo.com
> > 
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> > 
> 
> 
> 
> --
> Sergio Carvalho
> ---
> [EMAIL PROTECTED]
> 
> If at first you don't succeed, skydiving is not for
> you
> 
>
-
> 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]>
>  


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

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

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

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




forms in coocon2, is SchemoX dead ?

2001-07-16 Thread Thorsten Mauch

Hi All
Does anyone knows a MVC  framework for from processing in cocoon2 ?
I downloaded the CVS from SchemoX , but the last change was in January. So
it my impression is that SchemoX is dead. Is this correct ?
Are there other projetcs related to Form processing ?

Thanx Thorsten



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




AW: I18nTransformer2 seeks null.xml

2001-07-04 Thread Thorsten Mauch

Thanx Konstantin 
You are absolutly right. The prob is related 
to the matcher. Unfortunaly i didn't understand
that cocoon stores the arguments in a stack.
I changed the 
 
and it works :)

Thanx again
Thorsten

-Ursprüngliche Nachricht-
Von: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 4. Juli 2001 11:45
An: Thorsten Mauch
Cc: [EMAIL PROTECTED]
Betreff: Re: I18nTransformer2 seeks null.xml


Hi!

This can be a problem with the substitution params of your matcher pipeline?
Somewhere here:  -
for some reason {1} evaluates to . Are you sure that the problem is in
I18nTransformer2?

Btw, you are using old version of C2 - in the current version
I18nTransformer2 replaced completely the old one and was renamed to
I18nTrasnformer.

Regards,
Konstantin Piroumian.

- Original Message -
From: "Thorsten Mauch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 30, 2001 1:15 AM
Subject: I18nTransformer2 seeks null.xml


> Hi All
> I try to create a Internatinal webapp.
> I use the I18nTransformer2 for tranlation
> but i get:
> org.apache.cocoon.ResourceNotFoundException:
> /C:/tomcat/webapps/shop/shop/null.xml (Das System kann die
> angegebene Datei nicht finden):java.io.FileNotFoundException:
> /C:/tomcat/webapps/shop/shop/null.xml (Das System kann die angegebene
Datei
> nicht finden)
>
> my pipeline looks like:
>   
> 
> 
> 
>  value="catalog/translations/dict.xml"/>
> 
> 
> 
> 
>
>
> Why cocoon seeks the null.xsl ?
>
> Thanks Thorsten
>
> -
> 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]>




I18nTransformer2 seeks null.xml

2001-06-29 Thread Thorsten Mauch

Hi All 
I try to create a Internatinal webapp.  
I use the I18nTransformer2 for tranlation 
but i get:
org.apache.cocoon.ResourceNotFoundException: 
/C:/tomcat/webapps/shop/shop/null.xml (Das System kann die
angegebene Datei nicht finden):java.io.FileNotFoundException:
/C:/tomcat/webapps/shop/shop/null.xml (Das System kann die angegebene Datei
nicht finden) 

my pipeline looks like:
  







 
   

Why cocoon seeks the null.xsl ?

Thanks Thorsten

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




comaptibilily: cocoon 1 vs. cocoon 2

2001-06-28 Thread Thorsten Mauch

Hi All
We made a project in cocoon 1 and we consider now 
to upgrade to cocoon 2.
Does the xsp pages from coocon 1 are compatible the cocoon 2 ?

Thanx Thorsten

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




cocoon and xalan2

2001-06-23 Thread Thorsten Mauch

Hi 
I using Coocon 1.8.2 with Xalan2. I use
the XalanTransformer privided by Rick Knowles. I'am
not sure if it's the best way to do so, coz in the actual 
source distribution the patch is not included. 
Anyway i found a small bug in the class.
xsl:include doesn't work for relative pathes:

i changed the line
  s.setSystemId(sheetBase);   
in
  s.setSystemId("file:///"+inBase);

I'am not sure if this doesn't have undesired side efectts, coz
my knoewlage about xalan tends to sero. But it works :)

To avoid naming confilics i renamed the XalanTransformer 
to Xalan2Transformer.

If this is still the best way to use Xalan2 with cocoon 
maybe somebody can commit this class to the CVS.

Thanx Thorsten
 <> 


 Xalan2Transformer.java

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