RE: Can cocoon write pdf to a file?

2002-08-15 Thread Derek Hohls

Can you supply a link to this discussion/anwer?

>>> [EMAIL PROTECTED] 16/08/2002 12:20:57 >>>
This has been answered in the archives.
I used the pdf transformer and saved the output stream to a file.
 
TA
-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 15, 2002 2:07 PM
To: '[EMAIL PROTECTED]' 
Subject: RE: Can cocoon write pdf to a file?


you should check the archives - i'm pretty sure this has been answered
a
lot.  Think you'll want SourceWritingTransformer from Cocoon 2.1 dev
(cvs check out from HEAD)
 
Geoff
-Original Message-
From: kyle koss [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 15, 2002 1:54 PM
To: [EMAIL PROTECTED] 
Subject: Can cocoon write pdf to a file?


Is it possible for Cocoon to do an XML+XSL -> PDF transformation, but
instead of serving the PDF into the browser, writing it to a file?
 
What I would like to do is, take information entered into a form on a
jsp page, turn it into an XML file, and then apply my XSL to it to
produce a PDF which is then stored to disk on the server.
 
Can this be done using Cocoon, or would it be easier to just use FOP
embedded in a servlet? If it can be done, what do I have to do?
 
Regards, Kyle Koss

-
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: Session-handling without cookies

2002-08-15 Thread Carsten Ziegeler

Yes,

URL rewriting - refer to the documentation of your servlet engine
on how to enable and use it.

Cocoon provides the urlencoder transformer which helps you in
url rewriting.

Carsten

> -Original Message-
> From: Thomas Garger [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 7:19 AM
> To: [EMAIL PROTECTED]
> Subject: Session-handling without cookies
> 
> 
> hi all!
> 
> i wrote a web-application with cocoon, and it seems that cocoon
> handles sessions with cookies (with session-coockies). thats the 
> reason, why i have to enable session-cookies in IE6.0.
> 
> i there an other way to handle sessions, without cookies??
> 
> 
> greetings, chris
> 
> 
> -
> 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]>




Session-handling without cookies

2002-08-15 Thread Thomas Garger

hi all!

i wrote a web-application with cocoon, and it seems that cocoon
handles sessions with cookies (with session-coockies). thats the 
reason, why i have to enable session-cookies in IE6.0.

i there an other way to handle sessions, without cookies??


greetings, chris


-
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: Sending a parameter to Xerces (allow java char encodings)

2002-08-15 Thread Jesse Reynolds

At 22:29 -0400 15/8/2002, Vadim Gritsenko wrote:
>Jesse Reynolds wrote:
>
>>At 22:10 -0400 15/8/2002, Vadim Gritsenko wrote:
>>
>>>Jesse Reynolds wrote:
>>>

And I've made the changes to JaxpParser.java as Vadim has 
suggested to get it to tell Xerces to "allow-java-encodings" but 
it just doesn't seem to work.

Perhaps a bug in Xerces?
>>>
>>>
>>>
>>>Jesse,
>>>
>>>Please note: you have patched 
>>>org/apache/cocoon/components/parser/JaxpParser.java file, but 
>>>stack trace  shows org.apache.avalon.excalibur.xml.JaxpParser 
>>>class.
>>>
>>>As you can see in org.apache.cocoon.components.parser.Parser:
>>>* @deprecated The Avalon XML Parser is now used inside Cocoon. This role
>>>* will be removed in future releases.
>>>
>>>
>>>Vadim
>>
>>
>>
>>Thanks Vadim!
>>
>>I was wondering about that, but not being a seasoned java developer 
>>I wasn't 100% on whether the class path should equal the sourcecode 
>>path. Now I know :-)
>>
>>So, what should I try adding the allow-java-encodings code to now 
>>do you think? I can't see any other file called JaxpParser.java in 
>>the source, so does this mean I have to edit the source code of 
>>Avalon XML Parser or something?
>
>
>:)
>
>You've got this part right. But it's not Avalon XML Parser, it's 
>Avalon XML Parser Component which wraps JAXP parser into Component.
>
>Source is located at:
>
>http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-excalibur/xmlbundle/src/java/org/apache/avalon/excalibur/xml/Attic/JaxpParser.java?rev=1.3&content-type=text/vnd.viewcvs-markup
>
>You don't have to compile all Excalibur, you can just patch and 
>compile this class (add some System.out.println to see what's going 
>on!) and put it under webapp/WEB-INF/classes/org/apache/..., and it 
>will be loaded from there before old class.
>
>
>How come Xerces still appears in the stacktrace if we're no longer 
>using it or is Avalon not actually a parser, just something like a 
>different wrapper for Xerces or whatever?
>
>
>Mentioned Component will instantiate available JAXP parser and use 
>it. You can see it in the source code you were patching (piece
>
>factory.newSAXParser().getXMLReader() instantiates Xerces).
>
>.
>
>Vadim


Awesome! Thanks Vadim. I'll give it a go and report back.

Regards

Jesse


-- 
   Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au

 Email: jesse (at) va.com.au> Website Development
 Phone: +61 (0)8 8223 2288  > Web & Email Hosting
   Web: http://jesse.va.com.au  > Streaming Media Hosting
> Telehousing / Colocation

-
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: Sending a parameter to Xerces (allow java char encodings)

2002-08-15 Thread Vadim Gritsenko

Jesse Reynolds wrote:

> At 22:10 -0400 15/8/2002, Vadim Gritsenko wrote:
>
>> Jesse Reynolds wrote:
>>
>>>
>>> And I've made the changes to JaxpParser.java as Vadim has suggested 
>>> to get it to tell Xerces to "allow-java-encodings" but it just 
>>> doesn't seem to work.
>>>
>>> Perhaps a bug in Xerces?
>>
>>
>>
>> Jesse,
>>
>> Please note: you have patched 
>> org/apache/cocoon/components/parser/JaxpParser.java file, but stack 
>> trace  shows org.apache.avalon.excalibur.xml.JaxpParser class.
>>
>> As you can see in org.apache.cocoon.components.parser.Parser:
>> * @deprecated The Avalon XML Parser is now used inside Cocoon. This role
>> * will be removed in future releases.
>>
>>
>> Vadim
>
>
>
> Thanks Vadim!
>
> I was wondering about that, but not being a seasoned java developer I 
> wasn't 100% on whether the class path should equal the sourcecode 
> path. Now I know :-)
>
> So, what should I try adding the allow-java-encodings code to now do 
> you think? I can't see any other file called JaxpParser.java in the 
> source, so does this mean I have to edit the source code of Avalon XML 
> Parser or something?


:)

You've got this part right. But it's not Avalon XML Parser, it's Avalon 
XML Parser Component which wraps JAXP parser into Component.

Source is located at:

http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-excalibur/xmlbundle/src/java/org/apache/avalon/excalibur/xml/Attic/JaxpParser.java?rev=1.3&content-type=text/vnd.viewcvs-markup

You don't have to compile all Excalibur, you can just patch and compile 
this class (add some System.out.println to see what's going on!) and put 
it under webapp/WEB-INF/classes/org/apache/..., and it will be loaded 
from there before old class.


> How come Xerces still appears in the stacktrace if we're no longer 
> using it or is Avalon not actually a parser, just something like a 
> different wrapper for Xerces or whatever? 


Mentioned Component will instantiate available JAXP parser and use it. 
You can see it in the source code you were patching (piece

factory.newSAXParser().getXMLReader() instantiates Xerces).

.

Vadim




-
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: Sending a parameter to Xerces (allow java char encodings)

2002-08-15 Thread Jesse Reynolds

At 22:10 -0400 15/8/2002, Vadim Gritsenko wrote:
>Jesse Reynolds wrote:
>>
>>And I've made the changes to JaxpParser.java as Vadim has suggested 
>>to get it to tell Xerces to "allow-java-encodings" but it just 
>>doesn't seem to work.
>>
>>Perhaps a bug in Xerces?
>
>
>Jesse,
>
>Please note: you have patched 
>org/apache/cocoon/components/parser/JaxpParser.java file, but stack 
>trace  shows org.apache.avalon.excalibur.xml.JaxpParser class.
>
>As you can see in org.apache.cocoon.components.parser.Parser:
>* @deprecated The Avalon XML Parser is now used inside Cocoon. This role
>* will be removed in future releases.
>
>
>Vadim


Thanks Vadim!

I was wondering about that, but not being a seasoned java developer I 
wasn't 100% on whether the class path should equal the sourcecode 
path. Now I know :-)

So, what should I try adding the allow-java-encodings code to now do 
you think? I can't see any other file called JaxpParser.java in the 
source, so does this mean I have to edit the source code of Avalon 
XML Parser or something?

How come Xerces still appears in the stacktrace if we're no longer 
using it or is Avalon not actually a parser, just something like a 
different wrapper for Xerces or whatever?


Thankyou

Jesse




-- 
   Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au

 Email: jesse (at) va.com.au> Website Development
 Phone: +61 (0)8 8223 2288  > Web & Email Hosting
   Web: http://jesse.va.com.au  > Streaming Media Hosting
> Telehousing / Colocation

-
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: Internal Pipeline - external access

2002-08-15 Thread Vadim Gritsenko

Silke Schön wrote:

>Hello! 
>
>In the pipelines part of my sitemap.xmap I created a second, internal pipeline for a 
>pdf-document. The sheet works fine- but as well internal as EXTERNAL- what I wanted 
>to avoid.
>

I don't get this.


>I can't find the problem. 
>What went wrong?
>

What's the problem?


>Where can I modify the settings for what exactly should be treated as external and 
>what as internal (internal for instance just the localhost)?
>

"Internal" pipeline means: only Cocoon itself can access this pipeline. 
Nobody outside Cocoon, even from localhost, can access this pipeline.

If you want to decide what to serve based on host, use host matchers and 
selectors.


>Should I use the "cocoon:/int" even if I removed the "/cocoon" from my usual URI (I 
>guess that really doesn't matter - anyway)?
>

In "cocoon:/int", "cocoon:" part is *protocol*. See docs. See samples 
under cocoon/sub/ as well.

Vadim


>Well, here are my pipelines:
>
>#
># 
># 
># 
># 
># 
># 
># 
># 
># 
># 
># # 
># 
># 
>#
>
>I'd be very pleased to get some help, as I am quite new to cocoon. And a bit 
>desperate as well.
>Thank you
>
>Silke
>  
>




-
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: Sending a parameter to Xerces (allow java char encodings)

2002-08-15 Thread Vadim Gritsenko

Jesse Reynolds wrote:

> At 11:07 -0400 12/8/2002, Vadim Gritsenko wrote:
>
>>  > From: Jesse Reynolds [mailto:[EMAIL PROTECTED]]
>>
>>>
>>>  Thanks Vadim
>>>
>>>  I've changed the code to mention the correct URL, but it is still not
>>>  working. I am confused about why it isn't working. Either:
>>>
>>>  a) My code is not doing the right thing
>>>  b) Xerces has a bug
>>>  c) I need to make a similar change to another piece of code in 
>>> cocoon as well
>>
>>  > Any suggestions?
>
>
>
> Okay, because i copied the sitemap from the samples and not copied the 
> common dir over too. Having done that, now I'm just gettng a prettier 
> "unsupported encoding" message.
>
> I know my JVM supports MacRoman encoded characters, as I've written 
> some test java code and it works perfectly.
>
> And I've made the changes to JaxpParser.java as Vadim has suggested to 
> get it to tell Xerces to "allow-java-encodings" but it just doesn't 
> seem to work.
>
> Perhaps a bug in Xerces?


Jesse,

Please note: you have patched 
org/apache/cocoon/components/parser/JaxpParser.java file, but stack 
trace  shows org.apache.avalon.excalibur.xml.JaxpParser class.

As you can see in org.apache.cocoon.components.parser.Parser:
 * @deprecated The Avalon XML Parser is now used inside Cocoon. This role
 * will be removed in future releases.


Vadim


> Or is there somewhere else in Cocoon that I need to fix this perhaps?
>
> the diff of JaxpParser.java once again:
>
>
> bash-2.04# diff 
> ./src/java/org/apache/cocoon/components/parser/JaxpParser.java.orig 
> ./src/java/org/apache/cocoon/components/parser/JaxpParser.java
> 138a139,141
>
>>  /** do we want to allow all possible text encodings recognised 
>> by current JVM? */
>>  protected boolean allowJavaEncodings;
>>
> 205a209,214
>
>> // Pick up "allow-java-encodings" to allow the use of 
>> additional
>>  //   character encodings supported by current JVM (eg 
>> "MacRoman")
>>  // Jesse Reynolds 2002.08.10
>>  this.allowJavaEncodings = 
>> params.getParameterAsBoolean("allow-java-encodings", true);
>>
> 215a225,233
>
>>  }
>> if (this.allowJavaEncodings) {
>>  try {
>>
>> this.reader.setFeature("http://xml.org/sax/features/allow-java-encodings";, 
>> true);
>>  } catch (SAXException e) {
>>  getLogger().warn("SAX2 driver does not support 
>> feature: 'allow-java-encodings' "+
>>
>> "('http://xml.org/sax/features/allow-java-encodings')");
>>  }
>
>
>
>
> and the full output of sitemap.log when requesting a very simple page 
> with encoding="MacRoman" in the XML decln:
>
>
> DEBUG   (2002-08-16) 08:08.56:177   [sitemap.generator.file] 
> (/cocoon/afringe/wonka.xml) HttpProcessor[8080][4]/FileGenerator: 
> processing file wonka.xml
> DEBUG   (2002-08-16) 08:08.56:179   [sitemap.generator.file] 
> (/cocoon/afringe/wonka.xml) HttpProcessor[8080][4]/FileGenerator: file 
> resolved to 
> file:/usr/local/jakarta-tomcat-4.0.4/webapps/cocoon/afringe/wonka.xml
> DEBUG   (2002-08-16) 08:08.56:185   [sitemap.generator.file] 
> (/cocoon/afringe/wonka.xml) HttpProcessor[8080][4]/FileGenerator: Got 
> SAXException; Rethrowing cause exception
> org.xml.sax.SAXParseException: The encoding "MacRoman" is not supported.
> at 
> org.apache.avalon.excalibur.xml.JaxpParser.fatalError(JaxpParser.java, 
> Compiled Code)
> at 
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java, 
> Compiled Code)
> at 
> 
>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java,
> 
> Compiled Code)
> at 
> org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java, 
> Compiled Code)
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java, 
> Compiled Code)
> at 
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java, 
> Compiled Code)
> at 
> 
>org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java,
> 
> Compiled Code)
> at 
> org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java, 
> Compiled Code)
> at 
> 
>org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java,
> 
> Compiled Code)
> at 
> 
>org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java,
> 
> Compiled Code)
> at 
> org.apache.cocoon.www.afringe.sitemap_xmap.matchN10064(sitemap_xmap.java, 
> Compiled Code)
> at 
> org.apache.cocoon.www.afringe.sitemap_xmap.process(sitemap_xmap.java, 
> Compiled Code)
> at 
> org.apache.cocoon.www.afringe.sitemap_xmap.process(sitemap_xmap.java, 
> Compiled Code)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java, 
> Compiled Code)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, 
> Compiled Code)
> at 
> org.apache.cocoon.www.sitemap_xmap.match

