Order of Processing inside CForms
Hi, I just ran into a small problem here. Even if I was able to create a workaround, I would suggest a fix. I created my CForm/JavaFlow application to work stateless, without continuations. It is here where I ran into a problem when using unions. It seems the process method doesnt deal with the form-content in a specific order. When using unions with a state widget, it is important to set this first. In my case the union was processed before the state widget. Causing the union not to parse the parameters of my non-default union group. I managed to get everything working, by manuals setting the state-widgets value manually before calling the process method of the form Here the code: FormInstance form = new FormInstance(forms/registration-def.xml); Form model = (Form) form.getModel(); FormContext formContext = new FormContext(getRequest(), Locale.getDefault()); // Manually set this, otherwise process won't fill the // union fields correctly. // START HACK String rateType = getRequest().getParameter(rate-type); model.lookupWidget(rate-type).setValue(rateType); // END HACK model.process(formContext); if (!model.validate()) { // Send the form again with the error messages } else { // Do the post form processing } By evaluating state-fields first, this would not be needed. As everything is working for me now, this is no urgent case. I just thought, that if someone puts his hand on the code, maybe he could fix this while he is at it ;-) Chris [ C h r i s t o f e r D u t z ] C-Ware IT-Service Inhaber Dipl. Inf. Christofer Dutz Karlstraße. 104, 64285 Darmstadt fon: 0 61 51 / 27315 - 61 fax: 0 61 51 / 27315 - 64 mobil: 0171 / 7 444 2 33 email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.c-ware.de/ http://www.c-ware.de FA Darmstadt: 07 813 60581
Guide to JavaFlow
Hi, since I wanted to use JavaFlow and it seemed to be impossible to build from scratch As far as I understood the problem. Apache cleans up untouched blocks after 30 days of inactivity. Unfortunately almost all apache-commons blocks were cleaned (Maybe I should apply this strategy to the pile of untouched Todos on my desk here). So you have to build the missing blocks on your own really unfortunately you cant just check them out and mvn install them, since this wont work. Here the way I finally did it: 1. checkout the following projects: http://svn.apache.org/repos/asf/commons/sandbox/javaflow/trunk http://svn.apache.org/repos/asf/commons/proper/jci/trunk 2. There are errors in the Tests, that will cause both to fail (in my case). The skip Tests-parameter doesnt work, so I commented out some tests (Ok I know this is bad) a. In commons-jci-core\core\src\test\java\org\apache\commons\jci\compilers\Abstrac tCompilerTestCase.java I commented out all the tests, since all failed for the javac compiler. b. In commons-jci-core\fam\src\test\java\org\apache\commons\jci\monitor\Filesystem AlterationMonitorTestCase.java I commented out the testDeleteFileDetection method. 3. With mvn install in commons-jci-core I was now able to build and install jci-core into my local maven repository. 4. Now I have to modify commons-javaflow\pom.xml since jci-core is no longer 1.0-SNAPSHOT but 1.1-SNAPSHOT 5. With mvn install in commons-javaflow I was now able to compile and install commons-javaflow 6. Fortunately I didnt have to change anything in cocoon and a mvn install inside the javaflow block directory, installed javaflow. 7. After this I was able to build my first Cocoon 2.2 block with JavaFlow as dependency Well I guess Ill have to check if everything works and if the failed Tests have any unpleasant effect but I guess only time will tell. Hope this helps anyone Chris [ C h r i s t o f e r D u t z ] C-Ware IT-Service Inhaber Dipl. Inf. Christofer Dutz Karlstraße. 104, 64285 Darmstadt fon: 0 61 51 / 27315 - 61 fax: 0 61 51 / 27315 - 64 mobil: 0171 / 7 444 2 33 email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.c-ware.de/ http://www.c-ware.de FA Darmstadt: 07 813 60581
JavaFlow in Cocoon 2.2
Hi, I am currently trying to get JavaFlow up and running in Cocoon 2.2 unfortunately it seems to be impossible for me to get that block. All I get is: [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.cocoon:cocoon-javaflow-impl:jar:1.0.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-javaflow-impl -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-javaflow-impl -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.mycompany:myBlock1:jar:1.0.0 2) org.apache.cocoon:cocoon-javaflow-impl:jar:1.0.0 -- Well I thought this was an ordinary part of cocoon 2.2 when having a look at the c2.2 trunk I can see it there. What maven-magic spell gets me JavaFlow, or do I have to kill some nasty bug-deamons to get that upgrade first? I have to admit that I am extremely familiar with C2.1 but feel like starting from the scratch with c2.2 so any help is appreciated. Chris [ C h r i s t o f e r D u t z ] C-Ware IT-Service Inhaber Dipl. Inf. Christofer Dutz Karlstraße. 104, 64285 Darmstadt fon: 0 61 51 / 27315 - 61 fax: 0 61 51 / 27315 - 64 mobil: 0171 / 7 444 2 33 email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.c-ware.de/ http://www.c-ware.de FA Darmstadt: 07 813 60581
Is there a tool for reading cocoon-ehcache-1.data
I'm using Cocoon 2.1.9. I suspect something is wrong with the content of cocoon-ehcache-1.data Is there a tool i can use to read the cocoon-ehcache-1.data? Thanks in advance -- View this message in context: http://www.nabble.com/Is-there-a-tool-for-reading-cocoon-ehcache-1.data-tp18499069p18499069.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1.10 Application Freezing
Hi, I am sort of going to get a heart attack in the next hours, if I cant resolve this quickly. We recently deployed a new Version of a intranet-application of a large logistic company here in Germany. It is completely written in cocoon and performs extraordinary nicely. Until at one point the System starts thrashing. CPU Usage climbs from 12% to 80% and no request are served anymore. Here a little more details on the Setup: - Windows 2003 Server - 4 GB Ram 1,5 GB reserved for the appserver - Bea Weblogic 9.2 - JRockit 1.5 VM - MySQL 5.1 DB Backend During normal operation a thread dump is about 30k big during thrashing this increases to 1,5MB. Yesterday we had similar Problems which were unfortunately related to too much logging (100 Threads blocked because they were locked from the Cocoon Log system). After removing a lot of the Log Output the system performed nicely even under heavier load. Until the whole thing blew up again. This time the Thread Dump showed a lot of Threads blocked at: [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' id=35 idx=0x80 tid=5092 prio=5 alive, in native, blocked, daemon -- Blocked trying to get lock: java/lang/[EMAIL PROTECTED] at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method) at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1630)[optimized] at jrockit/vm/Locks.lockFat(Locks.java:1731)[optimized] at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1277)[optimized] at org/apache/avalon/excalibur/pool/InstrumentedResourceLimitingPool.put(Instru mentedResourceLimitingPool.java:411)[inlined] at org/apache/avalon/excalibur/component/PoolableComponentHandler.doPut(Poolabl eComponentHandler.java:212)[optimized] at org/apache/avalon/excalibur/component/ComponentHandler.put(ComponentHandler. java:425)[inlined] at org/apache/avalon/excalibur/component/ExcaliburComponentSelector.release(Exc aliburComponentSelector.java:307)[inlined] at org/apache/cocoon/components/ExtendedComponentSelector.release(ExtendedCompo nentSelector.java:301)[optimized] at org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.recycle(Abs tractProcessingPipeline.java:743)[optimized] at org/apache/avalon/excalibur/pool/InstrumentedResourceLimitingPool.put(Instru mentedResourceLimitingPool.java:407)[inlined] at org/apache/avalon/excalibur/component/PoolableComponentHandler.doPut(Poolabl eComponentHandler.java:212)[optimized] at org/apache/avalon/excalibur/component/ComponentHandler.put(ComponentHandler. java:425)[inlined] at org/apache/avalon/excalibur/component/ExcaliburComponentSelector.release(Exc aliburComponentSelector.java:307)[inlined] at org/apache/cocoon/components/ExtendedComponentSelector.release(ExtendedCompo nentSelector.java:301)[optimized] at org/apache/cocoon/components/treeprocessor/InvokeContext.dispose(InvokeConte xt.java:283) at org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.process(Con creteTreeProcessor.java:179)[inlined] at org/apache/cocoon/components/treeprocessor/TreeProcessor.process(TreeProcess or.java:253)[inlined] at org/apache/cocoon/components/treeprocessor/sitemap/MountNode.invoke(MountNod e.java:118)[optimized] at org/apache/cocoon/components/treeprocessor/AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:47)[inlined] at org/apache/cocoon/components/treeprocessor/sitemap/MatchNode.invoke(MatchNod e.java:108)[optimized] at org/apache/cocoon/components/treeprocessor/AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:69)[inlined] at org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.invoke(Pipel ineNode.java:143)[optimized] at org/apache/cocoon/components/treeprocessor/AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:69)[inlined] at org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNode.invoke(Pipe linesNode.java:93)[optimized] at org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.process(Con creteTreeProcessor.java:235)[optimized] at org/apache/cocoon/components/treeprocessor/ConcreteTreeProcessor.process(Con creteTreeProcessor.java:177)[inlined] at org/apache/cocoon/components/treeprocessor/TreeProcessor.process(TreeProcess or.java:253)[inlined] at org/apache/cocoon/components/treeprocessor/sitemap/MountNode.invoke(MountNod e.java:118)[optimized] at org/apache/cocoon/components/treeprocessor/AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:47)[inlined] at org/apache/cocoon/components/treeprocessor/sitemap/ActTypeNode.invoke(ActTyp eNode.java:139)[optimized] at org/apache/cocoon/components/treeprocessor/AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:47)[inlined] at org/apache/cocoon/components
Re: [2.1] schedule some actions
You can use Cocoon Cron Block: see this link for examples and doc: http://cocoon.zones.apache.org/demos/release/samples/blocks/cron/samples Bye - Original Message Follows - From: nanomonk [EMAIL PROTECTED] To: users@cocoon.apache.org Subject: [2.1] schedule some actions Date: Tue, 1 Apr 2008 03:31:18 -0700 (PDT) hmm.. Can I to schedule some actions? I need something like a thread that always works and do something at custom time. I just can't understand how to start\stop it with cocoon. I don't know, maybe I should to use servlet, but how to start own servlets in cocoon?:) maybe there is exist true-way?;) -- View this message in context: http://www.nabble.com/-2.1--schedule-some-actions-tp16417868p16417868.html Sent from the Cocoon - Users mailing list archive at Nabble.com. -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This Email Was brought to you by WebMail A Netwin Web Based EMail Client http://netwinsite.com/webmail/tag.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [2.1] schedule some actions
You can use Cocoon Cron Block: see this for an example and doc: http://cocoon.zones.apache.org/demos/release/samples/blocks/cron/samples Bye - Original Message Follows - From: nanomonk [EMAIL PROTECTED] To: users@cocoon.apache.org Subject: [2.1] schedule some actions Date: Tue, 1 Apr 2008 03:31:18 -0700 (PDT) hmm.. Can I to schedule some actions? I need something like a thread that always works and do something at custom time. I just can't understand how to start\stop it with cocoon. I don't know, maybe I should to use servlet, but how to start own servlets in cocoon?:) maybe there is exist true-way?;) -- View this message in context: http://www.nabble.com/-2.1--schedule-some-actions-tp16417868p16417868.html Sent from the Cocoon - Users mailing list archive at Nabble.com. -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This Email Was brought to you by WebMail A Netwin Web Based EMail Client http://netwinsite.com/webmail/tag.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Transform the output of the ValidationReportTransformers in XSL
Yeah ... that's exactly what I meant :) Well the code is pretty easy to change, since I fixed my problem be removing it completely ;) Well I never worked with default-namespaces up till then (and I use Xml and Xsl quite intensively for the last 8 Years). The only question is, what the prefix should be? Would be easy to adapt (take about 5 Minutes to wrap-up a patch). Chris PS: I tracked down my threading problem to Outlook 2007 in combination with an exchange-server that fetches it's mail using some sort of pop-fetcher (giving every mail new IDs). I'll remove myself from this list with my company account and register with my private one ... maybe that helps. And if it doesn't, I'll simply create a new account and use a different Mail-Client just for Mailing-Lists. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bertrand Delacretaz Gesendet: Dienstag, 27. März 2007 18:45 An: users@cocoon.apache.org Betreff: Re: Transform the output of the ValidationReportTransformers in XSL On 3/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ...Maybe it would be good to adjust the output of the transformer to include a real prefix, since all others Cocoon components I have come in contact with do it that way? Or is it because I always include a prefix to my input?... Ah, see what you mean now, it's the setting of a default namespace that bothers you, instead of a prefixed namespace. IMHO it doesn't make much of a difference, only (and it's probably what got you) it's easier to miss than a prefixed one. I don't know how to change it in this particular case, haven't looked at the code. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: E-mail threading
References: Acdv0r0CqyE5TEy0TSuKklRElz0RCg== Well I hope this makes your email-Programs notice which thread I am posting to. The problem is that our company uses an Exchange server. I know I could access it using POP or IMAP, but I would throw overboard the other integration-features we are using quite intensively. Having a look at the general problem, it would be much easier to make the mailing-list program deal with this problem. It could simply check which headers are set and set the corresponding missing header. No big deal to that. Chris -Ursprüngliche Nachricht- Von: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. März 2007 20:16 An: users@cocoon.apache.org Betreff: Re: E-mail threading Grzegorz Kossakowski napisał(a): As side note: Shouldn't we put big, fat warning somewhere that e-mails not following basic Internet standards are likely to frustration off and can be ignored in the end by the rest of subscribers? Arghh, I meant: Shouldn't we put big, fat warning somewhere that e-mails not following basic Internet standards are likely to *trigger* frustration off and can be ignored in the end by the rest of subscribers? -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Transform the output of the ValidationReportTransformers in XSL
References: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] thread-index: [EMAIL PROTECTED] Any Other? ;) Hi Bertrand, Well I have to admit, this is the first time I have come in contact with this type of namespace-assignment. I am used to the way of assigning a prefix to a namespace. Well ... I guess you never stop learning ;) And I certainly revert my opinion about this being a hack ... but not the ugly ... I'll stick to that ;) Maybe it would be good to adjust the output of the transformer to include a real prefix, since all others Cocoon components I have come in contact with do it that way? Or is it because I always include a prefix to my input? Chris -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bertrand Delacretaz Gesendet: Montag, 26. März 2007 18:30 An: users@cocoon.apache.org Betreff: Re: Transform the output of the ValidationReportTransformers in XSL On 3/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ...No offence, but this looks really ugly ... what is the intention of generating output that requires that type of hack?... No offense, but calling the use of namespaces in XML a hack is slightly..well...funny ;-) -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Open pipeline in new window
Hi Gary, Well I interpret your question in that way, that you would like to decide server-side, if a popup is created or not (Since you mention the client-side way to do this). We had a similar problem in one of our applications. We solved it this way: 1. Add a hidden field to the base-page. 2. Add a small JavaScript that checks, if the field contains a value, if it does it opens a popup with the hidden fields content as url. 3. Let the JavaScript be executed onLoad of the html page. 4. In the server-side logic, you can now decide, if a popup is to be opened or not, just by setting the value of the hidden field. You could even make this work with several pop-ups just by making the fields content a little more complex Hope this helps, Chris Von: Gary Larsen [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 23. März 2007 23:31 An: users@cocoon.apache.org Betreff: Open pipeline in new window HI, I there some way to programatically add the equivilent to a target=_blank into a pipeline so the the result is serialized to a new browser window? Thanks, gary
JavaFlow and try blocks inside try-catch-finally blocks
Hi, This weekend I was working on learning how to use JavaFlow instead of Flowscript (I like to debug in Eclipse). I ran into some really strange Problems when migrating my database code. As soon as I added the try-catch-wrapped close statements into the finally block of an SQL query-code. I get really cryptic error messages from a weird apache engine ;) I added a workaround, that isn't really a workaround (didn't want to catch Throwable). Any Ideas? One idea I had, was to add a second class and only to use the JavaFlow class as entry-point and to use a utility class for all the complicated fun-stuff. Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf, München winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Transform the output of the ValidationReportTransformers in XSL
Hi, I am having a problem that is totally driving me nuts (Cocoon 2.1.10): I am using the ValidationReportTransformer to create a report why a validation of an xml-document failed. I nicely outputs a report with a nice little xmlns attribute ... this is driving me nuts: ?xml version=1.0 encoding=ISO-8859-1? report xmlns=http://apache.org/cocoon/validation/1.0; error line=11cvc-minLength-valid: Value 'Dutz' with length = '4' is not facet-valid with respect to minLength '6' for type '#AnonType_namekontaktladeraumangebot'./error error line=11cvc-type.3.1.3: The value 'Dutz' of element 'name' is not valid./error error line=24cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_plzfreiladeraumangebot'./error error line=24cvc-type.3.1.3: The value '' of element 'plz' is not valid./error error line=25cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_ortfreiladeraumangebot'./error error line=25cvc-type.3.1.3: The value '' of element 'ort' is not valid./error error line=26cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_landfreiladeraumangebot'./error error line=26cvc-type.3.1.3: The value '' of element 'land' is not valid./error error line=36cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'./error error line=36cvc-type.3.1.3: The value '' of element 'fahrzeugtyp' is not valid./error /report As soon as this xmlns-attribute is there no XSL transformation seems to work. For example: If I simply want to replace the root element report with a test element, this xsl should do the job: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns=http://apache.org/cocoon/validation/1.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=2.0 xsl:template match=/report test xsl:copy-of select=error/ /test /xsl:template /xsl:stylesheet Unfortunetly the /report doesn't match and the pure text is copied to the output. If I change it to ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns=http://apache.org/cocoon/validation/1.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=2.0 xsl:template match=/ test xsl:copy-of select=error/ /test /xsl:template /xsl:stylesheet At least the test is copied. The only transformation that works is: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns=http://apache.org/cocoon/validation/1.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=2.0 xsl:template match=/* test xsl:copy-of select=*/ /test /xsl:template /xsl:stylesheet Could someone tell me why this is that way and how I can convince the validation-report transformer to stop adding the namespace stuff to the output? Well at the moment I got everything to work, by modifying the Transformers code, but that can't really be the optimal solution. Regards, Christofer Dutz [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf, München winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Transform the output of the ValidationReportTransformers in XSL
Hi Reinhard, No offence, but this looks really ugly ... what is the intention of generating output that requires that type of hack? Regards, Chris -Ursprüngliche Nachricht- Von: Reinhard Poetz [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. März 2007 17:31 An: users@cocoon.apache.org Betreff: Re: Transform the output of the ValidationReportTransformers in XSL [EMAIL PROTECTED] wrote: [snip] Could someone tell me why this is that way I think that the match rules apply to empty namespaces and not the default namespace. and how I can convince the validation-report transformer to stop adding the namespace stuff to the output? Well at the moment I got everything to work, by modifying the Transformers code, but that can't really be the optimal solution. this might help, though haven't tested it: xsl:stylesheet xmlns:v=http://apache.org/cocoon/validation/1.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=2.0 xsl:template match=/v:report test xsl:copy-of select=v:error/ /test /xsl:template /xsl:stylesheet -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc - 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]
AW: Question on Ajax and continuations
Hi Gary, Well I think your problem is because of this: When you call sendPageAndWait or showForm cocoon generates a continuation. When doing an on-change action no new Id is generated (al least I haven't seen any Server to Client communication indicating this) ... as soon as you press your browsers back button you get a continuation which lies more in the past than you intended to ... unfortunately I have no solution for your problem. Maybe just knowing why it doesn't work makes you feel better ;) Regards, Christofer Von: Gary Larsen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. März 2007 15:46 An: users@cocoon.apache.org Betreff: Question on Ajax and continuations I just have a question on Ajax processing to help me understand what's happening. I'm using 2.1.9. Here's the scenario: - an on-change listener set values on a form - form is submitted - back button on browser - the values are no longer set When setting values directly on the form the values are still set when returning from the submit. When Ajax is turned off the values also remain set. I don't consider this a real problem considering the benefits of Ajax. Is this normal behavior or could I be doing something wrong? Thanks, gary
AW: Deploying Cocoon 2.1.10 Application in BEA Weblogic 9.2 Server
Hi, after having a more detailed look at the deployment of WebLogic applications I found out that my problems weren't related to Rhino, but to logging. The reason is the same though. I remember having similar problems with a JBoss project some time ago. The solution was telling JBoss to separate the classpath of the server from that of the application. This was the solution here too. By adding the following a file called weblogic.xml to the WEB-INF directory all problems were solved and Cocoon works like a charm now J !DOCTYPE weblogic-web-app PUBLIC-//BEA Systems, Inc.//DTD Web Application 8.1//ENhttp://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd; weblogic-web-app container-descriptor prefer-web-inf-classestrue/prefer-web-inf-classes /container-descriptor /weblogic-web-app Regards, Christofer Dutz Von: Gabriele Columbro [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. März 2007 13:01 An: users@cocoon.apache.org Betreff: Re: Deploying Cocoon 2.1.10 Application in BEA Weblogic 9.2 Server Hi Christofer, the problem of deploying Cocoon under Weblogic arises when using Flowscript and Mozilla Rhino classes, because Weblogic embeds in its weblogic.jar rhino classes, thus not allowing override of such classes with Cocoon modified version that you find in WEB-INF/lib folder (not even using the prefer-web-inf-classes element in the WEB-INF/weblogic.xml file). The solution I adopted, following suggestions on the list, is to pull down both Cocoon and Rhino sources in order to change org.mozilla package name to something different (the de facto standard for this seems to be org.nozilla ;-) ) so that it does not clashes with weblogic shipped rhino classes. For a more accurate description of the problem please refer at [1] while you can find cocoon+rhino sources here [2]. Please double check that the current rhino version is still the one I pointed you to, as my work was referred to Cocoon 2.1.9. Follows a script that once ran with the cocoon (or the rhino) folder as first argument will perform the replacement: #!/bin/bash # findNReplace.sh # Find and replace useful to pull down Cocoon and Rhino sources to work on weblogic # NB: must be applied to both cocoon and rhino sources for proper usage # Author: Cocoon user list ;-) # # Parameters: # $1 = directory in which cocoon/rhino installation can be found # DIR=$1 cd $DIR # Using sed replaces all occurences of org.mozilla -- org.nozilla backing up old versions in filename.moz-old for lsFile in `find . -type f -exec grep -q org.mozilla {} \; -print` ; do echo Editing $lsFile mv $lsFile $lsFile.moz-old sed -r 's/org(.)mozilla/org\1nozilla/g' $lsFile.moz-old $lsFile diff $lsFile.moz-old $lsFile done # Renames directories in order to make packages match for lsDir in `find . -type d -name mozilla` ; do echo Renaming $lsDir `dirname $lsDir`/nozilla mv $lsDir `dirname $lsDir`/nozilla done ~ HTH, Gab [1] http://www.planetcocoon.com/node/2443?PHPSESSID=7759547ab7c39b11fa439097c062da65 [2]http://svn.cocoondev.org/repos/rhino+cont/trunk/rhino1_5R4pre On 3/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am currently working on deploying a cocoon application in WLS 9.2 unfortunately I am quite new to WLS and am having big trouble getting the application to run. Is there anything I have to keep in mind when deploying on WLS 9.2? The application worked like a charm on tomcat for quite some time, but we are migrating because of increased application load. Regards, Christofer Dutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Eng. Gabriele Columbro Consultant at Sourcesense Italy - work: [EMAIL PROTECTED] private: [EMAIL PROTECTED] mobile: (0039)3201612846 yahoo: g.columbro gtalk: [EMAIL PROTECTED] AIM: gabrielecolumbro - Keyboard not found. Press F1 to continue -
Deploying Cocoon 2.1.10 Application in BEA Weblogic 9.2 Server
Hi, I am currently working on deploying a cocoon application in WLS 9.2 unfortunately I am quite new to WLS and am having big trouble getting the application to run. Is there anything I have to keep in mind when deploying on WLS 9.2? The application worked like a charm on tomcat for quite some time, but we are migrating because of increased application load. Regards, Christofer Dutz winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upload widget hangs a form in IE6
Hi Alberto I remember similar problem in 2.1.9. I do not have the solution, but... when in the form template : ft:form-template ... enctype=multipart/form-data .. and the upload widget is disabled fd:upload id=upload state=disabled required=false I found similar problem, try to remove state=disabled. Bye, Alessandro Alberto Brosich ha scritto: Is there a known issue with upload widget and internet explorer in cocoon 2.1.10? I have a multipage form (2 pages) with an upload widget in page 2. model definition: fd:upload id=upload state=disabled required=false /fd:upload template definition: ft:widget id=upload/ When I try to submit the form a dialog shows the message No response data found. In cocoon 2.1.9 works all fine and in firefox too (2.1.9 and 2.1.10). The upload sample in cform cocoon samples works fine too. Any suggest? Thanks in advance Alberto - 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]
AW: Cocoon and XML Database
Hi Sébastien Have a look at the eXist project. This is what I am using. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Sébastien Geindre [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 14. Dezember 2006 11:31 An: cocoon-users Betreff: Cocoon and XML Database Hi all, I'd like to use an XML Database to store technical data. It should be an free and open source database. Do you know which DBs i could be interested in ? Is there any integration with cocoon already made ? like cocoon and XIndice Xindice community seems to be 'on vacation', is the product valuable ? Do you know graphical interface with these DB ? Thanks for your answers. Sébastien - 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]
AW: inner functions and continuations...
Hmmm ... if I have a look at my code here I think that could be it. The functions I am using are all defined inside a while-loop ... so every time they are executed, the js-interpreter seems to redefine them. Maybe that is why I don't have to assign the functions to a variable. Thanks for that tip. I will add that to my personal wiki, so hopefully I will not run into these problems ;) Regards, Chris -Ursprüngliche Nachricht- Von: Geert Josten [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Oktober 2006 20:31 An: users@cocoon.apache.org Betreff: RE: inner functions and continuations... I am not sure, but I somehow recall that the execution thread is not literally saved, but that the variables in the context are saved and restored and that the function is re-executed, but with a special flag that makes it jump to the position where the previous request left off.. So I think saving the function in a (local) variable is sensible. Kind regards, Geert Drs. G.P.H. Josten Consultant Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. Van: Jörn Nettingsmeier [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 14 oktober 2006 15:22 Aan: users@cocoon.apache.org Onderwerp: inner functions and continuations... hi everyone! i'm trying to add local functions to a flowscript in order to make it more maintainable. the code looks like this: function executeUsecase() { var someLocalVar; function foo() { ... } foo(); sendPageAndWait(/some/pipeline); foo(); } the second call to foo results in an error (foo is undefined). so it appears that those functions are not stored with the continuation. is this expected behaviour? so i changed the function declaration to var foo = function() { ... } it seems to work - the function is still available after the continuation. is this the correct approach? for the record, i'm using cocoon 2.1 (svn HEAD) with sun java 1.5 on linux/x86_64. regards, jörn - 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]
AW: cocoon best editor ?
Hi Ko ;) Well I usually setup my projects as Tomcat Projects (An option I get from the sysdeo Tomcat Plugin). Here the plugin configures my server.xml or context-xml to mount my external directory in Tomcat and I can really easily debug my Java components. Since Oxygen nicely integrates with Eclipse, it's easy to edit everything. Unfortunately it is hard to debug individual Steps of the pipelines, so I usually insert an map:serialize type=xml/ in the desired position (Was a good day I found out that a serialize doesn't have to be at the end of a pipeline definition) and save away the result using the browser Save As... function and debug the transformation using oXygens debugger. I use no code assist for my sitemaps. When using Aptana it offers my syntax highlighting in my flowscripts, unfortunately it doesn't recognize any flowscripts mounted in parallel. So don't expect it to know your utility-functions and variables in your utils.js ;) Hope this helps Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Kaj Kandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Oktober 2006 00:45 An: users@cocoon.apache.org Betreff: Re: cocoon best editor ? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, just out of curiosity. Anybody out there using Eclipse WTP (Web Tools Project)? It offers HTML, and XML support pretty well. Also, how do you set up your projects? How do you set up a Cocoon sitemap (+xslt) project? Do you edit directly in the web-server's webapp space? Has anybody used the WTP servers and deployment? Or do you use Export to get your stuff into the server for testing? I'm just looking for your best practices. Ko maurizio wrote: Greetings. I am wondering which is the most used/preferred editor for Cocoon developing. I do like ViM over anything else, but i was (unsuccessfully) looking for a nice eclipse Cocoon plugin (lepido seems dead). Is there anything good around ? -- Thanks, Maurizio How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com - -- [EMAIL PROTECTED] http://conficio.blogspot.com/ | We teach software one screencast at a time | http://www.conficio.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) iD8DBQFFNVqSRDUvrJRNjTARAoSNAJ9VwyJkSwNf9mW+N33xI6S5QH38sACfSVUr 2srJgDhcNJ3XByV8BCvEYY4= =Agqn -END PGP SIGNATURE- - 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]
AW: inner functions and continuations...
Hi Jörn, Even if this might not help you, we use local functions just the way you initially wanted to without any problems. Maybe it's a bug in the HEAD version? Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Jörn Nettingsmeier [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. Oktober 2006 00:01 An: users@cocoon.apache.org Betreff: inner functions and continuations... hi everyone! i'm trying to add local functions to a flowscript in order to make it more maintainable. the code looks like this: function executeUsecase() { var someLocalVar; function foo() { ... } foo(); sendPageAndWait(/some/pipeline); foo(); } the second call to foo results in an error (foo is undefined). so it appears that those functions are not stored with the continuation. is this expected behaviour? so i changed the function declaration to var foo = function() { ... } it seems to work - the function is still available after the continuation. is this the correct approach? for the record, i'm using cocoon 2.1 (svn HEAD) with sun java 1.5 on linux/x86_64. regards, jörn - 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]
AW: JSON
Hi Maurizio, How about simply using an XSLT? This is the way the suggestion-list does it. There is a file cocoon-forms-block.jar#org\apache\cocoon\forms\resourses\selection-list2json.xsl in the forms block. Just have a look at that. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Maurizio P. [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. Oktober 2006 00:01 An: users@cocoon.apache.org Betreff: JSON Greetings to all. I would like to do a 'simple' JSON communication between browser and server flowscript (without using all these nice dojo's widgets). I mean, is it possible for example to make a simple Array in flowscript and send it in JSON to javascript running into browser, that asked it? I can do it in PHP and i know it must be possible also in Cocoon (dojo does much more!!), but still dunno how to do it. Is there an easy way or am i obliged to look for the ajax-block's java files, try to understand what the hell it does, cutting down all unwanted stuff, recompile and deploy as new generator? Let u know i am not an expert of Cocoon. Thanx 2 all who will help -- Regards, Maurizio - 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]
AW: Loading a configuration file from a jar
Hi Omar Try using the classloader to load your properties file from the classpath (if you drop it in the classes directory or another jar-file) try { is = Configuration.class.getClassLoader().getResourceAsStream(config.xml); } catch (Exception e) { } The other way would be to use a relative path. As I recall all relative paths are relative to the WEB-INF directory of your webapp. (I hope I'm correct with this) I have used both ways successfully. I wouln't recommend using absolute paths and load resources entirely outside your application since some Servlet containers might restrict access to those files and maybe the user, the servlet engine is running under has no access to any files outside. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Omar Adobati [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Oktober 2006 15:45 An: users@cocoon.apache.org Betreff: Loading a configuration file from a jar Good Morning, I have developed a jar file and I need to load some configuration parameters from a .properties file placed outside of the jar itself. The jar file is under $cocoon/WEB-INF/lib directory and the .properties file too. Now, the problem is that my own class (that extends the java.util.Properties class) can't locate the properties file. Here is the code I'm actually using: public ConfigUtility(){ super(); File configFile = new File(/nptl.im.properties); try{ configURL = configFile.toURL(); }catch (Exception ex){ ex.printStackTrace(); } //do some other useful stuff } I'm running cocoon 2.1.18 with tomcat 5.5.x and JDK 1.5 Thanks for your help :) -- Omar Adobati - 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]
AW: Antw: AW: cocoon best editor ?
Hi Martin Thanks for that great tip :) Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Martin Geissler [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. Oktober 2006 16:30 An: users@cocoon.apache.org Betreff: Antw: AW: cocoon best editor ? Hello, have a look to http://wiki.apache.org/cocoon/DebuggingWithViews to debug individual Steps of the pipeline. Regards Martin [EMAIL PROTECTED] [EMAIL PROTECTED] Donnerstag, 19. Oktober 2006 16:02 Hi Ko ;) Well I usually setup my projects as Tomcat Projects (An option I get from the sysdeo Tomcat Plugin). Here the plugin configures my server.xml or context-xml to mount my external directory in Tomcat and I can really easily debug my Java components. Since Oxygen nicely integrates with Eclipse, it's easy to edit everything. Unfortunately it is hard to debug individual Steps of the pipelines, so I usually insert an map:serialize type=xml/ in the desired position (Was a good day I found out that a serialize doesn't have to be at the end of a pipeline definition) and save away the result using the browser Save As... function and debug the transformation using oXygens debugger. I use no code assist for my sitemaps. When using Aptana it offers my syntax highlighting in my flowscripts, unfortunately it doesn't recognize any flowscripts mounted in parallel. So don't expect it to know your utility-functions and variables in your utils.js ;) Hope this helps Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf -Ursprüngliche Nachricht- Von: Kaj Kandler [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Oktober 2006 00:45 An: users@cocoon.apache.org Betreff: Re: cocoon best editor ? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, just out of curiosity. Anybody out there using Eclipse WTP (Web Tools Project)? It offers HTML, and XML support pretty well. Also, how do you set up your projects? How do you set up a Cocoon sitemap (+xslt) project? Do you edit directly in the web-server's webapp space? Has anybody used the WTP servers and deployment? Or do you use Export to get your stuff into the server for testing? I'm just looking for your best practices. Ko maurizio wrote: Greetings. I am wondering which is the most used/preferred editor for Cocoon developing. I do like ViM over anything else, but i was (unsuccessfully) looking for a nice eclipse Cocoon plugin (lepido seems dead). Is there anything good around ? -- Thanks, Maurizio How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com - -- [EMAIL PROTECTED] http://conficio.blogspot.com/ | We teach software one screencast at a time | http://www.conficio.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) iD8DBQFFNVqSRDUvrJRNjTARAoSNAJ9VwyJkSwNf9mW+N33xI6S5QH38sACfSVUr 2srJgDhcNJ3XByV8BCvEYY4= =Agqn -END PGP SIGNATURE- - 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]
AW: Pipeline result in a flowscript?
Hi Florian, I created a utility flowscript function I have been using for the last year without problems. This executes a cocoon pipeline (or any other resource available) and returns a Dom with the result. So if you want anything other than Xml results, you will have to modify it. function loadDocument(uri) { // AE: cocoon:// var parser = null; var source = null; var resolver = null; try { parser = cocoon.getComponent(DOMParser.ROLE); resolver = cocoon.getComponent(SourceResolver.ROLE); source = resolver.resolveURI(uri); if (source.getClass().getName().equals(org.apache.cocoon.components.source.impl.SitemapSource) == false) { print(Warning: loadDocument received an incorrect URI:); print( + source.getClass().getName()); } var is = new InputSource(source.getInputStream()); is.setSystemId(source.getURI()); return parser.parseDocument(is); } finally { if (source != null) resolver.release(source); cocoon.releaseComponent(parser); cocoon.releaseComponent(resolver); } } Hope this helps. Regards, Chris -Ursprüngliche Nachricht- Von: Dev at weitling [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. Oktober 2006 18:01 An: Users at Cocoon Betreff: Pipeline result in a flowscript? Hi! What's the best way to get the result of a pipeline for further processing in a flowscript? Something like String s = cocoonmagic.getPipelineResult(mypipe); cocoon.processPipelineTo looks a little bit like overkill with its bean and stream parameters. Or: Effectively I just want to get one value from a JDBC connection. Just one lonely integer... Thx, Florian - 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]
AW: cocoon best editor ?
Hi Maurizio Well I can simply tell you what I use: Eclipse 3.2.1 with the following (partially commercial) plug-ins - Oxygen (For XML/XSL/XQuery editing/deguging/profiling) - Aptana (For HTML / _javascript_ editing) - Subclipse (Subversion Client) - Sysdeo Tomcat plug-in (For Debugging) - Ant (For buiding ;) ) Im pretty satisfied with this, even if a little more Tool-Support especially with CForms would be nice ;) Hope this helps, Chris Von: maurizio [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 4. Oktober 2006 20:46 An: users@cocoon.apache.org Betreff: cocoon best editor ? Greetings. I am wondering which is the most used/preferred editor for Cocoon developing. I do like ViM over anything else, but i was (unsuccessfully) looking for a nice eclipse Cocoon plugin (lepido seems dead). Is there anything good around ? -- Thanks, Maurizio How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
[CForms Dojo] no tag handler registered for type: dojo:cformsform when seting debugAtAllCosts param
Hi, I am currently working on perfectioning my onchange submit stuff for the suggestion-lists. Unfortunately as soon as I set djConfig.debugAtAllCosts = true; the suggestion-lists break with this strange error message: no tag handler registed for type: dojo:cformsform Without this option dojo loads all other js-files asynchronously and I cannot access them inside any java-script debugger. Any ideas why this could be? I dont know if this is important, but I am currently working on the CVS version I think this is 2.1.10. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
AW: Scheduler with name 'Cocoon' already exists.
I usually get that error, if one of the components in the cocoon.xconf fail to start. Then Cocoon seems to retry configuring everything and when coming to the scheduler it crashes, because it was already configured. Usually I could find more information in the cocoon.log Chris -Ursprüngliche Nachricht- Von: Kamal Bhatt [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. September 2006 02:01 An: users@cocoon.apache.org Betreff: Re: Scheduler with name 'Cocoon' already exists. George V. Prascharuk wrote: Hello everybody. Please, help me. I have a cocoon-2.1.7 under Tomcat 5.0.28. Make sure you don't have two versions of tomcat running. This sometimes happens when I don't shutdown tomcat. I try to use OpenJMS. Then i put the openjms-0.7.7-alpha-3.jar into the WEB-INF/lib after Cocoon (or Tomcat) restart i have an a error in initialization. Here this error. --- Initialization Problem Message: Scheduler with name 'Cocoon' already exists. Description: org.apache.avalon.framework.configuration.ConfigurationException: cannot create a quartz scheduler Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet cause org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists. request-uri /cocoon/ full exception chain stacktrace org.apache.avalon.framework.configuration.ConfigurationException: cannot create a quartz scheduler at org.apache.cocoon.components.cron.QuartzJobScheduler.initialize(QuartzJobScheduler.java:324) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:277) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1391) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:481) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Caused by: org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists
AW: Handling non XML structures in pipelines?
Hi Antony, As far as I know it is not possible to deal with non XML data in Pipelines. Since they are XML Pipelines and Sax events are passed from one pipeline element to the next, I cant see any way to do what you want. On the other Side I dont see the point of doing this anyway. You wouldnt be able to do any transformations. So I would recommend simply to build your own reader for your non Xml content. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf Von: Antony Grinyer [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 22. September 2006 14:46 An: users@cocoon.apache.org Betreff: Handling non XML structures in pipelines? Hi all, Our scenario is simple, we have a service that returns some strings in a comma delimited format and wed like to use that data in cocoon for various transformations, however is it possible to do something at the generator stage to convert this string into XML or does the source of the generator (e.g. file, stream) have to be in an XML format in the first place i.e. editing our service application to return XML is the only option? I guess what were asking is whether cocoon can handle non XML formatted data? We do not want our service to depend on the client as to what structure we return, such as XML. Many thanks in advance, Ant
AW: Handling non XML structures in pipelines?
Oh gee ... I think it's time fort he weekend. I must have totally misunderstood the original question ;) ... simply ignore my last post. Chris -Ursprüngliche Nachricht- Von: Jason Johnston [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 22. September 2006 15:16 An: users@cocoon.apache.org Betreff: Re: Handling non XML structures in pipelines? Antony Grinyer wrote: Hi all, Our scenario is simple, we have a service that returns some strings in a comma delimited format and we'd like to use that data in cocoon for various transformations, however is it possible to do something at the generator stage to convert this string into XML or does the source of the generator (e.g. file, stream) have to be in an XML format in the first place i.e. editing our service application to return XML is the only option? I guess what we're asking is whether cocoon can handle non XML formatted data? We do not want our service to depend on the client as to what structure we return, such as XML. Yes, a generator can generate its XML output (SAX events) from any source. There are already several generators shipped with Cocoon (see the org.apache.cocoon.generation package) which parse non-XML sources into XML events. In fact there's already a CSVGenerator which you could use or adapt to your needs. - 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]
Connection not closeing ater sending result of pipeline
Hi, I am currently working on integrating a secondary system to our Cocoon based application. For this we have a pipeline using a request in a multipart http request to do some processing and use a cocoon-pipeline for sending the result. Everything is working fine except for one thing. Even if Cocoon sends the response in far under one second, the connection is shut-down and an EOF is sent 20 seconds later. Is there a way to let cocoon not keep connection active after sending the request? It seems that keeping the connection alive is a good thing for serving browsers, but in our case the client is a simple socket-based application. Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
Re: [OT] Abuse of div and span
We must agree to differ - a pet peeve of mine is that people use HTML as a data structure language rather than as a page mark up language (cf TeX) :-) . HTML has absolutely nothing to do with data structuring [...] -1 (to follow Mark's notation :-) The problem is that while HTML undoubtedly has some structural information such as paras, headings, lists etc., these are about the only ones it has. Not to forget tables, when they are used to represent tabular data. (Of course, more often they are used for style purposes only.) Then there are also structural inline elements, like strong, em, cite, code, etc... It also mixes in pure style constructs such as italic (which tell you nothing about the structure and why they are italic). This is not true for modern HTML versions (HTML 4.0 strict, XHTML 1.0 strict, XHTML 1.1), which do not contain style constructs like italic or bold. And I guess Jason wouldn't suggest to use i or b? To be really useful we need to have extra structural tags in the HTML such as author, date, version, footnote, inline note, citation ... Of course, many of those things would be useful in some situations. But why should the lack of those elements prevent you using the structural elements which actually exist? I guess for most typical web pages, those existing structural are virtually sufficient to write good structural markup. [...] btw I did look at Firefox output with no style and it looked fine. I agree you could not see the headings (they looked like paras) but it certainly was not unreadable. Ok, that's good for you. But with no additional effort, you could make headings, lists, etc visible in this view. Such structural markup would also carry its meaning, if viewed in Lynx or on a mobile device without CSS capabilities. And it'd definitely increase accessibility. A good example of using structural markup, is implementing menus as nested lists of hyperlinks. With no additional CSS, or when viewed in Lynx, they simply appear as a textual list of items. But with a few lines of CSS and maybe two Java-Script statements you can make them appear as nice drop-down menus. (I used to have a link to a site where this is demonstrated, but it appears to be broken.) Sorry, for intervening in this off-topic discussion. But I do have an opinion on this one, and I feel compelled to share it. Regards, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSL transrormers with use-request-parameters and caching [was: sitemap chaining]
Hi Folks! I'm not too familiar with cocoon any more, since I haven't been using it for a while. (Still one of my favorite projects though!) I'm also not an expert on caching in cocoon, but I wonder if the following problem couldn't be overcome technically: Ard Schrijvers wrote: I am becoming a little evangelistic here about the use-request-parameterstrue/use-request-parameters in the components declaration, but never never never ever ever ever use use-request-parameterstrue/use-request-parameters: set it to FALSE !!! [...] If a crawler comes by with /foo/bar?tfwewq=21r123rwedewqf and the tfwewq=21r123rwedewqf is added by the crawler, and you use use-request-parameterstrue/use-request-parameters, you will end up with cache entries containing tfwewq=21r123rwedewqf So the problem here is, that all parameters in the request are used for caching. However, only those parameters used in the XSL stylesheet could possibly change the outcome of the transformation. As far as I know, these are exactly the parameters, which are declared as global parameters in the stylesheet. Even though I don't know which components play together when building and accessing caches, that should be limited to parameters really used in the stylesheet. I mean, the components responsible for caching have to check for changes of the stylesheet anyway. (Probably just by timestamp?) So anytime the stylesheet changed, they could have a look at it, and find out which parameters are actually relevant for caching. This might slow down the first use of a stylesheet quite a lot, but it should fix the above caching issues. I haven't looked at the details yet. But I think an implementation of the above shouldn't be too hard. Or am I missing something? Anyway, if you think it might be useful, I could investigate the topic further. (But I don't know how much time I can spend on that right now.) On the other hand, even today, one can use the use-request-parameters stuff for development. That's useful, because stylesheet parameters may change frequently while work is being done on them. However, for productive use I can only second what Ard said. At least for now. Regards, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CForms] Caching of suggestion-lists?
Hi, after sorting out tons and tons of problems, I finally managed to get my suggestion lists context-sensitive. Now if someone selects a country in one suggestion-list the zip-codes of the second suggestion list are filtered for that country. Everything works fine except one thing: If for example I set the country to D for Germany and enter a zip code 642 then correctly all German zip codes starting with 642 are shown. If I switch to E for Spain and start entering 642 then the German codes are shown again only when entering a value not used till now a new ajax suggestion-list reload is done (Had a tcp monitor in between so I could see that nothing is happening). How can I turn off this caching of suggestion-lists? (Yes the content is generated by a nonchaching pipeline just in case you wanted to ask this now ;) ) Regards, Chris [ c h r i s t o f e r d u t z ] IT-Berater univativ GmbH Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: [EMAIL PROTECTED] http://www.univativ.de Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
Re: XSL for nested sql result
I need some advice for writing a xsl for a nested sql result. the source file is rowset row idtest/id rowset row class_name 111/class_name rowset row class_name 11/class_name rowset row class_name 1/class_name rowset row class_name0/class_name /row /rowset /row /rowset /row /rowset /row /rowset /row /rowset I want the result as 0/1/11/111, Ok, Toby was faster than me, and actually I like his solution better. Nevertheless, here is a non-recursive solution to your problem. You can insert the following snippet somewhere in your stylesheet, where a node containing your outermost class_name element is the context node: xsl:for-each select=descendant::class_name xsl:sort select=position() order=descending/ xsl:value-of select=normalize-space(.)/ xsl:if test=position() != last() xsl:text//xsl:text /xsl:if /xsl:for-each If you want to be more typesafe, use descendant::rowset/row/class_name in the first select attribute instead. Regards, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User-Agent String in cocoon
Can you please point me to an example or documentation of that feature? Thank you. --- Bob Harner [EMAIL PROTECTED] wrote: On 1/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does coccon have a framework with look at the user-agent string and deliver different content based on user-agent string? Thank you. Yes, that's one of the original features of Cocoon -- the browser selector -- controlling which part of a pipeline is executed and producing varying output based on aspects of the user agent string. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using the directory generator
Hi, i wanted to use the xpath directory generator. My pipeline is the following: map:pipeline map:match pattern="dir-test" map:generate type="xpathdirectory" src="" map:parameter name="xmlFiles" value="\.xml$"/ /map:generate map:transform src=""/ map:serialize type="xml"/ /map:match /map:pipeline After the genrator i receive the following data, which is exactly what i expected: dir:directory name="data" lastModified="1134380175000" date="12/12/05 10:36 AM" size="4096" sort="name" reverse="false" requested="true" dir:directory name="CVS" lastModified="1134380175000" date="12/12/05 10:36 AM" size="4096"/ dir:file name="data.xsd" lastModified="113165146" date="11/10/05 8:37 PM" size="39967"/ dir:file name="data.xml" lastModified="113165146" date="11/10/05 8:37 PM" size="45002"/ /dir:directory Then i want to transform it with the following stylesheet: xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sql="http://apache.org/cocoon/SQL/2.0" xmlns:dir="http://apache.org/cocoon/directory/2.0." xsl:template match="/" content headingtext/heading xsl:variable name="count" select="count(dir:directory/dir:file)"/ message line xsl:value-of select="$count"/ /line /message table tableheader tablecellName/tablecell tablecellVersion/tablecell /tableheader xsl:for-each select="dir:directory/dir:file" tablerow tablecell xsl:value-of select="@name"/ /tablecell tablecell xsl:value-of select="@date"/ /tablecell /tablerow /xsl:for-each /table /content /xsl:template /xsl:stylesheet I thought i did everything as it should be, but i always get just the following result: content headingtext/heading message line 0 /line /message table tableheader tablecellName/tablecell tablecellVersion/tablecell /tableheader /table /content Does anyone know recognize my fault? Thanks, Tino
Re: Cocoon root application
Martynas Jusevicius wrote: Well, I tried that. I added the line map:mount src=myfolder/ uri-prefix=/ (it needed a slash on the end) to the map:match pattern=* in the first pipeline of my root sitemap. But now accessing root I get: /usr/local/cocoon/build/webapp/News/sitemap.xmap (No such file or directory) Did you forget to create a sitemap.xmap file in your folder /usr/local/cocoon/build/webapp/News/? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon root application
Martynas Jusevicius wrote: Well, looks like I'll have to edit the root sitemap. But I don't think it's a very clean way. What about Cocoon app's and sitemap's If you don't need all the samples and API docs stuff that comes with Cocoon you may delete the main sitemap.xmap and create your own one. Check the original one when you need samples or explanations. independence? And what is mounting for? http://wiki.apache.org/cocoon/UnderstandingCocoonMounts?highlight=%28mount%29 -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon root application
Martynas Jusevicius wrote: But there is no such folder News! There IS a redirect to News/ in myfolder/sitemap.xmap, but it is interpreted on the fly and has Obviously mounting works. Otherwise the redirect from myfolder/sitemap.xmap wouldn't have been tried. What happens when you remove (or comment out) that redirect? Does anything else from your myfolder work then? Did you try with a very rudimental myfolder/sitemap.xmap testcase? If so, could you put your myfolder/sitemap.xmap on a public server and post the URL here? nothing to do with physical folders. And I don't get why Cocoon cares about redirects when mapping sitemaps. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon root application
Martynas Jusevicius wrote: [...] I have my application in a subfolder of Cocoon web root (cocoon/build/webapp). How do I set it as the root app (which currently shows Welcome to Apache Cocoon!)? Should I simply copy my files to the root folder and edit the main sitemap, or is there a [...] If you like to get rid of Cocoon samples and API docs that would be the easiest way. If you like to include your application without breaking the samples you need to reorganize the main sitemap.xmap. There is an example[1] how to do that using Tomcat. For using it without Tomcat you would have to modify it somehow. [1]http://wiki.apache.org/cocoon/VirtualHostingHostMatcher?highlight=%28hostmatcher%29 -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing 'cocoon' from url: effect on Tomcat Admin and Manager apps
David wrote: This is a familiar question, I recall, but I'm trying to remove the 'cocoon/' from my application. I did it by adding this to Tomcat's server.xml: Context path= docBase=/usr/local/tomcat/webapps/cocoon ... Why don't you start with creating a new host {your hostname} in tomcat, and set this as default host. Then you can still access tomcat samples with http://localhost. Here is my sample using several virtual hosts. http://wiki.apache.org/cocoon/VirtualHostingHostMatcher The important part of the configuration is described in http://wiki.apache.org/cocoon/CocoonEasyInstallation in the Edit server.xml section. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using sendmail action
thank you...but, how can i read that message? I'm new to this list. -- Hi Sergio, I went for the send mail transformer as it was only thing I managed to get going. I gave up on the action. I wrote a response to a similar query on the 10 of February this year if you want to get some background and code on using the transformer. Regards, Tony [EMAIL PROTECTED] wrote: Hi, I'm trying to use the sendmail action in cocoon...I'm having troubles. I've read the documentation for this action but I've found it not well-explanating. Can anyone tell me where to find complete help for setting up Cocoon for working with e-mails sending? thank you very much Sergio 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - 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] 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site icon display
Derek Hohls wrote: Hmm. But I do not necessarily know in advance what the http://mysite.mydomain.com; is going to be .. what match should I be using? and in which sitempa? Just use the root sitemap from which you are serving anything of mysite.mydomain.com. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using sendmail action
Hi, I'm trying to use the sendmail action in cocoon...I'm having troubles. I've read the documentation for this action but I've found it not well-explanating. Can anyone tell me where to find complete help for setting up Cocoon for working with e-mails sending? thank you very much Sergio 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site icon display
Derek Hohls wrote: [...] 3. I have installed the Live HTTP Headers - I am not exactly what I am looking for in the text that emerges. I see a : GET /cocoon/mydirectory/favicon.png HTTP/1.1 entry, which assume means the file is being served from the right place Sorry, GET is from the browser's request. Look a little further down at the response. If it starts with HTTP/1.x 200 OK then it's the right place. But it also might be a redirect and in that case you would have to check for the next section. The icon *does* now show up in FF, but not in IE ... possibly that is a cache problem? Without the live headers functionality, I guess that is hard to trace. Does M$IE show up *any* favicons, e.g http://home.arcor.de/plsdontreply/ilusa/? I haven't used it for ages. 4. I was not aware of starting new threads - as always I just hit reply to when someone posts a response on this topic... it might be the thread has numerous sub- threads, but I am not sure why that is incorrect? Because some people like to view the thread as a whole, e.g. http://comments.gmane.org/gmane.text.xml.cocoon.user/49926 and if you start a new thread, your posting will not be included to the original thread. Maybe you would like to check with another news client like Thunderbird and go to nntp://news.gmane.org/gmane.text.xml.cocoon.user? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site icon display
Derek Hohls wrote: This is a trivial question, I know, but.. how do I add an icon for my site that overrides the default Cocoon chain link icon... [...] Hi Derek, You know this is browser dependant, so which browsers did you try? Don't forget to put the favicons into the relevant root directories for each site. And if it's still not working, please check with Firefox' LiveHTTPHeaders[1] extension. This will exactly tell you where it's looking for the favicon. [1]http://livehttpheaders.mozdev.org/ HTH -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site icon display
Derek Hohls wrote: OK,; but what is meant by root of the domain;? I need an icon for each project running under cocoon on our server In case of http://foo.bar.tld/hip/hap/hop/anything the domain is just foo.bar.tld. And this is where most(?) browsers are looking for a favicon.ico. So you need to serve a file http://foo.bar.tld/favicon.ico and this will be used for the whole domain foo.bar.tld. If you want to serve different favicons to individual diretories, then you will have to put a link rel=icon type=image/ico href=whatever / link element into each pages header. Take care for (non-x)html served as text/html not to close this element as in your original posting. Why don't you simply get Live HTTP Headers and check its output of some requests e.g. http://home.arcor.de/plsdontreply/httpHeadersico.txt? This would tell you much more than any explanation. And please Derek, stay in the threads. Don't start new threads for each posting to the same thread. HTH -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cinclude leaves its namespace in the output XML
Gerald Aichholzer wrote: Hi, I've just found out that the cinclude-transformer leaves its namespace in the output XML, e.g. symbol xmlns:cinclude=http://apache.org/cocoon/include/1.0; ... /symbol Can I get rid of this using a parameter or do I have to follow each cinclude with an identity transformation which removes the namespace only? In my opinion this has no use in the output XML because no element of cinclude's namespace is used anyway. WDYT? Gerald Hi Gerald, just about one year ago ... http://comments.gmane.org/gmane.text.xml.cocoon.user/38279 http://comments.gmane.org/gmane.text.xml.cocoon.user/38280 The best I think should be a configurable option for cinclude-transformer to toogle that superfluous namespace on/off. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: directory-independant Coocon applications
Gerald Aichholzer wrote: Hi all, I have an application which is hast to be installed in Cocoon's root sitemap. I don't like this for several reasons (e.g. it's difficult to copy/move it to a new cocoon installation). There- fore I'd like to rewrite it, so that the application can be in- stalled in any webapp-subdirectory (sitemap automounting assumed). The application ist structured like this: approot app cook images game images global images If the user types for example http://my.host.com/somepath/approot/app/game/doclist.html he will get a list of all available games. This list is an xhtml-file using local images (which is working), e.g. img src=images/game1.png/ will result to the following URL in the browser: http://my.host.com/somepath/approot/app/game/images/game1.png and global images, which is causing me some headache :( How should I access these global images in my xhtml-file? If I specify the global images like img src=global/images/logo.png/ the URL in the browser will be http://my.host.com/somepath/approot/app/game/global/images/game1.png But I can't specify the global image like img src=/somepath/approot/global/images/logo.png/ because I don't know the value of 'somepath'. I'd like my application to work independant of 'somepath'. The only solution coming to my mind is something like img src=../../global/images/logo.png/ What about using absolute url instead of a relative one? img src=/global/images/logo.png/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: directory-independant Coocon applications
[EMAIL PROTECTED] wrote: What about using absolute url instead of a relative one? img src=/global/images/logo.png/ Sorry Gerald, I should have read your posting more carefully. I've had a similar problem some time ago and the only solution I could find was using *src=../../and-so-on* generated by a relatively complicated XSLT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about XSP and XSLT
Xoan wrote: [...] It works correctly, but actually, my intention is to apply the format not to the xmlcode element, but another elements inside it. Moreover I only want to apply this format to the reportId elemnts inside xmlcode. It is possible the existence of reportId elements outside xmlcode, and I don't want to format them.: xmlcode reportId1/reportId /xmlcode I've tried with: !-- your node -- xsl:template match=//xmlcode/reportId bxsl:copy-of select=.//b /xsl:template but it seems not to work. [...] Then try xsl:template match=//xmlcode/reportId xsl:copy b xsl:apply-templates select=@*|node()/ /b /xsl:copy /xsl:template -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Whitespace handling problem #9;
I'm having a problem with Cocoon's output. From an input xml file with tabstops the serialized output has #9; instead of tabstops. This is input.xml -- ?xml version=1.0? foo johnsome text/john peterother text/peter /foo -- The pipeline has only standard file generator and xml-serializer. And here's the output: -- ?xml version=1.0 encoding=ISO-8859-1?foo #9;johnsome text/john #9;peterother text/peter /foo -- How can I get rid of this? I cannot remember having had this behaviour with earlier releases. System information Cocoon 2.1.7 Tomcat 5.5.9 j2sdk 1.5.0_03 Suse Linux 9.1 -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR file deploys without sitemap.xmap files?
Derek Hohls wrote: I have just run a Cocoon build on a new machine, using: Cocoon 2.1.5.1, Tomcat 4.1.31 and Java 1.4.2 When I access Cocoon via the Jetty servlet all is well; however, when I drop the war file into Tomcat and restart it, the error message: 'Resource not found: requested resource /cocoon/ could not be found' is displayed in the browser. On further investigation, it seems as though no sitemap.xmap files (at all!) are in the Cocoon directory (and subdirectories) [...] Did the war file contain a sitemap.xmap *before* dropping it into Tomcat's webapp directory? Has the war file been extracted after restart of Tomcat? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR file deploys without sitemap.xmap files?
Derek Hohls wrote: The war file does contain the sitemap.xmap files... so it looks like Extracting cocoon.war should yield cocoon/ cocoon.war these files have not been extracted after the Tomcat restart ... very strange as I have not seen this before. Not a Cocoon problem, then, but I am not sure what to do now? [...] Extract the war file manually using any decompression tool or use ./build.sh webapp instead of ./build.sh war and there you'll find a *cocoon* dir inside build/webapp/ that you'll drop into Tomcat's webapp dir. build/ /cocoon.war /webapp/ */cocoon/* -- HTH [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link Hosting: WebHostingSpace.Net
Antonio Gallardo wrote: Hi Marc, can you point how we can know your site is a cocoon based? I cannot not see the response header tag. [...] Using Firefox? Then do = Tools = PageInfo Choose Headers' Tabstrip Check Response Headers section Find line 4 X-cocoon-version -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing request headers
[EMAIL PROTECTED] wrote: [...] Thanks, [EMAIL PROTECTED] Do you mean that you can have HtmlGenerator operate on a request attribute? If i understand that correctly, that would mean you can read your html from a POST request. That wouldn't help, because I want that html from the old server. You know, send it a http request like GET http://old-server/legacy.html HTTP/1.1 accept-language: nl, en-us etc. I browsed the source oif HtmlTransformer, and it also has a parameter copy-parameters, but that wouldn't help me either, it just copies the query-string at the end of the src attribute. Or am I totally missing something? Peter Hi Peter, What I understand from that documentation mentioned is that you can use generate with additional parameters. So if you have a request like http://yourServer/yourPath?Source=http://foo.bar.tld which will be matched by your pipeline, you could pass additional parameters. - map:match pattern=yourPath map:generate type=html src={request-param:Source} map:parameter name=... value=.../ /map:generate ... /map:match - Sorry, if I'm wrong. Haven't tested that case. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect-to result of a transformation
Adam Ratcliffe wrote: Yes the uri that gets passed to processPipelineTo() does need to reference a pipeline that would fetch your content for you, [...] But what is the syntax for referencing to (SAX result coming out of) a pipeline? cocoon.request.getParameter(Quelle) just only references to a request parameter of the pipeline from where I was calling the function. I'm sure there are many other ways of doing this making greater use of sitemap [...] Just only one would be enough, but I don't know of any. Some Idea? - map:match pattern=LinuxLink map:generate type=html src={request-param:Quelle} map:parameter name=xpath value=*[local-name()='a'][text()[contains(.,'Story')]]/@href/ /map:generate map:redirect-to uri={*How-To-Adress-Xpath-From-Generate*}/ /map:match - Isn't there any chance for making SAX stream available to the sitemap? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect-to result of a transformation
Jens Reufsteck wrote: Maybe put the redirect into the html-header?: http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html#Redirects+in+Pipelines [...] That was my very first attempt. It's ugly and not very nice. Also it doesn't allow me to filter the pages content. But I don't have any other solution yet. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing request headers
[EMAIL PROTECTED] wrote: Hi all Does anybody have any idea how you pass request headers to an HtmlGenerator? Like accept-language and the authentication stuff? I'm using map:generate type=html src=http://old-server/legacy.html; / and it formats numbers and dates the American way. And it asks for authentication. Thanks, Peter Urbanus I remember I saw something similar in http://cocoon.apache.org/2.1/userdocs/generators/html-generator.html HTH -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect-to result of a transformation
Adam Ratcliffe wrote: Try cocoon.processPipelineTo(uri, null/*no bizdata*/, output), sorry I wrote the example from memory. The link to the relevant documentation is: http://cocoon.apache.org/2.1/userdocs/flow/api.html#processPipelineTo Hi Adam, Thanks a lot for your attention. I'm getting closer to the solution, but I'm not yet there. What I'm now having is sitemap and flowscript as given below, where Quelle is something like http://linuxtoday.com/news_story.php3?ltsn=2005-04-05-006-26-OS-DP-NT. sitemap.xmap --- map:flow language=javascript map:script src=redirect.flow/ /map:flow map:pipeline map:match pattern=LinuxLink map:call function=processLinks/ /map:match /map:pipeline --- redirect.flow --- function processLinks() { var uri = cocoon.request.getParameter(Quelle); var output = new Packages.java.io.ByteArrayOutputStream(); cocoon.processPipelineTo(uri, null/*no bizdata*/, output); var redirectUri = output.toString(); cocoon.redirectTo(redirectUri); } --- With this, I'm still getting errors like --- An Error Occurred protocol = http host = null org.apache.avalon.framework.CascadingRuntimeException: file:/path/to/flowscript/redirect.flow, line 4: uncaught JavaScript exception: at processLinks (file:/path/to/flowscript/redirect.flow, Line 4): org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://http://linuxtoday.com/news_story.php3?ltsn=2005-04-05-010-26-RV-HE-SV cause: java.lang.IllegalArgumentException: protocol = http host = null --- What I'd need I think is something like var uri = cocoon:/myOtherPipe to get the desired input stream, but I cannot find the correct command for that. Isn't there an easier solution for making (xpath of) SAX stream available to the sitemap? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect-to result of a transformation
Adam Ratcliffe wrote: You could do this from flowscript. Basically what you'd need to do is process the request in the flow layer and use the cocoon object's processPipelineTo() method to retrieve the output of the pipeline and redirect from there. map:match pattern=myPattern map:call function=processLinks/ /map:match function processLinks() { var uri = cocoon.request.getParameter(Quelle); var output = new Packages.java.io.ByteArrayOutputStream(); cocoon.processPipelineTo(uri, output); var redirectUri = output.toString(); cocoon.redirectTo(redirectUri); } HTH Adam I've followed your proposal and now I'm getting this error message: -- An Error Occurred at processLinks (file:/path/to/script/redirect.flow, Line 4): expected a java.io.OutputStream instead of null org.apache.avalon.framework.CascadingRuntimeException: file:/path/to/script/redirect.flow, line 4: uncaught JavaScript exception: at processLinks (file:/path/to/script/redirect.flow, Line 4): expected a java.io.OutputStream instead of null cause: org.mozilla.javascript.JavaScriptException: at processLinks (file:/path/to/script/redirect.flow, Line 4): expected a java.io.OutputStream instead of null -- Obviously the function processPipelineTo is missing one of three arguments. I'm completely new to flowscripts and I'd like to learn how to solve this. How do I get the missing argument? And where can I put the xpath expression extracting the URL from the webpage fetched by request.getParameter? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirect-to result of a transformation
How can I use the output of a pipeline as target for redirect-to? What I'm trying to do is evaluating a web page for a certain link and redirecting to the uri of that link. Grepping the link is easily done, i.e. the following pipe exactly shows me the desired uri. map:match pattern=myPattern map:generate type=html src={request-param:Quelle}/ map:transform src=cropping_link.xsl/ map:serialize type=text/ /map:match Now I have the uri as text/plain. But I don't want to output the uri (as text) but rather redirect-to it like map:redirect-to uri={result-of-transformation}/ How can I use it as the uri attribute's value? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException with Directorygenerator
Just upgraded from 2.1.5.1 to 2.1.7, and now I'm having problems with DirectoryGenerator. Scanning a subdirectory using map:match pattern= map:generate type=directory src=AnySubdirectory map:parameter name=depth value=1/ /map:generate map:serialize type=xml/ /map:match works perfectly. But I'm getting NullPointerException when trying to generate the actual directory using map:generate type=directory src=. I have no experience evaluating the error messages. So I put it on a server hoping that someone else knows how to read it: http://home.arcor.de/plsdontreply/NullPointerException.html Does somebody have a solution? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NullPointerException with Directorygenerator
Jorg Heymans wrote: What do you expect . to point at ? Are your sure . worked on 2.1.5 ? Jorg The intention is to point to the same directory that also contains sitemap.xmap. I just again tested with 2.1.5.1 and . works as well as ./. How else would you suggest to point to active directory? BTW, even if I put an absolut path, it wouldn't work in 2.1.7 -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NullPointerException with Directorygenerator
Jorg Heymans wrote: [...] I just tested it on an SVN version very close to 2.1.7 and it works (absolute, . or ./) Do you have any sort of exotic setup? (symlinked subsitemaps or thelike?) Regards Jorg No symlinked sitemaps. It's a SuSE 9.1, utf-8, reiserfs. But I remember when I built Cocoon, I ran build.sh as a non-root user. Should I have run the buildscript as root? I'll try it again. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NullPointerException with Directorygenerator
Jorg Heymans wrote: [...] I just tested it on an SVN version very close to 2.1.7 and it works (absolute, . or ./) Do you have any sort of exotic setup? (symlinked subsitemaps or thelike?) Regards Jorg Thanks for your attention. The problem must have been caused by some other stuff in my sitemap.xmap. With a minimalized and cleaned sitemap it works. Thanks again -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Duplicate emails sent from List
Apologies to all regarding these duplicate emails from me. Most of which have been occurring during the night here (Australia) - so could not address the issue till this morning. My mail server tech says the problem is from the cocoon list. I tried sending this email to [EMAIL PROTECTED]: --- | Somehow my post titled Do I need a repeater to append nodes in XML file | Thu 16/12/2004 6:55 PM. Is being posted repeatedly every 30mins. | | Any ideas why? --- But only got MULTIPLE replies from [EMAIL PROTECTED] saying: --- | ...[EMAIL PROTECTED]: | Sorry, no mailbox here by that name... --- Also get MULTIPLE replies from [EMAIL PROTECTED] as sent an email to '[EMAIL PROTECTED]'. So what should I do - who should I email - LIST OWNER HELP? Hopefully this email will not duplicate as send from different email address. Linc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hostname-prefix matching. How is it done?
Christofer Dutz wrote: [...] I once started with the regexp-host-matcher, but that seems to be removed from the current cocoon distribution. Well that's no ^-^ Is there a new one? I'm having Cocoon 2.1.5.1 and RegexpHostMatcher is still org.apache.cocoon.matching.RegexpHostMatcher Maybe you forgot to declare it in the map:components section? You will find an example how to use the WildcardHostMatcher on the wiki page http://wiki.apache.org/cocoon/VirtualHostingHostMatcher;. This can be configured (and then does work) with RegexpHostMatcher as well. If any problems with that description, please let me know. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I pass http request parameters to template
Art Spassky wrote: Hi all I have a question to you Is there elegant way to pass all parameters from http request to xslt stylesheet via cocoon you help me a lot. thank you in advance. Art. Did you read? http://cocoon.apache.org/2.1/userdocs/transformers/xslt-transformer.html cite The use-request-parameters and use-browser-capabilities-db configuration of a transformer can be changed for one single pipeline by specifying parameters with the same name: map:transform src=stylesheet.xsl map:parameter name=use-request-parameters value=true/ /map:transform /cite And Art, please stop hijacking threads. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP / XSL / LogicSheet Plugin for Quanta
Alessandro Vincelli wrote: ** Can anyone recommend a good XML plugin for Quanta that will edit java/xsp logicsheets and XSL completion? thank you. No idea regarding support for java and xsp, but for xsl there is a META-DTD in KDE, for usage with the xml completion plugin providing kind of a typeahead context menu with all the allowed elements and attributes. SuSE Linux install it under: /opt/kde3/share/apps/katexmltools/xslt-1.0.dtd.xml Having such a dtd.xml file for XSP, of cource would be a great help for users, but I've never seen. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with StreamGenerator
Art Spassky wrote: Hi all. Can someoneb help me with my problem. I am using cocoon-2.1.5.1. I would like to use StreamGenerator for automatical generating documents from uploaded files. everything works well but I found problem with encoding. When I upload xml file with encoding UTF-8 and transform it. Output file contains irregular data. Thank you for help in advance. UploadForm.xml ?xml version=1.0 encoding=Windows-1251? html meta name=Content-Type Value=text/html;charset=UTF-8/ So you have 1. An XML declaration saying Windows-1251 2. A meta hack saying UTF-8 Both should be the same and both *must* be in accordance with the charset info of the HTTP response header. As you are obviously using Cyrillic, you'd better chose the XML standard encoding which is UTF-8. Check the mime-type attribute of your HTML serializer to be mime-type=text/html; charset=utf-8 so that it will put the correct header. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with StreamGenerator2
Art Spassky wrote: I think it is a bug. Or I am not completly understand encodings. I use standard sample of StreamGenerator at http://localhost:/samples/stream/uploadfile I change its sitemap.xmap with the following map:components map:serializers default=html map:serializer name=html mime-type=text/html; charset=UTF-8 src=org.apache.cocoon.serialization.HTMLSerializer encodingUTF-8/encoding /map:serializer /map:serializers /map:components When I upload xml file without cyrilic symbols all works well. Problems begin when I use them. What about sending Cyrillic (or other utf-8) text in a simple form field, does that work? If not you might read http://www.mail-archive.com/[EMAIL PROTECTED]/msg19326.html (please read the whole thread!) and http://wiki.apache.org/cocoon/RequestParameterEncoding Sorry if this wouldn't help either. It is about form encoding but uploading files shouldn't be too far away from that. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with StreamGenerator2
Art Spassky wrote: Thank you very much. You help me a lot. I found useful web page http://wiki.apache.org/cocoon/RequestParameterEncoding The problem is solved !!! I've also played around with the sample from http://localhost:8080/cocoon/samples/stream/uploadfile; but couldn't find anything wrong. It turned out that RequestParameterEncoding didn't need any changes. Just download both files from here and put them into an empty mountable subdirectory. It's Cocoon's sample in a very simplified form. http://home.arcor.de/plsdontreply/streamupload/ It perfectly works. But what can we use it for? Just only for viewing uploaded files? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
aggregate takes too much time
Hi all, Aggregating xml in cocoon takes too much time. I try to aggregate 10 xml files ( from filesystem: file:/// ) It takes about 4-7 seconds just to aggregate w/o transforming :( Any other faster way to aggregate contents? -- Indonesia Cocoon: idcocoon-subscribe @ yahoogroups.com Superbiji @ gmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: aggregate takes too much time
XInclude is faster, but after several requests it slows down (don't know why) CInclude is as slow as map:aggregate. On Mon, 11 Oct 2004 08:30:01 +0200, Jan Hoskens [EMAIL PROTECTED] wrote: Have you tried different options? Besides the sitemap aggregation there are also some include transformators available: the XInclude and CInclude may do the same as the aggregation. Kind regards, Jan [EMAIL PROTECTED] wrote: Hi all, Aggregating xml in cocoon takes too much time. I try to aggregate 10 xml files ( from filesystem: file:/// ) It takes about 4-7 seconds just to aggregate w/o transforming :( Any other faster way to aggregate contents? -- Indonesia Cocoon: idcocoon-subscribe @ yahoogroups.com Superbiji @ gmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: aggregate takes too much time
no simple aggregation of several local xml files. and one transformation I use profiler, the transformation takes 412 ms. serialization takes 20 ms. On Mon, 11 Oct 2004 09:06:14 +0200, Jan Hoskens [EMAIL PROTECTED] wrote: Are you using very large documents? Do you have other pipeline structures in between the aggregation or afterwards that may slow things down? Why do you need to aggregate more than 10 documents at a time? (Not sure I can help, but more info may be usefull for other readers too ;-) Kind Regards, Jan [EMAIL PROTECTED] wrote: XInclude is faster, but after several requests it slows down (don't know why) CInclude is as slow as map:aggregate. On Mon, 11 Oct 2004 08:30:01 +0200, Jan Hoskens [EMAIL PROTECTED] wrote: Have you tried different options? Besides the sitemap aggregation there are also some include transformators available: the XInclude and CInclude may do the same as the aggregation. Kind regards, Jan [EMAIL PROTECTED] wrote: Hi all, Aggregating xml in cocoon takes too much time. I try to aggregate 10 xml files ( from filesystem: file:/// ) It takes about 4-7 seconds just to aggregate w/o transforming :( Any other faster way to aggregate contents? -- Indonesia Cocoon: idcocoon-subscribe @ yahoogroups.com Superbiji @ gmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't get the xml declaration in the output
IceT wrote: Hello, Every time I output something with Cocoon, it omits the xml-declaration. Can anybody help me? Looks like it doesn't use your xml serializer at all. Does cocoon send mimetype text/xml as you've configured the xml serializer? You can check it with Firefox =Tools =Info. If so, it should of course use your configuration. If not, there are some points where you could try to improve. 1. Your sitemap should have only one serializer name=html but you got two of them. 2. And your map:serializers section should have a default serializer like map:serializers default=YourChoice 3. In XSLT, when working with Cocoon, you shouldn't use xsl:output / since this is controlled by the serializer's configuration. Another (off topic) question: Could you tell me why everybody abides by (Western encoding) iso-8859-1 instead of simply always using utf-8 which is the default encoding for XML? AFAIK *all* common browsers are supporting Unicode encoded with utf-8. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XHTML and Entities: apos; fails in IE
Andreas Hartmann wrote: Hi Cocoon community, I wonder if there is a solution for this problem by now - searching the list only revealed questions, no solutions :( I'm using UTF-8 encoding with the o.a.c.components.serializers.XHTMLSerializer. Special characters seem to be encoded as entity references by default (e.g., ' is encoded as apos;) Everything is fine except that Internet Explorer keeps on showing the apos; as apos; instead of ' . This seems to be a known IE issue: http://artific.com/library/xhtml_1.0_entities.html Some entity names do not resolve (eg: apos; under Microsoft Internet Explorer) but their corresponding numeric names do resolve. Is there anything I can do about this? Looking at the EncodingSerializer etc. didn't lead me to a solution. Just type ' instead of apos; and save using utf-8. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XHTML and Entities: apos; fails in IE
Andreas Hartmann wrote: [EMAIL PROTECTED] wrote: Andreas Hartmann wrote: [...] Just type ' instead of apos; and save using utf-8. Thanks, but the source XML already contains a '. If I use the XMLSerializer, it is displayed as '. Only the XHTMLSerializer changes it to apos; -- Andreas Andreas, I can't reproduce your problem. Regardless if I have apos; or ' both XHTML serializer and HTML serializer produce ' as output. What is your pipeline's configuration of both serializers? -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XHTML and Entities: apos; fails in IE
Andreas Hartmann wrote: I'm using only the XHTML serializer: Andreas, you didn't check the http response headers' charset value, did you? I'm sure you have a charset mismatch. To ensure that the page is sent with the correct charset=utf-8 header, you'd better fix the serializer's configuration. map:serializer name=xhtml logger=sitemap.serializer.xhtml mime-type=text/html pool-grow=2 pool-max=64 pool-min=2 mime-type=text/html; charset=utf-8 pool-grow=2 pool-max=64 src=org.apache.cocoon.components.serializers.XHTMLSerializer encodingUTF-8/encoding /map:serializer FYI, Internet Exploder does *not* evaluate the charset info from processing instructions. -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]