RE: A note about the "best(?) (cocoon-) development environment" ...

2003-02-09 Thread Michael Homeijer
Your classpath issue won't be fixed by other combinations. It's not a tomcat
problem. The only thing that will fix the problem is fixing the java
compiler in Cocoon to not use a classpath, but use the classloader instead.
For this two fixes have been suggested on the mailing list:
- Fixing the piza compiler (I think this was done bij Jakob Dalsgaard)
I tried the fix, but couldn't get it to work in my Cocoon setup.
- Using the eclipse java compiler in Cocoon (suggested by Christopher
Oliver). The compiler he tested should be integrated in Cocoon.

Because I am not working on a cocoon project right now, I cannot spend time
on it. I guess if it bothers someone enough he will fix it?

HTH,
Michael

-Original Message-
From: Robert Simmons
To: [EMAIL PROTECTED]
Sent: 8-2-2003 10:05 
Subject: Re: A note about the  "best(?) (cocoon-) development environment"
...

I use JBoss but not jetty. Are you saying the Jetty-JBoss combo is
superior
to the Tomcat-JBoss combo? If so, I will definitely go try it. Perhaps
it
will fix my classpath in XSP issue. Bugzilla Reference:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16580.

Kodo JDO is an implementation of the JDO specification and MORE. It
basically
rules. Go through the tutorials and you will love it. Create an object
model
using your favorite problem domain. Then create the JDO mapping file
(raw XML
or with IDE plug-in) and then just say "uhh, make a schema for me" and
it
just does it. Its amazing! No more screwing around with persistence and
schema manipulation.

I have the commercial version of that product and will be talking about
using
it in the book that I am writing.

-- Robert



- Original Message -
From: "Thor Heinrichs-Wolpert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 9:47 PM
Subject: Re: A note about the "best(?) (cocoon-) development
environment" ...


Robert:

Have a look at Jetty, or JBoss/Jetty (aka JBossWeb).  No nasty "must
copy things to endorsed directories, etc.)".  You take Cocoon (2.0/2.1)
and drop it in your deploy directory and POOF it's there.  It's nice
when the servlet engine actually uses the libs you define and not its
own first as the default ... isn't that in the spec ... and will be
available in Tomcat at some point.

If you want any extra libs in cocoon-2.1 you add them in the lib tree,
add them to jars.xml and the cocoon build adds them to the Manifest ...
Jetty/Jboss just eats 'em up in the right place.

I'm off to look for Kudo JDO (which hopefully follows the ODMG JDO and
not Sun's) ... how does this rank against Castor or Jakarta-OJB ?

Cheers,
Thor HW

On Saturday, February 8, 2003, at 11:42  AM, Robert Simmons wrote:

>> Hy, all;
>>
>> During the last months of activities i learned a lot from this
mailing
>> list. while i followed the discussions i started getting my
>> development
>> environment a bit up to date.  I plan to setup a Wiki page on this
>> theme. Although this may be a bit off topic, it still would be great,
>> if someone could comment on this issue.
>>
>>
>> the tools collection
>> 
>> Here is what i have put together so far. Of course this is driven
>> at least partially by what i do for my customers...
>>
>> free tools:
>> 1.) OS: linux and solaris (maybe a mater of taste)
>
> Go linux. Instead of spending money on licenses, you spend money on
> support
> contracts. Cheaper. In addition, Solaris is primitive compared to
> Linux.
>
>> 2.) apache 1.3.26 (mod_jk2, mod_SSL)
>
> Duh ;)
>
>> 3.) tomcat 4.1.18
>
> Yes, but you can go one step further. Get JBoss with integrated
> tomcat. JBoss
> will handle all sorty of nasty things like deploying to clusters for
> you. As
> a bonus, you get the ability to integrate with EJB based programs.
>
>> 4.) cocoon-2.0.4
>
> 2.1 Hopefully soon!
>
>> 5.) eclipse
>
> See my previous message about eclopse vs netbeans.
>
>> 6.) sunbow eclipse tools (xml/sitemap)
>
> URL ?
>
>> 7.) ant
>
> I have 15 million of them in my damn appartment, want a few? Oh ...
> you mean
> Jakarta ant? Ok, nevermind then. =) Im currently looking at Krysalis'
> extensions to ant. http://www.krysalis.org/centipede/quickstart.html
>
>
>> 8.) java-1.3.1 (sun JDK on all platforms)
>
> No no .. 1.4.1!! In 1.4 there are so many COOOL things that I
> couldnt
> live without anymore.
>
>> 9.) Secureway LDAP Server (i'll switch to Open LDAP soon)
>
> Im an LDAP idiot so Ill trust you there.
>
> Tools you didnt talk  about:
>
> CVS - Use it over clearcase. its powerful, free, and a pleasure to
use.
> BugZilla - Great program! Lousy looking interface. We should start
> a
> project to port
> it to cocoon. =) However bugzilla is a great and free
> bugtracking system.
>
>> commercial tools:
>> 10.) clearcase cms (see below)
>
> Garbage.
>
>> 11.) xml-spy
>
> Good but confusing.
>
>> 12.) several DB-Systems
>
> all you need is Mysql baby.
>
> Ones you didnt talk about:
>
> 13) Together control center. If you can afford 

RE: How to open 2 windows?

2003-01-28 Thread Michael Homeijer
Hi,

If the "event" you mention is clicking a hyperlink in a html page, maybe you
could use javascript in the the onClick event to open one window and open
the second window with the hyperlink.

Just a thought,

Michael

-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 28-1-2003 10:27 
Subject: How to open 2 windows?

Hi,

I want to open 2 windows on one "event". The xml/xsp (I mean the data)
would be the same, but the output would be: first window html, second
window pdf.

e.g. my "dummy" sitemap:
...







How can I manage this? Can I mange this from my sitemap?

Cheers
Jonny



This electronic message contains information from the mmo2 plc Group
which
may be
privileged or confidential. The information is intended to be for the
use
of the
individual(s) or entity named above. If you are not the intended
recipient
be aware
that any disclosure, copying, distribution or use of the contents of
this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




-
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: Castor Transformer

2003-01-23 Thread Michael Homeijer
Hi Harald,

Have a look at: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993 
it contains a pretty nasty workaround for the problem and works with
castor-0.9.4. If you find a better solution please let us know.

Right now I am working on a new version of the transformer that can use
input and outputmodules to store and retrieve to objects to marshall or the
unmarshalled objects.

HTH,
Michael

-Original Message-
From: Harald Wehr
To: [EMAIL PROTECTED]
Sent: 23-1-2003 12:18 
Subject: Castor Transformer