Re: Installing Cacoon on JRUN 3.1 behind proxy

2002-08-15 Thread Vadim Gritsenko

[EMAIL PROTECTED] wrote:

>I just installed cocoon in my Jrun environment and the new rhino file seems
>to be looking for java.sun.com without going through the proxy.  Has anyone
>experienced this situation?  Any information on solving this problem would
>be appreciated.  Thanks.
>
>08/15 15:41:25 error (JRun) JRun Aborting! [javax.servlet.ServletException:
>java.sun.com]
>[2]java.net.UnknownHostException: java.sun.com
>  
>

You cut stacktrace so short it's totally unclear what context it occured in.

PS No, such problem never occured to me.

Vadim



-
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: Building Cocoon on Mac OS X

2002-08-15 Thread Jesse Reynolds

Urgh, I think I just answered my own question... corrupted filenames eg:

"AbstractJavaCompiler.ja100644"

/src/java/org/apache/cocoon/components/language/programming/java/AbstractJavaCompiler.ja100644


yikes... Ah, I must have used "tar" and not "gnutar". DOH!

package:
Building jar: /Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/cocoon.jar
Building jar: 
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/cocoon-scratchpad.jar

BUILD SUCCESSFUL

Total time: 1 minute 42 seconds

Yay

cheers

jesse


At 8:08 +1000 16/8/2002, Jesse Reynolds wrote:
>Hello folx
>
>Has anyone ever built Cocoon 2.x on Mac OS X?
>
>I got about 36 errors the first time I tried, below. They mostly 
>seem to be classes not found... any ideas anyone?
>
>I'm on Mac OS X version 10.1.5 on a powerbook g4.
>
>
>compile:
>Compiling with Java 1.3, debug on, optimize off, deprecation off
>Compiling 19 source files to 
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/classes
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Javac.java:71:
> 
>Superclass 
>org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
>of class 
>org.apache.cocoon.components.language.programming.java.Javac not 
>found.
>public class Javac extends AbstractJavaCompiler {
>^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:64:
> 
>Class 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
>not found in import.
>import 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage;
>^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:80:
> 
>Superclass 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
>of class 
>org.apache.cocoon.components.language.programming.java.JavaLanguage 
>not found.
>public class JavaLanguage extends CompiledProgrammingLanguage
>   ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Jikes.java:68:
> 
>Superclass 
>org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
>of class 
>org.apache.cocoon.components.language.programming.java.Jikes not 
>found.
>public class Jikes extends AbstractJavaCompiler {
>^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java:68:
> 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder not 
>found.
>public class CategoryNodeBuilder extends AbstractParentProcessingNodeBuilder
>  ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/ContainerNodeBuilder.java:66:
> 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder not 
>found.
>public class ContainerNodeBuilder extends 
>AbstractParentProcessingNodeBuilder implements ThreadSafe {
>   ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:58:
> 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:73:
> 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.ActNodeBuilder 
>not found.
>public class ActNodeBuilder extends AbstractParentProcessingNodeBuilder
> ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:61:
> 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:75:
> 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder 
>not found.
>public class MatchNodeBuilder extends AbstractParentProcessingNodeBuilder
>

RE: Building Cocoon on Mac OS X

2002-08-15 Thread Astor Rivera

Jesse,

have you ever compiled using the tcsh shell?

I hate to say this but this looks like a classpath error.
Have you set your environment variables and initialized them when you
compile.

you should have a .tcshrc file in your current directory that specifies your
shells environment variables.

-Astor
Multimedia Developer
http://www.esri.com

-Original Message-
From: Jesse Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 3:08 PM
To: [EMAIL PROTECTED]
Subject: Building Cocoon on Mac OS X


Hello folx

Has anyone ever built Cocoon 2.x on Mac OS X?

I got about 36 errors the first time I tried, below. They mostly seem 
to be classes not found... any ideas anyone?

I'm on Mac OS X version 10.1.5 on a powerbook g4.


compile:
Compiling with Java 1.3, debug on, optimize off, deprecation off
Compiling 19 source files to 
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/classes
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/language/programming/java/Javac.java:71: 
Superclass 
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
of class org.apache.cocoon.components.language.programming.java.Javac 
not found.
public class Javac extends AbstractJavaCompiler {
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/language/programming/java/JavaLanguage.java:64: 
Class 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e 
not found in import.
import 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/language/programming/java/JavaLanguage.java:80: 
Superclass 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e 
of class 
org.apache.cocoon.components.language.programming.java.JavaLanguage 
not found.
public class JavaLanguage extends CompiledProgrammingLanguage
   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/language/programming/java/Jikes.java:68: 
Superclass 
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
of class org.apache.cocoon.components.language.programming.java.Jikes 
not found.
public class Jikes extends AbstractJavaCompiler {
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/CategoryNodeBuilder.java:68: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er 
of class 
org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder not 
found.
public class CategoryNodeBuilder extends AbstractParentProcessingNodeBuilder
  ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/ContainerNodeBuilder.java:66: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er 
of class 
org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder not 
found.
public class ContainerNodeBuilder extends 
AbstractParentProcessingNodeBuilder implements ThreadSafe {
   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/sitemap/ActNodeBuilder.java:58: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/sitemap/ActNodeBuilder.java:73: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.ActNodeBuilder not 
found.
public class ActNodeBuilder extends AbstractParentProcessingNodeBuilder
 ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/sitemap/MatchNodeBuilder.java:61: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/sitemap/MatchNodeBuilder.java:75: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuild
er 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder 
not found.
public class MatchNodeBuilder extends AbstractParentProcessingNodeBuilder
   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon
/components/treeprocessor/s

Internal Pipeline - external access

2002-08-15 Thread Silke=20Sch=F6n

Hello! 

In the pipelines part of my sitemap.xmap I created a second, internal pipeline for a 
pdf-document. The sheet works fine- but as well internal as EXTERNAL- what I wanted to 
avoid.
I can't find the problem. 
What went wrong?
Where can I modify the settings for what exactly should be treated as external and 
what as internal (internal for instance just the localhost)?
Should I use the "cocoon:/int" even if I removed the "/cocoon" from my usual URI (I 
guess that really doesn't matter - anyway)?

Well, here are my pipelines:

#
# 
# 
# 
# 
# 
# 
# 
#
# 
# ...
# ...
# 
# 
# 
# 
# ...
# ... 
# 
#

I'd be very pleased to get some help, as I am quite new to cocoon. And a bit desperate 
as well.
Thank you

Silke

__
Den Komfort von WEB.DE FreeMail nutzen, aber die alten E-Mail-Adressen nicht
aufgeben? Kein Problem: http://freemail.web.de/?mc=021128


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




Installing Cacoon on JRUN 3.1 behind proxy

2002-08-15 Thread Don . Abbasi

I just installed cocoon in my Jrun environment and the new rhino file seems
to be looking for java.sun.com without going through the proxy.  Has anyone
experienced this situation?  Any information on solving this problem would
be appreciated.  Thanks.

08/15 15:41:25 error (JRun) JRun Aborting! [javax.servlet.ServletException:
java.sun.com]
[2]java.net.UnknownHostException: java.sun.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]>




RE: Sending a parameter to Xerces (allow java char encodings)

2002-08-15 Thread Jesse Reynolds

At 11:07 -0400 12/8/2002, Vadim Gritsenko wrote:
>  > From: Jesse Reynolds [mailto:[EMAIL PROTECTED]]
>>
>>  Thanks Vadim
>>
>>  I've changed the code to mention the correct URL, but it is still not
>>  working. I am confused about why it isn't working. Either:
>>
>>  a) My code is not doing the right thing
>>  b) Xerces has a bug
>>  c) I need to make a similar change to another piece of code in cocoon
>as well.
>>
>  > Any suggestions?


Okay, because i copied the sitemap from the samples and not copied 
the common dir over too. Having done that, now I'm just gettng a 
prettier "unsupported encoding" message.

I know my JVM supports MacRoman encoded characters, as I've written 
some test java code and it works perfectly.

And I've made the changes to JaxpParser.java as Vadim has suggested 
to get it to tell Xerces to "allow-java-encodings" but it just 
doesn't seem to work.

Perhaps a bug in Xerces?

Or is there somewhere else in Cocoon that I need to fix this perhaps?

the diff of JaxpParser.java once again:


bash-2.04# diff 
./src/java/org/apache/cocoon/components/parser/JaxpParser.java.orig 
./src/java/org/apache/cocoon/components/parser/JaxpParser.java
138a139,141
>  /** do we want to allow all possible text encodings recognised 
>by current JVM? */
>  protected boolean allowJavaEncodings;
>
205a209,214
>
>  // Pick up "allow-java-encodings" to allow the use of additional
>  //   character encodings supported by current JVM (eg "MacRoman")
>  // Jesse Reynolds 2002.08.10
>  this.allowJavaEncodings = 
>params.getParameterAsBoolean("allow-java-encodings", true);
>
215a225,233
>  }
>
>  if (this.allowJavaEncodings) {
>  try {
> 
>this.reader.setFeature("http://xml.org/sax/features/allow-java-encodings";, 
>true);
>  } catch (SAXException e) {
>  getLogger().warn("SAX2 driver does not support 
>feature: 'allow-java-encodings' "+
> 
>"('http://xml.org/sax/features/allow-java-encodings')");
>  }



and the full output of sitemap.log when requesting a very simple page 
with encoding="MacRoman" in the XML decln:


DEBUG   (2002-08-16) 08:08.56:177   [sitemap.generator.file] 
(/cocoon/afringe/wonka.xml) HttpProcessor[8080][4]/FileGenerator: 
processing file wonka.xml
DEBUG   (2002-08-16) 08:08.56:179   [sitemap.generator.file] 
(/cocoon/afringe/wonka.xml) HttpProcessor[8080][4]/FileGenerator: 
file resolved to 
file:/usr/local/jakarta-tomcat-4.0.4/webapps/cocoon/afringe/wonka.xml
DEBUG   (2002-08-16) 08:08.56:185   [sitemap.generator.file] 
(/cocoon/afringe/wonka.xml) HttpProcessor[8080][4]/FileGenerator: Got 
SAXException; Rethrowing cause exception
org.xml.sax.SAXParseException: The encoding "MacRoman" is not supported.
 at 
org.apache.avalon.excalibur.xml.JaxpParser.fatalError(JaxpParser.java, 
Compiled Code)
 at 
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java, 
Compiled Code)
 at 
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java,
 
Compiled Code)
 at 
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java, 
Compiled Code)
 at 
org.apache.xerces.framework.XMLParser.parse(XMLParser.java, Compiled 
Code)
 at 
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java, 
Compiled Code)
 at 
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java,
 
Compiled Code)
 at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java, 
Compiled Code)
 at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java,
 
Compiled Code)
 at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java,
 
Compiled Code)
 at 
org.apache.cocoon.www.afringe.sitemap_xmap.matchN10064(sitemap_xmap.java, 
Compiled Code)
 at 
org.apache.cocoon.www.afringe.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
 at 
org.apache.cocoon.www.afringe.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java, 
Compiled Code)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, 
Compiled Code)
 at 
org.apache.cocoon.www.sitemap_xmap.matchN10357(sitemap_xmap.java, 
Compiled Code)
 at 
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
 at 
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java, 
Compiled Code)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, 
Compiled Code)
 at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java, 
Compiled Code)
 at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
 at 
org.apache.cocoon.servlet.Cocoon

RE: Can cocoon write pdf to a file?

2002-08-15 Thread Terry Anderson
Title: Message



This 
has been answered in the archives.
I used 
the pdf transformer and saved the output stream to a file.
 
TA

  
  -Original Message-From: Geoff Howard 
  [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:07 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: Can 
  cocoon write pdf to a file?
  you 
  should check the archives - i'm pretty sure this has been answered a 
  lot.  Think you'll want SourceWritingTransformer from Cocoon 2.1 dev (cvs 
  check out from HEAD)
   
  Geoff
  
-Original Message-From: kyle koss 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, August 15, 2002 1:54 
PMTo: [EMAIL PROTECTED]Subject: Can cocoon 
write pdf to a file?

Is it possible for 
Cocoon to do an XML+XSL -> PDF transformation, but instead of serving the 
PDF into the browser, writing it to a file?
 
What I would like to do 
is, take information entered into a form on a jsp 
page, turn it into an XML file, and then apply my XSL to it to produce a PDF 
which is then stored to disk on the server.
 
Can this be done using 
Cocoon, or would it be easier to just use FOP embedded in a servlet? If it can be done, what do I have to 
do?
 
Regards, Kyle Koss


Building Cocoon on Mac OS X

2002-08-15 Thread Jesse Reynolds

Hello folx

Has anyone ever built Cocoon 2.x on Mac OS X?

I got about 36 errors the first time I tried, below. They mostly seem 
to be classes not found... any ideas anyone?

I'm on Mac OS X version 10.1.5 on a powerbook g4.


