Discussion:
[jira] [Created] (COCOON3-129) Create an example to send a mail via cocoon
Thorsten Scherler (JIRA)
2013-07-20 16:14:49 UTC
Permalink
Thorsten Scherler created COCOON3-129:
-----------------------------------------

Summary: Create an example to send a mail via cocoon
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1


http://markmail.org/message/6ces6erwekf57qfo

as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Thorsten Scherler (JIRA)
2013-07-20 16:26:50 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Scherler closed COCOON3-129.
-------------------------------------

Resolution: Fixed

Committed revision 1505158.
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Piratenvisier
2013-07-22 06:17:40 UTC
Permalink
Thank you Thorsten for sending the MailSender example.
I learnt one way to read out a bean could be a Controller based on a
StringTemplateGenerator
while a Restcontroller delivers the Bean.Do you know if there exists a
Generator like the former JXGenerator
Thanks for your help
Post by Thorsten Scherler (JIRA)
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thorsten Scherler closed COCOON3-129.
-------------------------------------
Resolution: Fixed
Committed revision 1505158.
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Thorsten Scherler
2013-07-22 08:05:39 UTC
Permalink
Post by Piratenvisier
Thank you Thorsten for sending the MailSender example.
I learnt one way to read out a bean could be a Controller based on a
StringTemplateGenerator
while a Restcontroller delivers the Bean.Do you know if there exists a
Generator like the former JXGenerator
Thanks for your help
ATM the StringTemplateGenerator is the way, none has migrated the
JXGenerator yet. Regarding the pipeline example it took me much longer
then expected to extract the code since like I said it was based on a
jms trigger and after 8 hours Saturday my kids requested to go swimming.

I will have a look now to create a small pipe-example. Further for
advanced mail operations you would need
MimeMessageHelper message = new MimeMessageHelper(mimeMessage,
true,"UTF-8");
which allows to
* message.addAttachment(...) ;
* message.setText(text, htmlString); // alternative formats text and html