I am using a Cocoon-Developer-Snapshot from October this year.
The Castor Transformer i fetched from CVS. Unfortunately this class uses

a lot of deprecated stuff. Additionally i have to serialize a 
java-object stored in my xmlform.

So i tried to write my own transformer.  The code is attached here. The 
Castor Marshaller needs a Sax-ContentHandler that I get by calling the 
variable "contentHandler", available in the transformer.

Following Exception do I get. Do I have to set the Sax-Parser in the 
Properties? When I set the Sax-Parser from cocoon.xconf additionally in 
the properties i get a ClassNotFoundException.

When i replace the deprecated Classes from the CVS-transformer same 
things happen.

Any help is appreciated.

Harald



Exception
org.xml.sax.SAXException: System property org.xml.sax.parser not
specified
at org.xml.sax.helpers.ParserAdapter.(ParserAdapter.java:104)
at org.exolab.castor.xml.Marshaller.(Unknown Source)
at 
de.mobiharz.cocoon.transformation.MobiHarzXMLFormTransformer.startElemen
t(MobiHarzXMLFormTransformer.java:45)
at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at 
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(Abs
tractSAXTransformer.java:340)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
er.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abstrac
tXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespac
eBinder.java:874)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinde
r.java:591)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDocumentFragmentScannerImpl.java:747)
...


--Transformer-
package de.mobiharz.cocoon.transformation;

import org.apache.cocoon.components.xmlform.Form;
import org.apache.cocoon.transformation.XMLFormTransformer;
import org.apache.commons.jxpath.JXPathContext;
import org.exolab.castor.xml.Marshaller;
import org.xml.sax.AttributeList;
import org.xml.sax.Attributes;
import org.xml.sax.HandlerBase;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;

import de.mobiharz.model.buchungen.Unterkunft;


public class MobiHarzXMLFormTransformer extends XMLFormTransformer {

public void startElement(
String namespaceURI,
String localName,
String qName,
Attributes attributes)
throws SAXException {
if (namespaceURI.equals("") &&
localName.equals("xmlformergebnis")) {

try {
String formName = attributes.getValue("xmlform-id");
String objectPath = attributes.getValue("xpath");
Form form = Form.lookup(objectModel, formName);

JXPathContext context =
JXPathContext.newContext(form.getModel());

Object o = context.getValue(objectPath);
//  System.out.println(o);
super.startElement(
"",
"xmlformergebnis",
"xmlformergebnis",
attributes);

Marshaller marshaller = new Marshaller(contentHandler);
Unterkunft u = (Unterkunft)o;

marshaller.marshal(o);

} catch (Exception e) {
e.printStackTrace();
super.startElement(
"",
"xmlformergebnis",
"xmlformergebnis",
attributes);
}
} else
super.startElement(namespaceURI, localName, qName,
attributes);
}

public void endElement(String namespaceURI, String localName, String
qName)
throws SAXException {

if ((namespaceURI != null)) {

if (namespaceURI.equals("") &&
localName.equals("xmlformergebnis"))
super.endElement("", "xmlformergebnis",
"xmlformergebnis");
else
super.endElement(namespaceURI,
localName, qName);
}
}

}



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

RE: 1001 question aboit Command Line Interface

2003-01-15 Thread Michael Homeijer
Besides setting the path in different lines, like Bertrand explained,
additionally you can use the subst command to shorten the path spec to your
libs, something like: subst x: "path to\WEB-INF\lib".

HTH
Michael

-Original Message-
From: Robert Sösemann
To: [EMAIL PROTECTED]
Sent: 15-1-2003 12:21 
Subject: 1001 question aboit Command Line Interface

Hello,

althoug many people have asked question about the cli, I couln't find an
answer to mine.

I want to call the cli. But before I have to add ALL the lib in WEB-INF
to
my class path.
Because it is a really long classpath I mad a .bat. Running it I get an
error that the line is too long.

I tried nearly everything. Is there a way to set the classpath
directory-wise and not include each .jar?

If you are using the cli, please tell me the steps to  bring it to work.

Rob


-
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: HTTP Status Response

2002-11-25 Thread Michael Homeijer
Hi Max,

I succeeded with the following two lines in an action:

 HttpServletResponse res = (HttpServletResponse)
objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
res.setStatus(207);

You might want to create a general HttpStatusAction that can handle other
response codes as well.

HTH,
Michael Homeijer

-Original Message-
From: Max Larsson
To: [EMAIL PROTECTED]
Sent: 25-11-2002 9:46 
Subject: HTTP Status Response

Hi,

i wondering if it is possible to set the status
of the http response, from the standard 
HTTP/1.1 200 OK
to something different like
HTTP/1.1 207 Multi-Status

TIA

Max


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

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

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

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




RE: Cocoon and EJB

2002-10-25 Thread Michael Homeijer
I think you have some options in Cocoon:

- Use the castortransformer to transform the resulting data from a bean to
XML. (and then process it additionally with XSL).
- Use the velocity generator to get data from a value-object result from an
EJB.
- Write a jxpath transformer (is probably allready available as part of the
xmlforms solution) to get data from a value-object in xml.

In all solutions you probably have to get the result from an EJB in an
action class and put it in the request object. Other possibilities would be
to output your bean data in XSP, that would probably mean writing a lot of
code, or to adapt the xmlforms solution to use EJB's. 

HTH
Michael
-Original Message-
From: Bruno Collet
To: [EMAIL PROTECTED]
Sent: 25-10-2002 12:06 
Subject: Cocoon and EJB

Hi
I'm investigating the possibility to use Cocoon 2 for
a big corporate app.
I have a doubt whether it is possible (and easy :) to
fetch data from EJB (connected to a DB) and produce
HTML pages from both XML/XSL documents and these data.

Does it fit into the Cocoon pipeline architecture
concept?
Would it imply writing my own transformers/generators?
Thx!
Bruno

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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




Response status 207

2002-10-04 Thread Michael Homeijer

Hi,

I need to send a response status 207 to the client. Is there a way to do
this in Cocoon? I expected this parameter to be in a serializer, but cant
find one.

TIA,
Michael

-
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.3 and CastorTransformer

2002-09-23 Thread Michael Homeijer

Werner,

There aren't many mistakes you can make in things like sitemap or your xml
input for castor. I could send you some sitemap snippets or castor xml input
but they are pretty obvious. Looking at the stacktrace, I don't think you
have made any "obvious" mistakes.

I am using Xerces 1.4.4 and have no problems with it.

HTH,
Michael