compile:
Compiling with Java 1.3, debug on, optimize off, deprecation off
Compiling 19 source files to 
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/classes
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Javac.java:71:
 
Superclass 
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
of class org.apache.cocoon.components.language.programming.java.Javac 
not found.
public class Javac extends AbstractJavaCompiler {
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:64:
 
Class 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
not found in import.
import 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:80:
 
Superclass 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
of class 
org.apache.cocoon.components.language.programming.java.JavaLanguage 
not found.
public class JavaLanguage extends CompiledProgrammingLanguage
   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Jikes.java:68:
 
Superclass 
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
of class org.apache.cocoon.components.language.programming.java.Jikes 
not found.
public class Jikes extends AbstractJavaCompiler {
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java:68:
 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder not 
found.
public class CategoryNodeBuilder extends AbstractParentProcessingNodeBuilder
  ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/ContainerNodeBuilder.java:66:
 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder not 
found.
public class ContainerNodeBuilder extends 
AbstractParentProcessingNodeBuilder implements ThreadSafe {
   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:58:
 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:73:
 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.ActNodeBuilder not 
found.
public class ActNodeBuilder extends AbstractParentProcessingNodeBuilder
 ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:61:
 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:75:
 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder 
not found.
public class MatchNodeBuilder extends AbstractParentProcessingNodeBuilder
   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNodeBuilder.java:57:
 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNodeBuilder.java:70:
 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap

Re: Redirect/Rewrite Module

2002-08-15 Thread Michael Wechner



Giacomo Pati wrote:

>On Fri, 9 Aug 2002, Michael Wechner wrote:
>
>>Hi
>>
>>I have a situation where I would like to do a lot of
>>URI-redirects/rewrites. I know I can do this via the sitemap,
>>but other people would be doing this. So for the reason of "Separation
>>of Concern" I would like to separate this from the actual sitemap.
>>
>>My question is what are the possibilties to do something like that?
>>
>>-One way would probably be to have a separate sitemap dedicated to
>>redirects, which is mounted by the actual sitemap.
>>
>>-Or to have the redirects in a separate file, which is "pulled in" by
>>the actual sitemap as an external entity
>>
>>-Or to have an action/component, where every request is sent through and
>>is acting
>>as an redirect/rewrite module (and maybe calling Cocoon again!!)
>>
>>Any thoughts on this?
>>
>
>What about redesigning your URI space?
>
>You know, I'm not a friend of redirects as they where made to keep old
>URIs still working if you had to restructure your site. It seems to me
>that people think redirection is a tool/pattern for web development.
>
I agree with you, but the problem of old URIs will probably exist for 
another year or so:-)
I think there are at least two solutions:

1) You can propagate the modifications of URIs through the net using a 
P2P approach
or something similar. This would not only be good for old URIs, but also 
for URIs where
content is changing all the time, such as for instance RSS. (For 
instance Slashdot has the
policy that you are not "allowed" to request their RSS more often than 
every 30 minutes,
else your IP will be blocked.)

2) Each URI has an owner. When the URI is old (expired), but is still 
being requested, then the server should tell the owner about it

Both solutions could be part of a Content Management System/Framework.

But there is also another "misuse" of redirects:
Companies (for instance newspapers) sometimes want to announce a new 
"product"
on the web, but the URI is too long for people remembering when reading 
the adds,
but actually it would be appropriate context-wise. So the marketing 
department thinks
of an "abbreviated" URI.

All the best

Michael

> 
>
>Giacomo
>
>
>-
>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: Can cocoon write pdf to a file?

2002-08-15 Thread Geoff Howard



you 
should check the archives - i'm pretty sure this has been answered a lot.  
Think you'll want SourceWritingTransformer from Cocoon 2.1 dev (cvs check out 
from HEAD)
 
Geoff

  -Original Message-From: kyle koss 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 15, 2002 1:54 
  PMTo: [EMAIL PROTECTED]Subject: Can cocoon 
  write pdf to a file?
  
  Is it possible for Cocoon 
  to do an XML+XSL -> PDF transformation, but instead of serving the PDF into 
  the browser, writing it to a file?
   
  What I would like to do 
  is, take information entered into a form on a jsp 
  page, turn it into an XML file, and then apply my XSL to it to produce a PDF 
  which is then stored to disk on the server.
   
  Can this be done using 
  Cocoon, or would it be easier to just use FOP embedded in a servlet? If it can be done, what do I have to 
  do?
   
  Regards, Kyle Koss


Re: Can cocoon write pdf to a file?

2002-08-15 Thread Justin Fagnani-Bell

Because what happens when someone then wants to do the same thing with a 
GIF, or HTML, or SWF?

An action that writes any resource to a file can be reused in different 
circumstances.

Justin

On Thursday, August 15, 2002, at 01:46 PM, Argyn Kuketayev wrote:

> > I can't think of any way to do this with the included Cocoon
> > components,
>
> why not to change FOPSerializer?
>
> e.g. make it write the file on hard disk, then in the output stream 
> will be only the URL to that file?
>


-
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: Can cocoon write pdf to a file?

2002-08-15 Thread Argyn Kuketayev
Title: RE: Can cocoon write pdf to a file?





> I can't think of any way to do this with the included Cocoon 
> components, 


why not to change FOPSerializer?


e.g. make it write the file on hard disk, then in the output stream will be only the URL to that file?





Re: WAP problem

2002-08-15 Thread Skip Carter


> Its strange but my cell phone does not open
> http://xxx/cocoon/samples/hello-world/hello.wml saying: 1019 Compile Error
> What's the matter?


Several cell phone microbrowsers are NOT strictly WML compliant, in spite of 
the fact
that they say they are.  I have seen the above problem with the Phone.Com (aka 
OpenWave) UP.Browser.
Its really pretty inexcusable for the browser to be so fragile considering 
that the phone is not
doing any of the WML parsing; a proxy server is doing it.

I did some experimenting and found that the UP browser does not like the 
DOCTYPE prologue.


My solution for dealing with this was to create a psuedo-browser type, wapx
by changing the browser useragent="UP" line to the following in the 
sitemap.xmap
browser selector section:



and then to use the HTML serializer instead of the WML one for a "wapx" 
browser, e.g.:


...

 
 
 
 
 
 
 
 
 
 
 
 

...


I could have removed the DOCTYPE parameters from the wml serializer in the 
sitemap, but I wanted to
preserve the ability to work with WML browsers that are standards compliant.
(The above sitemap excerpt is from a site that uses Cocoon 2 in order to 
provide access to
the entire site -- XML, XSP, and Servlets -- to HTML and WML browsers 
http://www.caphnet.com/ ).



-- 
 Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
 Monterey, CA. 93940












-
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: Can cocoon write pdf to a file?

2002-08-15 Thread Justin Fagnani-Bell


On Thursday, August 15, 2002, at 10:53 AM, kyle koss wrote:

> Is it possible for Cocoon to do an XML+XSL -> PDF transformation, but 
> instead of serving the PDF into the browser, writing it to a file?
>
> What I would like to do is, take information entered into a form on a 
> jsp page, turn it into an XML file, and then apply my XSL to it to 
> produce a PDF which is then stored to disk on the server.
>
> Can this be done using Cocoon, or would it be easier to just use FOP 
> embedded in a servlet? If it can be done, what do I have to do?

I can't think of any way to do this with the included Cocoon components, 
but you could write an action that does this. Create a matcher that does 
the XML+XSL->PDF transformation, then in an action access the url for 
that matcher and saves to a file. I forget if action can access a 
pipeline with in an action with something like 
resolver.resolve("cocoon:/pdf"), if not you'll have to use the 
java.net.url classes.

You could also write an action that actually loads the file, performs 
the transformation, serializes to PDF and writes the file, all 
configurable by sitemap parameters, but the action that saves a url to a 
file seem more generally usable, it could be a good addition to Cocoon.

Justin


-
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: sexy open source

2002-08-15 Thread Vegan Portal

 --- Bertrand Delacretaz <[EMAIL PROTECTED]>
schrieb: > On Thursday 15 August 2002 18:41, David
Trammell
> wrote:
> > Couldn't this be discussed somewhere else...,
> Please
> 
> Yes, yes, please!!
> 
> Maybe you want to open a discussion group on
> yahoogroups for this, or a 
> discussion page on www.quicktopic.com. Both are easy
> and quick.
You are right, even if many like this kind of
discussion it got out of bounds regarding this list. I
will answer privately to those I've not answered
before and the only one next post from me with this
topic will be a summary for anobody interested and
link to group elsewhere for possible further
discussions.
HTH,
Peter.

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de

-
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: Redirect/Rewrite Module

2002-08-15 Thread Giacomo Pati

On Fri, 9 Aug 2002, Michael Wechner wrote:

> Hi
>
> I have a situation where I would like to do a lot of
> URI-redirects/rewrites. I know I can do this via the sitemap,
> but other people would be doing this. So for the reason of "Separation
> of Concern" I would like to separate this from the actual sitemap.
>
> My question is what are the possibilties to do something like that?
>
> -One way would probably be to have a separate sitemap dedicated to
> redirects, which is mounted by the actual sitemap.
>
> -Or to have the redirects in a separate file, which is "pulled in" by
> the actual sitemap as an external entity
>
> -Or to have an action/component, where every request is sent through and
> is acting
> as an redirect/rewrite module (and maybe calling Cocoon again!!)
>
> Any thoughts on this?

What about redesigning your URI space?

You know, I'm not a friend of redirects as they where made to keep old
URIs still working if you had to restructure your site. It seems to me
that people think redirection is a tool/pattern for web development.

Giacomo


-
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: AW: AW: FOP-0.20.3

2002-08-15 Thread J.Pietschmann

Wolf-Dieter Grabner wrote:
> The other way round - how can I 'downgrade' Cocoon to an older
> batik version (and/or use fop-020.4 instead of -0.20.3).

This should be as easy as replacing the Batik jar distributed
with Cocoon with the jar distributed with FOP. Well, it
worked for me in various environments. You might experience
trouble with the JPG and other SVG-to-graphics serializers
though.

J.Pietschmann


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




WAP problem

2002-08-15 Thread Leszek Gawron

Its strange but my cell phone does not open
http://xxx/cocoon/samples/hello-world/hello.wml saying: 1019 Compile Error
What's the matter?
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


-
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: Relax NG validation for Cocoon

2002-08-15 Thread Vadim Gritsenko

Ian Atkin wrote:

> it was forrest that woke me up to relaxng, but i'm up to a number of 
> things atm - this wasn't top of the list...
>
> i'm completely lost where cocoon ends and forrest starts, i'd like to 
> see validation first and worry about project boundaries second imho
>
> as for cocoon components (brainstorm):-


:)


> - does validation ocur at the parser level or the sitemap level or both?


Parser only. BTW, current 2.0.4-dev can show '/' page ("welcome") with 
treeprocessor and validation mode turned on. The main issue is XSLT 
stylesheets: writing DTDs for them is PITA.


> a quick win could be:-
> - use the XNIConfigurableFileGenerator from forrest
> - add Andy Clark's JingConfiguration and Jing ( 
> http://www.apache.org/~andyc/neko/doc/index.html )
> - configure in sitemap:-
>
>  
>
>value="org.cyberneko.relaxng.JingConfiguration" />
>   
>
>   
>  
>
> would require some hacking, but i think this generator needs a 
> clean-up anyway 


I don't like this idea.


> but then again, this would only work at start of pipeline...
>
> a win all round could be:-
>
> "validator" components, with variants of "doctype|schema|relaxng" 
> (would xpath be handy as well?)


This makes more sence, and may be used in more scenarios.

Vadim


> - definitions passed in through sitemap could override those in files 
> (spec says these are only hints)
> - errors cause redirection to error page or logging or whatever is 
> configured
> - i could see XNI being the saviour here, we could provide 
> doctype/schema from xerces and relax from neko + jing, also allows 
> anyone else to define their own validation components if they need them
> - issues are reliance on xerces and pre-sitemap validation (perhaps 
> multiple parser configs in cocoon.xconf? but how does code choose 
> which to use?)
> - don't know enough technicalities about mid-pipeline components
>
> what do you think?
>
> ian
>
.




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




ArrayIndexOutOfBounds/Cocoon-2.0.3

2002-08-15 Thread Amy Drew

Environment:
cocoon-2.0.3
jdk 1.3
tomcat 4.0.1
AIX 4.3

An action that uses an XMLFilterImpl and sets ContentHandler to a local
file
when parsing XML is failing with ArrayIndexOutOfBoundsExeption from
org.apache.xerces.parsers.AbstractSAXParser.parse(...:1193).  This
action
worked for a previous version of Cocoon (2.0b2) that was bundled with
xerces 1.4.1.

So I pared back to very basic code (follows).  It also gives the same
error
when compiled with xercesImpl-2.0.0.jar and xml-apis.jar.  But works
with
xerces-2_0_2 (xercesImpl.jar and xmlParserAPIs.jar) and xerces 1.4.1
I want to use cocoon-2.0.3 with the xerces-2_0_2, but have been
unsuccessful.  Any suggestions?  I have been using the binary
distribution
for cocoon and want to avoid building it.

Thanks,
Amy

===Code===

import java.io.FileReader;
import java.io.FileOutputStream;
import org.xml.sax.XMLReader;
import org.xml.sax.SAXException;
import org.xml.sax.InputSource;
import org.xml.sax.ContentHandler;
import org.xml.sax.helpers.XMLReaderFactory;
import org.apache.xml.serialize.XMLSerializer;

public class mySax {
public static void main (String args[])
throws SAXException {
String pn = "org.apache.xerces.parsers.SAXParser";
XMLReader xr = XMLReaderFactory.createXMLReader(pn);

try {
   FileOutputStream ff = new FileOutputStream("out.xml");
   XMLSerializer xs = new XMLSerializer(ff, null);

   xr.setContentHandler (xs.asContentHandler());
   FileReader reader = new FileReader ("in.xml");
   xr.parse (new InputSource (reader));
} catch (Exception e) {
  System.out.println ("failed: " + e);
  e.printStackTrace();
}
}
}

===Traceback===

