Re: Jexl in embedded Pipeline
An application like this I use already. Thorsten Scherler made this email Application for me. The important point: I want to send an email and the Email Text and the attachements are produced by cocoon pipelines. This a an important part of my cocoon 2.10 application which I wanted to transfer to 3.0 Am 13.03.2014 14:23, schrieb gelo1234: I got lost with your explanation :) It's a kind of awkward thing to me that you are actually trying to do with that code. Why not making it clean: 1. First you need a String-Template match to serialize the Hibernate bean - output XML with final values map:match pattern=hibernate/bean map:generate src=bean.xml type=stringtemplate / map:serialize type=xml / /map:match where bean.xml is your [input] You can now feed angebot bean data into hibernate/bean pipe above (to get it serialized): map:match pattern=hibernate/{id} controller:call controller=rest-controller select=BeanController map:parameter name=id value={map:id} / /controller:call /map:match @RESTController public class BeanController implements Get { @SitemapParameter private String id; @RequestParameter private String name; // through injection or other way HibernateDAO dao; public RestResponse doGet() throws Exception { MapString, Object data= new HashMapString, Object(); data.put(angebot, dao.getAngebotBean(id)); data.put(name, this.name); return new Page(servlet:/hibernate/bean, data); } } At this point you got your Hibernate bean serialized (into XML data). 2. Second you can go for XSLT Transformer and transform XML into anything you want You don't need any JEXL here. Greetings, Greg 2014-03-13 13:30 GMT+01:00 Yahoo hansheinrichbr...@yahoo.de mailto:hansheinrichbr...@yahoo.de: I used the EmailPlainPipe from the distribution: byte[] bytes = (byte[]) parameters.get(input); XMLGenerator generator = new XMLGenerator(bytes); this.addComponent(generator); byte[] xsl = (byte[]) parameters.get(xsl); Source xslSource = new StreamSource(new ByteArrayInputStream(xsl)); XSLTTransformer transformer = new XSLTTransformer( xslSource, new Date().getTime()); // pass all parameter to the xslTransformer transformer.setParameters(parameters); this.addComponent(transformer); this.addComponent(TextSerializer.createPlainSerializer()); super.setup(outputStream, parameters); where input is: ?xml version=1.0 encoding=UTF-8? angebot id$name$$angebot.id http://angebot.id$/id anganz$angebot.anganz$/anganz angkurzbeschreibung$angebot.angkurzbeschreibung$/angkurzbeschreibung /angebot xsl is the identity angebot is a Hibernate Bean. how do feed the pipeline with this Bean that it is used by Jexl to resolve the input String. Am 13.03.2014 12:55, schrieb gelo1234: With servlet-sitemaps Jexl can be used within any pipeline as {jexl:.} value. Please show example of your embedded pipeline ? Greetings, Greg 2014-03-13 11:09 GMT+01:00 Yahoo hansheinrichbr...@yahoo.de mailto:hansheinrichbr...@yahoo.de: How can I use Jexl in an embadded Pipline ? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org
Feeding a Bean to the pipeline
I have to feed the Pipeline with the content of a Hibernate Bean. I tried with JAXB and and annotations. But I could not get the preferred result. Now I will try the XMLGenerator. Is there another possibility. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: error in maven of cocoon 3.0.0-beta-1-SNAPSHOT
Am 24.07.2013 21:28, schrieb Thorsten Scherler: On 07/23/2013 02:38 PM, Piratenvisier wrote: When i try to install cocoon with maven I get the error Unable to initialise extensions Component descriptor role: 'com.jcraft.jsch.UIKeyboardInteractive', implementation: 'org.apache.maven.wagon.providers.ssh.jsch.interactive.PrompterUIKeyboardInteractive', role hint: 'default' has Hmm never seen that, but please do the following IF YOU under linux: cd $HOME/.m2 mv settings.xml settings.bck cd $COCOON_HOME //where we expect a svn checkout! svn up mvn clean install It didn't help: That should work if not please open a jira issue and please state your env and os there. HTH and if not TIA for open the issue;) don't understand what I should do here. My cocoon-sample block integration works. I try now yor Mail application. Frankly speaking I use cocoon only for one reason. Fop with its pdf definition language. I keep open to use the other 2 possibilities Fyingsaucer HTML to pdf. Easy way only to print your pages without new pdf definition hazzle. Itext the programmable alternative for some specialites which are not possible with the other 2 solutions. The mail variant is only interesting because of its pdf-attchement possibitility Maybe another interesting point is the asynchronous usage. Because for bigger attachements you have to wait some time. salu2 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
protocol servlet doesn't work
in the distribution 3.0.0-beta-1-SNAPSHOT of cocoon3 I have a problem with the rest example rhe response of servlet:controller/screen brings the error java.net.MalformedURLException: unknown protocol: servlet at java.net.URL.init(URL.java:592) at java.net.URL.init(URL.java:482) at java.net.URL.init(URL.java:431) at org.apache.cocoon.rest.controller.response.URLResponse.init(URLResponse.java:49) at org.apache.cocoon.sample.controller.DemoRESTController.doGet(DemoRESTController.java:54) - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
error in maven of cocoon 3.0.0-beta-1-SNAPSHOT
When i try to install cocoon with maven I get the error Unable to initialise extensions Component descriptor role: 'com.jcraft.jsch.UIKeyboardInteractive', implementation: 'org.apache.maven.wagon.providers.ssh.jsch.interactive.PrompterUIKeyboardInteractive', role hint: 'default' has a hint, but there are other implementations that don't - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: using maven archetypes
Hello Thorsten, I got cocoon running under the latest wicket application. Most time I spend because of the low degree of documentation. The email adaption you spoke of is there some public access to it. How can I transfer the content of a bean in the pipline, as I could do it before with flowscript ? Am 04.07.2013 15:04, schrieb Thorsten Scherler: Please do not crosspost but stay in the original thread. On 07/03/2013 08:37 AM, Piratenvisier wrote: When i create the mysample block with the atchetype as described on the cocoon 3.0 homepage maven first complains that there is no cocoon-optional 3.0.0-alpha-3-SNAPSHOT dependency. when I ask for cocoon-optional 3.0.0-alpha-3 I get the error when I start jetty java.lang.NoClassDefFoundError: org/springframework/core/env/Environment what is the problem when I want to use the cocoon pipeline in my wicket application I have a dependency problem between flyingsaucer and org.apache.xmlgraphics fop 1.0 or org.apache.cocoon cocoon-fop-ng-impl 1.0.0-SNAPSHOT On 07/04/2013 01:57 PM, Piratenvisier wrote: Thank you I got it. I was an adherent of cocoon from the beginning. But with the upcoming AJAX I felt that for dynamic web it was not the rightt solution. So I stopped to use it.I started my project again because thanks to cocoon's hompage I noticed the upcoming wicket. Wicket brought a new dynamic in my project there were only two use-cases for which I preferred cocoon. For PDF generation and email-transport. I used flow :cocoon-protocol fop-ng But this services could not be upgraded from cocoon 2.2.0 to 3. Meanwhile I use hibernate and spring 3.1 and I would prefer to use the hibernate ojb-part with annotations in cocoon. but in cocoon 3 first flow and cocoon-protokol is missing and I can not use spring 3.1 So the situation becomes worse and worse for me. So I am looking how to escape from cocoon with flyingsaucer and an own email adaption maybe as soap-application. I do not really understand your problems. c3 is using spring.version3.2.2.RELEASE/spring.version why can you use that but are bound to 3.1? Regarding the dep conflict you have I recommend to use the pom view of eclipse and there the dep hierarchy, where you can exclude certain deps directly. Regarding the sending mail, in one of our deployments we are using c3 to create the eMails in 2 different formats (html and plain text) and attach pdfs that we as well generate via fo from a pipeline. Further the solution is based on JMS to make it async and it works like a charm to invoke a cocoon java pipeline via JMSListener. Further c3 is designed to be integrated painlessly in whatever, meaning you can have a my faces app and some business code can call c3 pipelines to get data processed, so IMO it is now time to get into cocoon again. salu2 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
cocoon 3.0.0-beta-1-SNAPSHOT in wicket 6.9.0
I tried to integrate cocoon 3.0.0-beta-1-SNAPSHOT in wicket 6.9.0 as I have done it in wicket 6.3.0-beta-1-SNAPSHOT and cocoon 3.0.0-alpha-3 But my proprietary Mapper-adaption doesn't work. I try now to use the original Mapper bat no success. Is my configuration ok? ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xmlns:configurator=http://cocoon.apache.org/schema/configurator; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://cocoon.apache.org/schema/configurator http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd; default-lazy-init=true !--xmlns:configurator=http://cocoon.apache.org/schema/configurator-- !-- http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd-- !-- Activates scanning of @Autowired -- context:annotation-config/ !-- Activates scanning of @Repository and @Service -- context:component-scan base-package=braunimmobilien/ !-- Add new DAOs here -- !-- Add new Managers here -- !-- Add Cocoon here -- configurator:settings/ import resource=classpath:META-INF/cocoon/spring-optional/cocoon-optional-fop.xml / import resource=classpath:META-INF/cocoon/spring-optional/cocoon-optional-serializers.xml / !-- bean name=transformer:sql class=braunimmobilien.cocoon.sax.component.SQLTransformer scope=prototype /-- /beans and do I use the right mapper package org.apache.wicket.examples.cocoonobjectapproach.common.web; //import braunimmobilien.cocoon.wicket.mapper.CocoonSitemapMapper; import org.apache.cocoon.wicket.request.CocoonSitemapRequestMapper; import org.apache.wicket.Page; import org.apache.wicket.examples.WicketExampleApplication; /** * Application class for the dates example. */ public class CocoonObjectApproachApplication extends WicketExampleApplication { /** * Constructor. */ public CocoonObjectApproachApplication() { } @Override public void init() { super.init(); this.mount(new CocoonSitemapRequestMapper(/sitemap, /sitemap.xmap.xml)); } /** * @see org.apache.wicket.Application#getHomePage() */ @Override public Class ? extends Page getHomePage() { return CocoonObjectApproachPage.class; } } Am 04.07.2013 18:13, schrieb Thorsten Scherler: On 07/04/2013 05:47 PM, Piratenvisier wrote: Because I wanted to reduce my software engagement I didn't look in the source trunk. I only used the official maven archetypes. I checked the source trunk out. I will evaluate its state. It is much better then the alpha and we are close to release. I highly recommend it over the alpha. However I meant the pom.xml the archetypes creates on your project, the one that declared the dependencies. salu2 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: using maven archetypes
Am 04.07.2013 08:16, schrieb Francesco Chicchiriccò: On 03/07/2013 20:40, Piratenvisier wrote: Where do I find your workaround instructions ? At [1], in the Maven 2 archetypes section (you might need to clear your browser's cache): Some issues were identified in the 3.0.0-alpha-3 artifacts that prevent the generated projects to work properly; as a temporary workaround, you will need to apply the following changes to the generated pom.xml files: 1. replace any 3.0.0-alpha-3-SNAPSHOT occurrency with 3.0.0-alpha-3 2. add version1.0.0/version right below artifactIdcocoon-maven-plugin/artifactId Regards. Thank you I got it. I was an adherent of cocoon from the beginning. But with the upcoming AJAX I felt that for dynamic web it was not the rightt solution. So I stopped to use it.I started my project again because thanks to cocoon's hompage I noticed the upcoming wicket. Wicket brought a new dynamic in my project there were only two use-cases for which I preferred cocoon. For PDF generation and email-transport. I used flow :cocoon-protocol fop-ng But this services could not be upgraded from cocoon 2.2.0 to 3. Meanwhile I use hibernate and spring 3.1 and I would prefer to use the hibernate ojb-part with annotations in cocoon. but in cocoon 3 first flow and cocoon-protokol is missing and I can not use spring 3.1 So the situation becomes worse and worse for me. So I am looking how to escape from cocoon with flyingsaucer and an own email adaption maybe as soap-application. Best regards Heiner Am 03.07.2013 10:12, schrieb Francesco Chicchiriccò: On 03/07/2013 08:37, Piratenvisier wrote: When i create the mysample block with the atchetype as described on the cocoon 3.0 homepage maven first complains that there is no cocoon-optional 3.0.0-alpha-3-SNAPSHOT dependency. when I ask for cocoon-optional 3.0.0-alpha-3 I get the error when I start jetty java.lang.NoClassDefFoundError: org/springframework/core/env/Environment what is the problem when I want to use the cocoon pipeline in my wicket application I have a dependency problem between flyingsaucer and org.apache.xmlgraphics fop 1.0 or org.apache.cocoon cocoon-fop-ng-impl 1.0.0-SNAPSHOT Hi, it seems there are some issues with 3.0.0-alpha-3 maven archetypes: I have updated [1] with some workaround instructions that should fix your issues. Regards. [1] http://cocoon.apache.org/3.0/download.html - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: using maven archetypes
Because I wanted to reduce my software engagement I didn't look in the source trunk. I only used the official maven archetypes. I checked the source trunk out. I will evaluate its state. Am 04.07.2013 15:04, schrieb Thorsten Scherler: Please do not crosspost but stay in the original thread. On 07/03/2013 08:37 AM, Piratenvisier wrote: When i create the mysample block with the atchetype as described on the cocoon 3.0 homepage maven first complains that there is no cocoon-optional 3.0.0-alpha-3-SNAPSHOT dependency. when I ask for cocoon-optional 3.0.0-alpha-3 I get the error when I start jetty java.lang.NoClassDefFoundError: org/springframework/core/env/Environment what is the problem when I want to use the cocoon pipeline in my wicket application I have a dependency problem between flyingsaucer and org.apache.xmlgraphics fop 1.0 or org.apache.cocoon cocoon-fop-ng-impl 1.0.0-SNAPSHOT On 07/04/2013 01:57 PM, Piratenvisier wrote: Thank you I got it. I was an adherent of cocoon from the beginning. But with the upcoming AJAX I felt that for dynamic web it was not the rightt solution. So I stopped to use it.I started my project again because thanks to cocoon's hompage I noticed the upcoming wicket. Wicket brought a new dynamic in my project there were only two use-cases for which I preferred cocoon. For PDF generation and email-transport. I used flow :cocoon-protocol fop-ng But this services could not be upgraded from cocoon 2.2.0 to 3. Meanwhile I use hibernate and spring 3.1 and I would prefer to use the hibernate ojb-part with annotations in cocoon. but in cocoon 3 first flow and cocoon-protokol is missing and I can not use spring 3.1 So the situation becomes worse and worse for me. So I am looking how to escape from cocoon with flyingsaucer and an own email adaption maybe as soap-application. I do not really understand your problems. c3 is using spring.version3.2.2.RELEASE/spring.version why can you use that but are bound to 3.1? Regarding the dep conflict you have I recommend to use the pom view of eclipse and there the dep hierarchy, where you can exclude certain deps directly. Regarding the sending mail, in one of our deployments we are using c3 to create the eMails in 2 different formats (html and plain text) and attach pdfs that we as well generate via fo from a pipeline. Further the solution is based on JMS to make it async and it works like a charm to invoke a cocoon java pipeline via JMSListener. Further c3 is designed to be integrated painlessly in whatever, meaning you can have a my faces app and some business code can call c3 pipelines to get data processed, so IMO it is now time to get into cocoon again. salu2 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: using maven archetypes
Am 04.07.2013 15:04, schrieb Thorsten Scherler: Please do not crosspost but stay in the original thread. On 07/03/2013 08:37 AM, Piratenvisier wrote: When i create the mysample block with the atchetype as described on the cocoon 3.0 homepage maven first complains that there is no cocoon-optional 3.0.0-alpha-3-SNAPSHOT dependency. when I ask for cocoon-optional 3.0.0-alpha-3 I get the error when I start jetty java.lang.NoClassDefFoundError: org/springframework/core/env/Environment what is the problem when I want to use the cocoon pipeline in my wicket application I have a dependency problem between flyingsaucer and org.apache.xmlgraphics fop 1.0 or org.apache.cocoon cocoon-fop-ng-impl 1.0.0-SNAPSHOT On 07/04/2013 01:57 PM, Piratenvisier wrote: Thank you I got it. I was an adherent of cocoon from the beginning. But with the upcoming AJAX I felt that for dynamic web it was not the rightt solution. So I stopped to use it.I started my project again because thanks to cocoon's hompage I noticed the upcoming wicket. Wicket brought a new dynamic in my project there were only two use-cases for which I preferred cocoon. For PDF generation and email-transport. I used flow :cocoon-protocol fop-ng But this services could not be upgraded from cocoon 2.2.0 to 3. Meanwhile I use hibernate and spring 3.1 and I would prefer to use the hibernate ojb-part with annotations in cocoon. but in cocoon 3 first flow and cocoon-protokol is missing and I can not use spring 3.1 So the situation becomes worse and worse for me. So I am looking how to escape from cocoon with flyingsaucer and an own email adaption maybe as soap-application. I do not really understand your problems. c3 is using spring.version3.2.2.RELEASE/spring.version why can you use that but are bound to 3.1? Regarding the dep conflict you have I recommend to use the pom view of eclipse and there the dep hierarchy, where you can exclude certain deps directly. Regarding the sending mail, in one of our deployments we are using c3 to create the eMails in 2 different formats (html and plain text) and attach pdfs that we as well generate via fo from a pipeline. Further the solution is based on JMS to make it async and it works like a charm to invoke a cocoon java pipeline via JMSListener. is your email solution part of the latest distrbution ? When yes where can I find it ? Further c3 is designed to be integrated painlessly in whatever, meaning you can have a my faces app and some business code can call c3 pipelines to get data processed, so IMO it is now time to get into cocoon again. salu2 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: using maven archetypes
Where should I look for a replacement of the jx Generator which reads out a Pojo. Where is the replacement for the good old cocoon protocol. How the Pojo is delivered to the pipeline instead of the javascript flow? Am 04.07.2013 18:13, schrieb Thorsten Scherler: On 07/04/2013 05:47 PM, Piratenvisier wrote: Because I wanted to reduce my software engagement I didn't look in the source trunk. I only used the official maven archetypes. I checked the source trunk out. I will evaluate its state. It is much better then the alpha and we are close to release. I highly recommend it over the alpha. However I meant the pom.xml the archetypes creates on your project, the one that declared the dependencies. salu2 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
using maven archetypes
When i create the mysample block with the atchetype as described on the cocoon 3.0 homepage maven first complains that there is no cocoon-optional 3.0.0-alpha-3-SNAPSHOT dependency. when I ask for cocoon-optional 3.0.0-alpha-3 I get the error when I start jetty java.lang.NoClassDefFoundError: org/springframework/core/env/Environment what is the problem when I want to use the cocoon pipeline in my wicket application I have a dependency problem between flyingsaucer and org.apache.xmlgraphics fop 1.0 or org.apache.cocoon cocoon-fop-ng-impl 1.0.0-SNAPSHOT - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: using maven archetypes
Where do I find your workaround instructions ? Am 03.07.2013 10:12, schrieb Francesco Chicchiriccò: On 03/07/2013 08:37, Piratenvisier wrote: When i create the mysample block with the atchetype as described on the cocoon 3.0 homepage maven first complains that there is no cocoon-optional 3.0.0-alpha-3-SNAPSHOT dependency. when I ask for cocoon-optional 3.0.0-alpha-3 I get the error when I start jetty java.lang.NoClassDefFoundError: org/springframework/core/env/Environment what is the problem when I want to use the cocoon pipeline in my wicket application I have a dependency problem between flyingsaucer and org.apache.xmlgraphics fop 1.0 or org.apache.cocoon cocoon-fop-ng-impl 1.0.0-SNAPSHOT Hi, it seems there are some issues with 3.0.0-alpha-3 maven archetypes: I have updated [1] with some workaround instructions that should fix your issues. Regards. [1] http://cocoon.apache.org/3.0/download.html - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon-3.0.0-alpha-3 and spring
When Il install cocoon by the sample archetype and start jetty after installation I get the error java.lang.NoClassDefFoundError: org/springframework/core/env/Environment. What is the reason ? Does cocoon-3.0.0-alpha-3 work with spring 3.1.3 Thanks for your help - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
cocoon 2.2.0 and spring 3.1.3
I want to use Cocoon-2.2.0 with spring 3.1.3. Did somebody already try this? Or is it a lot of work to do? Heiner - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org