-Original Message-
From: Werner Guttmann
To: [EMAIL PROTECTED]
Sent: 23-9-2002 10:55 
Subject: Re: Cocoon 2.0.3 and CastorTransformer

Michael,

good news, indeed. I'd appreciate if you could send a working example so
that I
could rule otu my own stupidity ... ;-). Re: Classpath issue, I think
you are
probably right here. In my original email, I asked whether using Xerces
1.4.4
could be the issue ...

Werner

Michael Homeijer wrote:

> Hi,
>
> I have successfully used the CastorTransformer. I am working on a new
> version that can be used to marshal and unmarshal, and doesn't use
> deprecated classes/code anymore. It's not finished, but I allready use
it in
> a project.
>
> I have it working in the latest CVS version of Cocoon, but it will
probably
> also work with 2.03. If you'r interessted, I can mail a copy of the
latest
> source.
>
> You'r problem sounds like a classpath/version issue, otherwise I can
also
> find no explanation for the NoSuchMethodError
>
> HTH,
>
> Michael
>
> -Original Message-
> From: Werner Guttmann
> To: [EMAIL PROTECTED]
> Sent: 20-9-2002 5:07
> Subject: Re: Cocoon 2.0.3 and CastorTransformer
>
> Thanks, Vadim. Now, please find below the stack trace (just the root
> cause) from
> Catalina's app specific log file. Looking at line 94  of
> CastorTransformer.java
> (from the scratchpad of the Cocoon 2.0.3 source dist) I can see that
it
> fails on
> the line marked with --> <---, but simply woul dnot know enough to
tell
> why ?
>
> Is anybody actually using the CastorTransformer sucessfully ?
>
> Werner
>
>/**
>  * Inner class eventhandler, forward the Castor SAX events
>  * to Cocoon 2 Events
>  */
> CastorEventAdapter = new HandlerBase(){
> public void startElement(String name, AttributeList attributes)
> throws
> SAXException
> {
>   AttributesImpl a= new AttributesImpl();
>   for(int i=0;i 
> a.addAttribute("",attributes.getName(i),attributes.getName(i),
>   "",attributes.getValue(i));
>   }
>
> --->
> CastorTransformer.super.contentHandler.startElement("",name,name,a);
> <
> }
>
> public void characters(char[] chars, int offset, int length)
> throws
> SAXException
> {
>   CastorTransformer.super.contentHandler.characters(chars,
> offset,
> length);
> }
>
> public void endElement(String name) throws SAXException
> {
>
>   CastorTransformer.super.contentHandler.endElement("",
> name,name);
> }
> };
>   }
>
> java.lang.NoSuchMethodError
> at
>
org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
> Transformer.java:94)
>
> at
org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
> at
org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
> at
>
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
> sformer.java:225)
>
> at
>
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
> rmer.java:173)
>
> at
>
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
> ansformer.java:132)
>
> at
>
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
> :118)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
> idator.java:1284)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
> anner.java:1806)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
> h(XMLDocumentScanner.java:1182)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
> ner.java:381)
>
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
> at
>
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
> treamSourc

RE: Cocoon 2.0.3 and CastorTransformer

2002-09-21 Thread Michael Homeijer

Hi,

I have successfully used the CastorTransformer. I am working on a new
version that can be used to marshal and unmarshal, and doesn't use
deprecated classes/code anymore. It's not finished, but I allready use it in
a project.

I have it working in the latest CVS version of Cocoon, but it will probably
also work with 2.03. If you'r interessted, I can mail a copy of the latest
source.

You'r problem sounds like a classpath/version issue, otherwise I can also
find no explanation for the NoSuchMethodError

HTH,

Michael

-Original Message-
From: Werner Guttmann
To: [EMAIL PROTECTED]
Sent: 20-9-2002 5:07 
Subject: Re: Cocoon 2.0.3 and CastorTransformer

Thanks, Vadim. Now, please find below the stack trace (just the root
cause) from
Catalina's app specific log file. Looking at line 94  of
CastorTransformer.java
(from the scratchpad of the Cocoon 2.0.3 source dist) I can see that it
fails on
the line marked with --> <---, but simply woul dnot know enough to tell
why ?

Is anybody actually using the CastorTransformer sucessfully ?

Werner

   /**
 * Inner class eventhandler, forward the Castor SAX events
 * to Cocoon 2 Events
 */
CastorEventAdapter = new HandlerBase(){
public void startElement(String name, AttributeList attributes)
throws
SAXException
{
  AttributesImpl a= new AttributesImpl();
  for(int i=0;i 
CastorTransformer.super.contentHandler.startElement("",name,name,a);
<
}

public void characters(char[] chars, int offset, int length)
throws
SAXException
{
  CastorTransformer.super.contentHandler.characters(chars,
offset,
length);
}

public void endElement(String name) throws SAXException
{

  CastorTransformer.super.contentHandler.endElement("",
name,name);
}
};
  }




java.lang.NoSuchMethodError
at
org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
Transformer.java:94)

at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
at
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
sformer.java:225)

at
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
rmer.java:173)

at
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
ansformer.java:132)

at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
:118)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
idator.java:1284)

at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
anner.java:1806)

at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
h(XMLDocumentScanner.java:1182)

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

at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
treamSource.java:206)

at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
43)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:250)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:399)

at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
SerializeNode.java:153)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:85)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:156)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:140)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:144)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:328)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:293)

at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDis

WebDAV sitemap

2002-09-20 Thread Michael Homeijer

Has anybody developed a sitemap in which webDAV requests can be handled?
I am looking for a good start to add a webdav interface to part of my
application.

TIA,
Michael

-
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: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2 Cocoon 2.0.2

2002-09-18 Thread Michael Homeijer

Hi,

I am experiencing the same problem under websphere 4.0.4 with the latest
version of Cocoon. The code that mentions the webshere bug is still in CVS.

When I remove the workaround code for the websphere bug, it's working, so it
seems the bug is solved in Websphere 4.0.4. Now removing the code will
create problems in Websphere 4.0 / 4.0.1 (and maybe not solve them in
4.0.2), is this a problem?

TIA,
Michael

-Original Message-
From: Vadim Gritsenko
To: [EMAIL PROTECTED]
Sent: 8-5-2002 2:38 
Subject: RE: Install error win2000 IBM jdk 1.3.0  Websphere 4.0.2  Cocoon
2.0.2

Great.

Vadim

--
Resistance is futile. 

