remove html tags

2004-09-17 Thread Adriano Smith
i use javamail api in an xsp to read mails. i use the below statement to ignore html tags in mails. String noHTMLString = temp.replaceAll(\"<.*?>\",\"\"); However the following error is seen... org.apache.cocoon.ProcessingException: Failed to execute pipeline.:

Re: Help ! General questions about Cforms and flowscript.

2004-09-17 Thread Derek Hohls
Of course you mean lower level users ;-) ... but the original poster had a good point; perhaps its because CForms are stil under development that much of what is around them is not properly documented as yet. In the long run, the API should not be the first point of call - I see that more for

java.lang.NoSuchMethodError when calling java flow

2004-09-17 Thread Patrick Verboom
Hi, I keep getting a java.lang.NoSuchMethodError both in the samples as in my own code. as you can see the method exists. is there something i miss a library maybe? sitemap map:flow language=java map:script src=de.juwimm.novartis.studentshop.shop.flow.ShoppingcartFlow/ /map:flow

Cocoon pipeline caching

2004-09-17 Thread Gunter D'Hondt
Hi, Has Cocoon some built-in functionality for caching pipelines?? Or what is the best way of implementing a selfmade cachingsystem in Cocoon?? Regards, Gunter D'Hondt SOFICO NV Belgium

Re: Cocoon pipeline caching

2004-09-17 Thread Patrick Verboom
Gunter D'Hondt wrote: Hi, Has Cocoon some built-in functionality for caching pipelines?? Or what is the best way of implementing a selfmade cachingsystem in Cocoon?? Regards, Gunter D'Hondt SOFICO NV Belgium Hi, yes cocoon has a pipeline caching. see

Will Durrant is out of the office.

2004-09-17 Thread will . durrant
I will be out of the office starting 17/09/2004 and will not return until 27/09/2004. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: java.lang.NoSuchMethodError when calling java flow

2004-09-17 Thread John L. Webber
Hi Patrick, Sounds like a version problem with xalan. Maybe you have a different version of xalan in your classpath (or exts directory)? This has been a fairly common thread on the mailing-list, try searching the archives. Hope that helped, John Patrick Verboom wrote: Hi, I keep getting a

Re: Portal: Desperately seeking autehtication/ID from Java code

2004-09-17 Thread Stephen Winnall
In the context of the portal you presumably need a general framework for authentication, authorisation and - dare I say it - single sign on. If you want to restrict yourself to Cocoon applications in the portal, you have an easier job and can presumably do what you like. But if you have other

Re: Encoding problems

2004-09-17 Thread [EMAIL PROTECTED]
Christian Hoofe wrote: [...] Put this into your sitemap.xmap to produce output IE understands: map:serializer ... omit-xml-declarationyes/omit-xml-declaration /map:serializer That's exactly what I already suggested in the second posting of this thread. (Did you read it?). But only

TreeProcessor - accessing nodes

2004-09-17 Thread Daniel Glöckner
Hi, on my quest for accessing the nodes of a pipeline I run into the TreeProcessor class. I inspected that component at runtime and found out, that it has a private field called rootNode, holding the first child node of the root pipeline. From there on I could traverse the tree and access all

Mime-type on serializers

2004-09-17 Thread Luigi Bai
Hi, I've got a XML database with images of various sorts of mime-types (jpeg, gif, png, etc) stored in text() nodes as Base64. I have a trivial Base64Serializer that reconstitutes them on the way out. However, I think I'm stuck with a mime-type problem. It seems I have to have a separately

Re: XForms with Cocoon

