Limit on cocoon 1.8.2

2004-03-05 Thread Arnaud De Brem
Hi, We have develop an application based on Cocoon1.8 (Old choice, next version of the application will work on Cocoon 2.1 but in 2005). This application is on production, but the number of user will grow up next month. Do you know the limit of Cocoon1.8.2 (max number of user , problem with

Re: [HELP]Failed to execute pipeline.

2004-03-05 Thread John L. Webber
Hello Khanh, You need to update your Java VM - the Verisign certificates expired recently, and that's what's causing the exception you saw. Either download and install JRE 1.4.2_03, or follow the instructions on the Sun website to update your certificates. John Khanh Vo wrote: Hi, Im

Re: How to get JobScheduler component inside xsp

2004-03-05 Thread Reinhard Ptz
Grzegorz Goliatus Taczyk wrote: Witajcie! What I know now is: xsp:structure xsp:includeorg.apache.cocoon.components.cron.*/xsp:include xsp:includeorg.apache.cocoon.*/xsp:include /xsp:structure and: JobScheduler scheduler =

[RESULTS jdk userlist poll ]

2004-03-05 Thread Jorg Heymans
It's been about a day since the last poll reply came through, i guess it's either too far down in the newsreader overview for people to still notice it or maybe just everyone who wanted to vote actually has voted. The poll : COCOON : your version here JDK : your version here CONTAINER : your

Re[2]: How to get JobScheduler component inside xsp

2004-03-05 Thread Grzegorz Goliatus Taczyk
Witaj Reinhard, W Twoim licie datowanym 5 marca 2004 (12:49:33) mona przeczyta: RP Have a look at the flowscript demo, it's Javascript but very similar to RP Java ;-) Now I get it:

Re: CLI after 2.1.2 is broken ?

2004-03-05 Thread yangontha Maung
Hi, I also faced the similar problem. Uncomment the following lines. exclude.block.portal-fw=true exclude.block.portal=true rgds, --- [EMAIL PROTECTED] wrote: sory but there is not portlet block in blocks.properties. ro do you mean whole the portal block ? thnx --stavros

[CForms] Creation of missing elements in form.save

2004-03-05 Thread H . vanderLinden
Hi, Can anyone help out? How can I get a creation of missing elements when saving data in a Woody form.save action? I've already tried: http://archives.real-time.com/pipermail/cocoon-users/2003-December/043857.ht ml but it doesn't work. In detail: when I try to save XXX to person/name/last

Cocoon 2.1.4 and ProcessingException error with 'large' xml file ?

2004-03-05 Thread Stefan Geelen
Hi, when indexing some XML files I get this strange error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Cannot parse!: org.xml.sax.SAXParseException: The string -- is not permitted within comments. column: 18 line: 872 cause:

CSV file download to user

2004-03-05 Thread Mark Lundquist
Hi, My application needs to be able to generate data in CSV format to download to the application user. What's the best way to do this? My first guess would be to configure a TextSerializer in the sitemap with name=csv and mime-type=application/csv, then generate my CSV wrapped in a SAX

Re: CSV file download to user

2004-03-05 Thread Jorg Heymans
Maybe the poi serializer has support for csv already? Mark Lundquist wrote: Hi, My application needs to be able to generate data in CSV format to download to the application user. What's the best way to do this? My first guess would be to configure a TextSerializer in the sitemap with

Re: [Util] Entitiy-Convertor

2004-03-05 Thread Lionel Crine
Check the mailing list, I have posted this answer. There is a java method somewhere you can use. StringEscapeUtils.escapeXml Lionel At 08:03 28/02/2004 +0100, you wrote: Hello, in our database exists text from our old system without entities. For example there is a instead of amp;. Is in

how to let widget's info display in portal

2004-03-05 Thread Johnson
Hi! I try to test the woody in portal,use the registration sample. everthing is ok,but the validation error message gen by woody widget can't show(ie. pop an error message windows) how to use client side script to show them? Best Regards Johnson

Re: Aggregation and XInclude ?

2004-03-05 Thread Lionel Crine
Is this working ? map:part element=content ns=http://www.xmlmill.com/contenthttp://www.xmlmill.com/content; src=cocoon:/myfirstincludeDocument_{1}_{2}/ PS : you can also send the parameters in the request using cocoon:/myfirstincludeDocument?variable1={1}amp;variable2={2} Then you create

Re: Cocoon 2.1.4 and ProcessingException error with 'large' xml file ?

2004-03-05 Thread Geoff Howard
Stefan Geelen wrote: Hi, when indexing some XML files I get this strange error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Cannot parse!: org.xml.sax.SAXParseException: The string -- is not permitted within comments. column: 18

how does CronJob/test work

2004-03-05 Thread Grzegorz Goliatus Taczyk
Witaj ! From cron sample: var testjobrole = org.apache.cocoon.components.cron.CronJob/test; How it is referenced to org.apache.cocoon.components.cron.TestCronJob? Thats last thing what I dont understand from Cron so I need Your help! And another separate question: why Cron sample

Re: how does CronJob/test work

2004-03-05 Thread Reinhard Ptz
Grzegorz Goliatus Taczyk wrote: Witaj ! From cron sample: var testjobrole = org.apache.cocoon.components.cron.CronJob/test; How it is referenced to org.apache.cocoon.components.cron.TestCronJob? Thats last thing what I dont understand from Cron so I need Your help! And another separate

Server Storage Over Usage bug!

2004-03-05 Thread Lincoln Mitchell
Hi all, I am running a customised version of Lynotype as a content management system and somehow the server is sending me Storage over usage messages when I am not physically uploading anywhere near the amount specified. I upload to Cocoon...WebApp, ...webapp/web-inf and image / text via the

Re: Server Storage Over Usage bug!

2004-03-05 Thread Reinhard Ptz
Lincoln Mitchell wrote: Hi all, I am running a customised version of Lynotype as a content management system and somehow the server is sending me Storage over usage messages when I am not physically uploading anywhere near the amount specified. I upload to Cocoon...WebApp, ...webapp/web-inf and

jpath expression in xsp returns invalid class

2004-03-05 Thread Joel McConaughy
I'm getting a funny looking class returned from a jpath expression. Here is a small code example displays the class name for two strings, one created with a jpath expression and the other a static value. Notice the the class type from the jpath expression looks funny. Am I doing something

Re: CSV file download to user

2004-03-05 Thread Tim Larson
On Fri, Mar 05, 2004 at 03:31:19AM -0800, Mark Lundquist wrote: Hi, My application needs to be able to generate data in CSV format to download to the application user. What's the best way to do this? My first guess would be to configure a TextSerializer in the sitemap with name=csv and

Re: jpath expression in xsp returns invalid class

2004-03-05 Thread Dan Alford
I'm not a cocoon expert but the Class type of your first object is an array of Strings. The [L prefix tells you that you have an array of objects. Perhaps your jpath expression is returning more than one String result? Joel McConaughy wrote: I'm getting a funny looking class returned from a

Adding / modfying response header from cocoon XSLT transformer

2004-03-05 Thread Marco . Farrugia
Hi, Currently I am using an XSP generator which gets XML data through a soap:call. This is followed by the cocoon XSLT Transformer, followed by the XML serializer. I need to set a header in the http response at the transformer stage. I cannot do this from the generator since, first I need to

Re: jpath expression in xsp returns invalid class

2004-03-05 Thread Joel McConaughy
If I use the following statement: String [] sArray = jpath:value-of select='searchType' /; I get the following compile-time error: Type mismatch: cannot convert from Object to String[] Any other ideas? Thanks for the quick response! joel Dan Alford wrote: I'm not a cocoon expert but the

RE: [flow] Conditional Processing

2004-03-05 Thread Alex Romayev
I've heard about it, but wasn't sure what it was for ;-) I'll give it a try. Thanks, -Alex --- Laurent Trillaud [EMAIL PROTECTED] wrote: Alex. Have you taken a look on processPipelineTo()? The code become: if (update = true) { cocoon.processPipelineTo( cocoon://load-feed, ...);