salu2
Post by Piratenvisier
Post by Thorsten Scherler (JIRA)
[
https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Scherler closed COCOON3-129.
-------------------------------------
Resolution: Fixed
Committed revision 1505158.
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a
simple example to send a mail with cocoon based on work of
codebusters.es.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
http://www.atlassian.com/software/jira
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
Piratenvisier
2013-07-22 08:51:34 UTC
Permalink
Thank you Thorsten don't spoil too much time for me.
I think I need only some advice now.
At the first glance cocoon 3.0 looks rather different than 2.2
I got fop and the SQLGenerator running.
I try now the RestController.
I will have a look at the normal Expession Language.
in the StringTemplateGenerator
Maybe it does the job.
Post by Thorsten Scherler
Post by Piratenvisier
Thank you Thorsten for sending the MailSender example.
I learnt one way to read out a bean could be a Controller based on a
StringTemplateGenerator
while a Restcontroller delivers the Bean.Do you know if there exists a
Generator like the former JXGenerator
Thanks for your help
ATM the StringTemplateGenerator is the way, none has migrated the
JXGenerator yet. Regarding the pipeline example it took me much longer
then expected to extract the code since like I said it was based on a
jms trigger and after 8 hours Saturday my kids requested to go swimming.
I will have a look now to create a small pipe-example. Further for
advanced mail operations you would need
MimeMessageHelper message = new MimeMessageHelper(mimeMessage,
true,"UTF-8");
which allows to
* message.addAttachment(...) ;
* message.setText(text, htmlString); // alternative formats text and html
salu2
Post by Piratenvisier
Post by Thorsten Scherler (JIRA)
[
https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Scherler closed COCOON3-129.
-------------------------------------
Resolution: Fixed
Committed revision 1505158.
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a
simple example to send a mail with cocoon based on work of
codebusters.es.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
http://www.atlassian.com/software/jira
Piratenvisier
2013-07-22 10:17:52 UTC
Permalink
I have some problem getting the Restexample running:
In the pom I have :

<dependency>
<groupId>org.apache.cocoon.pipeline</groupId>
<artifactId>cocoon-pipeline</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon.databases</groupId>
<artifactId>cocoon-databases</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon.sax</groupId>
<artifactId>cocoon-sax</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon.rest</groupId>
<artifactId>cocoon-rest</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon.stringtemplate</groupId>
<artifactId>cocoon-stringtemplate</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon.wicket</groupId>
<artifactId>cocoon-wicket</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon.optional</groupId>
<artifactId>cocoon-optional</artifactId>
<version>${cocoon.version}</version>
</dependency>

<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-serializers-charsets</artifactId>
<version>${cocoon.serializers.charset.version}</version>
</dependency>
</dependencies>

my sitemap includes :

<map:pipeline>

<map:match pattern="controller/{id}/{name}">
<controller:call controller="rest-controller"
select="org.apache.cocoon.sample.controller.DemoRESTController">
<map:parameter name="id" value="{map:id}" />
<map:parameter name="name" value="{map:name}" />
</controller:call>
</map:match>
</map:pipeline>
<map:pipeline type="noncaching">
<map:match pattern="controller/screen">
<map:generate src="controller/demo.html"
type="controller-aware-string-template" />
<map:serialize type="xml" status-code="202" />
</map:match>
</map:pipeline>

I included cocoon-sample-controller.xml :

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
">

<!-- Scan for all REST controllers and make them as beans available -->
<context:component-scan
base-package="org.apache.cocoon.sample.controller"
use-default-filters="false"
name-generator="org.apache.cocoon.rest.controller.ControllerBeanNameGenerator"
scope-resolver="org.apache.cocoon.rest.controller.ControllerBeanScopeResolver">
<context:include-filter type="annotation"
expression="org.apache.cocoon.rest.controller.annotation.RESTController" />
</context:component-scan>

<context:annotation-config />

<bean id="org.apache.cocoon.sample.controller.aspect1"
class="org.apache.cocoon.sample.controller.DemoRESTControllerAspect1" />
<bean id="org.apache.cocoon.sample.controller.aspect2"
class="org.apache.cocoon.sample.controller.DemoRESTControllerAspect2" />
</beans>

and cocoon-sample-servlet-service.xml:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:servlet="http://cocoon.apache.org/schema/servlet"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cocoon.apache.org/schema/servlet
http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">

<!-- A Cocoon-Sitemap based servlet-service. -->

<bean id="org.apache.cocoon.sample.servlet"
class="org.apache.cocoon.servlet.XMLSitemapServlet">
here I am not sure if I did this the right way:
<servlet:context mount-path=""
context-path="jar:classpath:/WEB-INF/lib/cocoon-servlet-3.0.0-beta-1-SNAPSHOT!/webapp/"/>

</bean>

<!-- A servlet-service that exposes JAX-RS REST endpoints. -->
<!-- <bean id="org.apache.cocoon.sample.rest.servlet"
class="org.apache.cocoon.rest.jaxrs.container.CocoonJAXRSServlet">
<servlet:context mount-path="/jax-rs"
context-path="jar:classpath:lib/${project.build.finalName}.jar!/COB-INF/">
<servlet:connections>
<entry key="sample" value-ref="org.apache.cocoon.sample.servlet" />
</servlet:connections>
</servlet:context>

<property name="restResourcesList">
<list>
<ref bean="org.apache.cocoon.sample.rest.resource.one" />
<ref bean="org.apache.cocoon.sample.rest.resource.two" />
</list>
</property>
</bean>-->
</beans>

in web.xml the only part of importance is :

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/applicationContext-resources.xml
classpath:/applicationContext-dao.xml
classpath:/applicationContext-service.xml
/WEB-INF/applicationContext*.xml
/WEB-INF/cocoon-sample-*.xml
</param-value>
</context-param>

I get 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)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
at
org.apache.cocoon.sample.controller.DemoRESTControllerAspect2.someTestAdvice(DemoRESTControllerAspect2.java:40)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
at
org.apache.cocoon.sample.controller.DemoRESTControllerAspect1.someTestAdvice(DemoRESTControllerAspect1.java:40)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy83.doGet(Unknown Source) at
org.apache.cocoon.rest.controller.MethodDelegator$GetDelegate.execute(MethodDelegator.java:128)
at
org.apache.cocoon.rest.controller.MethodDelegator.delegate(MethodDelegator.java:63)
at
org.apache.cocoon.rest.controller.SpringRESTController.setup(SpringRESTController.java:119)
at
org.apache.cocoon.controller.SpringControllerComponent.setup(SpringControllerComponent.java:110)
at
org.apache.cocoon.pipeline.AbstractPipeline.setupComponents(AbstractPipeline.java:181)
at
org.apache.cocoon.pipeline.AbstractPipeline.setup(AbstractPipeline.java:132)
at
org.apache.cocoon.pipeline.CachingPipeline.setup(CachingPipeline.java:183)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy80.setup(Unknown Source) at
org.apache.cocoon.sitemap.InvocationImpl.execute(InvocationImpl.java:145) at
org.apache.cocoon.sitemap.node.PipelineNode.invoke(PipelineNode.java:69)
at
org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:100)
at
org.apache.cocoon.sitemap.node.PipelinesNode.invoke(PipelinesNode.java:50)
at
org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:100)
at org.apache.cocoon.sitemap.node.Sitemap.invoke(Sitemap.java:43) at
org.apache.cocoon.servlet.RequestProcessor.invoke(RequestProcessor.java:245)
at
org.apache.cocoon.servlet.RequestProcessor.sendSitemapResponse(RequestProcessor.java:313)
at
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:100)
at
org.apache.cocoon.wicket.request.CocoonSitemapRequestHandler.respond(CocoonSitemapRequestHandler.java:80)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350) at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:724)

Complete stack:

org.apache.cocoon.wicket.request.CocoonWicketRuntimeException: Error
occurred while executing a Cocoon sitemap. at
org.apache.cocoon.wicket.request.CocoonSitemapRequestHandler.respond(CocoonSitemapRequestHandler.java:87)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)