> -Original Message-
> From: Jon Pallas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 08, 2002 4:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2
Cocoon 2.0.2
> 
> Thanks Vadim
> 
> I got that to work fine. I will have a go this coming weekend at
making a
> fix for it that works with 4.0/4.0.1 as well and will post it back.
> 
> Thanks again
> Jon
> 
> 
> 
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 03, 2002 4:46 PM
> Subject: RE: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2
Cocoon
> 2.0.2
> 
> 
> > Ok, that's the old websphere bug and I guess that they again changed
the
> > behavior of encodeRedirectURL.
> >
> >
> > Take a look at the HttpEnvironment class in the Cocoon:
> >
> > // FIXME (VG): WebSphere 4.0/4.0.1 bug
> > if (!newURL.startsWith("/") && newURL.indexOf(':') == -1 &&
> > redirect.indexOf(':') != -1) {
> > getLogger().debug("Redirect: WebSpehere Bug Detected!");
> > String base = NetUtils.getPath(request.getRequestURI());
> > if (base.startsWith("/")) {
> > base = base.substring(1);
> > }
> > redirect = response.encodeRedirectURL(base + '/' +
newURL);
> > }
> >
> > And play with this piece of code.
> >
> >
> > Vadim
> >
> > --
> > Resistance is futile.
> >
> > > -Original Message-
> > > From: Jon Pallas [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, April 03, 2002 10:31 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2
> > Cocoon 2.0.2
> > >
> > > Thanks Vadim
> > > The logs were helpfull.  The access.log shows that there is an
change
> > > in the
> > > context after it says
> > > "No pipeline matched request: /cocoon/documents/index.html"
> > > and then it g
> > >
> > > The initilal link on the home page is
> > > http://localhost:9080/cocoon/documents/index
> > >
> > > this gets redirected to
> > >
> > > http://localhost:9080/cocoon/cocoon/documents/index.html
> > >
> > > Notice the /cocoon/cocoon/ bit
> > >
> > > if i change this to
http://localhost:9080/cocoon/documents/index.html
> > > it
> > > works fine
> > >
> > > I get a similar thing going to
> > > http://localhost:9080/cocoon/cocoon/samples/poi/welcome
> > >
> > > So it geting confused with the context?
> > >
> > > I am looking in sitemap.xmap for the "documents" and comparing it
to
> > > the
> > > "search" search works but note realy sure of what to look for.
> > >
> > > Thanks
> > > Jon
> > >
> > >
> > >
> > > org.apache.cocoon.ResourceNotFoundException: No pipeline matched
> > > request:
> > > /cocoon/documents/index.html
> > >  at
> > >
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:3847)
> > >  at
> > >
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:3085)
> > >  at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> > >  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > >  at
> > >

...


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