already existing login and authentication-fw

2004-03-05 Thread Vincent Charlot
Hi! I use the Authentication Framework. Everything is okfor authentication. The problem is when I want to add a new customer with new login and password. I'd like to check if the login already exists in the SQL database before inserting the data. How can I do that? Thanks for your help. Vincent

Re: jpath expression in xsp returns invalid class

2004-03-05 Thread Dan Alford
Joel, Try explicitly casting the object. String [] sArray = (String[]) jpath:value-of select='searchType' /; If that doesnt work, you will probably need to find a cocoon expert Dan Joel McConaughy wrote: If I use the following statement: String [] sArray = jpath:value-of select='searchType'

RE: [portal] hidding coplet ( was Minimizing coplets events)

2004-03-05 Thread Alex Romayev
Hi Laurent, Yes, it does make sense, however if I make it a bit more complex, it's becoming difficult to manage. Let's say my News Story page has the following coplets: - News Story - Related News Stories (if any) - Related Photos (if any) - List of other sites talking about the topic (if any)

[OS-X] Serious Encoding Problems (VM Bug?)

2004-03-05 Thread Alexander Schatten
I develop certain Cocoon webapps on a Powerbook with recent cocoon version; up to now with same config like on Redhat Linux and no problems also iso-8859-1 (german) encoding worked fine: environment variable LANG is set to de... yesterday I worked on an application on the powerbook and