org.apache.cocoon.sitemap.InvocationException:
java.net.MalformedURLException: unknown protocol: servlet at
org.apache.cocoon.sitemap.util.ExceptionHandler.getInvocationException(ExceptionHandler.java:39)
at
org.apache.cocoon.rest.controller.MethodDelegator$GetDelegate.execute(MethodDelegator.java:130)
at
org.apache.cocoon.rest.controller.MethodDelegator.delegate(MethodDelegator.java:63)
at
org.apache.cocoon.rest.controller.SpringRESTController.setup(SpringRESTController.java:119)
at
org.apache.cocoon.controller.SpringControllerComponent.setup(SpringControllerComponent.java:110)
at
org.apache.cocoon.pipeline.AbstractPipeline.setupComponents(AbstractPipeline.java:181)
at
org.apache.cocoon.pipeline.AbstractPipeline.setup(AbstractPipeline.java:132)
at
org.apache.cocoon.pipeline.CachingPipeline.setup(CachingPipeline.java:183)
at java.lang.reflect.Method.invoke(Method.java:606) at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy80.setup(Unknown Source) at
org.apache.cocoon.sitemap.InvocationImpl.execute(InvocationImpl.java:145) at
org.apache.cocoon.sitemap.node.PipelineNode.invoke(PipelineNode.java:69)
at
org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:100)
at
org.apache.cocoon.sitemap.node.PipelinesNode.invoke(PipelinesNode.java:50)
at
org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:100)
at org.apache.cocoon.sitemap.node.Sitemap.invoke(Sitemap.java:43) at
org.apache.cocoon.servlet.RequestProcessor.invoke(RequestProcessor.java:245)
at
org.apache.cocoon.servlet.RequestProcessor.sendSitemapResponse(RequestProcessor.java:313)
at
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:100)
at
org.apache.cocoon.wicket.request.CocoonSitemapRequestHandler.respond(CocoonSitemapRequestHandler.java:80)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
Post by Thorsten Scherler
Post by Piratenvisier
Thank you Thorsten for sending the MailSender example.
I learnt one way to read out a bean could be a Controller based on a
StringTemplateGenerator
while a Restcontroller delivers the Bean.Do you know if there exists a
Generator like the former JXGenerator
Thanks for your help
ATM the StringTemplateGenerator is the way, none has migrated the
JXGenerator yet. Regarding the pipeline example it took me much longer
then expected to extract the code since like I said it was based on a
jms trigger and after 8 hours Saturday my kids requested to go swimming.
I will have a look now to create a small pipe-example. Further for
advanced mail operations you would need
MimeMessageHelper message = new MimeMessageHelper(mimeMessage,
true,"UTF-8");
which allows to
* message.addAttachment(...) ;
* message.setText(text, htmlString); // alternative formats text and html
salu2
Post by Piratenvisier
Post by Thorsten Scherler (JIRA)
[
https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Scherler closed COCOON3-129.
-------------------------------------
Resolution: Fixed
Committed revision 1505158.
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a
simple example to send a mail with cocoon based on work of
codebusters.es.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
http://www.atlassian.com/software/jira
Thorsten Scherler
2013-07-22 14:10:24 UTC
Permalink
Post by Piratenvisier
<dependency>
<groupId>org.apache.cocoon.pipeline</groupId>
<artifactId>cocoon-pipeline</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.databases</groupId>
<artifactId>cocoon-databases</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.sax</groupId>
<artifactId>cocoon-sax</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.rest</groupId>
<artifactId>cocoon-rest</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.stringtemplate</groupId>
<artifactId>cocoon-stringtemplate</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.wicket</groupId>
<artifactId>cocoon-wicket</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.optional</groupId>
<artifactId>cocoon-optional</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-serializers-charsets</artifactId>
<version>${cocoon.serializers.charset.version}</version>
</dependency>
</dependencies>
<map:pipeline>
<map:match pattern="controller/{id}/{name}">
<controller:call controller="rest-controller"
select="org.apache.cocoon.sample.controller.DemoRESTController">
<map:parameter name="id" value="{map:id}" />
<map:parameter name="name" value="{map:name}" />
</controller:call>
</map:match>
</map:pipeline>
<map:pipeline type="noncaching">
<map:match pattern="controller/screen">
<map:generate src="controller/demo.html"
type="controller-aware-string-template" />
<map:serialize type="xml" status-code="202" />
</map:match>
</map:pipeline>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
">
<!-- Scan for all REST controllers and make them as beans available -->
<context:component-scan
base-package="org.apache.cocoon.sample.controller"
use-default-filters="false"
name-generator="org.apache.cocoon.rest.controller.ControllerBeanNameGenerator"
scope-resolver="org.apache.cocoon.rest.controller.ControllerBeanScopeResolver">
<context:include-filter type="annotation"
expression="org.apache.cocoon.rest.controller.annotation.RESTController" />
</context:component-scan>
<context:annotation-config />
<bean id="org.apache.cocoon.sample.controller.aspect1"
class="org.apache.cocoon.sample.controller.DemoRESTControllerAspect1" />
<bean id="org.apache.cocoon.sample.controller.aspect2"
class="org.apache.cocoon.sample.controller.DemoRESTControllerAspect2" />
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:servlet="http://cocoon.apache.org/schema/servlet"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cocoon.apache.org/schema/servlet
http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">
<!-- A Cocoon-Sitemap based servlet-service. -->
<bean id="org.apache.cocoon.sample.servlet"
class="org.apache.cocoon.servlet.XMLSitemapServlet">
<servlet:context mount-path=""
context-path="jar:classpath:/WEB-INF/lib/cocoon-servlet-3.0.0-beta-1-SNAPSHOT!/webapp/"/>
</bean>
<!-- A servlet-service that exposes JAX-RS REST endpoints. -->
<!-- <bean id="org.apache.cocoon.sample.rest.servlet"
class="org.apache.cocoon.rest.jaxrs.container.CocoonJAXRSServlet">
<servlet:context mount-path="/jax-rs"
context-path="jar:classpath:lib/${project.build.finalName}.jar!/COB-INF/">
<servlet:connections>
<entry key="sample"
value-ref="org.apache.cocoon.sample.servlet" />
</servlet:connections>
</servlet:context>
<property name="restResourcesList">
<list>
<ref bean="org.apache.cocoon.sample.rest.resource.one" />
<ref bean="org.apache.cocoon.sample.rest.resource.two" />
</list>
</property>
</bean>-->
</beans>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/applicationContext-resources.xml
classpath:/applicationContext-dao.xml
classpath:/applicationContext-service.xml
/WEB-INF/applicationContext*.xml
/WEB-INF/cocoon-sample-*.xml
</param-value>
</context-param>
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)
Not sure but seems that he cannot resolve: return new
URLResponse("servlet:/controller/screen", data);

However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run

I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.

HTH