2004-09-17 Thread Thomas Nichols
Andrzej Jan Taramina wrote: Chiba (http://chiba.sourceforge.net/) is a servlet webapp (i.e. like a sibling of Cocoon rather than its child) that implements XForms. I'm not sure how easy it would be to use Chiba from within Cocoon. There is a project called Chicoon whose purpose is to integrate

Re: XForms with Cocoon

2004-09-17 Thread Thomas Nichols
Lars, Very interesting - thanks. If anyone's interested I'll be bringing some experiences with current XForms implementations to XML Open in Cambridge, UK on Wed - http://www.xmlopen.org/ There's quite a lot happening with XForms at the moment. - Thomas. Lars Huttar wrote: Since Thomas asked

RE: XForms with Cocoon

2004-09-17 Thread Lars Huttar
Andrzej Jan Taramina wrote: Lars wrote: Chiba (http://chiba.sourceforge.net/) is a servlet webapp (i.e. like a sibling of Cocoon rather than its child) that implements XForms. I'm not sure how easy it would be to use Chiba from within Cocoon. There is a project called Chicoon whose

Re: java.lang.NoSuchMethodError when calling java flow

2004-09-17 Thread Emond Papegaaij
On Friday 17 September 2004 09:29, Patrick Verboom wrote: I keep getting a java.lang.NoSuchMethodError both in the samples as in my own code. As you can see the method exists. is there something i miss a library maybe? cut sample and output This is exactly why I stopped using javaflow. In my

AbstractSAXTransformer XML Recording Question

2004-09-17 Thread JACOB, ERIC
Hi, I have an XML file that looks like the following: abc:root xmlns:abc=http://abc; . abc:fragment xyz:test xmlns:xyz=http://xyz; . /xyz:test /abc:fragment /abc:root I want to use startSerializedXMLRecording and endSerializedXMLRecording to record the xml inside the

Re: java.lang.NoSuchMethodError when calling java flow

2004-09-17 Thread Patrick Verboom
Emond Papegaaij wrote: On Friday 17 September 2004 09:29, Patrick Verboom wrote: I keep getting a java.lang.NoSuchMethodError both in the samples as in my own code. As you can see the method exists. is there something i miss a library maybe? cut sample and output This is exactly why I

Re: AbstractSAXTransformer XML Recording Question

2004-09-17 Thread Luigi Bai
In org.apache.cocoon.xml.XMLUtils, the method serializeNode attempts to use a stock Transformer to serialize the document fragment. Unfortunately, xalan doesn't do namespaces, so instead of TransformerHandler transformerHandler; transformerHandler =

RE: XForms with Cocoon

2004-09-17 Thread Lars Huttar
P.S. XMLForms was an XForms package that was part of Cocoon, but has been removed. (See http://marc.theaimsgroup.com/?l=xml-cocoon-devm=108876021513344w=2) For those who are interested, there is a much more in-depth discussion of XMLForms vs. Woody (by Sylvain Wallez) at

Re: Portal: Desperately seeking autehtication/ID from Java code

2004-09-17 Thread Steinar Rune Eriksen
Laurent Trillaud wrote: Hi Try this : var sessionManager = cocoon.getComponent( Packages.org.apache.cocoon.webapps.session.SessionManager.ROLE); var userLogin = sessionManager.getContextFragment( authentication, /authentication/ID).getFirstChild().getNodeValue(); Laurent Trillaud Great, this

JXTemplate, forEach logic loop on integer

2004-09-17 Thread oceatoon
Hello everyone I looking to do a normal for loop in a jx page around an integer, I can't seem to get it done with the ForEach tag, does anybody have a technique or an idea for this? Thanks for the help Tibor - To

Weird, weird, weird problem!

2004-09-17 Thread Mark Lundquist
OK... this is weird! My Cocoon app uses ImageReader, and the images weren't displaying. It turns out the call to com.sun.image.codec.jpeg.JPEGImageDecoder.decodeAsBufferedImage() in ImageReader.processStream() crashes the JVM! It crashes hard, immediately and silently (no error messages). What

Re: Weird, weird, weird problem!

2004-09-17 Thread Mark Lundquist
Oh yeah, I meant to mention :-) Cocoon 2.1.5.1 Jetty 4.2.15 JVM 1.4.1 OS X Server 10.3 On Sep 17, 2004, at 12:35 PM, Mark Lundquist wrote: OK... this is weird! My Cocoon app uses ImageReader, and the images weren't displaying. It turns out the call to

Re: JXTemplate, forEach logic loop on integer

2004-09-17 Thread Antonio Gallardo
oceatoon dijo: Hello everyone I looking to do a normal for loop in a jx page around an integer, I can't seem to get it done with the ForEach tag, does anybody have a technique or an idea for this? Hi, please check this: http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html#forEach Best

Re: Weird, weird, weird problem!

2004-09-17 Thread Antonio Gallardo
Mark Lundquist dijo: Oh yeah, I meant to mention :-) Cocoon 2.1.5.1 Jetty 4.2.15 JVM 1.4.1 Can you try: 1.4.2_05? - http://java.sun.com/j2se/1.4.2/download.html I am not sure, but I remember a bug related to images in java. Maybe it is not only in MacOS. anyway, it is a worth to

Memory problems with Cocoon

2004-09-17 Thread Jonathan Linczak
All, I followed the Wiki docs for Performance issues with Cocoon, Lenya, etc., and I'm watching my server now and the free memory is slowly going away, until the log file starts spitting out the following messages: Cocoon threw exception java.lang.OutOfMemoryError I don't know if this is the

Re: remove html tags

2004-09-17 Thread Antonio Gallardo
Adriano Smith dijo: i use javamail api in an xsp to read mails. i use the below statement to ignore html tags in mails. String noHTMLString = temp.replaceAll(\.*?\,\\); However the following error is seen... org.apache.cocoon.ProcessingException: Failed to execute pipeline.:

Re: XForms with Cocoon

2004-09-17 Thread Antonio Gallardo
Andrzej Jan Taramina dijo: In the meantime, if anyone is interested in using Chiba with Cocoon, I'll be glad to discuss it in private, so just ping me. Can you wikify it? I think it will be the best way to share the knowledge. That way other interested users will be able to know about that.

JXTemplate - HashMap

2004-09-17 Thread Yves Hougardy
hi, i need to get the keys and values out of an java.util.Map with jxpath. However, i'm not supposed to know the keys of the map. How can i do that? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Memory problems with Cocoon

2004-09-17 Thread Hance, Greg (ELS)
We have had similar issues as well. The first thing I would check is to see what type of pipeline configuration you are running with. If you are running w/ profiling turned on we have found that the profiler slowly eats up all of our memory over time. I work for a publishing house and we have

Re: Memory problems with Cocoon

2004-09-17 Thread JD Daniels
I had this problem, and it was related to fop.. i had a pdf template with alot of fo:table and geting rid of them fixed the memory consumption. JD Jonathan Linczak wrote: All, I followed the Wiki docs for Performance issues with Cocoon, Lenya, etc., and I'm watching my server now and the free

Re: Memory problems with Cocoon

2004-09-17 Thread Jonathan Linczak
On Sep 17, 2004, at 4:23 PM, Hance, Greg (ELS) wrote: We have had similar issues as well. The first thing I would check is to see what type of pipeline configuration you are running with. If you are running w/ profiling turned on we have found that the profiler slowly eats up all of our memory

Re: Memory problems with Cocoon

2004-09-17 Thread Jonathan Linczak
On Sep 17, 2004, at 5:27 PM, JD Daniels wrote: I had this problem, and it was related to fop.. i had a pdf template with alot of fo:table and geting rid of them fixed the memory consumption. Fortunately (or unfortunately, depending on how you look at it), I'm not doing anything with fop at the

(SOLVED)Re: Portal: Desperately seeking autehtication/ID from Java code

2004-09-17 Thread Steinar Rune Eriksen
OK, I solved it. I also had to wrap the pipeline into a auth-protect block, as well as using the following to get the component manager public String getUserId() throws Exception{ org.apache.avalon.framework.component.ComponentManager cm= CocoonComponentManager.getSitemapComponentManager();

RE: Memory problems with Cocoon

2004-09-17 Thread Antonio Gallardo
Hi: if you are running Cocoon 2.1.4, maybe this explain some of the problems you currently have: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26753 Best Regards, Antonio Gallardo. Hance, Greg (ELS) dijo: We have had similar issues as well. The first thing I would check is to see what

authentication framework over a mysql connection

2004-09-17 Thread fabrizio picca
i'm new to cocoon and i'm trying to develop a web application for a university examination. I've read everything about Authentication FW but i cannot find nothing about authenticating over a mysql DB connection. so i've written down this piece of pipeline: map:match pattern=do-login

Re: Memory problems with Cocoon

2004-09-17 Thread Scott Schwab
To add my 2 cents, We have a memory issue as well, but I have just started looking into it. Going by our Java profiler, lots and lots of ints are being created and never cleaned up. We have tried using Xalan 2.6, with XSLTC. The XSL is faster, but the memory loss continues. Our pipes are

Re: authentication framework over a mysql connection

2004-09-17 Thread g[R]eK
. Hi fabrizio! . Friday, September 17, 2004, 10:38:24 PM, you wrote: fp i'm new to cocoon and i'm trying to develop a web application for a fp university examination. fp I've read everything about Authentication FW but i cannot find nothing fp about authenticating over fp a mysql DB connection.

Re: authentication framework over a mysql connection

2004-09-17 Thread fabrizio picca
here it is the component configuration map:pipelines map:component-configurations authentication-manager handlers handler name=torquemada redirect-to uri=cocoon:loginsrc/ authentication uri=cocoon:raw:/authenticate/ /handler

Re: authentication framework over a mysql connection

2004-09-17 Thread fabrizio picca
i attach also this lineshope it can help: map:match pattern=do-login !-- try to login -- map:act type=auth-login map:parameter name=handler value=torquemada/ map:parameter name=parameter_name value={request-param:username}/ map:parameter

Re[2]: authentication framework over a mysql connection

2004-09-17 Thread g[R]eK
. Hi fabrizio! . Friday, September 17, 2004, 11:12:47 PM, you wrote: fp here it is the component configuration fp map:pipelines fp map:component-configurations fp authentication-manager fp handlers fp handler name=torquemada fp redirect-to

Re: Re[2]: authentication framework over a mysql connection

2004-09-17 Thread fabrizio picca
those parameters are sent the same way as the example given in cocoon documentation. we tried maintaining the same pipeline structure and authenticating over a xml file and t works.Is th database authentication that doesn't works. After the above mentioned sentence in the pipeline we have a

Re: Help ! General questions about Cforms and flowscript.

2004-09-17 Thread Sylvain Wallez
David Verdin wrote: Hi everybody, I spent a lot of time parsing the cocoon documentation, samples and wiki, but there are still a lot of question I wonder about cocoon and Cforms. I think that as long as these questions stay unanswered, I won't be able to use Cocoon properly. So here is my list

Problem with CFORMS example form1

2004-09-17 Thread Nick Baumberger
To other fearless cocoon users .. my configuration: cocoon 2.1.5.1, j2sdk1.4.2_04 running on Debian, Mozilla1.0 I'm about to implement a cforms application with basic db-table browsing and editing functionality. example form1 is my main source of inspiration (very nice), however, three issues

Re: Weird, weird, weird problem!

2004-09-17 Thread David Crossley
Mark Lundquist wrote: OK... this is weird! My Cocoon app uses ImageReader, and the images weren't displaying. It turns out the call to com.sun.image.codec.jpeg.JPEGImageDecoder.decodeAsBufferedImage() in ImageReader.processStream() crashes the JVM! It crashes hard, immediately and

Re: JXTemplate, forEach logic loop on integer

2004-09-17 Thread oceatoon
Antonio Gallardo wrote: oceatoon dijo: Hello everyone I looking to do a normal for loop in a jx page around an integer, I can't seem to get it done with the ForEach tag, does anybody have a technique or an idea for this? Hi, please check this: