Test de performances
hello !! eh oui ca faisait longtemps que je ne t'avais pas embeter !!! :) Nous sommes en ce momment dans une pré-phase de test de perf de cocoon. Nous avons juste fait quelques petits tests sans importance sur les version 2.04/Tomcat4 et 2.1/Jetty. Nous constatons une importante augmentation de consomation de mémoire a chaque nouvelle requete demandée. Le problème est qu'il n'y a jamais libération de mémoire. Cocoon tourne jusqu'a ce qu'il y est saturation de memoire. Nous utilisons Loadrunner pour faire nos tests. AS tu une idée du pourquoi du comment il ya fuite de mémoire et comment régler ce probleme ? Merci Beaucoup. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test de performances
Le Mercredi, 2 avr 2003, à 10:45 Europe/Zurich, zze-MORY Nicolas FTRD/DMI/REN a écrit : eh oui ca faisait longtemps que je ne t'avais pas embeter !!! :)... FYI: Non-french speakers don't worry - this message is about cocoon but does not seem to have been intended for this list. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
allowing users to upload pdf files in a web dav directory
Hello, I want my users to be able to upload pdf files in a WebDav directory, protected by login password (just cocoon 'know' this password. I try to use upload.xsp but dont know how to configure web.xml to provide this access. Does somebody know or show me a way ? Thanks Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XSP] expr not for int?
Hello, the following XSP causes an LanguageException: ?xml version=1.0 ? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:logic int value = 1; value = value + 1; /xsp:logic page titlePageTitle/title content 1 + 1 = xsp:exprvalue/xsp:expr /content /page /xsp:page The exception says: org.apache.cocoon.components.language.LanguageException: Error compiling xsptest_xsp: Line 69, column 22: identifier expected Line 69, column 16: class value not found in class org.apache.cocoon.www.xsptest_xsp Line 0, column 0: 2 errors After changing the type from int to String, the XSP works: ?xml version=1.0 ? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:logic String value = 1; value = 2; /xsp:logic page titlePageTitle/title content 1 + 1 = xsp:exprvalue/xsp:expr /content /page /xsp:page Why? Doesn't xsp:expr automatically convert int to String? Thank you! Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test de performances
Bertrand Delacretaz wrote: Le Mercredi, 2 avr 2003, à 10:45 Europe/Zurich, zze-MORY Nicolas FTRD/DMI/REN a écrit : eh oui ca faisait longtemps que je ne t'avais pas embeter !!! :)... FYI: Non-french speakers don't worry - this message is about cocoon but does not seem to have been intended for this list. However, it sounds good to see some french in this whole english-mailing-list-world ;-) More seriously, if there is a real memory leak (that's what this mail was about) with Cocoon 2.1 and/or Jetty, it wouls be great to know about it. Cedric -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed to execute pipeline.: Errors in XSLT transformation
On Tue, 2003-04-01 at 02:01, Don Saxton wrote: I have tried several xsl and after double checking each of them I am stumped. I found several zarros in bugzilla. In mail list I have seen several Failed to execute pipeline and a couple related to NPE, but none linking either to Errors in XSLT. Worse these other msgs don't indicate what solved the their problems. I am running 2.04 on w2k and I sure could use a clue. All classes immediately surrounding the error are all cocoon. I have been studiously avoiding 2.1 beta chaos. Is it now time to dive in? will that help? Hey Don, Could you maybe try to put in a log transformer before your XSL and send the output of that as an attachment? I'm not sure but just maybe the error is caused by some invalid SAX-events being generated. The logtransformer can be used as follows: map:transform type=log map:parameter name=logfile value=output.txt/ /map:transform and then all sax-events will be logged to the file output.txt. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication framework sample and Mozilla...
Even if the cache is set to 0 Ko ! This case doesn't appened in Netscape with the same configuration... But I suppose other protected pages not in memory cache will send the user to the login page... But would it be better (if not done, but in this case I don't understand) to set expiration date to now in all protected pages ? Sorry if it is a dumb question... ! :) - Original Message - From: Olivier Billard [EMAIL PROTECTED] To: Cocoon Users [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:07 AM Subject: Authentication framework sample and Mozilla... Hi all cocooners ! I'm working on using the authentication framework, base on the authentication sample, in the Cocoon 2.1 CVS from yesterday. I made : build clean build webapp cocoon servlet With an ooold Netscape (4.78) and IE 6, all works fine : protected area access is first denied, and then accepted after logged in, finally denied when logged out. But with Mozilla, when cache option are set to Never compare with the cache (and cache deleted) the protected area is still accessible, even if I logged out... Is this a bug from Mozilla or Cocoon ? This hole is pretty disturbing... Thanks -- Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test de performances
Le Mercredi, 2 avr 2003, à 11:21 Europe/Zurich, Cédric Damioli a écrit : ...More seriously, if there is a real memory leak (that's what this mail was about) with Cocoon 2.1 and/or Jetty, it wouls be great to know about it. Nicolas was talking about 2.04 - I suggested (off-list and in french ;-) to him to run the same tests with 2.1 CVS and check the results. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Again
The JSPEngine in Cocoon simply calls another servlet to get the result of JSP and then the output is served directly via JSPReader or parsed into XML via JSPGenerator and then served. So Jasper won't work on Jetty, cause seems that it has dependencies on Tomcat. To make JSPs work you should change Cocoon configuration to use appropriate servlet from Jetty. Take a look at jsp-engine/ section in cocoon.xconf and then at cocoon.roles from cocoon.jar . Change them as needed and try again. BTW, why do you want to use JSP when XSP is more efficient for XML generation? Konstantin From: Sushil Bhattarai [EMAIL PROTECTED] Newer version of JBoss (JBoss Web) comes with Jetty. I'm using JBoss 3.0.4 and I'm trying to get JSP work in my cocoon. Rest of the Cocoon stuff work fine, only JSP seems to be giving problem. I added jasper-compiler.jar because I read in one of the discussion list that it is needed for JSP to work. It's not helping here though. Sushil This looks like an error in your JSP or in the Jasper compiler. Take a look at the generated source to see what's wrong. And also it's a little strange that the java file for your JSP is generated in a ...\Jetty...\ directory. Are you using Tomcat? I'm not sure that Jasper compiler works with Jetty. Konstantin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
performances Test
More seriously, if there is a real memory leak (that's what this mail was about) with Cocoon 2.1 and/or Jetty, it wouls be great to know about it. Thanks ;) i'm very sory for the french mail... i tested with Cocoon 2.1/Jetty and i have the same problem. but it can come from my configuration (it was my first test). I make tests with Linux redhat 7.1 Cocoon 2.1/Jetty and Loadrunner Windows 2000 pro If anyone know something about it... please tell more. Thanks a lot ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon User Discussions Request Fork by Revision
I do not know if this has been suggested or not but here goes. Is it possible to fork the discussion groups by target release? For instance, if we put a flag in the Subject Header ala [Cocoon2.1-dev] before our Subject it would index into a different listing versus say [Cocoon2] or [Cocoon1.x]. And when one browses the Cocoon User listings they are subgrouped via Cocoon2.1-dev, Cocoon2, Cocoon1.x. Just sure would make the listings more extensible by consuming less time scanning the subject headers. Yes I know I can do a direct query but it would even be nicer to do a query by Subgroup listed above, alone. -Marc J. Driftmeyer __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SAX Validation
Hello all, Does anybody know if its possible in Java to validate SAX Events against a schema (or at least against a subset of w3c schema)? Are there any implementations available? If not, then it should be at least possible - shouldn´t it? Thanks in advance for helping! Regards Manfred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SAX Validation
On Wed, 2003-04-02 at 13:17, [EMAIL PROTECTED] wrote: Hello all, Does anybody know if its possible in Java to validate SAX Events against a schema (or at least against a subset of w3c schema)? Are there any implementations available? If not, then it should be at least possible - shouldn´t it? Sun's MSV (Multi Schema Validator) can do that. It supports most of the W3C schema spec. You can find it here: http://wwws.sun.com/software/xml/developers/multischema/ -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 cache
On Wed, 2003-04-02 at 09:42, zze-MORY Nicolas FTRD/DMI/REN wrote: How can i turn off the cache under Cocoon 2.1 ? because : event-pipeline class=org.apache.cocoon.components.pipeline.NonCachingEventPipeline/ stream-pipeline class=org.apache.cocoon.components.pipeline.NonCachingStreamPipeline/ doesn't exist under Cocoon 2.1 You can now configure this in the sitemap itself. Inside map:components you should find the following (or if it's not there, add it): map:pipes default=caching map:pipe name=caching src=org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline/ map:pipe name=caching-point src=org.apache.cocoon.components.pipeline.impl.CachingPointProcessingPipeline autoCachingPointOn/autoCachingPoint /map:pipe map:pipe name=noncaching src=org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline/ !-- The following two can be used for profiling:-- map:pipe name=profile-caching src=org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline/ map:pipe name=profile-noncaching src=org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline/ /map:pipes change the default attribute from caching to noncaching. Alternatively, you can configure this on a per-pipeline level by adding an attribute named type to the map:pipeline element, e.g. map:pipeline type=noncaching -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SAX Validation
Use xerces, its supports full w3c schema -Original Message- From: Bruno Dumon [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 13:32 To: [EMAIL PROTECTED] Subject: Re: SAX Validation On Wed, 2003-04-02 at 13:17, [EMAIL PROTECTED] wrote: Hello all, Does anybody know if its possible in Java to validate SAX Events against a schema (or at least against a subset of w3c schema)? Are there any implementations available? If not, then it should be at least possible - shouldn´t it? Sun's MSV (Multi Schema Validator) can do that. It supports most of the W3C schema spec. You can find it here: http://wwws.sun.com/software/xml/developers/multischema/ -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database caching
Cocoon does not automatically cache xsp pages with esql tags, but provides a means for you to tell it to do so. Have a look at the caching xsp sample, and probably the javadocs for the caching related classes. In general, you'll need your generator (which is what your xsp produces automatically) to provide two things: a unique key that distinguishes the current result from others the same generator creates. Generally, you'd want to hash any information the esql uses - probably from the request - and use that as your key. Second, you need to provide information about the scheme you want Cocoon's cache to use to figure out if the cached content it holds is still valid. The easiest in the case of database results is to do time-based validity. Cache until a certain time, or for a certain duration. If you need more information, you'll need to specify what version you're working on. HTH, Geoff Howard At 03:43 PM 4/1/2003, you wrote: How does cocoon handle caching of xsp pages with esql tags? It seems to me that cocoon would have to generate the xml output of the xsp page every time the page is called, and thus would be unable to cache any xsl translation latter? Is this true? If so would it not be a better idea to have the page be translated into html before all database code is called and then insert the database code at the very end and output as a jsp page or something? Kris Do you Yahoo!? http://us.rd.yahoo.com/finance/mailsig/*http://tax.yahoo.comYahoo! Tax Center - File online, calculators, forms, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
It's not clear below: do you want to use cocoon's upload facility, or webdav? Geoff At 03:54 AM 4/2/2003, you wrote: Hello, I want my users to be able to upload pdf files in a WebDav directory, protected by login password (just cocoon 'know' this password. I try to use upload.xsp but dont know how to configure web.xml to provide this access. Does somebody know or show me a way ? Thanks Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 cache
In 2.1 you can do it in the sitemap Option1 -- at the individual pipeline level: map:pipeline type=noncaching ... Option 2 -- set the default in the pipes declaration map:pipes default=caching Cheers, -Alex --- zze-MORY Nicolas FTRD/DMI/REN [EMAIL PROTECTED] wrote: How can i turn off the cache under Cocoon 2.1 ? because : event-pipeline class=org.apache.cocoon.components.pipeline.NonCachingEventPipeline/ stream-pipeline class=org.apache.cocoon.components.pipeline.NonCachingStreamPipeline/ doesn't exist under Cocoon 2.1 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: performances Test
zze-MORY Nicolas FTRD/DMI/REN wrote: More seriously, if there is a real memory leak (that's what this mail was about) with Cocoon 2.1 and/or Jetty, it wouls be great to know about it. Thanks ;) i'm very sory for the french mail... i tested with Cocoon 2.1/Jetty and i have the same problem. but it can come from my configuration (it was my first test). I make tests with Linux redhat 7.1 Cocoon 2.1/Jetty and Loadrunner Windows 2000 pro If anyone know something about it... please tell more. Thanks a lot ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Are you using Sun JDK 1.4.1 ? If yes, there's a huge bug in java.lang.StringBuffer leading to memory leaks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
Geoff Howard a écrit : It's not clear below: do you want to use cocoon's upload facility, or webdav? Geoff yes y do. I want to upload a file (IE with upload.xsp) but not on my HD, on a webdav directory. Do you know how to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 cache
No, caching pipelines only caches cacheable content. This is determined by Cocoon based on the information the Generator provides. The file generator is cacheable by default based on the last-modified time of the file. But the ServerPagesGenerator that handles all xsp's is non-Caching unless you provide the needed implementation I described below. Geoff At 08:29 AM 4/2/2003, you wrote: In 2.1 you can do it in the sitemap Option1 -- at the individual pipeline level: map:pipeline type=noncaching ... Option 2 -- set the default in the pipes declaration map:pipes default=caching Cheers, -Alex --- zze-MORY Nicolas FTRD/DMI/REN [EMAIL PROTECTED] wrote: How can i turn off the cache under Cocoon 2.1 ? because : event-pipeline class=org.apache.cocoon.components.pipeline.NonCachingEventPipeline/ stream-pipeline class=org.apache.cocoon.components.pipeline.NonCachingStreamPipeline/ doesn't exist under Cocoon 2.1 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
I'm sorry - I must need more coffee. It's still not clear to me. Here's my best guess: You want to upload to upload.xsp, but select a file not from your hard drive but from a local shortcut to a webdav directory? I don't think windows/IE will let you do that. In my experience with webdav (not extensive) I've had to save the file locally first, and then upload it. This is beyond cocoon's control, though. The issue is on the client. If, however, you are talking about uploading a file using upload.xsp to a directory that happens to also be available via webdav, it would just be a matter of specifying the correct directory in web.xml for upload-directory or whatever that param is called. Geoff At 08:39 AM 4/2/2003, you wrote: Geoff Howard a écrit : It's not clear below: do you want to use cocoon's upload facility, or webdav? Geoff yes y do. I want to upload a file (IE with upload.xsp) but not on my HD, on a webdav directory. Do you know how to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
include other xsp
Hi I have just started to use cocoon for my web applications, and going from jsp to xsp, there is one thing I really is missing. In jsp it was possible to use include statements to include other jsp into each other. Now, I just have a enoumous long xsp page. Is it possible to do a include with xsp? I have searched google and deja without any result. Magne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
The end user produce a pdf file and use cocoon (via upload.xsp) to publish it : upload.xsp provides the end user to select a pdf file and upload it to the server. I just want the server to store this file not on the server HD, but in a webdav directory on an other server. I don't know how to specifying this in web.xml I hope it's most clear because i can't take you any coffee. Thanks Geoff Howard a écrit : I'm sorry - I must need more coffee. It's still not clear to me. Here's my best guess: You want to upload to upload.xsp, but select a file not from your hard drive but from a local shortcut to a webdav directory? I don't think windows/IE will let you do that. In my experience with webdav (not extensive) I've had to save the file locally first, and then upload it. This is beyond cocoon's control, though. The issue is on the client. If, however, you are talking about uploading a file using upload.xsp to a directory that happens to also be available via webdav, it would just be a matter of specifying the correct directory in web.xml for upload-directory or whatever that param is called. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: include other xsp
hi magne, several possibilites: - have a look at the util.xsl logicsheet. it define several tags for including stuff (e.g. util:include-source, util:include-uri, ...) - CIncludeTransformer - XIncludeTransformer for the latter two you should be able to find docs. regarding the logicsheet I suggest having a look at it yourself. -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Magne Skjeret Gesendet: Mittwoch, 2. April 2003 16:08 An: [EMAIL PROTECTED] Betreff: include other xsp Hi I have just started to use cocoon for my web applications, and going from jsp to xsp, there is one thing I really is missing. In jsp it was possible to use include statements to include other jsp into each other. Now, I just have a enoumous long xsp page. Is it possible to do a include with xsp? I have searched google and deja without any result. Magne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: include other xsp
At 17:29 02.04.2003 +0200, you wrote: hi magne, several possibilites: - have a look at the util.xsl logicsheet. it define several tags for including stuff (e.g. util:include-source, util:include-uri, ...) - CIncludeTransformer - XIncludeTransformer for the latter two you should be able to find docs. regarding the logicsheet I suggest having a look at it yourself. Of course. As long as I have some buzzwords to search for I will be allright. Thanks for the help Magne -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Magne Skjeret Gesendet: Mittwoch, 2. April 2003 16:08 An: [EMAIL PROTECTED] Betreff: include other xsp Hi I have just started to use cocoon for my web applications, and going from jsp to xsp, there is one thing I really is missing. In jsp it was possible to use include statements to include other jsp into each other. Now, I just have a enoumous long xsp page. Is it possible to do a include with xsp? I have searched google and deja without any result. Magne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql not working at all, no connection ever created!
I think it was there in his original posting. -Christopher |-+-- | | Christian Haul | | | [EMAIL PROTECTED]| | | rmstadt.de| | | | | | 04/02/2003 02:52 AM| | | Please respond to | | | cocoon-users | | | | |-+-- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: esql not working at all, no connection ever created! | --| On 01.Apr.2003 -- 01:48 PM, Christopher Painter-Wakefield wrote: Is this the whole XSP program? If so, the problem is that you don't have the required single non-xsp child node of xsp:page. E.g., you have: xsp:page ... esql:connection ... /esql:connection /xsp:page but you need to have: xsp:page ... some-node esql:connection ... /esql:connection /some-node /xsp:page If that isn't the problem, write back and we'll try something else. Another one is the missing esql:execute-query tag. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Only use serializers
Gunter D' Hondt wrote: I've got a java webapp where I've got the DOM object with the XML transformed using XSLT but now I want to be able to serialize it to PDF. I know Cocoon has FOPSerializer etc but how can I call this serializer from java code with the only input being a transformer and a DOM object. Have you already looked at http://xml.apache.org/fop/embedding.html http://xml.apache.org/fop/faq.html#servlet_with_xslt J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include other xsp
On 02.Apr.2003 -- 04:07 PM, Magne Skjeret wrote: Hi I have just started to use cocoon for my web applications, and going from jsp to xsp, there is one thing I really is missing. In jsp it was possible to use include statements to include other jsp into each other. Now, I just have a enoumous long xsp page. Is it possible to do a include with xsp? I have searched google and deja without any result. You can use logicsheets and java methods for example. An enormous large page indicates that there is losts of potential to separate things into smaller aspects. Put the appearance into (multiple!) XSL (- transformer) or even CSS, put logic into logicsheets or java helper classes. Put flow into flow or actions (only ressort in 2.0, flow is nicer though). Use aggregation to assemble different and independant parts of your page. Include is fine as well, but it's hidden compared to aggregation from a sitemap's POV. Maybe you don't even need XSP and static XML would do fine as well. Try to reuse as much and as often as possible. Write your stuff for reuse (- could the XML produced by your XSP be used for other views as well?) 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how obtain 2.1 nightly snapshot build
Hi, I would to try some features that are in the 2.1 build and am attempting to download a nightly snapshot. I go to this location but there is nothing in that folder. http://cvs.apache.org/snapshots/cocoon-2.1/ Can someone tell me how I go about obtaining a 2.1 snapshot. Thanks _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how obtain 2.1 nightly snapshot build
Hi, Can someone tell me how I go about obtaining a 2.1 snapshot. if there is no nightly snapshot you can obtain the latest version of cocoon via cvs: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co cocoon-2.1 hth -- * best regards * Jens Maukisch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database caching
I realize my approach is somewhat reversed, however, in pages that are accessed and change often it seems like it might be necessary to obtain acceptable performance. For example, if I had a poll on a home page that changes every second or so, it would be a huge waste to output the current value of the poll (a single number) every time the page is accessed and then regenerate the xml for the whole page and then transform it all again. Rather, it seems that it would be much more efficient if the call to the database was put off until the entire page was transformed and cached first. I realize this is possible to do with cocoon with transformers, however I was curious if there was any way to do it with esql and xsp. Please correct me if I am wrong, or if this added complexity for high traffic pages is not necessary. Kris Leszek Gawron [EMAIL PROTECTED] wrote: On wto, kwi 01, 2003 at 12:43:29 -0800, Kris Rasmussen wrote: How does cocoon handle caching of xsp pages with esql tags? It seems to me that cocoon would have to generate the xml output of the xsp page every time the page is called, and thus would be unable to cache any xsl translation latter? Is this true? If so would it not be a better idea to have the page be translated into html before all database code is called and then insert the database code at the very end and output as a jsp page or something?Is that the way other server side frameworks do? Remember that the mostimportant thing is data, which is being generated at the beginning and thenthe presentation is applied. Your approach is completely reversed. Take look at Velocity - maybe it could solve your problemsouzo-- __| / \ | Leszek Gawron // \\\_\\ //_/ [EMAIL PROTECTED] _\\()//_.'/()\'. Phone: +48(600)341118 / // \\ \\\ // recursive: adj; see recursive | \__/ |-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more
Re: database caching
I see - interesting idea. You are wanting to use requests to trigger uncache events, similar to the asynchronous reload behavior of the sitemap (or was that cocoon.xconf? or web.xml??). But you are still doing that work for every request in your scheme, which if you have a high load won't necessarily give better performance. Why not do a time-based cache that expires every second or minute, etc.? I had been wanting to allow for asynchronous cache behavior and will look into it, but for now if you really want to go that way you'll either need to do it that way yourself, or write a custom transformer to do that as you proposed. I tend to dislike transformers with side effects in that sort of scenario, but it should work. Geoff At 01:54 PM 4/2/2003, you wrote: I realize my approach is somewhat reversed, however, in pages that are accessed and change often it seems like it might be necessary to obtain acceptable performance. For example, if I had a poll on a home page that changes every second or so, it would be a huge waste to output the current value of the poll (a single number) every time the page is accessed and then regenerate the xml for the whole page and then transform it all again. Rather, it seems that it would be much more efficient if the call to the database was put off until the entire page was transformed and cached first. I realize this is possible to do with cocoon with transformers, however I was curious if there was any way to do it with esql and xsp. Please correct me if I am wrong, or if this added complexity for high traffic pages is not necessary. Kris Leszek Gawron [EMAIL PROTECTED] wrote: On wto, kwi 01, 2003 at 12:43:29 -0800, Kris Rasmussen wrote: How does cocoon handle caching of xsp pages with esql tags? It seems to me that cocoon would have to generate the xml output of the xsp page every time the page is called, and thus would be unable to cache any xsl translation latter? Is this true? If so would it not be a better idea to have the page be translated into html before all database code is called and then insert the database code at the very end and output as a jsp page or something? Is that the way other server side frameworks do? Remember that the most important thing is data, which is being generated at the beginning and then the presentation is applied. Your approach is completely reversed. Take look at Velocity - maybe it could solve your problems ouzo -- __ | / \ | Leszek Gawron // \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] Do you Yahoo!? http://us.rd.yahoo.com/finance/mailsig/*http://tax.yahoo.comYahoo! Tax Center - File online, calculators, forms, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
I see. The server itself has access to a webdav folder on a third machine. As far as I know, there will not be a way to automatically handle this because cocoon's uploads are using java.io.File to automatically save files and I don't think this will work saving to a webdav folder, which as I understand it is not a folder at all, but a pointer to a url using the http protocol. If your particular server and webdav implementation happen to support it though you'll be in luck but it would be as easy as specifying whatever file path in web.xml you use for the local webdav folder on the server. If that doesn't work as I suspect, you'll need to write an action to get the FilePart out of the request, call getInputStream and send that input stream over http to the webdav location. See: http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction and http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon for more information on the process up to and including getting the input stream. You may also get info from WebServiceProxyGenerator and/or HTTPProxyGenerator Beyond that though, I'll not be much help. You may want to repost a new question focused on how to send input stream to a webdav repository on another server from within an action. Geoff Howard At 09:24 AM 4/2/2003, you wrote: The end user produce a pdf file and use cocoon (via upload.xsp) to publish it : upload.xsp provides the end user to select a pdf file and upload it to the server. I just want the server to store this file not on the server HD, but in a webdav directory on an other server. I don't know how to specifying this in web.xml I hope it's most clear because i can't take you any coffee. Thanks Geoff Howard a écrit : I'm sorry - I must need more coffee. It's still not clear to me. Here's my best guess: You want to upload to upload.xsp, but select a file not from your hard drive but from a local shortcut to a webdav directory? I don't think windows/IE will let you do that. In my experience with webdav (not extensive) I've had to save the file locally first, and then upload it. This is beyond cocoon's control, though. The issue is on the client. If, however, you are talking about uploading a file using upload.xsp to a directory that happens to also be available via webdav, it would just be a matter of specifying the correct directory in web.xml for upload-directory or whatever that param is called. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
warning message in core.log
hi i get this warning message in my core.log in every hit is something i have to worry about? message: WARN(2003-04-03) 02:21.59:452 [core.manager] (/xml/forestland.gr/themes/images/progs/11/thumbnails/3.jpg) Thread-62/ExcaliburComponentSelector: Looking up component on an uninitialized ComponentLocator with hint [/home/vhost/forestland.gr/conf/sitemap.xmap] stavros ps. to jeremy and lajos i have obtain your book Cocoon developer's handbook yesterday its great, very usefull to me and a good reference to anyone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
livesite
http://www.forestland.gr stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ZIP FILES
Hello! I would to create a Zip file with cocoon, which is the syntax in the sitemap to create a zip file ? (I mean the pipeline..) It has to be something like this ? map:match pattern="hello.zip" map:generate src=""/ map:transform src=""/ map:serialize type=""/ - I don't know..this.. /map:match Thanks.. FerranDo you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more
Re: ZIP FILES
i think that there is no .zip serializer yet corect me if i'm wrong stavro On Wed, 2 Apr 2003, Ferran Urgell wrote: Hello! I would to create a Zip file with cocoon, which is the syntax in the sitemap to create a zip file ? (I mean the pipeline..) It has to be something like this ? map:match pattern=hello.zipmap:generate src=docs/samples/hello-page.xml/map:transform src=stylesheets/page/simple.xsl/map:serialize type=/ - I don't know..this../map:match Thanks.. Ferran - Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
map:part- how to encode a URL source?
Here is what I wrote: map:part src=http://localhost:8080/bigServlet?k42id={1}container=page-body/ Here is what I get: org.xml.sax.SAXParseException: The reference to entity container must end with the ';' delimiter. snip How can I do this? I need to make calls to URLs with multiple paramters... Thanks in advance! -cwk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: map:part- how to encode a URL source?
Colin, is a special character in XML and need to be escaped as amp; -Alex --- Colin W. Kingsbury [EMAIL PROTECTED] wrote: Here is what I wrote: map:part src=http://localhost:8080/bigServlet?k42id={1}container=page-body/ Here is what I get: org.xml.sax.SAXParseException: The reference to entity container must end with the ';' delimiter. snip How can I do this? I need to make calls to URLs with multiple paramters... Thanks in advance! -cwk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Aftermath: Cocoon class at Software Development conference
Just thought y'all (as in both developers and users, hence the cross-posting) might like to hear: Last week, I taught a 90-minute session on Cocoon at the Software Development West conference in Santa Clara. It was pretty well received, according to the eval forms I peeked at. But it was at the very end of the conference, tucked away in the farthest corner. So, what the heck, we touched the lives of eight more people. :-) Seven, actually -- one wrote that now he knows Cocoon isn't what he needs, thanks for the info! When it comes time to teach it again, I'll send around a request for real-world experiences: what is your organization using Cocoon for, and what alternatives did you explore and discard? (I'll also agitate for a less stealthy venue!) In fact, if any of you would like to bombard me with replies now, I'll start collecting and editing the list. You may take it as read that I'll parse the live sites/powered by list as well. Feel free to send email directly to me, I see no need to further clutter the lists with this traffic. (I reiterate that I'll collate and post an edited list of responses). Thanks for all your help, and thanks for such a great product! rw -- the Tao which can be debugged is not the true Tao. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xmlforms bean generators
Hi ... the context: In the XMLForm Wizard, you(well the autor ... who is?) tells that the binding mechanism between the xpath expressions and the java bean components ... is jxpath. This seems to be cool, but what about program-generated-jbeans, I'm thinking in castor ... it saves you from coding a lot of boring-jbean-stuff but, reading in other places, i noted that there might be some compatibility problems between castor jxpath. So, the question is: Is there any available tool, which generates jbeans compatible with jxpath, and therefore, with the Cocoon's XMLForm? (I'm not excluding castor ... maybe I'm just missing a little trick or maybe I just have to test it! ;-). Okas, thanks in advance. saludos dario estepario ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xmlforms bean generators
JXPath and Castor are tools that solve different problems. I am not aware of any problems prohibiting the use of Castor and JXPath in the same application. Can you give an example of a compatibility problem? -=Ivelin=- - Original Message - From: Dario Bahena [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:18 PM Subject: xmlforms bean generators Hi ... the context: In the XMLForm Wizard, you(well the autor ... who is?) tells that the binding mechanism between the xpath expressions and the java bean components ... is jxpath. This seems to be cool, but what about program-generated-jbeans, I'm thinking in castor ... it saves you from coding a lot of boring-jbean-stuff but, reading in other places, i noted that there might be some compatibility problems between castor jxpath. So, the question is: Is there any available tool, which generates jbeans compatible with jxpath, and therefore, with the Cocoon's XMLForm? (I'm not excluding castor ... maybe I'm just missing a little trick or maybe I just have to test it! ;-). Okas, thanks in advance. saludos dario estepario ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ZIP FILES
There is a Zip Serializer. Look at http://xml.apache.org/cocoon/userdocs/serializers/ziparchive-serializer.html This page describes the syntax. The sitemap should contain this in the serializer section: map:serializer name=zip mime-type=application/zip logger=sitemape.serializer.zip src=org.apache.cocoon.serialization.ZipArchiveSerializer/ Cheers Matthias -Ursprungliche Nachricht- Von: Stavros Kounis [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. April 2003 02:11 An: [EMAIL PROTECTED] Betreff: Re: ZIP FILES i think that there is no .zip serializer yet corect me if i'm wrong stavro On Wed, 2 Apr 2003, Ferran Urgell wrote: Hello! I would to create a Zip file with cocoon, which is the syntax in the sitemap to create a zip file ? (I mean the pipeline..) It has to be something like this ? map:match pattern=hello.zipmap:generate src=docs/samples/hello-page.xml/map:transform src=stylesheets/page/simple.xsl/map:serialize type=/ - I don't know..this../map:match Thanks.. Ferran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [CRASH] 2.1-Dev with HTMLGenerator Transformer
On 1 Apr 2003, Bruno Dumon wrote: I've tried out your sample, and had the same problem. After putting in a logtransformer, I noticed that the endDocument SAX event was called twice. I've updated CVS to correct this behaviour. Bruno, I'm making a little bit of progress, but I'm still having problems getting the XSL to go through successfully. The crashes and exceptions have stopped, but now I'm still experiencing some strangeness with XSL. Here's my sitemap: map:match pattern=wx/mn.xml map:generate type=html src=http://www.crh.noaa.gov/data/forecasts/MNZ060.php?warncounty=mnc053amp;city=Minneapolis; map:parameter name=xpath value=/html/body/table[4]/tr[4]/td[2]/table[1]/tr[2]/td[1]/table[1]/tr[1]/td[2]/table[1]/ /map:generate map:transform type=log map:parameter name=logfile value=out.log/ /map:transform map:transform src=stylesheets/zone.xsl/ map:serialize type=xml/ /map:match And here's the XSL I'm using (pretty basic): ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/table root widthxsl:value-of select=@width//width /root /xsl:template /xsl:stylesheet Can you confirm this is not working correctly? Unfortunately I'm not too adept at interpreting the LogTransformer's output, so I'll need to enlist your help for that. This isn't a matter of stupid XSL, or some other boneheaded oversight on my part, is it? Thanks again, Tony -- Tony Collen ICQ: 12410567 IRC: irc.byxnet.net -- Cocoon: Internet Glue (A Cocoon Weblog) http://manero.org/weblog/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant:NoClassDefFoundError after Cocoon install
Finally, Ant gets back to work again. After installation of ANT-1.5.3Beta1 without success, I went back to Ant1.4.1 and set %CLASSPATH% to ant.jar, crimson.jar, jaxp.jar of Ant1.4.1. So far, Tomcat4.1.18 Cocoon2.0 work as before. thanks list ttkaya | ttkaya [EMAIL PROTECTED] wrote: Thanks for your tip of info. I am getting ready for installing ANT-1.5.3Beta1. In my next mail I will tell the result. ttkaya Helmut Tammen [EMAIL PROTECTED] wrote: Download the newest release of Ant (1.5.1 or higher), install it and set the ANT_HOME environment variable to the installation - dir. In addition you can set the PATH variable to the installation/bin - dir. After that it should (hopefully) work. Helmut On Tue, 01 Apr 2003 10:30:16 +0900, a847356549/mail.h7.dion.ne.jp [EMAIL PROTECTED] wrote: Hello I used Ant1.4.1 with JWSDP-1.0-ea1 under Win98se fairly well until I installed Tomcat4.1.18 Cocoon2.0 and began first Cocoon Lessons. So far, Tomcat4.1.18 Cocoon2.0 work fine. But everytime I want to use Ant1.4.1 by command line input, it fails with Exception in thread 'main' java.lang.NoClassDefFounError:org/apache/tools/ant/Main. To fix it, I updated every ant.jar on my computer with one originally in Tomcat4.1.18\common\lib but in vain. I searched some ANT-maillist archive for this trouble but no clear remedy, finally got an impression, to use Ant1.4.1 like before I may have to cancel Tomcat4.1.18 Cocoon2.0. I hesitated for some time to post this question because it may be off topics. I appreciate slightest hint and any advice will be grateful. ttkaya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cell Formating in Excel with Cocoon
Hi! I' m developing with Cocoon and I try to build a excel spredsheet with the gnumeric format. but it doesn't work. I set the format of the style for the specific cell: gmr:Styles gmr:StyleRegion startCol=0 startRow=0 endCol=0 endRow=0 gmr:Style HAlign=2 VAlign=2 WrapText=0 Orient=1 Shade=1 Indent=0 Locked=1 Hidden=0 Fore=0:0:0 Back=FFF:FFF:FFF PatternColor=:: Format=#,##0.0!-- that's my desired value-- gmr:Font Unit=10 Bold=0 Italic=0 Underline=0 StrikeThrough=0Arial/gmr:Font gmr:StyleBorder gmr:Top Style=0 / gmr:Bottom Style=0/ gmr:Left Style=0 / gmr:Right Style=0/ gmr:Diagonal Style=0/ gmr:Rev-Diagonal Style=0/ /gmr:StyleBorder /gmr:Style /gmr:StyleRegion /gmr:Styles I now that I have to format the ValueType of the cell content: gmr:Cell Col=0 Row=0 ValueType=40!-- 40 = for numeric values -- gmr:Content xsl:value-of select=xy/ /gmr:Content /gmr:Cell But the format in the excel spredsheet is not the same as the format I defined. If I delete the Attribute ValueType=40 I receive my main aim but without any content. Do someone know how I get the style format and the content into the cell of the excel spredsheet? Thank you in advance gregori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon on Orion2
1. I am not able to get cocoon2.1dev running on Orion2 I was getting: 500 Internal Server Error java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Structure at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:207) at com.evermind[Orion/2.0 (build 11018)]._iz.findClass(.:19) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:409) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:315) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:555) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:329) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1310) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:505) at com.evermind[Orion/2.0 (build 11018)]._ay._lce(.:1672) at com.evermind[Orion/2.0 (build 11018)]._ay._bsd(.:3976) at com.evermind[Orion/2.0 (build 11018)]._ay._lde(.:2502) at com.evermind[Orion/2.0 (build 11018)]._ay._nic(.:2219) at com.evermind[Orion/2.0 (build 11018)]._ax._lqc(.:449) at com.evermind[Orion/2.0 (build 11018)]._ax._tvb(.:189) at com.evermind[Orion/2.0 (build 11018)]._bf.run(.:62) 2. cocoon2.0.4 on Orion2 seem to work okay, except I was not able to get a successful jsp which maybe due to the way sitemap is laid out in respect to how orion2 have their directory structure. What I meant by this is I have to create this directory structure in orion: applications/ | cocoon/ |__ META-INF/ ||_ application.xml | |__ cocoon/ | |__ META-INF/ | |__ WEB-INF/ | |_ sitemap.xmap the main one and the rest of cocoon.war expanded Looking at the sitemap.log I am getting this error: 32 DEBUG (2003-04-02) 22:37.58:991 [sitemap.reader.jsp] (/cocoon/samples/jsp/welcome.htm) ApplicationServerThread/JSPReader: JSPReader executing JSP:/s amples/jsp/welcome.jsp 33 DEBUG (2003-04-02) 22:37.59:010 [sitemap.reader.jsp] (/cocoon/samples/jsp/welcome.htm) ApplicationServerThread/JSPReader: Exception in JSPReader.generate() 34 java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet 35 at com.evermind._as.findClass(.:417) 36 at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 37 at java.lang.ClassLoader.loadClass(ClassLoader.java:262) This seem to indicate the orion's jsp engine is not compatible with jasper because of dependencies on Tomcat as per Konstantin's comment on another jsp issue. And with the above directory layout, the main sitemap.xmap doesnt seem to work right on some case for example this portion on the standard 2.0.4 stock samples: 884map:match pattern=welcome 885 map:generate src=docs/samples/samples.xml/ instead of generating the samples.xml it displays the cocoon/welcome/ directory contents instead. By adding a / to the pattern to make it pattern=welcome/ it does display the samples.xml content but when clicking to any of the href in the contents IT IS TOTALLY out of whacked in terms of the path and there all I get is resource not found. Anyway to solve these? Thanks in advance. __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: allowing users to upload pdf files in a web dav directory
Ok, thanks a lot, i will have a look at cocoon wiki ! Geoff Howard a écrit : I see. The server itself has access to a webdav folder on a third machine. As far as I know, there will not be a way to automatically handle this because cocoon's uploads are using java.io.File to automatically save files and I don't think this will work saving to a webdav folder, which as I understand it is not a folder at all, but a pointer to a url using the http protocol. If your particular server and webdav implementation happen to support it though you'll be in luck but it would be as easy as specifying whatever file path in web.xml you use for the local webdav folder on the server. If that doesn't work as I suspect, you'll need to write an action to get the FilePart out of the request, call getInputStream and send that input stream over http to the webdav location. See: http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadWithAction and http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithCocoon for more information on the process up to and including getting the input stream. You may also get info from WebServiceProxyGenerator and/or HTTPProxyGenerator Beyond that though, I'll not be much help. You may want to repost a new question focused on how to send input stream to a webdav repository on another server from within an action. Geoff Howard To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [XSP] expr not for int?
the xsp:logic tag should be between the page tag. Lionel At 11:21 02/04/2003 +0200, you wrote: Hello, the following XSP causes an LanguageException: ?xml version=1.0 ? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:logic int value = 1; value = value + 1; /xsp:logic page titlePageTitle/title content 1 + 1 = xsp:exprvalue/xsp:expr /content /page /xsp:page The exception says: org.apache.cocoon.components.language.LanguageException: Error compiling xsptest_xsp: Line 69, column 22: identifier expected Line 69, column 16: class value not found in class org.apache.cocoon.www.xsptest_xsp Line 0, column 0: 2 errors After changing the type from int to String, the XSP works: ?xml version=1.0 ? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:logic String value = 1; value = 2; /xsp:logic page titlePageTitle/title content 1 + 1 = xsp:exprvalue/xsp:expr /content /page /xsp:page Why? Doesn't xsp:expr automatically convert int to String? Thank you! Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: warning message in core.log
On Thu, Apr 03, 2003 at 02:31:32AM +0300, Stavros Kounis wrote: hi i get this warning message in my core.log in every hit is something i have to worry about? message: WARN(2003-04-03) 02:21.59:452 [core.manager] (/xml/forestland.gr/themes/images/progs/11/thumbnails/3.jpg) Thread-62/ExcaliburComponentSelector: Looking up component on an uninitialized ComponentLocator with hint Do you have any entries in map:components that lack a 'default' attribute, or have it set to ? --Jeff [/home/vhost/forestland.gr/conf/sitemap.xmap] stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tunning Cocoon, Jetty/Tomcat to increase performances ?
Hello, Anyone know any Web site where i can find informations to tune cocoon to increase significantly performances. Same question for Jetty and Tomcat ?? Thanks a lot ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]