salu2
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
Piratenvisier
2013-07-23 10:58:58 UTC
Permalink
Post by Thorsten Scherler
Post by Piratenvisier
<dependency>
<groupId>org.apache.cocoon.pipeline</groupId>
<artifactId>cocoon-pipeline</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.databases</groupId>
<artifactId>cocoon-databases</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.sax</groupId>
<artifactId>cocoon-sax</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.rest</groupId>
<artifactId>cocoon-rest</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.stringtemplate</groupId>
<artifactId>cocoon-stringtemplate</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.wicket</groupId>
<artifactId>cocoon-wicket</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon.optional</groupId>
<artifactId>cocoon-optional</artifactId>
<version>${cocoon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-serializers-charsets</artifactId>
<version>${cocoon.serializers.charset.version}</version>
</dependency>
</dependencies>
<map:pipeline>
<map:match pattern="controller/{id}/{name}">
<controller:call controller="rest-controller"
select="org.apache.cocoon.sample.controller.DemoRESTController">
<map:parameter name="id" value="{map:id}" />
<map:parameter name="name" value="{map:name}" />
</controller:call>
</map:match>
</map:pipeline>
<map:pipeline type="noncaching">
<map:match pattern="controller/screen">
<map:generate src="controller/demo.html"
type="controller-aware-string-template" />
<map:serialize type="xml" status-code="202" />
</map:match>
</map:pipeline>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
">
<!-- Scan for all REST controllers and make them as beans available -->
<context:component-scan
base-package="org.apache.cocoon.sample.controller"
use-default-filters="false"
name-generator="org.apache.cocoon.rest.controller.ControllerBeanNameGenerator"
scope-resolver="org.apache.cocoon.rest.controller.ControllerBeanScopeResolver">
<context:include-filter type="annotation"
expression="org.apache.cocoon.rest.controller.annotation.RESTController" />
</context:component-scan>
<context:annotation-config />
<bean id="org.apache.cocoon.sample.controller.aspect1"
class="org.apache.cocoon.sample.controller.DemoRESTControllerAspect1" />
<bean id="org.apache.cocoon.sample.controller.aspect2"
class="org.apache.cocoon.sample.controller.DemoRESTControllerAspect2" />
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:servlet="http://cocoon.apache.org/schema/servlet"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cocoon.apache.org/schema/servlet
http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">
<!-- A Cocoon-Sitemap based servlet-service. -->
<bean id="org.apache.cocoon.sample.servlet"
class="org.apache.cocoon.servlet.XMLSitemapServlet">
<servlet:context mount-path=""
context-path="jar:classpath:/WEB-INF/lib/cocoon-servlet-3.0.0-beta-1-SNAPSHOT!/webapp/"/>
</bean>
<!-- A servlet-service that exposes JAX-RS REST endpoints. -->
<!-- <bean id="org.apache.cocoon.sample.rest.servlet"
class="org.apache.cocoon.rest.jaxrs.container.CocoonJAXRSServlet">
<servlet:context mount-path="/jax-rs"
context-path="jar:classpath:lib/${project.build.finalName}.jar!/COB-INF/">
<servlet:connections>
<entry key="sample"
value-ref="org.apache.cocoon.sample.servlet" />
</servlet:connections>
</servlet:context>
<property name="restResourcesList">
<list>
<ref bean="org.apache.cocoon.sample.rest.resource.one" />
<ref bean="org.apache.cocoon.sample.rest.resource.two" />
</list>
</property>
</bean>-->
</beans>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/applicationContext-resources.xml
classpath:/applicationContext-dao.xml
classpath:/applicationContext-service.xml
/WEB-INF/applicationContext*.xml
/WEB-INF/cocoon-sample-*.xml
</param-value>
</context-param>
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)
Not sure but seems that he cannot resolve: return new
URLResponse("servlet:/controller/screen", data);
When I went back to the original distribution without any changes and
even when I try new URL(new URL("servlet:"),"servlet:/controller/screen")
I get the same error,although I think that I once had success with the
distribution.
But I see a strong tendenca to a programmed pipeline and I found myself
even without cocoon on this way.
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what result
should I see ?
Post by Thorsten Scherler
HTH
salu2
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/
Thorsten Scherler
2013-07-23 12:30:47 UTC
Permalink
Post by Piratenvisier
...
Post by Thorsten Scherler
Post by Piratenvisier
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)
Not sure but seems that he cannot resolve: return new
URLResponse("servlet:/controller/screen", data);
When I went back to the original distribution without any changes and
even when I try new URL(new URL("servlet:"),"servlet:/controller/screen")
I get the same error,although I think that I once had success with the
distribution.
Hmm not sure, I just tried the samples and they work fine for me.
cd ~/src/apache/c3/cocoon-sample
svn up
At revision 1506007.
mvn clean install jetty:run
http://localhost:8888/jax-rs/sample/parameter-passing/5?req-param=7
works fine.
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what result
should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/

There are three different showcases, the last two ones are mail samples.
Where "Here comes the response from server..." stands we will wait the
response. I implement the whole thing with html5 and a bit of javascript
to post to the server and update the response div with the server
response. In case you have success it will read: "Result: true" while
the request is processed you see "Processing request...". In case of
result: false check the logs in ./target/work/cocoon.log

salu2
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
Piratenvisier
2013-07-24 05:19:05 UTC
Permalink
Post by Thorsten Scherler
Post by Piratenvisier
...
Post by Thorsten Scherler
Post by Piratenvisier
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)
Not sure but seems that he cannot resolve: return new
URLResponse("servlet:/controller/screen", data);
When I went back to the original distribution without any changes and
even when I try new URL(new URL("servlet:"),"servlet:/controller/screen")
I get the same error,although I think that I once had success with
the distribution.
Hmm not sure, I just tried the samples and they work fine for me.
cd ~/src/apache/c3/cocoon-sample
svn up
At revision 1506007.
mvn clean install jetty:run
http://localhost:8888/jax-rs/sample/parameter-passing/5?req-param=7
works fine.
Maybe this is the cause :
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