Manifest problem, deploying Ear (Cocoon + EJB's) on JBoss / Jetty

2002-09-02 Thread Michael Homeijer

Hi,

I am trying to deploy an ear containing a Cocoon web-app on JBoss / Jetty.
The problem is that when I have an ejb-client.jar in the web-inf\lib
directory, jboss gives a classcastexception on the
PortableRemoteObject.narrow call (probably because the home interface is in
the VM twice in two different classloaders?). Anyway...

According to Jboss, the way to deal with this is to have the ejb-client jar
in the EAR file itself and reference it from the meta-inf\manifest file in
the Cocoon application.

My problem is that referencing a jar from the manifest file doesn't seem to
work. In an XSP page, the class from the ejb-client jar cannot be found.
Does anyone have this setup working? Any workarounds?

TIA,
Michael

-
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: Command Reader

2002-05-22 Thread Michael Homeijer

Hi,

You probably mean a Reader. A Generator generates a SAX stream and a Reader
produces a binary stream.
Have a look at org.apache.cocoon.reading.ResourceReader. 

HTH,
Michael

> -Original Message-
> From: Evan Sho [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 23 mei 2002 5:30
> To: [EMAIL PROTECTED]
> Subject: Re: Command Reader
> 
> 
> I think you have to write your own Generator, have a
> look at the source code of
> org.apache.cocoon.generation.* (just a few classes).
> 
> 
> --- "Ewing, Bryce" <[EMAIL PROTECTED]>
> wrote:
> > Hi all,
> > 
> > Just wondering if there is a way of having a reader
> > getting it's input from
> > a system command rather than from a file.
> > 
> > So I have:
> >
> >  > src="images/{1}.gif"/>
> >
> > But would rather something like:
> >
> > 
> >
> > 
> > Where create image is a script on the unix server I
> > am running on.
> > 
> > Cheers
> > Bryce
> > 
> >
> -
> > 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]>
> > 
> 
> 
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> -
> 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 book reviewers wanted

2002-05-21 Thread Michael Homeijer

Hi Matthew,

What kind of readers do you expect? Skills, level etc?

Michael

> -Original Message-
> From: Matthew Langham [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 22 mei 2002 8:36
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Cocoon book reviewers wanted
> 
> 
> Hi,
> 
> together with our publisher (www.newriders.com), we are 
> looking for people
> interested in reviewing chapters from our book. Hopefully you 
> will have
> something positive to say and then your quote may be used in 
> the book or to
> promote it.
> 
> If you would be interested then please send me an email. 
> Please note that we
> will only be able to suggest (!!) reviewers - our publisher 
> will choose. And
> probably only a few of those in the end.
> 
> Thanks
> 
> 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
> =
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [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: Looking for comanies using cocoon.

2002-05-21 Thread Michael Homeijer

Cederic,

Are you looking for CMS solutions like Wyona (based on Cocoon) or for
websites based on Cocoon?
Maybe you could explain your definition of CMS and what kind of service you
are looking for?

HTH

Michael

> -Original Message-
> From: Cederic Van Herreweghe [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 21 mei 2002 12:06
> To: '[EMAIL PROTECTED]'
> Subject: Looking for comanies using cocoon.
> 
> 
> I'm looking for companies or people in Belgium or near to 
> belgium who have
> already implemented a cocoon-based content-management-system.
> 
> Thanks in advance for letting me know !
> 
> Kind regards,
> 
> Cederic Van Herreweghe
> 
> -
> 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 Portal - Tabbed layout and Radio integration

2002-05-05 Thread Michael Homeijer

IMHO the problem with most portal layout's is that if you have multiple
"portlets" open and one is changed, the complete page has to be refreshed.
Depending on the functionality and the possibility of caching, this can be
very time consuming.

Gartner had a site that solved this by having portlets in a single "layer"
(I am not a HTML expert, but I think this is what it's called). It looked
great, all portlets could be dragged to the location at which you want to
have them and they really looked like child windows.

Did you ever look at a layout like this to use in Cocoon? (I am sorry I
cannot find a link with a sample, it was one of the customizable gartner
sites you have to login to. Maybe some one knows what I mean).

Michael.

> -Original Message-
> From: Matthew Langham [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 3 mei 2002 15:03
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Cocoon Portal - Tabbed layout and Radio integration
> 
> 
> Those of you interested in the portal components may like to 
> take a look
> here: http://needacake.blogspot.com. The screenshot shows a 
> preview of a
> tabbed portal layout that we will be presenting at Jax2002 in 
> Frankfurt in a
> couple of weeks. In addition we will be showing how to build 
> and integrate a
> new coplet for Radio Weblogs in RSS format.
> 
> Unfortunately - Radio has been having some problems recently 
> so I could not
> post this (yet) to my Radio weblog. :-(. However we hope you 
> find the new
> layout an interesting idea (perhaps for your own portal).
> 
> Matthew & Carsten
> 
> --
> Open Source Group   sunShine - Lighting up e:Business
> =
> Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
>Weblogging at: http://www.need-a-cake.com
>  Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
> =
> 
> 
> 
> -
> 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: URGENT!!! :RE: XML namespaces and result of RequestGenerator

2002-03-27 Thread Michael Homeijer

Hi,

Add the request namespace declaration:
xmlns:request="http://xml.apache.org/cocoon/requestgenerator/2.0";
and try 

HTH,
Michael

> -Original Message-
> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 27 maart 2002 10:04
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: URGENT!!! :RE: XML namespaces and result of RequestGenerator
> 
> 
> Hi Matthieu and all cocoon user colleagues,
> 
> I looked into the archives as well, found something but that 
> doesn't help at
> all. There is a link to a xsl-file that does not contain any 
> xsl-tag. I
> don't know what the answer is and I stuck at this problem in 
> a very urgent
> project.
> 
> Please help me!
> 
> Best regards
> - Volker -
> 
> -Original Message-
> From: Matthieu Benéteau [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 21. März 2002 19:10
> To: Cocoon-Users
> Subject: RE: XML namespaces and result of RequestGenerator
> 
> 
> Sorry, this was a silly question, and I found the answer in 
> the archives.
> My mistake.
> 
> Matthieu
> 
> 
> 
> > -Message d'origine-
> > De : Matthieu Benéteau [mailto:[EMAIL PROTECTED]]
> > Envoyé : jeudi 21 mars 2002 18:46
> > À : Cocoon-Users
> > Objet : XML namespaces and result of RequestGenerator
> >
> >
> > Hi,
> >
> > I have a little but annoying problem with the result of the
> > RequestGenerator : during the XSL transformation I can't match
> > any of the request elements (I can't even match the root
> > "request" element).
> >
> >
> > For instance :
> >
> >   
> >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> >
> > 
> >   
> > 
> >  > select="request/requestParameters/parameter"/>
> > 
> >   
> > 
> >
> > 
> >   inside parameter body
> > 
> >
> >   
> >
> > will result in an empty element : .
> >
> >
> > But on the other hand, if I use the following template :
> >
> > 
> > 
> >   
> > 
> >   
> > 
> >
> > the "one" element contains the whole request.
> >
> >
> > I suppose it's a namespace problem. The transformer doesn't seem
> > to match elements with the
> > xmlns="http://xml.apache.org/cocoon/requestgenerator/2.0";
> > namespace declaration.
> >
> > Has anyone an idea ?
> >
> >
> > Matthieu
> >
> 
> 
> -
> 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: xsp-request problem

2002-03-04 Thread Michael Homeijer

Hi,

Have a look at the generated java code in the work directory of your servlet
engine.
I am sure it will give you a clue about how XSP works in Cocoon. ;-)

Michael

> -Original Message-
> From: Istvan Beszteri [mailto:[EMAIL PROTECTED]]
> Sent: maandag 4 maart 2002 16:35
> To: [EMAIL PROTECTED]
> Subject: xsp-request problem
> 
> 
> Hi All,
> 
> I just started to learn XSP and I tried some examples.
> I have found a strange problem with xsp-request.
> 
> The following xsp works properly:
> 
> 
> 
>  xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> String fruit = "apple";
> 
> 
> 
>The string is: fruit
>
>The request parameter is:  
>  name="fruit"/>
> 
> 
> 
> with a certain request, but if I try to give value to the 
> fruit string as in 
> the following example, I get a null pointer exception:
> 
> 
> 
>  xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> String fruit = ;
> 
> 
> 
>The string is: fruit
>
>The request parameter is:   name="fruit"/>
> 
> 
> 
> It seems  gives back 
> a null pointer 
> if I use it within the  tags.
> 
> Any idea?
> 
> Thanks in advance!
> 
> Istvan
> 
> -
> 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: writing xml to file - Solution

2002-02-15 Thread Michael Homeijer

Please note, the XMLDBTransformer does the same (it stores data in the
XML:DB database, but that's the only difference).
This way you can process the output of the transformer (XMLDBTransformers
outputs a tag with success/failure and a generated key) by another
transformer to transform it to HTML. With the serializer approach this is
not possible.

If you want to write a FileWriterTransformer or something you can get ideas
from the XMLDBTransformer.

HTH,
Michael.

> -Original Message-
> From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 15 februari 2002 9:11
> To: [EMAIL PROTECTED]
> Subject: RE: writing xml to file - Solution
> 
> 
> I like the idea of the serialiser.  I will be using it a lot 
> since I'm 
> creating a framework to let people access the content of the 
> site through a 
> browser.  Please do send me the code.  Thanks.
> I just have to figure out how to send through the exact 
> filename.  Since 
> this has to be a local path on the server I'm no really sure 
> how to get 
> it.  Any ideas?
> Bert
> 
> >Approach 2:
> > I have created a new Transformer 
> (AbstractStringTransformer ,
> >StringTransformer is an implementation of AbstractStringTransformer),
> >which basically captures the XML as a String and invokes a 
> method where
> >you would embed ur custom logic
> >
> >
> >//SiteMap entries
> >//Transformer defn
> > >src="com.accordia.display.transformation.StringTransformer"/>
> >
> >//pattern match entry in pipeline
> >   
> >  
> > 
> >  
> >  
> >   
> >
> >
> >
> >public String process(String element, String xmlData) {
> >}
> >
> >You can get access to your context, request (Since this is a
> >transformer) and write code in this method to store the XML file and
> >return a message (OK or failure)
> >
> >If U like the approach, do let me know
> >
> >
> >I will send U the source code 
> >
> >Cheers,
> >Chiths
> 
> 
> -
> 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]>




[slightly OT] I really need ideas about a CMS to use with Cocoon

2002-02-13 Thread Michael Homeijer

Hi,

I am working on a project that planned to use the java CMS from arsdigita
(www.arsdigita.com). 

We noticed a news item about arsdigita that keeps us from using the product
in our project
(http://slashdot.org/article.pl?sid=02/02/08/1319206&mode=thread). We were
in the stage of evaluating how it cooperates with Cocoon 2.

Right now I could use some ideas on CMS's that integrate well with Cocoon,
are built of reusable components and provide at least some rudimentary
workflow mechanisms.
Furthermore the CMS should be able to work on a foreign database (ie. not
their own metamodel or something).

Any ideas?

TIA,
Michael Homeijer

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

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




RE: xmldb logicsheet (XMLDBTransformer is a great start)

2002-02-12 Thread Michael Homeijer

Have a look at the XMLDBtransformer in scratchpad, it could be easier to add
your functionality there.

Additional functionality for the XMLDBTransformer could be:
- resolving nested xml queries and/or structures (ie. get the collection and
then get a document)
- adding stuff dbxml provides at the command line, ie. listing, adding,
removing and querying collections

To do this two changes have to be made to the transformer:
1. implementing it in a way that commands can easily be added to it. (How
about innerclasses that handle a command?)
2. you should be able to use results from a query or a command in the next
query.

HTH,
Michael Homeijer

> -Original Message-
> From: Martin Holz [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 12 februari 2002 12:05
> To: [EMAIL PROTECTED]
> Subject: Re: xmldb logicsheet ?
> 
> 
> Hi,
> 
> Gianugo Rabellino wrote:
> 
> > Guys,
> >
> > please *don't* use the XMLDB generators. They are going to 
> be deprecated
> > RSN, since they are replaced by the much more powerful Source
> > abstraction that allows to use plain XMLDB URIs to retrieve 
> documents
> > and, yes :), XPath-query the collections :)
> >
> > Usage is straightforward: put the correct DB configuration in
> > cocoon.xconf and use xmldb:// URLs wherever you want in the 
> sitemap :)
> >
> > If you are willing to do XPath queries all you need is to use an
> > xpointerish syntax such as:
> >
> > xmldb:xindice://my.host.name/my/collection/#//my/xpath[@query]
> >
> > Please also note that for the brave ones there is also an 
> ongoing XMLDB
> > transformer worth noticing in scratchpad.
> >
> > HTH,
> 
> I see one problem with the source concept, if you are 
> retrieveing lots of 
> resources from the same collection. There are three steps to
> get a resource from xindice;
> 
> 1) register database
> 2) get collection
> 3) get document
> 
> Typical performance numbers are: 
> 1) Need  158.0 ms for Database.
> 2) Need 1962.0 ms for Collection.  
> 3) Need 294.0 ms for Document.
> 
> Time for 1) drops dramatically after the first call.
> Time for 3) is unavoidable. Time for creating a collection 
> drops too, if you 
> call it more than once, but is still high. So you want to 
> keep the collection 
> open, if you need to get documents  from this collection  often.  
> 
> You could configure a generator  to cache a collection.
> That does not work with current implementation,  but it would 
> be straight 
> forward to add.  I can't see, how to add this capability to 
> the source URL.
> 
> 
> Regards 
>   Martin
> 
> --
> Martin Holz  <[EMAIL PROTECTED]>  phone: 0049-30-39977 218 
> FIZ CHEMIE BERLIN
> 
> 
> 
> -
> 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]>