java.lang.ArrayIndexOutOfBoundsException: -1
at java.lang.Throwable.(Throwable.java:84)
at java.lang.Exception.(Exception.java:35)
at org.xml.sax.SAXException.(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(...:1193)
at mySax.main(mySax.java:25)




-
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: [Fwd: Encoding in HSSF (XLS) Serializer]

2002-08-15 Thread Andrew C. Oliver

You know...  I don't think it does yet.  It would make sense to set the 
underlying encoding to unicode (16-bit) if
per chance the locale isn't set to us/uk/austrailia.  (we use the locale 
for numbers)

I'll fix this when I get a chance if someone else doesn't beat me to it. 
 (Its a very simple fix)

-Andy

Nicola Ken Barozzi wrote:

>
>
>  Original Message 
> Subject: Encoding in HSSF (XLS) Serializer
> Date: Thu, 15 Aug 2002 16:16:14 +0500
> From: Hiloliddin Karimov <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>
>
>
> Hi
>
>
>
> I try to use HSSF (XLS) Serializer for creating a spreadsheet in the 
> Excel.
>
> I have problem with cyrillic character, when I try show it I get other
> letters.
>
> Is there an encoding on HSSFSerializer?
>
>
>
> Any ideas, tips, or help would be greatly appreciated.
>
> Thanks very much!
>
> Hill
>
> (Cocoon-User)
>
>
>
> 
>
> Tomcat 4.0; Cocoon 2.1 dev; Java SDK 1.4;
>
>




-
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: sexy open source

2002-08-15 Thread Josema Alonso

Hi, All.
>...
> * Regression Testing:
>   JUnit (http://www.junit.org/)
>   JXUnit (http://jxunit.sourceforge.net/)
>   JMeter (http://jakarta.apache.org/jmeter)
>...

I haven't seen testing frameworks for web applications mentioned, and maybe
it would be good to add these too:
Canoo Web Test (http://webtest.canoo.com/)
Anteater (http://aft.sourceforge.net/)
Cactus (http://jakarta.apache.org/cactus/)

Best.



-
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: Can cocoon write pdf to a file?

2002-08-15 Thread Argyn Kuketayev



what 
for?
 
 

  -Original Message-From: kyle koss 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 15, 2002 1:54 
  PMTo: [EMAIL PROTECTED]Subject: Can cocoon 
  write pdf to a file?
  
  Is it possible for Cocoon 
  to do an XML+XSL -> PDF transformation, but instead of serving the PDF into 
  the browser, writing it to a file? 
   


Re: Can cocoon write pdf to a file?

2002-08-15 Thread Ross Gardler

kyle koss wrote:
> Is it possible for Cocoon to do an XML+XSL ->  PDF transformation, but instead of 
>serving the PDF into the browser, 
> writing it to a file?

You can from the command line (I think the following will work (although 
I have never used it):

java -cp [classpath] org.apache.cocoon.Main -c -d[docs.dir] 
-w[work.directory] [start.file]

Ross


> 
>  
> 
> What I would like to do is, take information entered into a form on a 
> jsp page, turn it into an XML file, and then apply my XSL to it to 
> produce a PDF which is then stored to disk on the server.
> 
>  
> 
> Can this be done using Cocoon, or would it be easier to just use FOP 
> embedded in a servlet? If it can be done, what do I have to do?
> 
>  
> 
> Regards, Kyle Koss
> 




-
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 cocoon write pdf to a file?

2002-08-15 Thread kyle koss








Is
it possible for Cocoon to do an XML+XSL -> PDF transformation, but instead
of serving the PDF into the browser, writing it to a file?

 

What
I would like to do is, take information entered into a form on a jsp page, turn it into an XML file, and then apply my XSL
to it to produce a PDF which is then stored to disk on the server.

 

Can
this be done using Cocoon, or would it be easier to just use FOP embedded in a servlet? If it can be done, what do I have to do?

 

Regards,
Kyle Koss








Re: sexy open source

2002-08-15 Thread Bertrand Delacretaz

On Thursday 15 August 2002 18:41, David Trammell wrote:
> Couldn't this be discussed somewhere else..., Please

Yes, yes, please!!

Maybe you want to open a discussion group on yahoogroups for this, or a 
discussion page on www.quicktopic.com. Both are easy and quick.

This would help keep this list focused.
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






-
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: sexy open source

2002-08-15 Thread David Trammell

Couldn't this be discussed somewhere else..., Please

Vegan Portal wrote:

> Hi cocooners,
> Now that I have your attention, I would like to
> discuss the ideal of non-compromised development of
> full-blown, stable, scallable and manageable
> applications with open-source only and how far one
> could get to fulfill this. It is probably little OT on
> this list, but I think a bunch of very open-minded and
> progressive folks is here, so I hope I could get some
> discussion going.
> I think many of you have reached some status quo which
> could be of great service to all the newcomers.
> Nevertheless, everybody is probably tired of yet
> another bugs, yet another unanswered questions, yet
> another everyday technology-related problems and there
> is no end to this. But I have a faith that there is
> some solution that could be achieved with open source
> and it waits to be discovered.
> It starts with what one wants to achieve. For me, it
> is secure content-centric multi-user roles web portal,
> with professional design, able to serve without
> interruption even by ongoing changes and high user
> traffic. But I think the framework I'd like to propose
> here may be universal enough to be equally worth also
> for many other means.
> If you got so far with me, I'd like to start being
> concrete:
> 1) Operating system
> Proposal: Linux
> Remarks: One could discuss the distributions or other
> Unix derivates here, but I think it's irrelevant for
> further points.
> 2) Programming language
> Proposal: pure Java 1.3.1x
> Remarks: I know many of you are trying 1.4 out, but it
> may still take some time to be able to be used for
> production sites. Moreover, many open source
> technologies were still not ported to 1.4. Correct me
> if I'm wrong.
> 3) Application framework
> Proposal: JBoss 3.x
> Remarks: This is worth discussion, as many of you use
> iPlanet or don't use any J2EE or related technologies
> at all. I think JBoss is good for achieving
> scallability for the site. What concrete parts of
> JBoss are involved, is very OT here.
> 4) Business Logic Persistence
> Proposal: Firebird RDBMS as JBoss service
> Remarks: I personally think it is most evolved
> open-source database now. The problem is, almost
> nobody uses it, the JDBC driver is beta etc. Next good
> candidate could be PostgreSQL - with more user
> support, so maybe better solution. Any ideas?
> 5) Web container
> Proposal: Jetty as JBoss service
> Remarks: I know Tomcat is more used, but Jetty is
> easier to be integrated into JBoss and both offer
> similar if not same functionality. This is a point I
> would like to discuss further.
> 6) Content Persistence
> Proposal: stand-alone XIndice
> Remarks: This component should be used only for
> content without business logic, outside J2EE, for
> example for simple static content editing templates
> and external content syndicate subscription. Simply
> for everything that's too light to be served by deep
> application logic. Did anybody use it already? That's
> a question.
> 7) Content Framework
> Proposal: Cocoon, what else :)
> Remarks: The task of Cocoon is to separate Logic from
> Design, what it should be good at. I want to get more
> detailed here: Starting with structured XSP,
> xincluding or transforming (what is better?) parts of
> final site together, using taglib logicsheets for
> access to business logic that is delegated to J2EE
> (did anybody here got it working?), other taglib for
> content persistence and yet other for reused content
> elements. The XSP should contain as little Java as
> possible, all hrefs should be good organized with
> sitemap and XForm could be used for user inputs (are
> we so far?). XSP should somehow incorporate JAAS from
> JBoss for user authorisation to access the documents
> (anybody tried this?) The result of multiple
> transformations is then complete site as XML, that is
> further processed using XSLT to incorporate the design
> and graphics and serialized to appropriate end format.
> If possible, all the vector design elements should be
> dynamically created using SVG (anybody?), page should
> be somehow cacheable for better response times (???)
> and the final result should be optimized for several
> types of client (is DELI of use here?) and/or
> serialized to PDF (do I expect too much?). The
> workflow by creating the content can be following:
> After initial discussion between involved parties,
> dummy working XSP/XSL is/are created, possibly reusing
> already available static elements from taglibs. Then,
> database/J2EE developers work on filling it with
> propper dynamic data, content writers type in
> internationalized static texts and designers are
> parallel creating more mature XSL, icons, SVG and thin
> client customizations. Working adjustments are posted
> to versioning system without injuring established
> interfaces to other team members. Final version
> emerges and the team could proceed to other page.
> Seems like heaven to me, but i

RE: sexy open source

2002-08-15 Thread Mike Haarman


On Thu, 15 Aug 2002, Hunsberger, Peter wrote:

> I'm slowly starting to see a generalized architecture fall out of the work
> we do.  It's rather different from what seems to be a main thrust of Cocoon
> (XSP), and it may be worth outlining:

It is.

> This architecture exploits the functional programming model of XSLT and uses
> meta-data to essentially create rules about how to resolve and render the
> current object tree.  If you "get" functional programming you will see that
> this keeps the basic processing model pretty simple and eliminates
> non-standard processing extensions (read XSP) from the flow.  If you get
> stuck on procedural approaches and can't see how you'd ever give up your
> logic sheets you'll be missing much of the power of XML and XSLT in my
> opinion.

Hear, hear!  Well said.


Mike Haarman
[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: NO JdbcConnection class available --cocoon 2.0.3 binary release u sing informix jdbc driver 2.21

2002-08-15 Thread Wang, Gonghui

Thanks, it actually works by switching back to an older verion of jdbc
driver and only use ifxjdbc.jar.
One more gotya when using XSP however, when I use 
  twice for the same column, 

  
  
 
it gives funny error message:
java.sql.SQLException: System or internal error Q154.
By removing one of the line, i.e. get the column once, it works fine. I don
not know whether this is a documented limitation of XSP or due to informix
driver. Just post it here in case someone run into the same funny error
message.


On 14.Aug.2002 -- 03:56 PM, Wang, Gonghui wrote:
> I am using cocoon 2.0.3 under tomcat 4.0.4 to try the employee example. It
> works on Oracle database, but fail for Informix database. 

Hi.
I use Informix all the time -- although with an older JDBC driver that
doesn't need the special treatment. For me, ifxjdbc.jar is
sufficiant. You need an entry in web.xml like

   
com.informix.jdbc.IfxDriver

in load-class
(next to org.hsqldb.jdbcDriver).

Also, look for the initialization of the pool rather than the
instantiation of it when looking at the log.

For me, a jdbc entry looks like:



jdbc:informix-sqli://host:port/vquadrat:informixserver=host
  username
  password


HTH.

Chris.
-- 
C h r i s t i a n   H a u l
[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]>




Handling the parameter,,,,,

2002-08-15 Thread kavitha ramesh

Hi Dr.Skip,

In my previous mail I have made a small mistake with
my sitemap.Actually my sitemap looks as below:

 


http://localhost:8080/cocoon/loginp{requestQuery}";
/>





Thanking you in advance,,

Kavitha



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.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]>




mount cocoon context on root URL-path

2002-08-15 Thread yuryx

Hi all!

I'm using tomcat-mod_jk-apache integration and I have the following 
question:

How can I mount a cocoon context on a root URL?
In tomcat-mod_webapp-apache integration I used to set the following
in httpd.conf :



WebAppConnection Conn   warp  localhost:8008
WebAppDeploy cocoon Conn  /
WebAppInfo /webapp-info






-
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: Relax NG validation for Cocoon

2002-08-15 Thread Ian Atkin

it was forrest that woke me up to relaxng, but i'm up to a number of 
things atm - this wasn't top of the list...

i'm completely lost where cocoon ends and forrest starts, i'd like to 
see validation first and worry about project boundaries second imho

as for cocoon components (brainstorm):-
- does validation ocur at the parser level or the sitemap level or both?

a quick win could be:-
- use the XNIConfigurableFileGenerator from forrest
- add Andy Clark's JingConfiguration and Jing ( 
http://www.apache.org/~andyc/neko/doc/index.html )
- configure in sitemap:-

  

   
   

   
  

would require some hacking, but i think this generator needs a clean-up 
anyway

but then again, this would only work at start of pipeline...

a win all round could be:-

"validator" components, with variants of "doctype|schema|relaxng" (would 
xpath be handy as well?)
- definitions passed in through sitemap could override those in files 
(spec says these are only hints)
- errors cause redirection to error page or logging or whatever is 
configured
- i could see XNI being the saviour here, we could provide 
doctype/schema from xerces and relax from neko + jing, also allows 
anyone else to define their own validation components if they need them
- issues are reliance on xerces and pre-sitemap validation (perhaps 
multiple parser configs in cocoon.xconf? but how does code choose which 
to use?)
- don't know enough technicalities about mid-pipeline components

what do you think?

ian

David Crossley wrote:

>Ian Atkin wrote:
>  
>
>>>David Crossley wrote:
>>>
>>>Please do not give up, Ian. Cocoon can certainly do validation
>>>as an XML framework now using DTDs. Perhaps later using other
>>>schema (Relax NG anyone?).
>>>  
>>>
>>i'm currently investigating relaxng:-
>>- jing seems the validator to use, any probs?
>>
>>
>
>See the Apache Forrest mail archives: there have been a few
>threads in the past about using Relax NG and there is one
>thread happening there now.
>http://marc.theaimsgroup.com/?l=forrest-dev&m=102887074620179
>
>I recall two reports to Forrest of experiments with Jing
>(around 6 months ago).
>
>One thing that i am not clear about, is where such validation
>capability should be. Is it in Cocoon or Forrest? I suspect
>in Cocoon.
>
>We need to be able to validate sources and aggregations at
>various points of the pipeline. How does that fit with
>Cocoon architecture - a new component?
>
>  
>
>>- also relaxng has no way for docs to identify schema, any ideas?
>>
>>
>
>In my experiments, Jing is told on the command-line which
>*.rng to use against a particular doc.xml, i.e. the declaration
>is external to the xml instance.
>
>--David
>
>
>
>
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>  
>



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

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




Re: Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Werner Guttmann

Thanks, Vadim, I actually had a look at src/documentation/cocoon.xconf to see what's
missing and to educate myself about the options available (javac vs. pizza vs. ...). 
Now,
having said that, I think it's a bit counter-intuitive to ask somebody to look into one
the build directories.