Because I am not able to install the whole application because of this
error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what result
should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we will
wait the response. I implement the whole thing with html5 and a bit of
javascript to post to the server and update the response div with the
server response. In case you have success it will read: "Result: true"
while the request is processed you see "Processing request...". In
case of result: false check the logs in ./target/work/cocoon.log
salu2
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/
Piratenvisier
2013-07-24 15:30:20 UTC
Permalink
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
...
Post by Thorsten Scherler
Post by Piratenvisier
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)
Not sure but seems that he cannot resolve: return new
URLResponse("servlet:/controller/screen", data);
When I went back to the original distribution without any changes
and even when I try new URL(new
URL("servlet:"),"servlet:/controller/screen")
I get the same error,although I think that I once had success with
the distribution.
Hmm not sure, I just tried the samples and they work fine for me.
cd ~/src/apache/c3/cocoon-sample
svn up
At revision 1506007.
mvn clean install jetty:run
http://localhost:8888/jax-rs/sample/parameter-passing/5?req-param=7
works fine.
When i try to install cocoon with maven I get the error
Unable to initialise extensions
Component descriptor role: 'com.jcraft.jsch.UIKeyboardInteractive',
'org.apache.maven.wagon.providers.ssh.jsch.interactive.PrompterUIKeyboardInteractive',
role hint: 'default' has a hint, but there are other implementations
that don't
concerning this error I have at the moment no answer.
when I have solved this I come back to the servlet problem.
Because of this problem I don't know what software I link as beta-1
Post by Piratenvisier
Because I am not able to install the whole application because of this
error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to grant
access to the stylesheets
und let wicket give you the full href.
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
Post by Piratenvisier
Post by Thorsten Scherler
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/
Thorsten Scherler
2013-07-24 20:17:44 UTC
Permalink
On 07/24/2013 05:30 PM, Piratenvisier wrote:
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)

...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).

What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)

salu2
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
Piratenvisier
2013-07-25 04:46:15 UTC
Permalink
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Thank you for your remark above. It fits to a remark I once read from
one of the inventors of cocoon
who told that he found out that more and more functionality of cocoon is
offered by the browser.
Yes with AJAX HTML5 json I see a browser revival after concepts like
eclipse rcp which I once found state of the art
and today I would avoid. Cocoon-sample now does its restjob. Don't know
what was the problem.
But in my application I still have the same error. I think the reasen is
that I integrated cocoon in wicket.
I think I have to seperate it from wicket only coupled by web.xml.
Post by Thorsten Scherler
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
Piratenvisier
2013-07-25 14:28:43 UTC
Permalink
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Thank you for your information.
I will have a closer look at the products json and node.js.
I found even a mail if node.js makes wicket even superfluous.
Even for PDFCreation there is a Javascript product: PDFKit
<http://devongovett.github.com/pdfkit/>
Post by Thorsten Scherler
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
Piratenvisier
2013-07-26 15:01:19 UTC
Permalink
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
I changed the name of the the groupId of cocoon-rest-optional install it
and make it a dependency of my application.
With cocoon-sample I am successful with your application I get the error
2013-07-26 16:55:08.684:WARN:oejw.WebAppContext:Failed startup of
context
o.m.j.p.JettyWebAppContext{/,file:/homeerweitert/java/wicket/appfuse/makler/src/main/webapp/},file:/homeerweitert/java/wicket/appfuse/makler/src/main/webapp/
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid
bean definition with name 'mailSender' defined in URL
[jar:file:/homeerweitert/java/.m2/repository/braunimmobilien/cocoon-rest-optional/3.0.0-beta-1-SNAPSHOT/cocoon-rest-optional-3.0.0-beta-1-SNAPSHOT.jar!/META-INF/cocoon/spring/block-application-context.xml]:
Could not resolve placeholder 'email.host' in string value "${email.host}"
Piratenvisier
2013-08-10 10:24:16 UTC
Permalink
When I try to start
/homeerweitert/java/wicket/appfuse/makler/cocoon-sample-webapp/target/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT.war
with the above plugin I get the error:

[INFO] [talledLocalContainer] SEVERE: Error listenerStart
[INFO] [talledLocalContainer] Aug 10, 2013 12:14:01 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Context [/sample] startup failed
due to previous errors

what do I have to change ?
Yahoo
2014-03-09 08:47:43 UTC
Permalink
Hello Thorsten,

it lasted a long time to bring my wicket appliication up to the latest
wicket,
spring,hibernate,appfuse,hibernate lucene text search,automatic creation
of the database from bean annotation by dbunit. I succeeded to include
hibernate in cocoon.
Now I get back to the specialities of my cocoon applications.
Concerning the Fop serializer: i I used the FOPNGSerializer
and fop-config.xml to include englischeschjoit.ttf.
The second speciality is the reason I used a SendMailTransformer
getting the Mail Text from a cocoon pipeline and also the attachement.
At the moment I don't see how I could achieve this.
The other possibility you mentioned to look for is the node.js
environment, where there is a hype at the moment.
But here I have no exoerience and I don't know with what to start to
achieve the above mentioned functionality. Especially by what to replace
Hibernate.
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
Yahoo
2014-03-10 07:27:13 UTC
Permalink
Hello Thorsten,

I now looked deeper in the two cocoon applications.
The Fop-config problem ist solved because the normal Fopserializer
allows userconfig.
If I stil lneed the FOPNGSerializer I will see.
Concerning my mail problem you offered the SendMailPipeServiceI. I now
try to use pipelines for the attachements. Maybe I will come back with
some configuration questions.
Post by Piratenvisier
Hello Thorsten,
it lasted a long time to bring my wicket appliication up to the latest
wicket,
spring,hibernate,appfuse,hibernate lucene text search,automatic
creation of the database from bean annotation by dbunit. I succeeded
to include hibernate in cocoon.
Now I get back to the specialities of my cocoon applications.
Concerning the Fop serializer: i I used the FOPNGSerializer
and fop-config.xml to include englischeschjoit.ttf.
The second speciality is the reason I used a SendMailTransformer
getting the Mail Text from a cocoon pipeline and also the attachement.
At the moment I don't see how I could achieve this.
The other possibility you mentioned to look for is the node.js
environment, where there is a hype at the moment.
But here I have no exoerience and I don't know with what to start to
achieve the above mentioned functionality. Especially by what to
replace Hibernate.
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
Yahoo
2014-03-12 13:45:02 UTC
Permalink
Hello Thorsten,