Getting dbxml to work with Cocoon and tomcat 4

2002-02-06 Thread Michael Homeijer

Hi,

Can anybody give me some hints on how to get dbxml to work with cocoon and
tomcat 4. I tried placing jars in just about any location that could make
sense, but I can't get it working completely.
(OpenOrb is the initial problem, it cannot find its properties in the jar in
web-inf/lib).

TIA,
Michael Homeijer

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




Incoming pipeline?

2002-02-03 Thread Michael Homeijer

Hi,

For a prototype I have the need to store form data in a Xindice (db:xml)
database. I was thinking of writing an action that generates xml data based
on the request, calls a transformer and then stores the xml data in
Xindice).

Right now I am trying to find code that will be helpfull with this
(copy/past reuse). This got me thinking, how hard would it be to use a
normal pipeline to generate my data and instead of a serializer write some
kind of component that stores my data at the right destination in the xml
database:







Maybe somebody can give me some comment on the approach or give me some
hints.

TIA,
Michael Homeijer

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

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




Cocoon and CMS

2002-01-04 Thread Michael Homeijer

Hi,

In the past I have experimented with some opensource CMS systems like the
ones from mmbase.org and opencms.org. 
As far as I can see the opencms.org cms cannot be used without the front-end
they provide and integration with cocoon will be hard.
The mmbase.org cms could be used with cocoon for content publishing (right
now they only provide a jsp tag library but I suppose this could be turned
into a logic sheet).
Only it doesn't store XML.

Did anybody find a XML based cms that seperates content management from
content publishing and could be used with cocoon for publishing?

(Now that Xindice is an apache project, maybe a cms using xindice, cocoon
and maybe other stuff would be a great showcase?)

TIA,

Michael

-
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: cocoon2 performance

2001-12-21 Thread Michael Homeijer

Hi,

If you add a timing for pure XSP (without XSLT), you will know where to tune
(XSP or XSLT). Maybe you can report this back also.

In the original mail in the following URL there's something you can try:
 http://www2.real-time.com/pipermail/cocoon-devel/2001-August/010394.html

(try to get the generated source code of one of your XSP, compile it
as a generator and use it as a normal generator instead. [this should
remove the XSP loading/handling phase])

Let us know the result.

HTH,
Michael Homeijer



-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 21-12-2001 9:00 
Subject: cocoon2 performance

Hello
[snip]

Here are the performance results for 500 sequential requests (wget):

normal JSP: 6 seconds
XSP/XSLT: 22 seconds
JSP/XSLT: 133 seconds!!

[snip]

2. is there a way to make XSP even faster (performance tuning)?

[snip]

best regards
- Rainer

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




Connection reset bij peer in C2

2001-12-13 Thread Michael Homeijer

Hi,

In Cocoon 2, the release version, my log is filled with messages that look
like the following (lot of different stack traces, all "Connection reset by
peer" messages).

Does anyone know what problem to look for?

TIA,
Michael Homeijer


FATAL_E (2001-12-13) 13:43.31:322   [root.xsl] (/partpricing.xml)
Thread-18/TraxErrorHandler: Error in TraxTransformer:
javax.xml.transform.TransformerException: Connection reset by peer
javax.xml.transform.TransformerException: Connection reset by peer
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
674)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2008)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1171)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:433)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:48)
at
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:
129)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
at
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3
05)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
at
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3
05)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:359)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40010E(sitemap_xmap.java:16
22)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1283)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1241)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:533)


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