I downloaded both binaries and sources yesterday, disted the binaries internally to 
make
the web app available for deployment so that the documentation would be available 
easily.
Then I proceeded to take the source and make it available as it is (so that people can
have a look at e.g. logicsheets. Assuming that the web app part of the binaries works 
(and
it does, indeed), I thought it'd be a good idea to take the relevant files out of the
src/webapp directory hierarchy.

I now do realize that this though process is flawed, but I still think that requiring a
build before I can go and grab the relevant files should not be required.

Thanks
Werner

Vadim Gritsenko wrote:

> Werner Guttmann wrote:
>
> >If that's the case, where should I copy cocoon.xconf from ?
> >
> >
>
> Of course from build/cocoon/webapp/WEB-INF/cocoon.xconf (source dist).
>
> >Werner
> >
> >Artur Bialecki wrote:
> >
> >
> >
> >>Your mistake was using cocoon.xconf from src/webapp/WEB-INF.
> >>For some reason it doesn't define the compiler parameter for
> >>.
> >>
> >>Someone should fix this.
> >>
>
> This is intended.
>
> Vadim
>
> >>Artur...
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
> >>>Sent: Thursday, August 15, 2002 5:40 AM
> >>>To: [EMAIL PROTECTED]
> >>>Subject: Problems when upgrading to Cocoon 2.0.3 from 2.0.1
> >>>
> >>>
> >>>Hi,
> >>>
> >>>I am just in the process of upgrading an existing web application to use
> >>>Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
> >>>starting Tomcat 4.0.1, I am getting the following ComponentException in
> >>>e.g. core.log:
> >>>
> >>>I have searched the logs already (incl. the FAQ), but most entries seem
> >>>to relate to missing components within the sitemap, such as custom
> >>>actions, etc.
> >>>
> >>>All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
> >>>the Cocoon webapp shipped with the binaries, and mades ome minor chnages
> >>>in the pipeline section that are application specific.
> >>>
> >>>Any idea what might be going wrong ?
> >>>
> >>>W..
> >>>
> >>>ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
> >>>Unknown-thread/ExcaliburComponentSelector: Could not set up Component
> >>>for hint: java
> >>>org.apache.avalon.framework.parameters.ParameterException: The parameter
> >>>'compiler' does not contain a value
> >>>at
> 
org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)
> >>>
> >>>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]>




RE: [Q] SunRise roles?

2002-08-15 Thread Per Kreipke

Carsten,

Ah, philosophy :-)

> > I think that the restriction you describe (one role per user)
> > means that the
> > SunRise authentication is potentially mis-using the word 'role'. You're
> > using it to denote a profile name, nothing more. It'll never
> > really replace
> > (or integrate with) roles in the Servlet or permissions sense if it's
> > restricted to one role at a time.
> >
> No, I don't agree with your definition of 'role' - take acting as an
> example. A role in acting is one single role and not a bunch of possible
> roles an actor plays. - If an actor plays several persons he plays several
> roles but not a role with a comma separated list.

Just to provide some light hearted counter point, some of which relates to
Cocoon security:

- actors can play more than one role. Alec Guinness plays 8 of them in "Kind
Hearts and Coronets"

http://us.imdb.com/Title?0041546

- within a play, roles can play more than one role. Take any play within a
play where the characters play other characters.

- actors often direct the things they're in. Kenneth Branaugh, Kelsey
Grammer, etc.

> If you login into a system (and this is not related to Cocoon but to any
> system), you get a specific role with this login - you are either manager,
> administrator, user or guest - you are not at the same time manager and
> guest.
> That doesn't make sense.
>
> You can be either manager and guest, theoretically - but at one
> time you are
> only one of them. And you can switch your role.

Two comments:

1. you're saying that users can only inhabit one role within a set of
related roles. Let's say that's true.

The Servlet spec, however, clearly allows more than a single set of roles.

Examples:
level: [manager,contributor,guest]
status: [employee,consultant]
company: [client,internal]
shift: [morning,afternoon,night]

To denote the full set of roles that I inhabit, it would have to be similar
to:

{manager,employee,internal,afternoon}

E.g. multiple roles. Which the Servlet spec supports.


2. In your example, I think you're indicating that some roles are 'larger'
than others and that the larger ones contain the smaller ones. E.g. the
rights of the following roles from broadest to narrowest:

super > manager > contributor > reader > registered-guest > unregistered

Even if that wasn't your point, let me just say that (though perhaps not
ideal), there are two ways to model that set:

- each broader role includes the permissions of the next narrower one, and
adds to that set. Think nested circles in a Ven diagram, the typical way
people think about it. This way, as you mention, users have only need one
role at a time, and promotion means changing that role.

- or, each role is only the difference from any other set and the total set
of permissions is the union of all the roles you want. Think adjacent
circles in a Ven diagram. This way, users get a list of all the roles they
inhabit. In fact, they _are_ "at the same time manager and guest."

I agree, this is in fact _not_ such a good idea, that's really what
permissions are for, not roles, _but_ my point is that the Servlet spec
doesn't say how to do authentication and authorization, it just provides a
general mechanism, which SunRise is not currently expressive enough for.


> If you need this list of possibilities, I would suggest to not use the
> 'role' entry, but a 'roles' entry. The authentication framework
> is flexible
> and can handle this automatically.

Right,  was something I mentioned earlier but it already does so?
That's news to me :-) How does it do so automatically? Where do I
start/look?


> So, the authentication framework fits nicely into the servlet
> role handling.

Uh, I think I missed a leap somewhere :-)

Can you please give me a pointer on what you mean? Are you talking about
returning  inside  and then selecting it when needed? Are you
saying that it can implement Realm based security? You lost me, sorry.

Per


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

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




Re: Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Vadim Gritsenko

Werner Guttmann wrote:

>If that's the case, where should I copy cocoon.xconf from ?
>  
>

Of course from build/cocoon/webapp/WEB-INF/cocoon.xconf (source dist).


>Werner
>
>Artur Bialecki wrote:
>
>  
>
>>Your mistake was using cocoon.xconf from src/webapp/WEB-INF.
>>For some reason it doesn't define the compiler parameter for
>>.
>>
>>Someone should fix this.
>>

This is intended.

Vadim


>>Artur...
>>
>>
>>
>>>-Original Message-
>>>From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, August 15, 2002 5:40 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Problems when upgrading to Cocoon 2.0.3 from 2.0.1
>>>
>>>
>>>Hi,
>>>
>>>I am just in the process of upgrading an existing web application to use
>>>Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
>>>starting Tomcat 4.0.1, I am getting the following ComponentException in
>>>e.g. core.log:
>>>
>>>I have searched the logs already (incl. the FAQ), but most entries seem
>>>to relate to missing components within the sitemap, such as custom
>>>actions, etc.
>>>
>>>All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
>>>the Cocoon webapp shipped with the binaries, and mades ome minor chnages
>>>in the pipeline section that are application specific.
>>>
>>>Any idea what might be going wrong ?
>>>
>>>W..
>>>
>>>ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
>>>Unknown-thread/ExcaliburComponentSelector: Could not set up Component
>>>for hint: java
>>>org.apache.avalon.framework.parameters.ParameterException: The parameter
>>>'compiler' does not contain a value
>>>at
>>>org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)
>>>
>>>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]>




Re: using 1.8.2 with Tomcat as Service on w2k

2002-08-15 Thread Leszek Gawron

On Mon, Aug 12, 2002 at 05:07:00PM -0400, [EMAIL PROTECTED] wrote:
> 
>   Hi --
> 
>   Managed to get Tomcat 3.3.1 running as a service on my w2k server.  It is running 
>in conjunction with IIS 5.0.
> 
>   Tomcat also has Cocoon 1.8.2.  If I kick off Tomcat manually Cocoon works great.  
>If it runs as a service, I get
> 
> Class not found: org.apache.cocoon.Cocoon
> 
>   In jvm.stderr
> 
>   I'm guessing it's a configuration problem - anyone see this before?
yeah, see how Tomcat service is started and compare it to manual startup.bat -
the classpath and some options are set that do not get set while running as
service
ouo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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




[Summary] Re: Serving soap with Cocoon ?

2002-08-15 Thread Marcus Crafter

Hi All,

Summary of this thread is available:

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

Comments, questions, etc, much appreciated.

Cheers,

Marcus

On Thu, Aug 08, 2002 at 12:25:32PM -0400, Geoff Howard wrote:
> Can you post back your progress with this?  I'm sure there are a few of us
> who would like to know if it really turns out to be that easy.
> 
> Geoff Howard
> 
> > -Original Message-
> > From: Marcus Crafter [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 08, 2002 12:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Serving soap with Cocoon ?
> > 
> > 
> > On Thu, Aug 08, 2002 at 12:06:31PM -0400, Vadim Gritsenko wrote:
> > > > From: Marcus Crafter [mailto:[EMAIL PROTECTED]]
> > > > 
> > > > Hi All,
> > > > 
> > > > Hope all is well.
> > > > 
> > > > I've just been looking through the soap examples in HEAD, which
> > > > look really great for requesting data from a soap server
> > > somewhere.
> > > > 
> > > > Has anyone done the opposite ? ie. have Cocoon act as the soap
> > > > server ?
> > > > 
> > > > eg. to make a soap request from a Cocoon app, and have it
> > > deliver
> > > > the result.
> > > > 
> > > > soap request >   --
> > > >  | Cocoon Application |
> > > > soap response <---   --
> > > > 
> > > > (or have I missed something here ?)
> > > 
> > > AFAIU, SOAP request is just HTTP post with text/xml body. 
> > You can use
> > > (IIRC) stream generator to read it. SOAP response is just 
> > HTTP response
> > > with XML payload - that's the thing Cocoon is best at.
> > 
> > Thats exactly what I thought. 
> > 
> > > Do I miss something?
> > 
> > I don't think so, but I haven't really played with soap much up
> > till now, hence my q.
> > 
> > So we could have something like:
> > 
> > 
> >   
> >   
> >   
> > 
> > 
> > Would be perfect (for what I need) actually...
> > 
> > Cheers,
> > 
> > Marcus
> > 
> > -- 
> > .
> >  ,,$,  Marcus Crafter
> > ;$'  ':Computer Systems Engineer
> > $: :   ManageSoft GmbH
> >  $   o_)$$$:   82-84 Mainzer Landstrasse
> >  ;$,_/\ &&:'   60327 Frankfurt Germany
> >' /( &&&
> >\_'
> >   .
> > &&&:
> > 
> > -
> > 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]>
> 

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_'
  .
&&&:

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

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




Re: Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Werner Guttmann

If that's the case, where should I copy cocoon.xconf from ?

Werner

Artur Bialecki wrote:

> Your mistake was using cocoon.xconf from src/webapp/WEB-INF.
> For some reason it doesn't define the compiler parameter for
> .
>
> Someone should fix this.
>
> Artur...
>
> > -Original Message-
> > From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 5:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: Problems when upgrading to Cocoon 2.0.3 from 2.0.1
> >
> >
> > Hi,
> >
> > I am just in the process of upgrading an existing web application to use
> > Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
> > starting Tomcat 4.0.1, I am getting the following ComponentException in
> > e.g. core.log:
> >
> > I have searched the logs already (incl. the FAQ), but most entries seem
> > to relate to missing components within the sitemap, such as custom
> > actions, etc.
> >
> > All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
> > the Cocoon webapp shipped with the binaries, and mades ome minor chnages
> > in the pipeline section that are application specific.
> >
> > Any idea what might be going wrong ?
> >
> > W..
> >
> > ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
> > Unknown-thread/ExcaliburComponentSelector: Could not set up Component
> > for hint: java
> > org.apache.avalon.framework.parameters.ParameterException: The parameter
> > 'compiler' does not contain a value
> > at
> > org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)
> >
> > at
> > 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.parameterize(CompiledProgrammingLanguage.java:92)
> >
> > at
> > 
>org.apache.cocoon.components.language.programming.java.JavaLanguage.parameterize(JavaLanguage.java:118)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:190)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:537)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:353)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:380)
> >
> > at
> > 
>org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:167)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:314)
> >
> > at
> > 
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:168)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:170)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> >
> > at
> > 
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)
> >
> > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270)
> > at
> > org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
> >
> > at
> > org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
> > at
> > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> > at
> > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
> >
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> >
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> > at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> > at
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:388)
> >
> > at
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
> >
> > at
> > org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> > at
> > org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> > at java.lang.reflect.Method.in

RE: sexy open source

2002-08-15 Thread Hunsberger, Peter

> 
> Honestly, I went through stjude.org, nice idea, but if
> you'd decipher my nick, I'm quite uncomfortable with
> basic research exploiting animals with little or no
> actual use at all for all those unfortunate children -
> probably dictated by industry-driven NCI and others. I
> hope you work to catalogize only really valuable
> clinical research e.g. non-invasive statistical
> environment observation to help to discover most
> valuable prevention possibilities. Worth a quarrel
> between us...
> Moreover, I'm (fortunatelly) not the one giving money
> out here. Nevertheless, although miles away, you are
> looking like to be a suitable consultant for us with
> enough spare time. Wait till I discuss your possible
> involvement with those sitting on cash, then I'll
> contact you directly. Quick but informed expertise is
> awaited.
> 

I realize this is very far off topic, but this is important so please bear
with me: I think you may have misinterpreted what St. Jude does.  It is the
leading institution in the world for research into Childhood diseases.
Everyone that is treated here is treated regardless of their ability to pay,
often for free.  If you ever get a chance to see a 3 year old kid with
operational scars all over their head, attached to an chemo IV drip looking
as happy as can be because they've had just one more month to live you will
never, ever, again feel sorry for the sacrifice of some animal in the name
of clinical research.  Most of these kids would not have a chance to live at
all if it where not for St. Jude; we are now tracking 30 year survivors.
Basic research is critical to the 1000's of children that we treat each
year.  Yes many animals may die in related experiments.  They will do so
painlessly and humanely.  Many children will also die because we have not
yet figured out how to save them. The clinical research is invasive, dirty,
hands on real life medical research; that's the way lives are saved.