how can I implement the functionality of
<map:generate src="controller/xml/{map:file}.xml"
type="controller-aware-string-template" />
in your EmailPlainPipe
and how to transfer the map to the Generator and make resolve the
references or is the replacementwork done before?


in your email-pipeline
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
Yahoo
2014-03-13 10:55:37 UTC
Permalink
Hello Thorsten,
I want to use Jexl in your EmailPipeline, but I don't know how to
Implement it in your Example ?
Post by Thorsten Scherler
...
Post by Piratenvisier
Post by Piratenvisier
Because I am not able to install the whole application because of
this error.
Post by Thorsten Scherler
Post by Piratenvisier
But I see a strong tendenca to a programmed pipeline and I found
myself even without cocoon on this way.
see the pipeline example you can use cocoon-pipeline in you normal
spring webapp (without cocoon servlet).
I got a programmed fop-pipeline running. Under wicket you have to
grant access to the stylesheets
und let wicket give you the full href.
Actually you can call a java cocoon pipeline from wicket to do the job
for you. ;)
...but seriously there are many fish in the sea and I myself ATM are
experiencing node.js which is really rapid in terms of development
especially if your gui is using json. Our company has create a framework
called rapidMobile where I am ATM testing to serve the static html5 part
with creating a node.js server around it, instead of using c3 as we did
before. While playing around I found it pretty easy to create basic
REST services for node and do some REST services that prior had been in
cocoon (maybe re-factored to go into node).
What I am trying to say is that cocoon is the best in what it is
designed for: being a lib capable of use x input formats and serialize
to n output formats. The whole idea for myself is best expressed in
Apache Forrest and they concept of input, internal and output modules.
Where everything is drilled down to an internal language so it easy to
create various input and output formats.
Post by Piratenvisier
Post by Piratenvisier
Post by Thorsten Scherler
Post by Piratenvisier
Post by Thorsten Scherler
However that seems pretty much as the sample block.
Try just to start cocoon-rest-optional and do mvn clean install jetty:run
I just added a small sample (I consider it quite clean) to use a
pipeline in your java code.
How should i call the Restcontroller from the browser and what
result should I see ?
cd ../cocoon-rest-optional #assuming you were in samples before
mvn clean install jetty:run
http://localhost:8888/
There are three different showcases, the last two ones are mail
samples. Where "Here comes the response from server..." stands we
will wait the response. I implement the whole thing with html5 and a
bit of javascript to post to the server and update the response div
"Result: true" while the request is processed you see "Processing
request...". In case of result: false check the logs in
./target/work/cocoon.log
salu2
I got your example running, thank you
I aknowledge that cocoon is again getting interesting.
yeah :)
salu2
Thorsten Scherler (JIRA)
2013-07-22 14:02:48 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715222#comment-13715222 ]

Thorsten Scherler commented on COCOON3-129:
-------------------------------------------

Committed revision 1505683.
Added example to use a pipeline to process mail body.
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Piratenvisier
2013-07-26 15:47:44 UTC
Permalink
I created an own dependency of cocoon-rest-optional of your block with
another groupID
When I start jetty java complains that it doesn't find the placeholders
in block-application-context.
I don't have this problem in cocoon-sample. Where is this placeholding
mechanism set up ?
Thorsten Scherler
2013-07-27 09:34:53 UTC
Permalink
Post by Piratenvisier
I created an own dependency of cocoon-rest-optional of your block with
another groupID
When I start jetty java complains that it doesn't find the
placeholders in block-application-context.
I don't have this problem in cocoon-sample. Where is this placeholding
mechanism set up ?
In linux I did:

cd c3
regexxer
#here i searched for pattern *.xml
# then I searched for configurator

I found 12 matches the important once in the cocoon-rest-optional where
located in the rcl folder:
<!-- Activate Cocoon Spring Configurator -->
<configurator:settings>
<configurator:property
name="org.apache.cocoon.reloading.sitemap" value="true"/>
<configurator:property
name="org.apache.cocoon.containerencoding" value="UTF-8"/>
<configurator:property
name="org.apache.cocoon.exception.ProcessingException.unroll" value="true"/>
</configurator:settings>

You find the docu about it in
http://cocoon.apache.org/subprojects/configuration/spring-configurator/index.html
specially the part
http://cocoon.apache.org/subprojects/configuration/spring-configurator/1310_1_1.html
where the properties matching is explained in detail.

In short I guess you do not have either not activated the configurator
so the properties file is not picked up or you do not have a file like
c3/cocoon-rest-optional/src/main/resources/META-INF/cocoon/properties/mail.properties
in your project.

I recommend as well the spring "vanilla" placeholder docu
http://static.springsource.org/spring/docs/2.0.x/reference/beans.html#beans-factory-placeholderconfigurer
since the "Cocoon Spring Configurator" in the end is a wrapper around that.

hth
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
Piratenvisier
2013-07-28 15:17:59 UTC
Permalink
Thank you Thorsten,

after a lot of integration hazzle,
I decided to keep the cocoon sitemap out of the Wicket application,
only using in the application a programmed pipeline returning back
wicket-conform Output.
At the moment I use a pipeline with a JAXBgenerator a Transformer and a
FOPSerializer,
as one piossible PDF solution.
I will go on examining the other solutions Flyingsaurcer and Itext.
An Application with a real sitemap Servletsupport and RestControllers I
will keep in an own
Cocoon application. I will separate the database part and share it
between both worlds as I had it before
but could not upgrade because of cocoon.2.2.
I put now cocoon-sample and cocoon-rest-optional together, the only
problem I have with
the TextResponse using