DeltaTimeCacheValidity

2001-11-14 Thread Michael Homeijer

Hi,

I needed a cachevalidity object that keeps the result of an XSP page in
cache for a specified amount of time.
For this purpose I wrote DeltaTimeCacheValidity.java

The constructor argument of the object is a delta time in seconds. The
object is kept valid in cache for the specified amount of time.

Can anybody comment on this approach?

TIA,
Michael Homeijer

 <> 



DeltaTimeCacheValidity.java
Description: Binary data

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

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


FW: Bug in code formatter?

2001-11-12 Thread Michael Homeijer

Hi,

Can anybody tell me I am wrong?

TIA,
Michael Homeijer 

-Original Message-
From: Michael Homeijer
To: '[EMAIL PROTECTED]'
Sent: 12-11-2001 2:55 
Subject: Bug in code formatter?

Just spent one hour on a typo :-(
The problem was on ) to many in a logicsheet. This resulted in a problem
in
JStyleformatter.java, ie. a nullpointerexception in the exception
handling
code.

Am I right that either in getCodeFormatter in
AbstractProgrammingLanguage.java or in ProgramGeneratorImpl something
like the following line should be:
codeFormatter.setLogger(this.getLogger())?


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

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




RE: generateValidity

2001-11-12 Thread Michael Homeijer

I've looked at the link and I am sure I am missing the point, but...
how do I get the delta time (one hour) into this.

TIA,
Michael

-Original Message-
From: Mitchell A. Cohen
To: [EMAIL PROTECTED]
Sent: 12-11-2001 6:24 
Subject: RE: generateValidity

Follow the instructions at the link below.

http://www2.real-time.com/pipermail/cocoon-users/2001-September/019364.h
tml

-Original Message-
From: Michael Homeijer [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 12:14 PM
To: '[EMAIL PROTECTED]'
Subject: generateValidity


Hi,

I have an XSP page that I want to have cached for an hour. I cannot find
much info on how to accomplish this with the generateValidity method in
an
XSP page.

TIA,
Michael Homeijer


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




generateValidity

2001-11-12 Thread Michael Homeijer

Hi,

I have an XSP page that I want to have cached for an hour. I cannot find
much info on how to accomplish this with the generateValidity method in an
XSP page.

TIA,
Michael Homeijer

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

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




RE: If file exists

2001-10-21 Thread Michael Homeijer

Hi,

I use a fileexistsaction which checks if a file exists and if it doesn't it
substitutes a parameter with a default name.

snap from my sitemap:

   






   

HTH,

Michael Homeijer


-Original Message-
From: Simone Gianni [mailto:[EMAIL PROTECTED]]
Sent: zaterdag 20 oktober 2001 17:47
To: [EMAIL PROTECTED]
Subject: If file exists


Hi all ..
.. sorry .. today I'm flooding this mailing list :))

I would like to know if there is a way to make something if a given
file 
exists.

Actually i'm doing a lot of content aggregations, and i'm searching
a way 
to aggregate a document only if the given document is there. I've tried to 
put it on a different pipe, then aggregate it with 
"cocoon:/thepipe/etc../etc..", but if the generator of the subpipe doesn't 
find the document it drops both the subpipe and the aggregation.

Thanks, and ciao ..

Simone


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


 FileExistsAction.java

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

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


RE: Cocoon and J2EE (How about setting up EJB support in Cocoon?)

2001-09-21 Thread Michael Homeijer

After a quick look at the files, I have to following question about your
solution:

Why did you choose not to write a logic sheet? One of the benefits of a
logic sheet
would be that you can add your own code in xsp in addition to the code that
will
be generated to call the EJB.


Other comment on Cocoon and J2ee:
One of the things that we did to interact with bean was to standardize
result sets
that were returned by beans. These result are transformed by an object that
implements
xmlfragment and while the resultset is transformed to XML, additional custom
processing
can be done by writing custom classes (eg. whe have an inner class that can
URLEncode attributes).

The code we write is now as easy as (in an xsp page):

InitialContext ic = new InitialContext();
WebPollXMLHome eh = (WebPollXMLHome)ic.lookup("WebPollXML");
WebPollXMLRemote er = eh.create();

Collection poll = er.getCurrentPoll();

new
XMLObject(poll)

A logic sheet could even simplify this a bit more.

For the bean side, we generate so called DataAccessObject's (See j2ee
pattern catalog from sun) based on
sql in a xml component definition file.

I have thought about how something like this would fit into Cocoon (even
some sort of xsp language for EJBs,
but lets stay on the ground for now ;-)) but the approach we now have uses a
proprietary ejb result format we defined ourselves.
(Maybe this could be handled by some construction  in the xsp
logic sheet uses).

If anybody is interested in integrating EJB support in Cocoon, i'd be
willing to help.

Any ideas on how to set this up? Do we need some kind of voting on the
mechanism used? Other ideas?

TIA,
Michael

-Original Message-
From: Sergio Carvalho [mailto:[EMAIL PROTECTED]]
Sent: donderdag 20 september 2001 15:08
To: [EMAIL PROTECTED]
Subject: Re: Cocoon and J2EE



Ok, just posted it here:
 http://sergio.insuasoftware.com/CocoonEjbProofOfConcept.tgz

On Thu, 20 Sep 2001 14:18:41 +0200, Martin Kavalar wrote:
From: Martin Kavalar <[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]>




Roll-out of www.mysuncatalogue.com

2001-09-19 Thread Michael Homeijer

Hi,

I am proud to announce a new site build with Cocoon 1.

In the coming months, www.mysuncatalogue.com will be rolled out in 55
countries in 13 languages.
(Meaning it will replace www.suncatalogue.com and links to the site will be
available from the various Sun sites, additional servers and
clustering/load-balancing will be implemented, possibly additional
performance and tuning and maybe a migration to C2 will take place).

The site is running on: Sun Solaris (of course), Oracle 8, Borland
Application Server, iPlanet Web Server. 