Re: [OS-X] Serious Encoding Problems (VM Bug?)

2004-03-05 Thread Bertrand Delacretaz
Le Vendredi, 5 mars 2004, à 16:22 Europe/Zurich, Alexander Schatten a écrit : ...Has anyone an idea, how I could fix this encoding problem on OS X ? Most probably, you need to make sure the JVM is started with the correct encoding definition, like -Dfile.encoding=iso-8859-1 -Bertrand

Re: jpath expression in xsp returns invalid class

2004-03-05 Thread Joel McConaughy
That did the trick! It's the simple things... Thanks much for the help. joel Dan Alford wrote: Joel, Try explicitly casting the object. String [] sArray = (String[]) jpath:value-of select='searchType' /; If that doesnt work, you will probably need to find a cocoon expert Dan Joel

Re: [OS-X] Serious Encoding Problems (VM Bug?)

2004-03-05 Thread Alexander Schatten
Bertrand Delacretaz wrote: Le Vendredi, 5 mars 2004, à 16:22 Europe/Zurich, Alexander Schatten a écrit : ...Has anyone an idea, how I could fix this encoding problem on OS X ? Most probably, you need to make sure the JVM is started with the correct encoding definition, like

Re: jpath expression in xsp returns invalid class

2004-03-05 Thread Dan Alford
Glad I could help If you expect it to return ordinary Strings as well as arrays you may want to do some type checking, e.g. String[] sArray=null; Object o = jpath:value-of select='searchType' /; if(o instanceof String){ sArray = {(String)o}; else if( o instanceof String[]){ sArray =

Need help with Woody/OJB continuations

2004-03-05 Thread Nick Duncan
Hi, I have adapted the woody/ojb/jdo example to connect to my database (finally!), and I'm trying to get it to populate a form with the contents of the bean, as in the example. The data gets retrieved correctly, and the bean has the correct values, I debugged it in Eclipse to be sure of

Lucene and output store-fields in search hits

2004-03-05 Thread Stefan Geelen
HI, I noteiced in the SimpleLuceneXMLIndexerImpl class that there is a store-fields parameter to define which content Quote: * p * ttlt;store-fields/gt;/tt * Sets which tags in your content are stored in Lucene as fields, * during the indexing process. Allows them to be output with

[HELP]Unable to get transformer handler for file:/conquest/data/applications/juwimm-cms.ear/cocoon.war/zkh/index/index_2.xsl

2004-03-05 Thread Alice Grimsehl
Description:org.apache.cocoon.ProcessingException: Unable to get transformer handler for file:/conquest/data/applications/juwimm-cms.ear/cocoon.war/zkh/index/index_2.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler

binding params in dynamic queries in ESQL

2004-03-05 Thread R Hunt
Thanks in advance for any help on this. I would like to build a SQL statement dynamically based on whether not not certain parameters have been sent, but also use bound parameters in my SQL query. I seem to be having troubles getting the parsing quite right. To give a better idea of what I'm

xsl to convert xml to excel

2004-03-05 Thread Anna Bikkina
Can someone please answer my question below I am stuck. On Thursday 04 March 2004 03:41 pm, Anna Bikkina wrote: Hi, I have a xml file that has to converted to excel. I am trying to use a xsl s stylesheet and cocoon to do this job for me. Below is my xml. I am able to display the column's

Re: [OS-X] Serious Encoding Problems (VM Bug?)

2004-03-05 Thread Alexander Schatten
Alexander Schatten wrote: JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' I read the Sun documentation now, and extended this to: -Dfile.encoding=iso-8859-1 -Duser.language=de -Duser.country=DE -Duser.variant=MAC additionally, -- the LANG=de_DE.iso-8859-1 -- the two encoding init params in web.xml

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Christopher Painter-Wakefield
Rebecca, It might take some time to prove it, but I'm pretty sure you can't do what you are trying to do with ESQL. I've gotten pretty deep into the ESQL logicsheet, and it looks for specific tags in specific relationship to other tags, e.g., it will look for the esql:parameter tags as

Re: How to set properties for jdbc connection

2004-03-05 Thread Vlad Ali
hi all again! i read docs on coocoon.org cocoon.wiki but i hasn't found answer on may question I need to set two properties for my jdbc connection (for xsp page) (mySQL driver) useUnicode = true; characterEncoding = Cp866 if i use xsp:logic...

Re: [OS-X] Serious Encoding Problems (VM Bug?)

2004-03-05 Thread Jorg Heymans
are you sure these java options are actually used when your servlet container starts up? Do an echo $JAVA_OPTIONS just before the statement you think gets exec'ed to start the container. Alexander Schatten wrote: Alexander Schatten wrote: JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' I read the

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Torsten Curdt
Rebecca, xsp:logic String paramopen = lt;esql:parametergt;; // open esql parameter tag String paramclose = lt;/esql:parametergt;; // close This is a fundamental misconception. You cannot add unparsed tags. XSP execution happens after the parsing process. esql:parameter tag String

again: best practice for minor form changes/optional elements

2004-03-05 Thread Stefan Klein
Hi, I thought I'd give this a second try, since I didn't get any replies the first time round. I'd appreciate any kind of comment/suggestion. Thanks! Just wondering whether anyone has got any thoughts on this/best practices to offer: I have got a woody form that I need to display in very

Re: Change encoding to ISO-8859-1

2004-03-05 Thread Lionel Crine
This error means that the document is written in ASCII mode with some characters which are not contain in the ASCII table of UTF-8. Which means : if you write in a new document with ultraedit and you save it as is. Cocoon will load the document and serialize it with this error. BUT : Before

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Joel McConaughy
I ran into the same problem and ended up building the entire sql statement in a String variable within an xsp:logic block. This eliminated a number of parsing problems I was having and avoids having to root thru the esql logicsheet to figure out exactly whats going on. R Hunt wrote: Thanks

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread R Hunt
At 09:53 AM 3/5/2004 -0800, you wrote: I ran into the same problem and ended up building the entire sql statement in a String variable within an xsp:logic block. When you did this, where you also using the esql:parameter tags to bind parameters? If you were, it sounds like many people would

Re: again: best practice for minor form changes/optional elements

2004-03-05 Thread Tim Larson
On Fri, Mar 05, 2004 at 06:44:47PM +0100, Stefan Klein wrote: Hi, I thought I'd give this a second try, since I didn't get any replies the first time round. I'd appreciate any kind of comment/suggestion. Thanks! Just wondering whether anyone has got any thoughts on this/best practices to

Re: How to set properties for jdbc connection

2004-03-05 Thread Geoff Howard
Vlad Ali wrote: hi all again! i read docs on coocoon.org cocoon.wiki but i hasn't found answer on may question I need to set two properties for my jdbc connection (for xsp page) (mySQL driver) useUnicode = true; characterEncoding = Cp866 if i use xsp:logic...

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Joel McConaughy
It WOULD be interesting if that's what I did. I actually didn't end up using any bound parameters; just dynamically created the statement. Are you required to use a prepared statement? If so, I'd be interested in why -- it may be somethig I need to do with my app as well. Sorry I can't be

(HttpURLConnection) typecasting not allowed XSP error

2004-03-05 Thread Jeff Conrad
Hello, I am new to XSP in Cocoon. I am experimenting with a way to POST to a servlet, but not using the name-value pair combination shown in the CInclude (advanced) example. To me XSP seems to not like the typecasting - parenthesis syntax required by Java. It sees the parenthesis, and gives an

Re: Report generation with cocoon

2004-03-05 Thread Anna Bikkina
Other than xreporter is there a way I can do this. I do not want to introduce xreporter because I have only one report and I dont want to add complexity to my existing application. I have a xsp file that generates output which has to be converted to html(thats working) . I need the same

Re: xsl to convert xml to excel

2004-03-05 Thread Anna Bikkina
Nevermind,I got most of it working except that column0 is left blank and the whole data is printed from column1. Not sure where I am making a mistake. Can someone help. here is my latest xsl xsl:template match=result xsl:for-each select=column

Multiple DB Inserts (revisited)

2004-03-05 Thread Brent L Johnson
The original thread for this is: http://marc.theaimsgroup.com/?t=10748889214r=1w=2 In a nutshell.. I'm using the authentication framework (now with Cocoon 2.1.4) and I'm still having this multiple insert problem. Here is the sitemap snippet... map:match pattern=performLogin.html

Re: Report generation with cocoon

2004-03-05 Thread Askild Aaberg Olsen
Store the result in the session, by using one or more of the session transformers. http://cocoon.apache.org/2.1/userdocs/transformers/writedomsession-transform er.html One pipeline genereates the result, stores it in the session and generates the HTML. Another pipeline reads the result from the

Internal Cocoon Problem? - Multiple DB Inserts (revisited)

2004-03-05 Thread Brent L Johnson
In case it helps.. I cleared out the logs and logged in.. then noticed these error level messages in error.log and access.log.. dont know if this could be the cause of the multiple inserts from my XSP... (the exceptions are the same in both files) ERROR (2004-03-05) 15:33.39:606 [access]

Q: install Cocoon 2.0.4-vm14 binary on Tomcat 5.0.19?

2004-03-05 Thread czheng
I've followed INSTALL file in cocoon-2.0.4-vm14-bin.zip (since it's the most recent downloadable binary from Apache) to isntall it on latest Tomcat 5.0.19. And found following error in stderr. the Install html page only tells how to install on up to Tomcat 4.0.4b. Has any one had luck with this

XInclude and UTF-16 encoding

2004-03-05 Thread Stefan Geelen
Hi, I build a webpage with default charset=ISO-8859-1" encoding. I need to include another .xml file built in utf-16 encoding: xi:include href="" parse="text" encoding="UTF-16" xi:fallback pExample currently unavailable/p /xi:fallback /xi:include The result is : ...

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Geoff Howard
Joel McConaughy wrote: It WOULD be interesting if that's what I did. I actually didn't end up using any bound parameters; just dynamically created the statement. Are you required to use a prepared statement? If so, I'd be interested in why -- it may be somethig I need to do with my app as

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Geoff Howard
Geoff Howard wrote: How are you protecting against SQL Injection attacks? esql:queryselect * from foo where foo.x = 'xsp-request:get-parameter name=bar/'/esql:query if you take myVar in any way from a request parameter, what happens if I pass in a value like bar=abc;delete%20from%20foo (try it

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Christopher Painter-Wakefield
I thought that ESQL used JDBC prepared statements, regardless of whether you have bound parameters; while it won't protect you fully, won't it throw an exception if it receives two queries (which this attack results in)? Perhaps I'm wrong on this point. It isn't ideal, but if your dynamic SQL

RE: xsl to convert xml to excel

2004-03-05 Thread Binkley, Peter
I think you need to replace the match in your last template: xsl:template match=Time | Action | Price | Name | Name1 As it is now, it's going to catch a lot of calls that it shouldn't, and prevent the process from reaching some other templates. Also, I don't think this is doing what you want:

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread R Hunt
Thanks for everyone's advice on this topic. It seems that the general consensus is that one should use esql:parameter to bind parameters, but it can't be done when building a dynamic query. Thanks. At 06:41 PM 3/5/2004 +0100, you wrote: You are mixing things up. :) Better have a look into the

Re: Q: install Cocoon 2.0.4-vm14 binary on Tomcat 5.0.19?

2004-03-05 Thread Joerg Heinicke
On 05.03.2004 21:57, [EMAIL PROTECTED] wrote: I've followed INSTALL file in cocoon-2.0.4-vm14-bin.zip (since it's the most recent downloadable binary from Apache) to isntall it on latest Tomcat 5.0.19. And found following error in stderr. the Install html page only tells how to install on

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Torsten Curdt
Thanks for everyone's advice on this topic. It seems that the general consensus is that one should use esql:parameter to bind parameters, Definitly - if feasible but it can't be done when building a dynamic query. It depends how dynamic your query is. See further down Can you recommend some

Re: binding params in dynamic queries in ESQL

2004-03-05 Thread Torsten Curdt
I thought that ESQL used JDBC prepared statements, regardless of whether you have bound parameters; That's right while it won't protect you fully, won't it throw an exception if it receives two queries (which this attack results in)? AFAIK - not necessarily ...as with all JDBC stuff this

Re: [OS-X] Serious Encoding Problems (VM Bug?)

2004-03-05 Thread teru kohama
I use Jetty. java -Xmx256M -Xms128M -Xss128K -Dfile.encoding=UTF-8 -jar start.jar etc/jetty.xml Then it works fine. teru - Original Message - From: Jorg Heymans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 06, 2004 2:34 AM Subject: Re: [OS-X] Serious Encoding Problems (VM

Re: Need help on generating excel

2004-03-05 Thread Tim Larson
On Fri, Mar 05, 2004 at 04:47:24PM -0500, Anna Bikkina wrote: snip/ I have another button which converts the same data to excel . It performs query to the database and is expected to display data in excel. I am using the org.apache.cocoon.serialization.HSSFSerializer to perform this.