<map:match pattern="**">
<map:read src="{map:1}" />
</map:match>

which breaks in cocoon-sample the SitemapBuilderTest.
How can I change the mapping part of this response to make the pattern
not as general,
or maybe i put it in the error part.

My application has a third part which is an eclipse Application.
I also want to integrate this.
My feeling is that using maven here is not as easy.

Best regards
Heiner
Piratenvisier
2013-08-11 17:16:50 UTC
Permalink
Hello Thorsten,

I put your cocoon-rest-optional und cocoon-sample in one block and
made it runnable in the cocoon-sample-webapp block to produce a war file.
With maven3 and Jetty it works. Even the problem with your cocoon
distribution I had doesn't
exist any more with maven 3.
I tried to deploy cocoon-sample-webapp by cargo-maven2-plugin and get
the following errors
with maven2 and maven3:
[INFO] [talledLocalContainer] INFO:
validateJarFile(/homeerweitert/java/cocoon3/2272013/cocoon-sample-webapp/target/tomcat7x/container/webapps/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT/WEB-INF/lib/servlet-api-2.5.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
org.apache.catalina.startup.TaglibUriRule body
[INFO] [talledLocalContainer] INFO: TLD skipped. URI:
urn:com:sun:jersey:api:view is already defined
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: No Spring WebApplicationInitializer
types detected on classpath
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:44 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Initializing Spring root
WebApplicationContext
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:47 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Apache Cocoon Spring Configurator
v2.2.1 is running in mode 'prod'.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext listenerStart
[INFO] [talledLocalContainer] SEVERE: Exception sending context
initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
[INFO] [talledLocalContainer] java.lang.NoClassDefFoundError:
javax/mail/MessagingException
[INFO] [talledLocalContainer] at
java.lang.Class.getDeclaredConstructors0(Native Method)
[INFO] [talledLocalContainer] at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
[INFO] [talledLocalContainer] at
java.lang.Class.getDeclaredConstructors(Class.java:1891)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:230)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:978)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
[INFO] [talledLocalContainer] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
[INFO] [talledLocalContainer] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
[INFO] [talledLocalContainer] at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
[INFO] [talledLocalContainer] at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
[INFO] [talledLocalContainer] at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
[INFO] [talledLocalContainer] at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[INFO] [talledLocalContainer] at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[INFO] [talledLocalContainer] at
java.util.concurrent.FutureTask.run(FutureTask.java:166)
[INFO] [talledLocalContainer] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[INFO] [talledLocalContainer] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:724)
[INFO] [talledLocalContainer] Caused by:
java.lang.ClassNotFoundException: javax.mail.MessagingException
[INFO] [talledLocalContainer] at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
[INFO] [talledLocalContainer] at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
[INFO] [talledLocalContainer] ... 32 more
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Error listenerStart
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Context
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] startup failed due to
previous errors
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Closing Spring root
WebApplicationContext
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started a
thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started a
thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started a
thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
you have an idea what in the configuration is wrong ?
Thorsten Scherler
2013-08-14 18:57:01 UTC
Permalink
Post by Piratenvisier
Hello Thorsten,
I put your cocoon-rest-optional und cocoon-sample in one block and
made it runnable in the cocoon-sample-webapp block to produce a war file.
With maven3 and Jetty it works. Even the problem with your cocoon
distribution I had doesn't
exist any more with maven 3.
I tried to deploy cocoon-sample-webapp by cargo-maven2-plugin and get
the following errors
validateJarFile(/homeerweitert/java/cocoon3/2272013/cocoon-sample-webapp/target/tomcat7x/container/webapps/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT/WEB-INF/lib/servlet-api-2.5.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
This info is that in your pom somewhere you have not set the servlet dep
as provided since tomcat brings its own.
Post by Piratenvisier
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
org.apache.catalina.startup.TaglibUriRule body
urn:com:sun:jersey:api:view is already defined
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: No Spring
WebApplicationInitializer types detected on classpath
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:44 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Initializing Spring root
WebApplicationContext
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:47 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Apache Cocoon Spring Configurator
v2.2.1 is running in mode 'prod'.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext listenerStart
[INFO] [talledLocalContainer] SEVERE: Exception sending context
initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
javax/mail/MessagingException
It seems that the javax.mail is not present but not sure why. Did you
use something besides the mentioned blocks?

salu2
Post by Piratenvisier
[INFO] [talledLocalContainer] at
java.lang.Class.getDeclaredConstructors0(Native Method)
[INFO] [talledLocalContainer] at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
[INFO] [talledLocalContainer] at
java.lang.Class.getDeclaredConstructors(Class.java:1891)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:230)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:978)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
[INFO] [talledLocalContainer] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
[INFO] [talledLocalContainer] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
[INFO] [talledLocalContainer] at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
[INFO] [talledLocalContainer] at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
[INFO] [talledLocalContainer] at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
[INFO] [talledLocalContainer] at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[INFO] [talledLocalContainer] at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[INFO] [talledLocalContainer] at
java.util.concurrent.FutureTask.run(FutureTask.java:166)
[INFO] [talledLocalContainer] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[INFO] [talledLocalContainer] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[INFO] [talledLocalContainer] at
java.lang.Thread.run(Thread.java:724)
java.lang.ClassNotFoundException: javax.mail.MessagingException
[INFO] [talledLocalContainer] at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
[INFO] [talledLocalContainer] at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
[INFO] [talledLocalContainer] ... 32 more
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Error listenerStart
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Context
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] startup failed due to
previous errors
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Closing Spring root
WebApplicationContext
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
a thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
a thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
a thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
you have an idea what in the configuration is wrong ?
--
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
Piratenvisier
2013-08-15 05:14:58 UTC
Permalink
Post by Thorsten Scherler
Post by Piratenvisier
Hello Thorsten,
I put your cocoon-rest-optional und cocoon-sample in one block and
made it runnable in the cocoon-sample-webapp block to produce a war file.
With maven3 and Jetty it works. Even the problem with your cocoon
distribution I had doesn't
exist any more with maven 3.
I tried to deploy cocoon-sample-webapp by cargo-maven2-plugin and get
the following errors
validateJarFile(/homeerweitert/java/cocoon3/2272013/cocoon-sample-webapp/target/tomcat7x/container/webapps/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT/WEB-INF/lib/servlet-api-2.5.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
This info is that in your pom somewhere you have not set the servlet dep
as provided since tomcat brings its own.
in cocoon-sample WEB-INF/lib there is 2.4
in
tomcat7x/container/webapps/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT/WEB-INF/lib
there is 2.5
Post by Thorsten Scherler
Post by Piratenvisier
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
org.apache.catalina.startup.TaglibUriRule body
urn:com:sun:jersey:api:view is already defined
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: No Spring
WebApplicationInitializer types detected on classpath
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:44 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Initializing Spring root
WebApplicationContext
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:47 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Apache Cocoon Spring Configurator
v2.2.1 is running in mode 'prod'.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext listenerStart
[INFO] [talledLocalContainer] SEVERE: Exception sending context
initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
javax/mail/MessagingException
It seems that the javax.mail is not present but not sure why. Did you
use something besides the mentioned blocks?
I don't find a direct dependency for javax.mail but also not in your
cocoon-rest-optional.
so it must be included by some other dependency
Post by Thorsten Scherler
salu2
Post by Piratenvisier
[INFO] [talledLocalContainer] at
java.lang.Class.getDeclaredConstructors0(Native Method)
[INFO] [talledLocalContainer] at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
[INFO] [talledLocalContainer] at
java.lang.Class.getDeclaredConstructors(Class.java:1891)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:230)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:978)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
[INFO] [talledLocalContainer] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
[INFO] [talledLocalContainer] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
[INFO] [talledLocalContainer] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
[INFO] [talledLocalContainer] at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
[INFO] [talledLocalContainer] at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
[INFO] [talledLocalContainer] at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
[INFO] [talledLocalContainer] at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
[INFO] [talledLocalContainer] at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
[INFO] [talledLocalContainer] at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[INFO] [talledLocalContainer] at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[INFO] [talledLocalContainer] at
java.util.concurrent.FutureTask.run(FutureTask.java:166)
[INFO] [talledLocalContainer] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[INFO] [talledLocalContainer] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[INFO] [talledLocalContainer] at
java.lang.Thread.run(Thread.java:724)
java.lang.ClassNotFoundException: javax.mail.MessagingException
[INFO] [talledLocalContainer] at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
[INFO] [talledLocalContainer] at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
[INFO] [talledLocalContainer] ... 32 more
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Error listenerStart
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] SEVERE: Context
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] startup failed due to
previous errors
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Closing Spring root
WebApplicationContext
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
a thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
a thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
[INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] [talledLocalContainer] SEVERE: The web application
[/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
a thread named [RequestCounterCleaningTask] but has failed to stop it.
This is very likely to create a memory leak.
you have an idea what in the configuration is wrong ?
ROY Assink (JIRA)
2014-05-07 17:17:10 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ROY Assink reopened COCOON3-129:
--------------------------------
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Javier Puerto (JIRA)
2014-05-10 22:06:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Javier Puerto closed COCOON3-129.
---------------------------------

Resolution: Fixed
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
ROY Assink (JIRA)
2014-06-24 21:08:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ROY Assink reopened COCOON3-129:
--------------------------------


30 JAAR BEA EN GEA
DOOR DOOR DOOR
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
ROY Assink (JIRA)
2014-06-24 21:28:24 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ROY Assink updated COCOON3-129:
-------------------------------

Attachment: build.xml
apache-tomcat-6.0.39.exe

lock cobra black amsterdam familie duo sandbox
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
Attachments: apache-tomcat-6.0.39.exe, build.xml
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Francesco Chicchiriccò (JIRA)
2014-06-25 06:32:25 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON3-129:
-------------------------------------------

Comment: was deleted

(was: 30 JAAR BEA EN GEA
DOOR DOOR DOOR
)
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
Attachments: apache-tomcat-6.0.39.exe, build.xml
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Francesco Chicchiriccò (JIRA)
2014-06-25 06:32:25 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON3-129:
-------------------------------------------

Comment: was deleted

(was: lock cobra black amsterdam familie duo sandbox)
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
Attachments: apache-tomcat-6.0.39.exe, build.xml
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Francesco Chicchiriccò (JIRA)
2014-06-25 06:32:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò closed COCOON3-129.
------------------------------------------

Resolution: Fixed
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
Attachments: apache-tomcat-6.0.39.exe, build.xml
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Francesco Chicchiriccò (JIRA)
2014-06-25 06:34:24 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON3-129:
-------------------------------------------

Attachment: (was: build.xml)
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Francesco Chicchiriccò (JIRA)
2014-06-25 06:34:24 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON3-129:
-------------------------------------------

Attachment: (was: apache-tomcat-6.0.39.exe)
Post by Thorsten Scherler (JIRA)
Create an example to send a mail via cocoon
-------------------------------------------
Key: COCOON3-129
URL: https://issues.apache.org/jira/browse/COCOON3-129
Project: Cocoon 3
Issue Type: New Feature
Components: cocoon-rest-optional
Affects Versions: 3.0.0-beta-1
Reporter: Thorsten Scherler
Fix For: 3.0.0-beta-1
http://markmail.org/message/6ces6erwekf57qfo
as requested from hansheinrichbraun in above mail I extracted a simple example to send a mail with cocoon based on work of codebusters.es.
--
This message was sent by Atlassian JIRA
(v6.2#6252)

Loading...