> Going on 

Yes please... [snip]

> You mean J2EE was too big calibre for your
> requirements but after you got into it, you wanted not
> to give up on possible features? 

In this particular case we probably won't have to scale to the point that we
really need most J2EE features for another year or so.  We could have held
off on the J2EE learning curve until the rest of the application was more
mature and stable. In particular, when you realize that many of our
developers are contract and that they will have moved on by the time we
really need the J2EE features.  We paid to educate them on something we
didn't necessarily need at the time.  OTOH, we did get a core group of
developers up the learning curve and we now have a running J2EE system to
eliminate most of the learning curve for new developers.

> Accepted. Seems like solutions implemented in Cocoon
> are, at this stage of Cocoon in general, hardly
> universal enough to be taken over (even in part) by
> another business models. That's the deal, I think.
> Cocoon is easy to customize, but then it is hard to
> find reusable patterns, till some next evolution
> comes. 

I'm slowly starting to see a generalized architecture fall out of the work
we do.  It's rather different from what seems to be a main thrust of Cocoon
(XSP), and it may be worth outlining:

1) exploit the ability of Cocoon to chain transformations together and
separate transformations into separate passes of object assembly and output
rendering;

2) separate and encapsulate the differing concerns of handling the
application work flow into well defined XML: request parameters; application
information (session level); object metadata specific to the current
context; object data specific to the current instance.  Use aggregation
(conceptually within a single generator, or explicitly within the sitemap,
exploiting caching) to combine these for the object assembly pass.

3) resolve (using XSLT) the combined application state data, session state
data, request state data, object meta-data and object data based on the
users current authorization into an abstract object tree populated with all
information required to generate any output.

4) render the object tree to the currently required output format.

This architecture exploits the functional programming model of XSLT and uses
meta-data to essentially create rules about how to resolve and render the
current object tree.  If you "get" functional programming you will see that
this keeps the basic processing model pretty simple and eliminates
non-standard processing extensions (read XSP) from the flow.  If you get
stuck on procedural approaches and can't see how you'd ever give up your
logic sheets you'll be missing much of the power of XML and XSLT in my
opinion.

We didn't start out with architected XML for each of these concerns and so
hadn't thought about when and how to persist each of these pieces of
information in a standard way.  By instead architecting ways to explicitly
handle the differing dimensions of inform

Antwort: Re: cocoon on bea - problems with xsps

2002-08-15 Thread michael_hampel

Hello,

  thanx for the reply.
  Unfortunately, I have to use servicepack 1.
  Any idea?

  Thanx again for any help,


   miHam


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

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




RE: Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Artur Bialecki

Your mistake was using cocoon.xconf from src/webapp/WEB-INF.
For some reason it doesn't define the compiler parameter for
. 

Someone should fix this.

Artur...

> -Original Message-
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 5:40 AM
> To: [EMAIL PROTECTED]
> Subject: Problems when upgrading to Cocoon 2.0.3 from 2.0.1
> 
> 
> Hi,
> 
> I am just in the process of upgrading an existing web application to use
> Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
> starting Tomcat 4.0.1, I am getting the following ComponentException in
> e.g. core.log:
> 
> I have searched the logs already (incl. the FAQ), but most entries seem
> to relate to missing components within the sitemap, such as custom
> actions, etc.
> 
> All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
> the Cocoon webapp shipped with the binaries, and mades ome minor chnages
> in the pipeline section that are application specific.
> 
> Any idea what might be going wrong ?
> 
> W..
> 
> ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: Could not set up Component
> for hint: java
> org.apache.avalon.framework.parameters.ParameterException: The parameter
> 'compiler' does not contain a value
> at
> org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)
> 
> at
> 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.parameterize(CompiledProgrammingLanguage.java:92)
> 
> at
> 
>org.apache.cocoon.components.language.programming.java.JavaLanguage.parameterize(JavaLanguage.java:118)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:190)
> 
> at
> 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:537)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:353)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)
> 
> at
> 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:380)
> 
> at
> 
>org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:167)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:314)
> 
> at
> 
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:168)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:170)
> 
> at
> 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)
> 
> at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270)
> at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
> 
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
> 
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> 
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
> 
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
> 
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> ERROR   (2002-08-15) 10:34.14:593   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: The component instance for
> 'java' is not valid.
> org.apache.avalon.framework.component.C

RE: sexy open source

2002-08-15 Thread Artur Bialecki


If it Portgresql supported the CONNECT BY statement
I would move to it today.

Artur...

> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 11:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sexy open source
>
>
>
> My experience also shows that Postgresql is a good database.
>
>
> - Original Message -
> From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 14, 2002 8:22 AM
> Subject: Re: sexy open source
>
>
> I recommend you try PostgreSQL.
>
> El Miércoles, 14 de Agosto de 2002 07:11, Argyn Kuketayev escribió:
> > subj was "sexy open source". I don't think that there's "sexy open source"
> > RDBMS comparing to Oracle, or even MS SQL Server.
> >
> > Ok, Apache is sexy, comparing to IIS indeed.
> >
> > business doesn't care about opennes as much as about performance and
> > features.
> >
> > Cocoon is sexy too, btw
> > jBoss is not.
> >
> > -Original Message-
> > From: Manos Batsis [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 14, 2002 9:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: sexy open source
> >
> >
> > Argyn,
> >
> > Err... the subject says "open source".
> >
> > I don't think there is a point in arguing about what sucks and what
> > doesn't, so I just won't.
> >
> > Manos
> >
> > -Original Message-
> > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 14, 2002 4:05 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: sexy open source
> >
> >
> >
> > RDBMS must be Oracle. no other options, imho.
> > cost is not a problem. it's negligeable comparing to the cost of one DBA.
> > while at the same time performance and other features of Oracle are far
> > better than anything.
> >
> > > 4) Business Logic Persistence
> > > Proposal: Firebird RDBMS as JBoss service
> >
> > jBoss sucks, imho.
>
> -
> 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]>




Parameter not accepted from a servlet

2002-08-15 Thread kavitha ramesh

Hi Dr.Skip,

You have peviously solved my problem of combining a
stylesheet with an xml file generated from a
servlet.Now I have someother problem.

My main sitemap is as follows:


 


http://localhost:8080/cocoon/login";
/>






login is a servlet and this servlet generates an xml
file.

1)If i type http://localhost:8080/cocoon/login in the
url it generates an xml file.When this xml file is
transformed with my stylesheet krishna.xsl and I get a
loginpage.


2)If i type
http://localhost:8080/cocoon/login?userID=kavitha
&passwd=ramesh, in the url it generates another xml
file.When this xml file is transformed with my
stylesheet krishna.xsl and I get a loginpage with an
error message.

Now when I type
http://localhost:8080/cocoon/login.html, Iam able to
get the loginpage.

when I type http://localhost:8080/cocoon/login.html?
userID=kavitha&passwd=ramesh, Iam NOT able to get the
error message in the loginpage.


Iam stuck,,,Please help me,,,

Kavitha.
















Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.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]>




Cinclude crashing catalina...?

2002-08-15 Thread Alexander Smirnoff

Hi,

I had weird JVM crash after using cinclude in my application. I spent 
a little time to investigate the issue and this what I figured out:

When I call  cinclude 
transformer does not rewrite the request's Servlet Path to "message".
For example In my sitemap I have next:












xml/cinclude.xml has  
in it.

This snippet is working properly, but something I do not understand:
If Servlet Path is not rewritten to "message", how sitemap properly 
picks the 'message' pipeline? Shoudn't it use the same 'cinclude'
pipeline again and again?

It has something to do with matcher or cocoon:/ protocol call. In my 
application I have my own implementation of the matcher which 
relies on getServletPath for match condition. And guess what happens 
when I use cinclude pipeline with this matcher? Right. It calls 
recursively itself in endless loop until all memory is exhausted and 
apparently crushes JVM...

So the question is - if request should not be rewriten in cocoon:/ call,
how to implement matcher so cinclude will correctly pickup the right
pipeline?

Thanks,
Alex.



-
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: POST request with XSP

2002-08-15 Thread Vadim Gritsenko

Boscoe wrote:

> [ Sorry,
> couldn't complete Email, had to use a different Email-Account ]
>
> Why isn't the HttpServletRequest directly accessible from a XSP ?
> Is there any important reason ?


HttpServletRequest does *not* exist in non-HTTP environment. Pls 
remember that Cocoon is not tied to servlet-only env..


> I think the best way for me could be creating a simple action which 
> sets a request attribute containing the HttpServletRequest so I can 
> access it in the XSP.


How it will help you? Why util logicsheet is not enough?

Vadim


> What do you think ?
>
> Thank you
>
> Boscoe



-
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 on bea - problems with xsps

2002-08-15 Thread Vadim Gritsenko

[EMAIL PROTECTED] wrote:

>Hello,
>
>  I ran into a new problem when using cocoon on bea 6.1 servicepack 1 on
>Solaris.
>  The problem is, that the java code from my xsps is not created
>completely.
> (it stops somewhere in the middle with  characters("  )
>  I had the same problem on bea 6.2 with servicepack2, but there putting
>  Xerces.jar and XML-apis.jar in the classpath before weblogic.jar and
>moving the
>  two jars two another folder than the lib folder solved the problem.
>  Unfortunately this does not work with servicepack 1.
>  Probably someone else has had this problem too and found a solution or
>has
>  a hint what to try.
>

Try 6.1 service pack 3.

Vadim


>  Thanx again for any help,
>
>
>  miHam
>  
>


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

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




Re: Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Vadim Gritsenko

Werner Guttmann wrote:

>Hi,
>
>I am just in the process of upgrading an existing web application to use
>Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
>starting Tomcat 4.0.1, I am getting the following ComponentException in
>e.g. core.log:
>
>I have searched the logs already (incl. the FAQ), but most entries seem
>to relate to missing components within the sitemap, such as custom
>actions, etc.
>
>All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
>the Cocoon webapp shipped with the binaries, and mades ome minor chnages
>in the pipeline section that are application specific.
>
>Any idea what might be going wrong ?
>
>W..
>
>ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
>Unknown-thread/ExcaliburComponentSelector: Could not set up Component
>for hint: java
>org.apache.avalon.framework.parameters.ParameterException: The parameter
>'compiler' does not contain a value
>at
>org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)
>

It's (almost) clear. You don't have required parameter in the 
cocoon.xconf. Check that your cocoon.xconf have something like this:

  
  

  
  
  
   
  
  



Vadim



-
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 without a Servlet Engine

2002-08-15 Thread Vadim Gritsenko

Upayavira wrote:

>Dear Vadim and others,
>
>Vadim Gritsenko wrote:
>  
>
>>Yes, take a look at CocoonServlet.java and Main.java. They do call
>>Cocoon using Java interface. It's not very easy ATM, but there are plans
>>to make it easier by providing CocoonBean (Nicola? :)
>>Base your code on CocoonServlet and/or Main.java. It's not very simple,
>>but in future this will be simplified.
>>
>>
>
>Can you give me any info on this 'CocoonBean', or on the potential simplification of 
>accessing cocoon without a servlet engine via Java code?
>

If you take a look into the classes mentioned, you will see lots of 
Avalon and Logger details. These should be hidden by the (to-be-written) 
CocoonBean.

Vadim


>Thanks,
>
>Upayavira
>




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

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




Re: POST request with XSP

2002-08-15 Thread Vadim Gritsenko

Armin Ehrenfels wrote:

> Vadim,
>
> first of all, thank you for your reply.





>> There are multiple ways:
>>
>> 1. Have two pipelines, one with XSP and second with RequestGenerator,
>> then map:aggregate them together, XSLT as necessary, and serve it
>> HTMLed.
>>
>> 2. Have XSP including other pipeline with RequestGenerator with the help
>> of util logicsheet (documented, and also frequently asked/answered on
>> this list), then resulting XSP you could XSLT transform, and serve as
>> HTML or whatever you want.
>>
>> 3. Mix in some XSLT/SQL/LDAP transformations to 1 or 2, or combine them
>> all together.
>>
>>  
>>
> All interesting solutions, but none of them will make the XML request 
> data available to further processing.
> Why isn't


It depends on what do you mean under "available to further processing". 
All solutions outlined above allow get input XML, transform as 
necessary, perform RDBMS/LDAP/XMLDB operations on it, and create output 
out of it.

Of course, you can always get this XML from your action, using similar 
technique (inclusion). It was outlined several times on this list how to 
get content of the pipeline in the action. One can always use XSPAction 
as well, which simplifies this to the level of tags.

Vadim




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




Version Control System // was Re: sexy open source

2002-08-15 Thread MJ Ray

Andreas Hochsteger wrote:
> * Version Control System:
>   CVS (http://www.cvshome.org/)
>   Subversion (http://subversion.tigris.org/) (!!!)

Also:
Arch http://www.regexps.com/arch.html (star-merge, distributed projects)
Aegis http://aegis.sf.net/ (optional testing integration, distributed)
OpenCM http://www.opencm.org/ (I don't know enough of this)
PRCS http://prcs.sf.net/ (XDelta-based, single-server, I think)

Any other options and opinions on these?

-- 
MJR|
---'
|-[ Luminas internet applications http://www.luminas.co.uk/ ]-|

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




How to pass Request Object from 1 pipeline to other

2002-08-15 Thread Murari


Hello Friends,
I am very new to cocoon ,i have one problem
I want to pass request object from one pipeline to other pipeline.
How

Murari Dhoot




-
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: NO JdbcConnection class available --cocoon 2.0.3 binary release u sing informix jdbc driver 2.21 on windows

2002-08-15 Thread Christian Haul

On 14.Aug.2002 -- 03:56 PM, Wang, Gonghui wrote:
> I am using cocoon 2.0.3 under tomcat 4.0.4 to try the employee example. It
> works on Oracle database, but fail for Informix database. 

Hi.
I use Informix all the time -- although with an older JDBC driver that
doesn't need the special treatment. For me, ifxjdbc.jar is
sufficiant. You need an entry in web.xml like

   
com.informix.jdbc.IfxDriver

in load-class
(next to org.hsqldb.jdbcDriver).

Also, look for the initialization of the pool rather than the
instantiation of it when looking at the log.

For me, a jdbc entry looks like:


  
jdbc:informix-sqli://host:port/vquadrat:informixserver=host
  username
  password


HTH.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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




Re: sexy open source

2002-08-15 Thread Andrew C. Oliver

Why don't forget that you need Jakarta POI to output to Excel or the 
HSSF Serializer for Cocoon.  ;-)

-Andy

Vegan Portal wrote:

>Hi Andreas,
> --- Andreas Hochsteger
><[EMAIL PROTECTED]> schrieb: >
>  
>
>>* UML Modeling:
>>  ArgoUML (http://argouml.tigris.org/)
>>* Version Control System:
>>  CVS (http://www.cvshome.org/)
>>  Subversion (http://subversion.tigris.org/) (!!!)
>>* IDE:
>>  Eclipse (http://www.eclipse.org/)
>>  Netbeans (http://www.netbeans.org/)
>>* Job Scheduling:
>>  Quartz (http://www.part.net/quartz.html)
>>* Workflow Management (continued):
>>  OSWorkflow
>>(http://www.opensymphony.com/osworkflow/)
>>* Search Engine:
>>  Apache Lucene (http://jakarta.apache.org/lucene/)
>>* Regression Testing:
>>  JUnit (http://www.junit.org/)
>>  JXUnit (http://jxunit.sourceforge.net/)
>>  JMeter (http://jakarta.apache.org/jmeter)
>>* Build Framework:
>>  Ant (http://jakarta.apache.org/ant/)
>>  Krysalis Centipede
>>(http://www.krysalis.org/centipede/)
>>* Project Site Management:
>>  Apache Forrest (http://xml.apache.org/forrest/)
>>
>>
>Thank you for jumping in!
>Almost all of your proposals I know already, some are
>on my (getting long) task list to download and test
>out. All are probably of great use to establish open
>source based development company. I've kept them out
>in my initial post, because it would be twice that
>long mentioning them.
>Some Remarks:
>ArgoUML seems to be dead as open source, evolving to
>free and/or commercial Poseidon edtions available at
>www.gentleware.com. Nevertheless, it is probably the
>most evolved (almost) freely available UML engine with
>some very interesting features (critiques, for
>example) not available elsewhere. Even in free
>edition, it produces XMI, that could be further
>processed with open source to generate DB, EJBs and
>documentation. That's why I've mentioned it. Getting
>little angry here, I just don't understand why open
>www.omg.org specifications don't go also open or free
>regarding their implementation in leading products
>like Together, Rational or Embarcadero, just to get
>more customers for consulting, the key concept behind
>sale of open source. That's why I recommend free yer
>lame Poseidon, because I think the UML-based
>engineering is of great use in almost every serious
>project.
>Regarding Lucene, I'm definitely eager to use it as
>advanced search engine in Cocoon, I hope it easy to be
>integrated.
>I had not to do any testing so far, but I'll
>definitelly have to look at engines proposed from you
>above, regarding how far are they able to benchmark
>various possible Cocoon configurations and placement
>inside oher frmeworks.
>
>  
>
>>If I find some more projects in my huge unmanaged
>>link mail folder I'll let 
>>you know ;-)
>>
>>
>Well, I thought I'm quite experienced with actual open
>source roadmap, but I see there are many applications
>I was not aware of, so keep on posting your proposals,
>possibly with short comment on them.
>Eager for your next responses,
>Peter.
>
>__
>
>Gesendet von Yahoo! Mail - http://mail.yahoo.de
>Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de
>
>-
>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: sexy open source

2002-08-15 Thread Andrew C. Oliver

>
> Hey, come on,  today is offtopic day! See all these messages fly? None 
> of them are Cocoon related ;-P

In that case in response to a previous posted, I'd like to offer this gem:

EJBs in factwellthey suck.

-Andy


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




Link Livesites: Cue and Review Recording Services [Cocoon 2]

2002-08-15 Thread Stuart Roebuck

http://www.cueandreview.org.uk/


Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck  
(Adolos)
  Key fingerprint = 89D9 E405 F8B1 9B22 0FA2  F2C1 9E57 5AB1 88DD  
65AF
 
-
Stuart Roebuck, BSc, MBATel.: 0131 228 4853 / Fax.: 0870 054  
8322
Managing Director
ADOLOS



-
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: How to translate?

2002-08-15 Thread KOZLOV Roman

Hi Albert,

Albert Cervera Areny wrote:

> Hi,
>   the thread is quite old... but anyway, I've tried to make the stylesheet
> (please tell me if it is right, by the way how could I avoid that
> xmlns:i18n in each generated tag?).
> I don't understand some things. I create a messages.xml file which looks
> like (I'd prefer not to use simple keys but the original text, I don't
> think I can find a name for each element in the site):
>
> 
>   maybe a very very long
> text
> 
>
> That's right. This is the file in the same language as the site. Then I
> make a couple of copies of it and name it messages_ca.xml (the original
> language) and messages_es.xml (because I want to translate it into
> spanish). I translate this file:
>
> 
>   translation of the
> text
> 

> And now what? You said I don't need anything else but in the sitemap I
> need to tell only one dictionary... Do I need to merge both files into one
> dictionary?

No.

> How do I tell through the sitemap which language to use?

I use "locale" request parameter (there are other ways AFAIK). For example, if I
request something like ...?...&locale=fr then i18n transformer takes translations
from messages_fr.xml.

Roman

>
> I suppose you only create one messages file for the hole site merging
> multiple messages files... and you "refresh" it with another stylesheet..
> am I right?
>
> Well... can't think of more questions right now ;)
>
> Thanks in advance!
>
> >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >>
> >> Hi,
> >> I've been looking at the i18n transformer in the
> >> documentation web page,
> >> however I can't see how it works in production. I got the idea that it
> >> works let's say like gettext as you mark which parts you want
> >> to translate
> >> and generate a file with those messages if so... how can I do that
> >> easily? I've been looking throw those convert and merge xsl
> >> files but they
> >> don't seem to generate it. I was able to create a file to
> >> translate into
> >> one new language from the simple_dict.xml example but how may
> >> I create it
> >> from scratch?
> >
> > Seems that your are looking for my text2messages.xsl that I have on my
> > harddrive at home ;). But I don't think that you'll have problems in
> > creating such a stylesheet yourself if you are familiar with XSLT. You
> > just have to generate text elements from the
> > all 'i18n:text' and all the attributes that are listed in 'i18n:attr'
> > attribute. If you don't hurry then I'll send my stylesheet to you
> > tomorrow.
> >
> >>
> >> These two files, messages and dictionary, are the ones that
> >> make me not to
> >> understand the hole process.
> >
> > The process is this:
> >   - you create a content file and mark some parts of it by 'i18n:text'
> > and 'i18n:attr'
> >   - run a stylesheet that generates you an empty dictionary file
> >   - you add your translations to that dictionary (say message_de.xml)  -
> > place it in the message catalog (say in the 'translations'
> > directory)
> >   - enjoy
> >
> >>
> >> Could someone clarify those aspects or point me to a better resource?
> >
> > I think that I'm the best resource to ask about i18n. Tell me if you
> > have any problems with it.
> >
> > Konstantin
> >
> >>
> >> Thanks in advance!
> >> --
> >> Albert Cervera Areny
> >> Dept. Informàtica Sedifa, S.L.
> >>
> >>
> >>
> >> -
> >> 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]>
>
> --
> Albert Cervera Areny
> Dept. Informàtica Sedifa, S.L.
>
> -
> 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: JspGenerator error on hello.jsp

2002-08-15 Thread Kavitha Ramesh

Hi Mr.Vikram,

You should place the jasper-compiler.jar in your lib
file.It will work,,,

Kavitha


--- Vikram Rai <[EMAIL PROTECTED]> wrote:
> I'm running cocoon 2.0.3 on Tomcat 3.3.1 (Linux
> 7.2).  I've been trying to run the hello.jsp example
> for the jsp as below;
> 
> http://localhost:8080/cocoon/jsp/hello
>   
> 
> I get the following error:
> 
>   The org.apache.cocoon.sitemap_xmap notifies that
> org.apache.cocoon.ProcessinException says:
> 
> ServletException in JspGenerator.generate();
> 
> More precisely
> 
>
org.apache.cocoon.ProcessinException:ServletException
> in JspGenerator.generate();
> 
> 
> 
> The stack trace is as follows:
>  
> 
> org.apache.cocoon.ProcessingException:
> ServletException in JspGenerator.generate()
>   at
>
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:133)
>   at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
>   at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
> 
>   at
>
org.apache.cocoon.www.sitemap_xmap.matchN10780(/root/jakarta-tomcat-3.3.1/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:9298)
> 
>   at
>
org.apache.cocoon.www.sitemap_xmap.process(/root/jakarta-tomcat-3.3.1/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3639)
> 
>   at
>
org.apache.cocoon.www.sitemap_xmap.process(/root/jakarta-tomcat-3.3.1/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3107)
>   at
>
org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>   at
>
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>   at
>
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
>   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)
>   at
>
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
>   at
>
org.apache.tomcat.core.Handler.invoke(Handler.java:322)
>   at
>
org.apache.tomcat.core.Handler.service(Handler.java:235)
>   at
>
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
>   at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
>   at
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
>   at
>
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
>   at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
>   at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
>   at java.lang.Thread.run(Thread.java:479)
> 
> 
> Can somebody please throw some light on
> this.
> 
> 
> Vikram rai.
> 
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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]>




cocoon on bea - problems with xsps

2002-08-15 Thread michael_hampel

Hello,

  I ran into a new problem when using cocoon on bea 6.1 servicepack 1 on
Solaris.
  The problem is, that the java code from my xsps is not created
completely.
 (it stops somewhere in the middle with  characters("  )
  I had the same problem on bea 6.2 with servicepack2, but there putting
  Xerces.jar and XML-apis.jar in the classpath before weblogic.jar and
moving the
  two jars two another folder than the lib folder solved the problem.
  Unfortunately this does not work with servicepack 1.
  Probably someone else has had this problem too and found a solution or
has
  a hint what to try.


  Thanx again for any help,


  miHam


-
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: POST request with XSP

2002-08-15 Thread Boscoe

[ Sorry,
couldn't complete Email, had to use a different Email-Account ]

Why isn't the HttpServletRequest directly accessible from a XSP ?
Is there any important reason ?

I think the best way for me could be creating a simple action which sets 
a request attribute containing the HttpServletRequest so I can access it 
in the XSP.

What do you think ?

Thank you

Boscoe






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




Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Werner Guttmann

Hi,

I am just in the process of upgrading an existing web application to use
Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
starting Tomcat 4.0.1, I am getting the following ComponentException in
e.g. core.log:

I have searched the logs already (incl. the FAQ), but most entries seem
to relate to missing components within the sitemap, such as custom
actions, etc.

All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
the Cocoon webapp shipped with the binaries, and mades ome minor chnages
in the pipeline section that are application specific.

Any idea what might be going wrong ?

W..

ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
Unknown-thread/ExcaliburComponentSelector: Could not set up Component
for hint: java
org.apache.avalon.framework.parameters.ParameterException: The parameter
'compiler' does not contain a value
at
org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)

at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.parameterize(CompiledProgrammingLanguage.java:92)

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.parameterize(JavaLanguage.java:118)

at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:190)

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

at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:537)

at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:353)

at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)

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

at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:380)

at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:167)

at
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:314)

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:168)

at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:170)

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

at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)

at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)

at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)

at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
ERROR   (2002-08-15) 10:34.14:593   [core.manager] (Unknown-URI)
Unknown-thread/ExcaliburComponentSelector: The component instance for
'java' is not valid.
org.apache.avalon.framework.component.ComponentException: Could not set
up Component for hint: java
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:554)

at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:353)

at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)

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

at
org.apache.avalon.excalibur.component.ExcaliburComponentManager

RE: How to translate?

2002-08-15 Thread Piroumian Konstantin

> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]] 
> 
> Hi,
>   the thread is quite old... but anyway, I've tried to make 
> the stylesheet

I've attached my version for comparison.

> (please tell me if it is right, by the way how could I avoid that
> xmlns:i18n in each generated tag?).

This should be somewhere in FAQs.

> I don't understand some things. I create a messages.xml file 
> which looks
> like (I'd prefer not to use simple keys but the original text, I don't
> think I can find a name for each element in the site):
> 
> 
>   maybe a very very long
> text
> 

It's Ok, but don't forget about the perfomance.

> 
> That's right. This is the file in the same language as the 
> site. Then I
> make a couple of copies of it and name it messages_ca.xml 
> (the original
> language) and messages_es.xml (because I want to translate it into
> spanish). I translate this file:
> 
> 
>   translation of the
> text
> 
> 
> And now what? You said I don't need anything else but in the sitemap I
> need to tell only one dictionary... Do I need to merge both 
> files into one
> dictionary? How do I tell through the sitemap which language to use?

In sitemap you should specify at least two parameters on i18n transformer
declaration or directly in the pipeline as parameters of . The parameters are: catalogue-location and catalogue-name.
The catalogue-location should point to the directory where your dictionaries
are stored, the catalogue-name is the base name for the dictionary file (in
your case it's 'messages'). Then you should pass also 'locale' parameter
which you can get using either the LocaleAction or some URL pattern like
'path/{*}/file.xml' and URLs like 'path/es/file.xml'. Here is a snippet from
Cocoon's i18n sample sitemap:







So, i18n transformer will select the needed dictionary depending on the
locale. See I18nTransformer and LocaleAction JavaDocs for details.

> I suppose you only create one messages file for the hole site merging
> multiple messages files... and you "refresh" it with another 
> stylesheet..
> am I right?

Exactly the opposite. I create multiple dictionary files in a form of
'messages_{lang}_{country}_{variant}.xml'. Usage of a master dictionary is
only a better way to keep dictionaries in sync with each other. (Reminder:
create a FAQ entry for this topic).

> 
> Well... can't think of more questions right now ;)

That's fine. If you had a look on Cocoon samples, i18n docs and JavaDocs
then you'll have much less questions than this, I suppose ;)

> 
> Thanks in advance!

No probs.

Konstantin

> 
> >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >>
> >> Hi,
> >> I've been looking at the i18n transformer in the
> >> documentation web page,
> >> however I can't see how it works in production. I got the 
> idea that it
> >> works let's say like gettext as you mark which parts you want
> >> to translate
> >> and generate a file with those messages if so... how 
> can I do that
> >> easily? I've been looking throw those convert and merge xsl
> >> files but they
> >> don't seem to generate it. I was able to create a file to
> >> translate into
> >> one new language from the simple_dict.xml example but how may
> >> I create it
> >> from scratch?
> >
> > Seems that your are looking for my text2messages.xsl that I 
> have on my
> > harddrive at home ;). But I don't think that you'll have problems in
> > creating such a stylesheet yourself if you are familiar 
> with XSLT. You
> > just have to generate text 
> elements from the
> > all 'i18n:text' and all the attributes that are listed in 
> 'i18n:attr'
> > attribute. If you don't hurry then I'll send my stylesheet to you
> > tomorrow.
> >
> >>
> >> These two files, messages and dictionary, are the ones that
> >> make me not to
> >> understand the hole process.
> >
> > The process is this:
> > - you create a content file and mark some parts of it 
> by 'i18n:text'
> > and 'i18n:attr'
> > - run a stylesheet that generates you an empty dictionary file
> > - you add your translations to that dictionary (say 
> message_de.xml)  -
> > place it in the message catalog (say in the 'translations'
> > directory)
> > - enjoy
> >
> >>
> >> Could someone clarify those aspects or point me to a 
> better resource?
> >
> > I think that I'm the best resource to ask about i18n. Tell me if you
> > have any problems with it.
> >
> > Konstantin
> >
> >>
> >> Thanks in advance!
> >> --
> >> Albert Cervera Areny
> >> Dept. Informàtica Sedifa, S.L.
> >>
> >>
> >>
> >> 
> -
> >> 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: sexy open source

2002-08-15 Thread Andreas Hochsteger

Hi!

On Donnerstag, 15. August 2002 4:53, Vegan Portal wrote:
>  --- "Emmanuil Batsis (Manos)"
> <[EMAIL PROTECTED]> schrieb: >
>
> > Since we are talking about add-on projects, I would
> > vote for Wyona CMS
> > project; a content management system that sits on
> > top of Cocoon.
> > http://www.wyona.org
>
> Well, there's also DBPrism as an extension to Cocoon
> but I want to know if anybody here is succesfully
> employing them for production.

As I understand DBPrism it thought for Oracle only and thus not a candidate 
for a totally free Open Source business environment.

> As my current project involves content management done
> by about 2000 authorized users, I'll definitely take a
> look at Wyona!

Wyona is very promising because it aims to support open XML standards 
everywhere possible (eg. XACML for access controlling, RCML for revision 
controlling, CMML for content management, ...).
There is also some work done with other Open Source CMS to develop some CMS 
standards and APIs which allow one to use the CMS of your choice and easily 
replace the systems. If you're more interested take a look at the OSCOM (Open 
Source Content Management) Website (http://www.oscom.org/). The next 
conference will be held on September in Berkeley. I'm too sorry that I missed 
the first one in Zurich (Switzerland) which would not be too far away from 
Vienna. But there are video streams from the speakers available 
(http://oscms.bitflux.ch/).

> WebMacro or WebEditor were of no use for me, so I'm
> eager to discover other possibilities for Cocoon-based
> CMS.
> Thank you,
> Peter.

-- 
Bye,
Andreas


-
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: sexy open source

2002-08-15 Thread Andreas Hochsteger

Hi!

On Donnerstag, 15. August 2002 4:40, Vegan Portal wrote:
> Hi Andreas,
>  --- Andreas Hochsteger
> <[EMAIL PROTECTED]> schrieb: >

I'll give some short comments to various projects as you suggested below.

> > * UML Modeling:
> >   ArgoUML (http://argouml.tigris.org/)
It's a great UML modelling tool and serves as the basis of the commercial 
Poseidon for UML (http://www.gentleware.com/)

> > * Version Control System:
> >   CVS (http://www.cvshome.org/)
Perhaps all Open Source developers know this.

> >   Subversion (http://subversion.tigris.org/) (!!!)
This is definitely worth a look.
It aims to replace CVS and has a much superior design and much more features 
(WebDAV, versioning of metadata and directories, ...). You can convert 
existing CVS repositories and the commands are the same (where it makes 
sense). It's currently in alpha state, but subversion is selfhosting for 
nearly a year now and the beta version should come out later this year.

> > * IDE:
> >   Eclipse (http://www.eclipse.org/)
Plugin-based general purpose IDE with plugins for Java development. IBM 
Websphere Application Developer is based on it. There are also plugins for 
C/C++ (Linux), a graphical editor framework and many for Java development, 
testing, deployment, ...
It uses SWT as an alternative to AWT or Swing which uses the native widgets 
and thus is much faster than the other Swing-based IDEs.

> >   Netbeans (http://www.netbeans.org/)
Similar to eclipse. It exists much longer and thus has more features built-in. 
It serves as the basis for Suns Forte for Java (now Sun ONE Studio 
Developer). It has now even experimental support for model driven 
architecture (http://www.omg.org/mda/)

> > * Job Scheduling:
> >   Quartz (http://www.part.net/quartz.html)
Enterprise class J2EE job sceduler.

> > * Workflow Management (continued):
> >   OSWorkflow
> > (http://www.opensymphony.com/osworkflow/)
Part of the J2EE Open Symphony component framework.

> > * Search Engine:
> >   Apache Lucene (http://jakarta.apache.org/lucene/)
Very flexible and most powerful search engine from the Apache Jakarta project.

> > * Regression Testing:
> >   JUnit (http://www.junit.org/)
The famous Java unit testing framework.

> >   JXUnit (http://jxunit.sourceforge.net/)
Is based on JUnit but separates test code from test data via XML files.

> >   JMeter (http://jakarta.apache.org/jmeter)
Desktop application for load test functional behaviour of web applications and 
do performance measures. It's an Apache Jakarta project.

> > * Build Framework:
> >   Ant (http://jakarta.apache.org/ant/)
This is sure known by every java developer. It's something similar to the old 
unix make tool but is much more powerful and very vell supported. It's an 
Apache Jakarta project.

> >   Krysalis Centipede
This is an excellent Ant-based build framework. You can extend it with Apache 
Forrest to generate documentation and project websites.

> > (http://www.krysalis.org/centipede/)
> > * Project Site Management:
> >   Apache Forrest (http://xml.apache.org/forrest/)
A cocoon-based documentation and project website generation system. It's a 
very young but very enthusiastic Apache XML project.

> 
> Thank you for jumping in!
> Almost all of your proposals I know already, some are
> on my (getting long) task list to download and test
> out. All are probably of great use to establish open
> source based development company. I've kept them out
> in my initial post, because it would be twice that
> long mentioning them.
> Some Remarks:
> ArgoUML seems to be dead as open source, evolving to
> free and/or commercial Poseidon edtions available at

Why do you think that it's dead?
They released version 0.11.1 two weeks ago and there were 7 releases this 
year. They also have now a plug-in architecture (which Poseidon for UML had 
before) which can be used to develop third party extensions (e.g. round trip 
engineering, ...) and features now deployment diagrams.

> www.gentleware.com. Nevertheless, it is probably the
> most evolved (almost) freely available UML engine with
> some very interesting features (critiques, for
> example) not available elsewhere. Even in free
> edition, it produces XMI, that could be further
> processed with open source to generate DB, EJBs and
> documentation. That's why I've mentioned it. Getting
> little angry here, I just don't understand why open
> www.omg.org specifications don't go also open or free
> regarding their implementation in leading products
> like Together, Rational or Embarcadero, just to get
> more customers for consulting, the key concept behind
> sale of open source. That's why I recommend free yer
> lame Poseidon, because I think the UML-based
> engineering is of great use in almost every serious
> project.
> Regarding Lucene, I'm definitely eager to use it as
> advanced search engine in Cocoon, I hope it easy to be
> integrated.
> I had not to do any testing so far, but I'll
> definitelly have to look at engines proposed from yo

NO JdbcConnection class available --cocoon 2.0.3 binary release using informix jdbc driver 2.21 on windows

2002-08-15 Thread Wang, Gonghui

I am using cocoon 2.0.3 under tomcat 4.0.4 to try the employee example. It
works on Oracle database, but fail for Informix database. 
Found the following comment from
org/apache/avalon/excalibur/datasource/InformixDataSource.java

 * Informix doesn't like the JdbcDataSource Component, so we gave it it's
own.
 * Do not use this datasource if you are planning on using your J2EE
server's
 * connection pooling.
 *
 * You must have Informix's JDBC 2.2 or higher jar file, as well as the
extensions
 * jar file (ifxjdbc.jar and ifxjdbcx.jar).  Also,
this
 * DataSource requires the Avalon Cadastre package because it uses the
MemoryContext.
Both jar exist and I force the driver loaded in wem.xml. But it still fails
and cannot figure out myself from the code. Please help.
thanks

-error message from core.log
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb
cConnectionFactory.java:185)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi
mitingPool.java:629)
at
org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.newPoolable(V
alidatedResourceLimitingPool.java:136)
at
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool.ne
wPoolable(ResourceLimitingJdbcConnectionPool.java:79)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo
ol.java:359)
at
org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(Validated
ResourceLimitingPool.java:88)
at
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getCon
nection(ResourceLimitingJdbcDataSource.java:174)
at
org.apache.cocoon.www.edi_out.forms.employee_xsp.generate(C:\tom\Apache
Tomcat
4.0\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/edi_
out/forms\employee_xsp.java:467)
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:258)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at org.apache.cocoon.www.sitemap_xmap.matchN10833(C:\tom\Apache
Tomcat
4.0\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\site
map_xmap.java:10216)
at org.apache.cocoon.www.sitemap_xmap.process(C:\tom\Apache Tomcat
4.0\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\site
map_xmap.java:3737)
at org.apache.cocoon.www.sitemap_xmap.process(C:\tom\Apache Tomcat
4.0\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\site
map_xmap.java:3122)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)


-
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 without a Servlet Engine

2002-08-15 Thread Upayavira

Dear Vadim and others,

Vadim Gritsenko wrote:
> Yes, take a look at CocoonServlet.java and Main.java. They do call
> Cocoon using Java interface. It's not very easy ATM, but there are plans
> to make it easier by providing CocoonBean (Nicola? :)
> Base your code on CocoonServlet and/or Main.java. It's not very simple,
> but in future this will be simplified.

Can you give me any info on this 'CocoonBean', or on the potential simplification of 
accessing cocoon without a servlet engine via Java code?

Thanks,

Upayavira

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

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




RE: [Q] SunRise roles?

2002-08-15 Thread Carsten Ziegeler

Per Kreipke wrote:
> > >
> > Hmm, no - the Nodes itself have to be copied before, so the application
> > can not accidentally change the nodes.
> 
> Ah, interesting, I had actually noticed that they were 'live' and was
> thinking of using that fact. Clearly a no-no :-)
> 
> You mean: nodes have to be cloned to be returned in the list.
> 
Yes.

> > > If not, I just might send that patch ;-)
> >
> > Great!
> 
> Time permitting ;-)
> 
I know this one...

> > In fact, you don't have to distinguish - it makes no difference
> > when using the context.
> 
> Sure, I understood that, the reason I'm asking is to determine whether or
> not I need to do the NodeList work discussed above. E.g. if I don't need
> anything from context ABC and XYZ and those are the only two that use
> SessionContextImpl (which doesn't return NodeLists) then I may not bother
> doing the work discussed above.
> 
Ok - the contexts you create yourself have the full support, so you can get
a NodeList from them - all others maintained by the framework are somewhere
limited.

Carsten


-
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: [Q] SunRise roles?

2002-08-15 Thread Carsten Ziegeler

Per Kreipke wrote:
>
>
> I think that the restriction you describe (one role per user)
> means that the
> SunRise authentication is potentially mis-using the word 'role'. You're
> using it to denote a profile name, nothing more. It'll never
> really replace
> (or integrate with) roles in the Servlet or permissions sense if it's
> restricted to one role at a time.
>
No, I don't agree with your definition of 'role' - take acting as an
example. A role in acting is one single role and not a bunch of possible
roles an actor plays. - If an actor plays several persons he plays several
roles but not a role with a comma separated list.

If you login into a system (and this is not related to Cocoon but to any
system), you get a specific role with this login - you are either manager,
administrator, user or guest - you are not at the same time manager and
guest.
That doesn't make sense.

You can be either manager and guest, theoretically - but at one time you are
only one of them. And you can switch your role.

If you need this list of possibilities, I would suggest to not use the
'role' entry, but a 'roles' entry. The authentication framework is flexible
and can handle this automatically.

So, the authentication framework fits nicely into the servlet role handling.

Carsten


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




Relax NG validation for Cocoon

2002-08-15 Thread David Crossley

Ian Atkin wrote:
>>David Crossley wrote:
>>
>>Please do not give up, Ian. Cocoon can certainly do validation
>>as an XML framework now using DTDs. Perhaps later using other
>>schema (Relax NG anyone?).
>
> i'm currently investigating relaxng:-
> - jing seems the validator to use, any probs?

See the Apache Forrest mail archives: there have been a few
threads in the past about using Relax NG and there is one
thread happening there now.
http://marc.theaimsgroup.com/?l=forrest-dev&m=102887074620179

I recall two reports to Forrest of experiments with Jing
(around 6 months ago).

One thing that i am not clear about, is where such validation
capability should be. Is it in Cocoon or Forrest? I suspect
in Cocoon.

We need to be able to validate sources and aggregations at
various points of the pipeline. How does that fit with
Cocoon architecture - a new component?

> - also relaxng has no way for docs to identify schema, any ideas?

In my experiments, Jing is told on the command-line which
*.rng to use against a particular doc.xml, i.e. the declaration
is external to the xml instance.

--David






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