It's a dynamic site built with Cocoon 1 techniques (mainly xsp and xsl) in
combination with Enterprise Java Beans. 
Because of the multi-language and personalisation aspects of the site, all
data (including menu's, labels etc.) is retrieved from the database.

Based on the experience we have with Cocoon 1, we are now building a
framework and development procedures in which Cocoon 2 plays
a big part. 

Thnxs,

Michael Homeijer


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




Internal redirects

2001-08-20 Thread Michael Homeijer

I am working an a mechanism to have annotated pages in my web portal (like
the pages in the pet store).

The pipeline to get this working looks like this:

   

 
 



   

This way, when i have a page, say "portal", cocoon loads the portal page and
it loads the annotation page. 
The problem I have that all my images in my portal page, now refer to
annotated/image.gif instead of image.gif.

For normal images until now I duplicated the pipeline, but I also have
generated images (svg2jpeg).
And i'd like to have an internal redirect for this, something like:

   

   

Is this possible?

TIA,
Michael Homeijer

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




Content aggregation and serializers

2001-08-20 Thread Michael Homeijer

To my understanding, pipelines without serializers could be used in an
aggregator without exposing url of the aggregate part to the outside world.
In the nightly build from thursday, each pipeline (also the ones used in an
aggregator) requires a serializer.

Should I define internal pipelines in another way or was I on the right way?

TIA,
Michael Homeijer

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




Singleton class initialization

2001-08-13 Thread Michael Homeijer

Hi,

If have a singleton class that needs to be initialized with the
ServletConfig object.
Because I don't want to have to check and call the initialization
everywhere, can I perform this kind of initialization when Cocoon is start
up?
(Some sort of initclass parameter in cocoon.xconf or in the sitemap maybe?)

TIA,
Michael Homeijer

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




Using action return value in xsp

2001-08-13 Thread Michael Homeijer

In an action i return a HashMap to the sitemap, one of the elements in this
HashMap is a HashMap.
My question is, how do I get this second HashMap in an xsp page.

>From the documentation of the Parameters object, I read that I can only get
string parameters from it.
How can I pass complex objects from an action to an xsp page?

TIA,
Michael

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




Implementing FileExistSelector

2001-08-09 Thread Michael Homeijer

In a part of the sitemap I want to check if a requested file exists,
if it doesn't i want to return the contents of a default file.

Is this the way I should implement something like that
or are the easier methods? :


 

 
  
 
 
 
  
  
  


-
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: [C2] SOAP - Scanned for virus

2001-07-19 Thread Michael Homeijer

Hi,

If you mean the stuff I sent to the mailing list: it ended up in the cvs bij
mistake.
They were just meant as an example to show what could be done with soap.

In my opinion, an implementation of soap in C2 should not just be a
logicsheet,
but an extra channel in the interface with cocoon (both serving soap
requests and performing soap requests on
other servers). This way it should be easier to implement xml based services
in a cocoon application instead of only xml based publishing.

I think Giacomo has some great ideas on the subject. You can also check my
previous posts on the subject.

Greetings,
Michael Homeijer

-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 13 juli 2001 21:50
To: [EMAIL PROTECTED]
Subject: Re: [C2] SOAP - Scanned for virus


Drasko Kokic wrote:
> 
> Berin,
> 
> Who is the "maintainer" of the SOAP addition to C2.1 ?
> Is it possible to extract SOAP part out of the C2.1
> and try to make it working on C2.0? I need to
> implement it rather soon and could just about wait for
> C2.0 to be released (C2.1 would probably be far too
> late).

I'm not sure.  Cocoon 2.1 is simply the same as Cocoon 2.0
with some extra stuff.  Try just pulling 2.1 from CVS, and
extract what you need.

> 
> TIA
> Drasko
> 
> --- Berin Loritsch <[EMAIL PROTECTED]> wrote:
> > Drasko Kokic wrote:
> > >
> > > Uli,
> > >
> > > have you thought about redesigning the SOAP taglib
> > > (logicsheet?) so that it is portable to C2?
> > > I would need to have it running fairly soon and am
> > > ready to put in some eforts :-)
> > > With regards to the auth taglib, I would still
> > suggest
> > > that you look into the RequestIntercepter
> > > implementation of the "Context Based Security"
> > spec.
> > > It is 100% portable (between C1 and C2 of course
> > :-)
> >
> > I believe the CVS for Cocoon 2.1 has SOAP support
> > using
> > the Axis jar.  You may want to verify  It was
> > included
> > in Cocoon 2.1 due to its newness and it not being
> > tested
> > yet.
> >
> > As to the "Context Based Security" spec, do you have
> > a URL?  I am interested in looking at it.
> >
> > >
> > > Drasko
> > >
> > > --- Uli Mayring <[EMAIL PROTECTED]> wrote:
> > > > On Wed, 11 Jul 2001, Berin Loritsch wrote:
> > > >
> > > > > I think you may already be used to not
> > > > > getting the output stream in Cocoon 1.
> > > >
> > > > In Cocoon1 it is actually possible to get the
> > > > OutputStream, I'm using that
> > > > in my soap taglib. My auth taglib makes heavy
> > use of
> > > > redirects (such as
> > > > redirecting you to the login page, if you try to
> > > > access a protected page
> > > > and have not authenticated). So these two
> > taglibs,
> > > > which I use a lot in my
> > > > Cocoon1 apps, are not portable to Cocoon2.
> > > >
> > > > Back when XSP taglibs first appeared, it was
> > said
> > > > that their advantage is
> > > > that implementations can change, the interface
> > > > remains the same. Of course
> > > > now that XSP itself works differently, this
> > > > advantage is gone.
> > > >
> > > > It's always a trade-off between backwards
> > > > compatibility and new features.
> > > > I'm sorry to hear that the XSP model was not
> > deemed
> > > > fit to last across
> > > > different versions of Cocoon - I wonder if it
> > will
> > > > change again for
> > > > Cocoon3. Perhaps the answer lies elsewhere:
> > > > implement XSP as an Avalon
> > > > block, add some parts of Tomcat, Xerces and
> > Xalan as
> > > > blocks and I won't
> > > > need Cocoon anymore to build web applications.
> > > > That's the beauty of
> > > > OpenSource, that these things are possible.
> > > >
> > > > > The objects you seek are all in the Map
> > > > objectModel passed in to your pages.
> > > > > for XSP, the Request, Context, and Response
> > > > objects are stored as class
> > > > > variables.  Through them, you can get your
> > Session
> > > > and Cookie objects as usual.
> > > > > other than sendRedirect and getting a
> > reference to
> > > > the output stream, nothing
&g

RE: Cocoon and threads

2001-06-01 Thread Michael Homeijer

 Hi,

Could you put the code in your mail where you retrieve the session object
itself?

Pages aren't synchronized because this introduces a bottleneck,
and because they don't need to be. Just be carefull with your variable
declarations.

HTH

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