Re: What are the alternatives to in Cocoon 2.2?
Hi Mark, 2016-03-04 16:21 GMT+01:00 Mark H. Wood <mw...@iupui.edu>: > We use a large Cocoon 2.2 application (which we don't own and can't > just port to v3) and at startup it complains, " deprecation - The > 'component-configurations' section in the sitemap is > deprecated. Please check for alternatives." The problem is because there exists configuration elements in the sitemap. This is how Apache Cocoon 2.1 was configured before migrating to Spring for version 2.2. See http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html > So I'm checking for > alternatives. Where would I find some detailed discussion of the > alternatives to and how to map what we > have to them? > To migrate the configuration you can follow the documentation of Apache Cocoon 2.2 and also check the block examples that you can see in the source code. See http://cocoon.apache.org/subprojects/configuration/spring-configurator/index.html And http://svn.apache.org/repos/asf/cocoon/trunk/blocks/ Regards. > > -- > Mark H. Wood > Lead Technology Analyst > > University Library > Indiana University - Purdue University Indianapolis > 755 W. Michigan Street > Indianapolis, IN 46202 > 317-274-0749 > www.ulib.iupui.edu >
What are the alternatives to in Cocoon 2.2?
We use a large Cocoon 2.2 application (which we don't own and can't just port to v3) and at startup it complains, " deprecation - The 'component-configurations' section in the sitemap is deprecated. Please check for alternatives." So I'm checking for alternatives. Where would I find some detailed discussion of the alternatives to and how to map what we have to them? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu signature.asc Description: Digital signature
Wildcard URI Matcher Issue with Cocoon 2.2
Hi all, has anyone ever experienced a kind of mismatch, when a request of type /*/devices/*/registrations/*/* gets a response from a matcher style /*/devices/*/registrations/* ?? Shouldn't actually the first pattern's *last* slash prevent this from happening!? At least that's the way I understood the docs. And, if the above is correct, how can I get around the issue? Unfortunately, the URL construct is the one called by default by Apple Passbook, so I have no influence on the pattern the request comes in… Any insight is warmly welcomed. Best, Bardo - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Wildcard URI Matcher Issue with Cocoon 2.2
Hi all, has anyone ever experienced a kind of mismatch, when a request of type /*/devices/*/registrations/*/* gets a response from a matcher style /*/devices/*/registrations/* ?? Shouldn't actually the first pattern's *last* slash prevent this from happening!? At least that's the way I understood the docs. And, if the above is correct, how can I get around the issue? Unfortunately, the URL construct is the one called by default by Apple Passbook, so I have no influence on the pattern the request comes in… Any insight is warmly welcomed. Best, Bardo - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Doubt about file upload in Cocoon 2.2
Hi At present, I work on project based on cocoon 2.2 and I want to use file upload option to send an email with cocoon. Documentation of cocoon indicates about the parameters: org.apache.cocoon.uploads.enable=true org.apache.cocoon.uploads.autosave=true org.apache.cocoon.uploads.maxsize=1000 The last parameter is very interesting because limit the size of files to upload the platform, so I think cocoon would be safe if people try upload ver big files. I have checked that the MultipartParser java class manage this upload process, but it seems that the file is readed fully although size of file is higher than parameter maxsize, ¿it is correct this behaviour? After debugging MultipartParser class, I see the process is: 1) if (oversized) , so if size of file is higher than parameter maxsize, then it is created object out = new NullOutputStream(); 2) stream of file is readed and put into object out, and variable lenght is size of readed content. 3) if (oversized) then it is created object RejectedPart. I don't understand because read full file if in this case always it's created RejectedPart object. it's necesary length variable for RejectedPart object?. if at the begining of process you know content length of file and this number is higher of limit then it's better option not read file and create RejectedPart object with length = 0, isn't it?. Maybe, I don't know source of cocoon fully, and I am wrong. Anybody can explain me. thanks attachment: miguel_valencia.vcf - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Doubt about file upload in Cocoon 2.2
Hola Miguel, 2013/6/6 Miguel miguel.valen...@juntadeandalucia.es Hi At present, I work on project based on cocoon 2.2 and I want to use file upload option to send an email with cocoon. Documentation of cocoon indicates about the parameters: org.apache.cocoon.uploads.**enable=true org.apache.cocoon.uploads.**autosave=true org.apache.cocoon.uploads.**maxsize=1000 The last parameter is very interesting because limit the size of files to upload the platform, so I think cocoon would be safe if people try upload ver big files. I have checked that the MultipartParser java class manage this upload process, but it seems that the file is readed fully although size of file is higher than parameter maxsize, żit is correct this behaviour? Not always, if content length is available in the request object, the MultipartParser reject the file without save it in memory nor disk. See methods getParts(...) and parsePaths(...) methods [1] After debugging MultipartParser class, I see the process is: 1) if (oversized) , so if size of file is higher than parameter maxsize, then it is created object out = new NullOutputStream(); 2) stream of file is readed and put into object out, and variable lenght is size of readed content. 3) if (oversized) then it is created object RejectedPart. I don't understand because read full file if in this case always it's created RejectedPart object. it's necesary length variable for RejectedPart object?. The rejected part is a dummy representation so you can get information about the rejected object. You can see in javadoc [2] that getImputStream() method will throw an IOException. I've rescue a snippet from an old project that used this: //To handle the file upload limit we can detect if the part is instance of // org.apache.cocoon.servlet.multipart.RejectedPart final Part part = RequestUtil.getPart(getRequest()); if(part instanceof RejectedPart) { throw new IllegalArgumentException(File size exceeds the maximum.); } if at the begining of process you know content length of file and this number is higher of limit then it's better option not read file and create RejectedPart object with length = 0, isn't it?. Maybe, I don't know source of cocoon fully, and I am wrong. I'm not sure 100% but it could be also related with your configuration autosave=true that according to [3] it's responsible to store all the uploaded files in the upload dir. Anybody can explain me. I hope that avobe helps. salu2. thanks [1] http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/MultipartParser.java [2] http://cocoon.apache.org/2.2/core-modules/core/2.2/apidocs/org/apache/cocoon/servlet/multipart/RejectedPart.html [3] http://cocoon.apache.org/2.2/core-modules/core/2.2/apidocs/org/apache/cocoon/servlet/multipart/MultipartConfigurationHelper.html#autosaveUploads - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2: configuring and using persistent store/cache
Hello, I am new in cocoon. Right now I try to understand how cache worked in cocoon and want to configure the persistent store. I already search around in internet and mailing list. And I found that other people asking this question too like this: http://www.mail-archive.com/users@cocoon.apache.org/msg46258.html and this: http://www.mail-archive.com/users@cocoon.apache.org/msg46247.html Until now there is no answer for this problem. I try to figure it out alone how it is but I just can't. So I'm trying to asked again in this mailing list. This site Explain that in Cocoon 2.2 there is a change about using cocoon.xconf http://cocoon.apache.org/2.2/core-modules/core/2.2/1259_1_1.html the cocoon 2.2 example project doesn't have a cocoon.xconf file to. Now I really need to know and understand, how can I configure the caching persistence store. Can someone give me a small example of how to configure cocoon to use the for example FileSystemStore? I cannot find any documentation for cocoon 2.2, only for older versions. I don't know in which files the configuration should be placed. I Thank you all in advanced. Regards, Arthur
Re: Cocoon 2.2 WebApp in JBoss 7
Ok, commented the OSGI stuff out (shouldnt it check if it is an OSGI bundle before deploying as such?) and now is deploying but with a ton of Spring errors: 10:04:24,163 DEBUG [org.springframework.core.io.support.PathMatchingResourcePatternResolver] (MSC service thread 1-2) Cannot search for matching files underneath URL [vfs:/C:/jboss-as-7.1.1.Final/bin/content/spectron.war/WEB-INF/lib/cocoon-expression-language-impl-1.0.0.jar/META-INF/cocoon/spring/] because it does not correspond to a directory in the file system: java.io.FileNotFoundException: URL [vfs:/C:/jboss-as-7.1.1.Final/bin/content/spectron.war/WEB-INF/lib/cocoon-expression-language-impl-1.0.0.jar/META-INF/cocoon/spring/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:/C:/jboss-as-7.1.1.Final/bin/content/spectron.war/WEB-INF/lib/cocoon-expression-language-impl-1.0.0.jar/META-INF/cocoon/spring/ at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:198) [spring-core-2.5.1.jar:2.5.1] at org.springframework.core.io.UrlResource.getFile(UrlResource.java:156) [spring-core-2.5.1.jar:2.5.1] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.java:457) [spring-core-2.5.1.jar:2.5.1] at org.springframework.web.context.support.ServletContextResourcePatternResolver.doFindPathMatchingFileResources(ServletContextResourcePatternResolver.java:80) [spring-web-2.5.1.jar:2.5.1] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:323) [spring-core-2.5.1.jar:2.5.1] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:244) [spring-core-2.5.1.jar:2.5.1] at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1026) [spring-context-2.5.1.jar:2.5.1] at org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.handleBeanInclude(AbstractSettingsElementParser.java:184) [cocoon-spring-configurator-1.0.2.jar:] at org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.parse(AbstractSettingsElementParser.java:145) [cocoon-spring-configurator-1.0.2.jar:] at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1246) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1236) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:488) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:383) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:327) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:295) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [spring-beans-2.5.1.jar:2.5.1] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [spring-web-2.5.1.jar:2.5.1] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92) [spring-web-2.5.1.jar:2.5.1] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97) [spring-context-2.5.1.jar:2.5.1] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)
Re: Cocoon 2.2 WebApp in JBoss 7
Looking around found out that the problem was fixed on a newer version of Spring, so I replaced the old version (2.51) with the latest one (3.21) but now I get 3 more errors. Im trying to connect 2 cocoon blocks com.spectron.website.webapp-logger.service and com.spectron.website.webapp-home.service, maybe the format changed between versions? 11:30:43,466 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.spectron.website.webapp-home.service': Cannot resolve reference to bean 'com.spectron.website.webapp-logger.service' while setting bean property 'connections' with key [TypedStringValue: value [loggerBlock], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.spectron.website.webapp-logger.service': Invocation of init method failed; nested exception is java.net.MalformedURLException: Could not resolve blockcontext:/webapp-logger/ due to java.net.MalformedURLException: Unknown block name webapp-logger in block context uri blockcontext:/webapp-logger/ at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:379) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:162) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608) [spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) [spring-context-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) [spring-context-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) [spring-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) [spring-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at
Re: Cocoon 2.2 WebApp in JBoss 7
Hi Fawzib, Looks like you are trying to deploy spectron.war as an OSGi bundle/application, so you need OSGi-compatible META-INF/MANIFEST file in every .jar Greetings, Greg 2013/3/8 Fawzib Rojas f_ro...@spectron-msim.com Anyone tried running a cocoon 2.2 webapp (war) in JBoss 7? I have run a simple cocoon 2.2 app (just says Cocoon 2.2 runs!) in Glassfish and Jetty8 but is giving me an error in JBoss 7.1.1 10:45:26,737 DEBUG [org.jboss.osgi.framework.**internal.**AbstractFrameworkService] (MSC service thread 1-1) Starting: service jbosgi.Framework.ACTIVATOR in mode ON_DEMAND 10:45:26,741 DEBUG [org.jboss.as.osgi] (MSC service thread 1-6) Starting: service jboss.osgi.deployment.**spectron.war in mode ACTIVE 10:45:26,746 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC1: Failed to start service jboss.osgi.deployment.**spectron.war: org.jboss.msc.service.**StartException in service jboss.osgi.deployment.* *spectron.war: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war] at org.jboss.as.osgi.deployment.**BundleInstallService.start(**BundleInstallService.java:100) at org.jboss.msc.service.**ServiceControllerImpl$**StartTask.startService( **ServiceControllerImpl.java:**1811) [jboss-msc-1.0.2.GA.jar:1.0.2.**GAhttp://1.0.2.GA ] at org.jboss.msc.service.**ServiceControllerImpl$**StartTask.run(** ServiceControllerImpl.java:**1746) [jboss-msc-1.0.2.GA.jar:1.0.2.**GAhttp://1.0.2.GA ] at java.util.concurrent.**ThreadPoolExecutor$Worker.** runTask(ThreadPoolExecutor.**java:886) [rt.jar:1.6.0_18] at java.util.concurrent.**ThreadPoolExecutor$Worker.run(**ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18]at java.lang.Thread.run(Thread.**java:619) [rt.jar:1.6.0_18] Caused by: java.lang.**IllegalArgumentException: Empty name segment is not allowed for 8 at org.jboss.msc.service.**ServiceName.of(ServiceName.**java:85) [jboss-msc-1.0.2.GA.jar:1.0.2.**GA http://1.0.2.GA] at org.jboss.osgi.framework.**internal.BundleManager.** getServiceNameInternal(**BundleManager.java:245) at org.jboss.osgi.framework.**internal.BundleManager.** getServiceName(BundleManager.**java:234) at org.jboss.osgi.framework.**internal.**HostBundleInstalledService.** addService(**HostBundleInstalledService.**java:39) at org.jboss.osgi.framework.**internal.BundleManager.** installBundle(BundleManager.**java:392) at org.jboss.as.osgi.deployment.**BundleInstallService.start(** BundleInstallService.java:97) ... 5 more 10:45:26,776 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment spectron.war was rolled back with failure message {JBAS014671: Failed services = {jboss.osgi.deployment.\ **spectron.war\ = org.jboss.msc.service.**StartException in service jboss.osgi.deployment.\**spectron.war\: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war]**}} 10:45:26,783 ERROR [org.jboss.as.server.**deployment] (MSC service thread 1-5) JBAS015892: Deployment unit processor org.jboss.as.jpa.processor.** PersistenceProviderProcessor@**43285f7a unexpectedly threw an exception during undeploy phase INSTALL of deployment spectron.war: java.lang.NullPointerException at org.jboss.as.jpa.processor.**PersistenceProviderProcessor.** allDeploymentModuleClassLoader**s(**PersistenceProviderProcessor.** java:138) at org.jboss.as.jpa.processor.**PersistenceProviderProcessor.**undeploy(** PersistenceProviderProcessor.**java:122) at org.jboss.as.server.**deployment.**DeploymentUnitPhaseService.** safeUndeploy(**DeploymentUnitPhaseService.**java:167) [jboss-as-server-7.1.1.Final.**jar:7.1.1.Final] at org.jboss.as.server.**deployment.**DeploymentUnitPhaseService.**stop(** DeploymentUnitPhaseService.**java:161) [jboss-as-server-7.1.1.Final.** jar:7.1.1.Final] at org.jboss.msc.service.**ServiceControllerImpl$**StopTask.stopService(** ServiceControllerImpl.java:**1911) [jboss-msc-1.0.2.GA.jar:1.0.2.**GAhttp://1.0.2.GA ] at org.jboss.msc.service.**ServiceControllerImpl$**StopTask.run(** ServiceControllerImpl.java:**1874) [jboss-msc-1.0.2.GA.jar:1.0.2.**GAhttp://1.0.2.GA ] at java.util.concurrent.**ThreadPoolExecutor$Worker.** runTask(ThreadPoolExecutor.**java:886) [rt.jar:1.6.0_18] at java.util.concurrent.**ThreadPoolExecutor$Worker.run(**ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18] at java.lang.Thread.run(Thread.**java:619) [rt.jar:1.6.0_18] 10:45:26,862 INFO [org.jboss.as.server.**deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment spectron.war in 84ms 10:45:26,866 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.osgi.deployment.**spectron.war: org.jboss.msc.service.**StartException in service jboss.osgi.deployment.**spectron.war: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war] 10:45:26,874 ERROR [org.jboss.as.server
Re: Cocoon 2.2 WebApp in JBoss 7
In every jar in the war archive? I hope not. Maybe another question: I'm putting the war in the standalone/deployments directory so it gets autodeployed. Is there a way to deploy in Jboss and tell it It is a war, not osgi bundle? On 3/8/2013 2:29 PM, gelo1234 wrote: Hi Fawzib, Looks like you are trying to deploy spectron.war as an OSGi bundle/application, so you need OSGi-compatible META-INF/MANIFEST file in every .jar Greetings, Greg 2013/3/8 Fawzib Rojas f_ro...@spectron-msim.com mailto:f_ro...@spectron-msim.com Anyone tried running a cocoon 2.2 webapp (war) in JBoss 7? I have run a simple cocoon 2.2 app (just says Cocoon 2.2 runs!) in Glassfish and Jetty8 but is giving me an error in JBoss 7.1.1 10:45:26,737 DEBUG [org.jboss.osgi.framework.internal.AbstractFrameworkService] (MSC service thread 1-1) Starting: service jbosgi.Framework.ACTIVATOR in mode ON_DEMAND 10:45:26,741 DEBUG [org.jboss.as.osgi] (MSC service thread 1-6) Starting: service jboss.osgi.deployment.spectron.war in mode ACTIVE 10:45:26,746 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC1: Failed to start service jboss.osgi.deployment.spectron.war: org.jboss.msc.service.StartException in service jboss.osgi.deployment.spectron.war: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war] at org.jboss.as.osgi.deployment.BundleInstallService.start(BundleInstallService.java:100) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA http://1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA http://1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18]at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18] Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for 8 at org.jboss.msc.service.ServiceName.of(ServiceName.java:85) [jboss-msc-1.0.2.GA.jar:1.0.2.GA http://1.0.2.GA] at org.jboss.osgi.framework.internal.BundleManager.getServiceNameInternal(BundleManager.java:245) at org.jboss.osgi.framework.internal.BundleManager.getServiceName(BundleManager.java:234) at org.jboss.osgi.framework.internal.HostBundleInstalledService.addService(HostBundleInstalledService.java:39) at org.jboss.osgi.framework.internal.BundleManager.installBundle(BundleManager.java:392) at org.jboss.as.osgi.deployment.BundleInstallService.start(BundleInstallService.java:97) ... 5 more 10:45:26,776 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment spectron.war was rolled back with failure message {JBAS014671: Failed services = {jboss.osgi.deployment.\spectron.war\ = org.jboss.msc.service.StartException in service jboss.osgi.deployment.\spectron.war\: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war]}} 10:45:26,783 ERROR [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015892: Deployment unit processor org.jboss.as.jpa.processor.PersistenceProviderProcessor@43285f7a unexpectedly threw an exception during undeploy phase INSTALL of deployment spectron.war: java.lang.NullPointerException at org.jboss.as.jpa.processor.PersistenceProviderProcessor.allDeploymentModuleClassLoaders(PersistenceProviderProcessor.java:138) at org.jboss.as.jpa.processor.PersistenceProviderProcessor.undeploy(PersistenceProviderProcessor.java:122) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.safeUndeploy(DeploymentUnitPhaseService.java:167) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.stop(DeploymentUnitPhaseService.java:161) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA http://1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA http://1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18] at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18] 10:45:26,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment spectron.war in 84ms 10:45:26,866 INFO [org.jboss.as.controller
Re: Cocoon 2.2 WebApp in JBoss 7
In every jar file :) But I don't think that such procedure will make your app work. Apparently its not OSGi app :) It looks to me that your jBoss is starting up in default OSGi mode or is treating your war file as an OSGi bundle. You can fix this: 1. either by removing OSGI-specific info in every jar file (META-INF/MANIFEST.MF) - so jBoss wont recognize them as OSGi bundles 2. or comment out the OSGi subsystem in jBoss if you dont plan to use it at all: in jBoss standalone.xml file comment out: subsystem xmlns=urn:jboss:domain:osgi:1.2 activation=lazy /subsystem or remove it and RESTART the jBoss server. Now your war file should be recognized as a standard JEE war file. Greetings, -Greg 2013/3/8 Fawzib Rojas f_ro...@spectron-msim.com In every jar in the war archive? I hope not. Maybe another question: I'm putting the war in the standalone/deployments directory so it gets autodeployed. Is there a way to deploy in Jboss and tell it It is a war, not osgi bundle? On 3/8/2013 2:29 PM, gelo1234 wrote: Hi Fawzib, Looks like you are trying to deploy spectron.war as an OSGi bundle/application, so you need OSGi-compatible META-INF/MANIFEST file in every .jar Greetings, Greg 2013/3/8 Fawzib Rojas f_ro...@spectron-msim.com Anyone tried running a cocoon 2.2 webapp (war) in JBoss 7? I have run a simple cocoon 2.2 app (just says Cocoon 2.2 runs!) in Glassfish and Jetty8 but is giving me an error in JBoss 7.1.1 10:45:26,737 DEBUG [org.jboss.osgi.framework.internal.AbstractFrameworkService] (MSC service thread 1-1) Starting: service jbosgi.Framework.ACTIVATOR in mode ON_DEMAND 10:45:26,741 DEBUG [org.jboss.as.osgi] (MSC service thread 1-6) Starting: service jboss.osgi.deployment.spectron.war in mode ACTIVE 10:45:26,746 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC1: Failed to start service jboss.osgi.deployment.spectron.war: org.jboss.msc.service.StartException in service jboss.osgi.deployment.spectron.war: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war] at org.jboss.as.osgi.deployment.BundleInstallService.start(BundleInstallService.java:100) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_18] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18]at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18] Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for 8 at org.jboss.msc.service.ServiceName.of(ServiceName.java:85) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.osgi.framework.internal.BundleManager.getServiceNameInternal(BundleManager.java:245) at org.jboss.osgi.framework.internal.BundleManager.getServiceName(BundleManager.java:234) at org.jboss.osgi.framework.internal.HostBundleInstalledService.addService(HostBundleInstalledService.java:39) at org.jboss.osgi.framework.internal.BundleManager.installBundle(BundleManager.java:392) at org.jboss.as.osgi.deployment.BundleInstallService.start(BundleInstallService.java:97) ... 5 more 10:45:26,776 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment spectron.war was rolled back with failure message {JBAS014671: Failed services = {jboss.osgi.deployment.\spectron.war\ = org.jboss.msc.service.StartException in service jboss.osgi.deployment.\spectron.war\: JBAS011966: Failed to install deployment: [:1.0.0,location=spectron.war]}} 10:45:26,783 ERROR [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015892: Deployment unit processor org.jboss.as.jpa.processor.PersistenceProviderProcessor@43285f7aunexpectedly threw an exception during undeploy phase INSTALL of deployment spectron.war: java.lang.NullPointerException at org.jboss.as.jpa.processor.PersistenceProviderProcessor.allDeploymentModuleClassLoaders(PersistenceProviderProcessor.java:138) at org.jboss.as.jpa.processor.PersistenceProviderProcessor.undeploy(PersistenceProviderProcessor.java:122) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.safeUndeploy(DeploymentUnitPhaseService.java:167) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.stop(DeploymentUnitPhaseService.java:161) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
Thanks for the provided link, Robby. Now it would be interesting to see how you consume your movie webservice within a cocoon 2.2 pipeline. Do you call the webservice within a sitemap using a custom generator? Or via flow script? Matthias Von: Robby Pelssers robby.pelss...@nxp.com An: users@cocoon.apache.org users@cocoon.apache.org Gesendet: 20:40 Montag, 21.Januar 2013 Betreff: RE: [C2.2] Provide or consume Webservices with Cocoon 2.2 Not sure if that was addressed to me. I did blog about how to use Spring-ws in the past. It’s not really cocoon related but you might as well consume or provide a webservice with Cocoon. It might be a bit outdated already but I guess it won’t hurt you to go over it quickly: http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws-and.html From:gelo1234 [mailto:gelo1...@gmail.com] Sent: Monday, January 21, 2013 2:14 PM To: users@cocoon.apache.org Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Can you provide some examples of such configuration and Web Services logic here ? Spring Web Services + cocoon 3.0 ? Greetings, Greg
RE: [C2.2] Provide or consume Webservices with Cocoon 2.2
So our setup is like this: We have a separate project which represents the webservice client… http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws_3532.html So basically we only needed to declare a maven dependency on this project. So far easy to understand I hope. dependency groupIdcom.nxp.spider2/groupId artifactIdjobmonitorClient/artifactId version1.1.11/version /dependency So in the spring application context of our Cocoon [2.2] app we configured the client like below: !-- jobmonitorClient -- oxm:jaxb2-marshaller id=jaxb2marshaller contextPath=com.nxp.spider2.jobmonitorClient.webservice.domain/ bean id=webServiceTemplate class=org.springframework.ws.client.core.WebServiceTemplate property name=marshaller ref=jaxb2marshaller/ property name=unmarshaller ref=jaxb2marshaller/ property name=defaultUri value=${logmonitor.EPR}/ /bean bean id=jobMonitorClient class=com.nxp.spider2.webservice.client.JobMonitorClientImpl property name=webServiceTemplate ref=webServiceTemplate/ /bean Now it becomes interesting ;-) But I’m just going to redirect again to my blog. We consumed the webservice from transforming custom tags which were transformed using XSLT extensions … Just read this page and it will become clear… http://robbypelssers.blogspot.nl/2011/09/power-of-apache-cocoon-xquery-and-xslt.html Let me know if it’s too vague… willing to answer questions. Robby From: Matthias Müller [mailto:pym...@yahoo.de] Sent: Tuesday, January 22, 2013 11:32 AM To: users@cocoon.apache.org Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Thanks for the provided link, Robby. Now it would be interesting to see how you consume your movie webservice within a cocoon 2.2 pipeline. Do you call the webservice within a sitemap using a custom generator? Or via flow script? Matthias Von: Robby Pelssers robby.pelss...@nxp.commailto:robby.pelss...@nxp.com An: users@cocoon.apache.orgmailto:users@cocoon.apache.org users@cocoon.apache.orgmailto:users@cocoon.apache.org Gesendet: 20:40 Montag, 21.Januar 2013 Betreff: RE: [C2.2] Provide or consume Webservices with Cocoon 2.2 Not sure if that was addressed to me. I did blog about how to use Spring-ws in the past. It’s not really cocoon related but you might as well consume or provide a webservice with Cocoon. It might be a bit outdated already but I guess it won’t hurt you to go over it quickly: http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws-and.html From: gelo1234 [mailto:gelo1...@gmail.com] Sent: Monday, January 21, 2013 2:14 PM To: users@cocoon.apache.orgmailto:users@cocoon.apache.org Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Can you provide some examples of such configuration and Web Services logic here ? Spring Web Services + cocoon 3.0 ? Greetings, Greg
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm wrong here. I'm not to deep in cocoon development, so maybe I'm totally wrong with the following idea: There is a Cocoon spring integration. Does that mean that coccon can host spring modules? Could I maybe use the a spring webservice here? Regards, Matthias Von: Francesco Chicchiriccò ilgro...@apache.org An: users@cocoon.apache.org Gesendet: 12:32 Samstag, 19.Januar 2013 Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/
cocoon-auth configuration - cocoon 2.2
Hi Everybody cocoon-auth block. I guess I searched just everywhere, but I couldn't find any sample with configuration of PipelineSecurityHandler - there is only example of SimpleSecurityHandler. Where can I find an example with using of PipelineSecurityHandler? Or any detailed documentation would be helpful. -- View this message in context: http://cocoon.10839.n7.nabble.com/cocoon-auth-configuration-cocoon-2-2-tp57579.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: cocoon-auth configuration - cocoon 2.2
On 21/01/2013 09:08, kompromiss wrote: Hi Everybody cocoon-auth block. I guess I searched just everywhere, but I couldn't find any sample with configuration of PipelineSecurityHandler - there is only example of SimpleSecurityHandler. Where can I find an example with using of PipelineSecurityHandler? Or any detailed documentation would be helpful. Hi, did you also take a look at section [1]? Not having used C2.2, I cannot unfortunately help you more; AFAIK cocoon-auth is just a rewrite of C2.1's cocoon-authentication-fw, used by the portal block. You could then take a look at C2.1 portal sample (sitemap.xmap [3], configuration [4]), live at [5]. HTH Regards. [1] http://cocoon.apache.org/2.2/blocks/auth/1.0/1236_1_1.html [2] http://cocoon.apache.org/2.1/developing/webapps/authentication.html [3] https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/samples/sitemap.xmap [4] https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal.samplesxconf [5] http://cocoon.zones.apache.org/cocoon21/samples/blocks/portal/portal -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
Hi Matthias, As a matter of fact, cocoon can host spring modules. You can plug in most every module using the well-known IoC mechanism. In a typical block you will be able to configure things in the META-INF/cocoon/spring folder. This is in my opinion one of the strong points of C3 over C2.2. Cheers, Jos On Mon, Jan 21, 2013 at 8:59 AM, Matthias Müller pym...@yahoo.de wrote: I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm wrong here. I'm not to deep in cocoon development, so maybe I'm totally wrong with the following idea: There is a Cocoon spring integration. Does that mean that coccon can host spring modules? Could I maybe use the a spring webservice here? Regards, Matthias -- *Von:* Francesco Chicchiriccò ilgro...@apache.org *An:* users@cocoon.apache.org *Gesendet:* 12:32 Samstag, 19.Januar 2013 *Betreff:* Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Memberhttp://people.apache.org/~ilgrosso/ -- All generous minds have a horror of what are commonly called Facts. They are the brute beasts of the intellectual domain. -- Thomas Hobbes http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
I thought that the spring integration is also part of Cocoon 2.2 !? Von: Jos Snellings jos.snelli...@upperware.biz An: users@cocoon.apache.org; Matthias Müller pym...@yahoo.de Gesendet: 9:28 Montag, 21.Januar 2013 Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Hi Matthias, As a matter of fact, cocoon can host spring modules. You can plug in most every module using the well-known IoC mechanism. In a typical block you will be able to configure things in the META-INF/cocoon/spring folder. This is in my opinion one of the strong points of C3 over C2.2. Cheers, Jos On Mon, Jan 21, 2013 at 8:59 AM, Matthias Müller pym...@yahoo.de wrote: I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm wrong here. I'm not to deep in cocoon development, so maybe I'm totally wrong with the following idea: There is a Cocoon spring integration. Does that mean that coccon can host spring modules? Could I maybe use the a spring webservice here? Regards, Matthias Von: Francesco Chicchiriccò ilgro...@apache.org An: users@cocoon.apache.org Gesendet: 12:32 Samstag, 19.Januar 2013 Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/ -- All generous minds have a horror of what are commonly called Facts. They are the brute beasts of the intellectual domain. -- Thomas Hobbes
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
On 21/01/2013 09:45, Matthias Müller wrote: I thought that the spring integration is also part of Cocoon 2.2 !? If Jos is referring to the cocoon-spring-configurator, I confirm that it is included in C2.2 (and C3, of course). Unfortunately, I don't know if there is any sample of this kind available. If you succeed with this approach, please report. Regards. *Von:* Jos Snellings jos.snelli...@upperware.biz *An:* users@cocoon.apache.org; Matthias Müller pym...@yahoo.de *Gesendet:* 9:28 Montag, 21.Januar 2013 *Betreff:* Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Hi Matthias, As a matter of fact, cocoon can host spring modules. You can plug in most every module using the well-known IoC mechanism. In a typical block you will be able to configure things in the META-INF/cocoon/spring folder. This is in my opinion one of the strong points of C3 over C2.2. Cheers, Jos On Mon, Jan 21, 2013 at 8:59 AM, Matthias Müller pym...@yahoo.de mailto:pym...@yahoo.de wrote: I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm wrong here. I'm not to deep in cocoon development, so maybe I'm totally wrong with the following idea: There is a Cocoon spring integration. Does that mean that coccon can host spring modules? Could I maybe use the a spring webservice here? Regards, Matthias *Von:* Francesco Chicchiriccò ilgro...@apache.org mailto:ilgro...@apache.org *An:* users@cocoon.apache.org mailto:users@cocoon.apache.org *Gesendet:* 12:32 Samstag, 19.Januar 2013 *Betreff:* Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
I was not referring to cocoon-spring-configurator explicitly. In my application, I have configured extra run time dependencies via spring. The configuration files are gracefully picked up. But this is cocoon-3. I have no experience with c 2.2. However, it is not difficult to give it a try Jos On Mon, Jan 21, 2013 at 1:26 PM, Francesco Chicchiriccò ilgro...@apache.org wrote: On 21/01/2013 09:45, Matthias Müller wrote: I thought that the spring integration is also part of Cocoon 2.2 !? If Jos is referring to the cocoon-spring-configurator, I confirm that it is included in C2.2 (and C3, of course). Unfortunately, I don't know if there is any sample of this kind available. If you succeed with this approach, please report. Regards. -- *Von:* Jos Snellings jos.snelli...@upperware.bizjos.snelli...@upperware.biz *An:* users@cocoon.apache.org; Matthias Müller pym...@yahoo.depym...@yahoo.de *Gesendet:* 9:28 Montag, 21.Januar 2013 *Betreff:* Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Hi Matthias, As a matter of fact, cocoon can host spring modules. You can plug in most every module using the well-known IoC mechanism. In a typical block you will be able to configure things in the META-INF/cocoon/spring folder. This is in my opinion one of the strong points of C3 over C2.2. Cheers, Jos On Mon, Jan 21, 2013 at 8:59 AM, Matthias Müller pym...@yahoo.de wrote: I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm wrong here. I'm not to deep in cocoon development, so maybe I'm totally wrong with the following idea: There is a Cocoon spring integration. Does that mean that coccon can host spring modules? Could I maybe use the a spring webservice here? Regards, Matthias -- *Von:* Francesco Chicchiriccò ilgro...@apache.org *An:* users@cocoon.apache.org *Gesendet:* 12:32 Samstag, 19.Januar 2013 *Betreff:* Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Memberhttp://people.apache.org/~ilgrosso/ -- All generous minds have a horror of what are commonly called Facts. They are the brute beasts of the intellectual domain. -- Thomas Hobbes http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html
RE: [C2.2] Provide or consume Webservices with Cocoon 2.2
You can add dependencies on the necessary spring modules. We actually consume webservices from within our Cocoon2.2 application. I’m not sure exactly which of the below dependencies are needed anymore but I will just list the ones we are using: properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding spring.version2.5.1/spring.version spring.ws.version1.5.10/spring.ws.version /properties !-- spring webservices -- dependency groupIdorg.springframework.ws/groupId artifactIdspring-ws-core/artifactId version${spring.ws.version}/version /dependency dependency groupIdorg.springframework.ws/groupId artifactIdspring-oxm-tiger/artifactId version${spring.ws.version}/version /dependency dependency groupIdorg.springframework.ws/groupId artifactIdspring-oxm/artifactId version${spring.ws.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context-support/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-tx/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-aspects/artifactId version${spring.version}/version /dependency Robby From: Francesco Chicchiriccò [mailto:ilgro...@apache.org] Sent: Monday, January 21, 2013 1:26 PM To: users@cocoon.apache.org Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 21/01/2013 09:45, Matthias Müller wrote: I thought that the spring integration is also part of Cocoon 2.2 !? If Jos is referring to the cocoon-spring-configurator, I confirm that it is included in C2.2 (and C3, of course). Unfortunately, I don't know if there is any sample of this kind available. If you succeed with this approach, please report. Regards. Von: Jos Snellings jos.snelli...@upperware.bizmailto:jos.snelli...@upperware.biz An: users@cocoon.apache.orgmailto:users@cocoon.apache.org; Matthias Müller pym...@yahoo.demailto:pym...@yahoo.de Gesendet: 9:28 Montag, 21.Januar 2013 Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Hi Matthias, As a matter of fact, cocoon can host spring modules. You can plug in most every module using the well-known IoC mechanism. In a typical block you will be able to configure things in the META-INF/cocoon/spring folder. This is in my opinion one of the strong points of C3 over C2.2. Cheers, Jos On Mon, Jan 21, 2013 at 8:59 AM, Matthias Müller pym...@yahoo.demailto:pym...@yahoo.de wrote: I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm wrong here. I'm not to deep in cocoon development, so maybe I'm totally wrong with the following idea: There is a Cocoon spring integration. Does that mean that coccon can host spring modules? Could I maybe use the a spring webservice here? Regards, Matthias Von: Francesco Chicchiriccò ilgro...@apache.orgmailto:ilgro...@apache.org An: users@cocoon.apache.orgmailto:users@cocoon.apache.org Gesendet: 12:32 Samstag, 19.Januar 2013 Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.resthttp://cocoon.apache.org/3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/
Re: cocoon-auth configuration - cocoon 2.2
Thanks, I saw these examples and used them, but I can't get the authentication procedure to work. There are no errors, but no authentication also... Strange. I'll try to use extensive debug and post the results here, if it will be something interesting... -- View this message in context: http://cocoon.10839.n7.nabble.com/cocoon-auth-configuration-cocoon-2-2-tp57579p57588.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: [C2.2] Provide or consume Webservices with Cocoon 2.2
Not sure if that was addressed to me. I did blog about how to use Spring-ws in the past. It’s not really cocoon related but you might as well consume or provide a webservice with Cocoon. It might be a bit outdated already but I guess it won’t hurt you to go over it quickly: http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws-and.html From: gelo1234 [mailto:gelo1...@gmail.com] Sent: Monday, January 21, 2013 2:14 PM To: users@cocoon.apache.org Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2 Can you provide some examples of such configuration and Web Services logic here ? Spring Web Services + cocoon 3.0 ? Greetings, Greg
Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
On 17/01/2013 14:26, Matthias Müller wrote: Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Hi Matthias, I don't think there is any different sample for C2.2; possibly, the wiki page content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help you in this field, unfortunately. If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not yet fully released but already proven stable) with a dedicated support for REST [1]. Regards. [1] http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest -- Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/
[C2.2] Provide or consume Webservices with Cocoon 2.2
Hi there, are there any tutorials / samples about implementing webservice support in cocoon 2.2. All the sources I found are based on Cocoon 2.1x, e.g. http://wiki.apache.org/cocoon/WebServiceServer Regards, Matthias
RE: Path selector - Cocoon 2.2.
All you need is a correct matcher: !-- {1}: language: e.g. English | french {2}: folder: e.g. dir_1 | dir_2 -- map:match pattern=repo/*/*.xml map:generate src=file:///c:/repo/{1}/{2}.xml/ map:serialize type=xml/ /map:match -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Wednesday, December 12, 2012 9:42 PM To: users Subject: Path selector - Cocoon 2.2. Hello all, I am looking to select a path for a directory depending on language prefix. For example, let's say I have C:\repo\english\dir_1 C:\repo\english\dir_2 C:\repo\english\dir_3 C:\repo\english\dir_4 C:\repo\french\dir_1 C:\repo\french\dir_2 C:\repo\french\dir_3 C:\repo\french\dir_4 I have multiple matchers, for different type of documents. For example: matcher pattern=doc1/*.xml generator src=C:\repo\english\dir_1 / .. matcher I would like to turn this into a matcher for both languages with two characters representation of the language. For example: en/doc1/*.xml AND fr/doc1/*.xml How can I do selection the correct path with this ? In other words, use if else ? Is there a current selector that helps in this ?? Thank you - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Path selector - Cocoon 2.2.
Thank you Robby. Here is how I did it, since I need to two characters language id: map:pipeline id=language-matcher map:match pattern=en/**.xml map:generate src=cocoon:/english/{1}.xml / map:serialize type=xml / /map:match map:match pattern=fr/**.xml map:generate src=cocoon:/french/{1} / map:serialize type=xml / /map:match /map:pipeline On Thu, Dec 13, 2012 at 6:10 AM, Robby Pelssers robby.pelss...@nxp.com wrote: All you need is a correct matcher: !-- {1}: language: e.g. English | french {2}: folder: e.g. dir_1 | dir_2 -- map:match pattern=repo/*/*.xml map:generate src=file:///c:/repo/{1}/{2}.xml/ map:serialize type=xml/ /map:match -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Wednesday, December 12, 2012 9:42 PM To: users Subject: Path selector - Cocoon 2.2. Hello all, I am looking to select a path for a directory depending on language prefix. For example, let's say I have C:\repo\english\dir_1 C:\repo\english\dir_2 C:\repo\english\dir_3 C:\repo\english\dir_4 C:\repo\french\dir_1 C:\repo\french\dir_2 C:\repo\french\dir_3 C:\repo\french\dir_4 I have multiple matchers, for different type of documents. For example: matcher pattern=doc1/*.xml generator src=C:\repo\english\dir_1 / .. matcher I would like to turn this into a matcher for both languages with two characters representation of the language. For example: en/doc1/*.xml AND fr/doc1/*.xml How can I do selection the correct path with this ? In other words, use if else ? Is there a current selector that helps in this ?? Thank you - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Path selector - Cocoon 2.2.
Hello all, I am looking to select a path for a directory depending on language prefix. For example, let's say I have C:\repo\english\dir_1 C:\repo\english\dir_2 C:\repo\english\dir_3 C:\repo\english\dir_4 C:\repo\french\dir_1 C:\repo\french\dir_2 C:\repo\french\dir_3 C:\repo\french\dir_4 I have multiple matchers, for different type of documents. For example: matcher pattern=doc1/*.xml generator src=C:\repo\english\dir_1 / .. matcher I would like to turn this into a matcher for both languages with two characters representation of the language. For example: en/doc1/*.xml AND fr/doc1/*.xml How can I do selection the correct path with this ? In other words, use if else ? Is there a current selector that helps in this ?? Thank you - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: How to build cocoon 2.2 from source for debugging
Hi Joel, i had the same troubles as well, asked about it in the mailing as well, nothing changed apparently. It looks like a mess, which is strange. I got everything working in the end, but the easiest is to just add dependencies and don't try to compile everything yourself. If you must you must, but I recommend against it. I hope you'll get away with not debugging the Cocoon source code. Hartelijke groet, Huib. Verstuurd vanaf mijn iPhone Op 9 jul. 2012 om 22:07 heeft Joel McConaughy joelmcconau...@gmail.commailto:joelmcconau...@gmail.com het volgende geschreven: Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.comailto:rafael.re...@tigo.com.co wrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts of the proyect and everything its going to be all right. Alexander R. Este mensaje (incluyendo cualquier anexo) contiene información confidencial que se encuentra protegida por la ley. La información que contiene sólo puede ser utilizada por la persona o la compañía a la cual está dirigido. Si usted no es un receptor autorizado, o por error recibe el mensaje, omita su contenido y elimínelo inmediatamente. Cualquier retención, difusión, distribución y/o copia así como la ejecución de cualquier acción basado en el contenido del mismo, se encuentra estrictamente prohibido, y esta amparado por la ley. -- This message (including any attachments) contains confidential information intented for a specific individual and purpose, and is protected by law. If you are not the intented recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. -- Joel McConaughy 206-300-4732 joelmcconau...@gmail.commailto:joelmcconau...@gmail.com
Re: How to build cocoon 2.2 from source for debugging
Hi, you shouldn't need to build 2.2 artifacts yourself, just use the provided maven dependencies as suggested. Could you please describe your use case in order to understand whether you absolutely need to build the 2.2 source tree? Regards. On 10/07/2012 10:42, Huib Verwey wrote: Hi Joel, i had the same troubles as well, asked about it in the mailing as well, nothing changed apparently. It looks like a mess, which is strange. I got everything working in the end, but the easiest is to just add dependencies and don't try to compile everything yourself. If you must you must, but I recommend against it. I hope you'll get away with not debugging the Cocoon source code. Hartelijke groet, Huib. Verstuurd vanaf mijn iPhone Op 9 jul. 2012 om 22:07 heeft Joel McConaughy joelmcconau...@gmail.com mailto:joelmcconau...@gmail.com het volgende geschreven: Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.co mailto:rafael.re...@tigo.com.co wrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts of the proyect and everything its going to be all right. -- Francesco Chicchiriccò ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member http://people.apache.org/~ilgrosso/
RE: How to build cocoon 2.2 from source for debugging
You can also change the problematic pom’s to point to the correct parent pom.xml parent groupIdorg.apache.cocoon/groupId artifactIdcocoon/artifactId version10-SNAPSHOT/version -- this is currently 6-SNAPSHOT relativePath../parent/relativePath /parent @Francesco, can you confirm this? I guess we should fix this in trunk in that case. Robby [ERROR] The build could not read 7 projects - [Help 1] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-blocks-modules:6-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\blocks\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 24, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-commons-modules:2-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\commons\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 27, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-core-modules:6-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\core\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 25, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-dists-modules:2-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\dists\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-servlet-service-components:1.1.0-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\core\cocoon-servlet-service\cocoon-se rvlet-service-components\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 24, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-servlet-service-components-sample:1.0.0-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\core\cocoon-servlet-service\co coon-servlet-service-components-sample\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 23, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-project:1 (c:\development\workspaces\cocoon22\trunk\pom.xml) has 1 error [ERROR] Child module c:\development\workspaces\cocoon22\trunk\subprojects\pom.xml of c:\development\workspaces\cocoon22\trunk\pom.xml does not exist [ERROR] From: Francesco Chicchiriccò [mailto:ilgro...@apache.org] Sent: Tuesday, July 10, 2012 10:48 AM To: users@cocoon.apache.org Subject: Re: How to build cocoon 2.2 from source for debugging Hi, you shouldn't need to build 2.2 artifacts yourself, just use the provided maven dependencies as suggested. Could you please describe your use case in order to understand whether you absolutely need to build the 2.2 source tree? Regards. On 10/07/2012 10:42, Huib Verwey wrote: Hi Joel, i had the same troubles as well, asked about it in the mailing as well, nothing changed apparently. It looks like a mess, which is strange. I got everything working in the end, but the easiest is to just add dependencies and don't try to compile everything yourself. If you must you must, but I recommend against it. I hope you'll get away with not debugging the Cocoon source code. Hartelijke groet, Huib. Verstuurd vanaf mijn iPhone Op 9 jul. 2012 om 22:07 heeft Joel McConaughy joelmcconau...@gmail.commailto:joelmcconau...@gmail.com het volgende geschreven: Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.comailto:rafael.re...@tigo.com.co wrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts of the proyect and everything its going to be all right. -- Francesco Chicchiriccò ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member http://people.apache.org/~ilgrosso/
Re: How to build cocoon 2.2 from source for debugging
On 10/07/2012 12:57, Robby Pelssers wrote: You can also change the problematic pom’s to point to the correct parent pom.xml parent groupIdorg.apache.cocoon/groupId artifactIdcocoon/artifactId version10-SNAPSHOT/version àthis is currently 6-SNAPSHOT relativePath../parent/relativePath /parent @Francesco, can you confirm this? I guess we should fix this in trunk in that case. I'd rather point to recently released parent 9: parent groupIdorg.apache.cocoon/groupId artifactIdcocoon/artifactId version9/version relativePath / /parent I might try to see if C2.2 sources can be compiled with few modifications; however, I am not very familiar with C2.2... Regards. [ERROR] The build could not read 7 projects - [Help 1] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-blocks-modules:6-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\blocks\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 24, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-commons-modules:2-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\commons\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 27, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-core-modules:6-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\core\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 25, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-dists-modules:2-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\dists\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-servlet-service-components:1.1.0-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\core\cocoon-servlet-service\cocoon-se rvlet-service-components\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 24, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-servlet-service-components-sample:1.0.0-SNAPSHOT (C:\development\workspaces\cocoon22\trunk\core\cocoon-servlet-service\co coon-servlet-service-components-sample\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 23, co lumn 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-project:1 (c:\development\workspaces\cocoon22\trunk\pom.xml) has 1 error [ERROR] Child module c:\development\workspaces\cocoon22\trunk\subprojects\pom.xml of c:\development\workspaces\cocoon22\trunk\pom.xml does not exist [ERROR] *From:*Francesco Chicchiriccò [mailto:ilgro...@apache.org] *Sent:* Tuesday, July 10, 2012 10:48 AM *To:* users@cocoon.apache.org *Subject:* Re: How to build cocoon 2.2 from source for debugging Hi, you shouldn't need to build 2.2 artifacts yourself, just use the provided maven dependencies as suggested. Could you please describe your use case in order to understand whether you absolutely need to build the 2.2 source tree? Regards. On 10/07/2012 10:42, Huib Verwey wrote: Hi Joel, i had the same troubles as well, asked about it in the mailing as well, nothing changed apparently. It looks like a mess, which is strange. I got everything working in the end, but the easiest is to just add dependencies and don't try to compile everything yourself. If you must you must, but I recommend against it. I hope you'll get away with not debugging the Cocoon source code. Hartelijke groet, Huib. Verstuurd vanaf mijn iPhone Op 9 jul. 2012 om 22:07 heeft Joel McConaughy joelmcconau...@gmail.com mailto:joelmcconau...@gmail.com het volgende geschreven: Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.co mailto:rafael.re...@tigo.com.co wrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts
Re: How to build cocoon 2.2 from source for debugging
Hi Francesco, Thanks for the reply. I am trying to implement a multiple file uploader using input type=file multiple=multiple/ and am not getting an array of PartOnDisk objects but just getting a single PartOnDisk for the last item selected. I have walked through the source and it looks like it should work but doesn't. I would like to compile a debug version of cocoon 2.2 so I can step through the code with a debugger. On Tue, Jul 10, 2012 at 1:47 AM, Francesco Chicchiriccò ilgro...@apache.org wrote: Hi, you shouldn't need to build 2.2 artifacts yourself, just use the provided maven dependencies as suggested. Could you please describe your use case in order to understand whether you absolutely need to build the 2.2 source tree? Regards. On 10/07/2012 10:42, Huib Verwey wrote: Hi Joel, i had the same troubles as well, asked about it in the mailing as well, nothing changed apparently. It looks like a mess, which is strange. I got everything working in the end, but the easiest is to just add dependencies and don't try to compile everything yourself. If you must you must, but I recommend against it. I hope you'll get away with not debugging the Cocoon source code. Hartelijke groet, Huib. Verstuurd vanaf mijn iPhone Op 9 jul. 2012 om 22:07 heeft Joel McConaughy joelmcconau...@gmail.com het volgende geschreven: Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.cowrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts of the proyect and everything its going to be all right. -- Francesco Chicchiriccò ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Memberhttp://people.apache.org/~ilgrosso/ -- Joel McConaughy 206-300-4732 joelmcconau...@gmail.com
Re: How to build cocoon 2.2 from source for debugging
On 10/07/2012 16:13, Joel McConaughy wrote: Hi Francesco, Thanks for the reply. I am trying to implement a multiple file uploader using input type=file multiple=multiple/ and am not getting an array of PartOnDisk objects but just getting a single PartOnDisk for the last item selected. I have walked through the source and it looks like it should work but doesn't. I would like to compile a debug version of cocoon 2.2 so I can step through the code with a debugger. Hi Joel, first of all, I've just committed some fixes that make the build to succeed. Anyway, I still don't think that you'd need to build the source tree in order to debug a running C2.2 webapp: just start your container with debug options (for example http://wiki.apache.org/tomcat/FAQ/Developing#Q1) and attach your IDE to the port specified. I have no much experience with Eclipse, but at least with Netbeans this should be enough. Regards. On Tue, Jul 10, 2012 at 1:47 AM, Francesco Chicchiriccò ilgro...@apache.org mailto:ilgro...@apache.org wrote: Hi, you shouldn't need to build 2.2 artifacts yourself, just use the provided maven dependencies as suggested. Could you please describe your use case in order to understand whether you absolutely need to build the 2.2 source tree? Regards. On 10/07/2012 10:42, Huib Verwey wrote: Hi Joel, i had the same troubles as well, asked about it in the mailing as well, nothing changed apparently. It looks like a mess, which is strange. I got everything working in the end, but the easiest is to just add dependencies and don't try to compile everything yourself. If you must you must, but I recommend against it. I hope you'll get away with not debugging the Cocoon source code. Hartelijke groet, Huib. Verstuurd vanaf mijn iPhone Op 9 jul. 2012 om 22:07 heeft Joel McConaughy joelmcconau...@gmail.com mailto:joelmcconau...@gmail.com het volgende geschreven: Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.co mailto:rafael.re...@tigo.com.co wrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts of the proyect and everything its going to be all right. -- Francesco Chicchiriccò ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member http://people.apache.org/~ilgrosso/
How to build cocoon 2.2 from source for debugging
Are the build instructions at http://cocoon.apache.org/798_1_1.html still valid? I am getting some basic dependency errors from maven and wanted to see if there are updated instructions before I starting digging into the problems. Here is the output of mvn clean. Thanks. joel MacBook-Pro:cocoon-2.2 joel$ mvn clean [INFO] Scanning for projects... [ERROR] The build could not read 6 projects - [Help 1] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-blocks-modules:6-SNAPSHOT (/Users/joel/cocoon/cocoon-2.2/blocks/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 24, column 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-commons-modules:2-SNAPSHOT (/Users/joel/cocoon/cocoon-2.2/commons/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 27, column 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-core-modules:6-SNAPSHOT (/Users/joel/cocoon/cocoon-2.2/core/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 25, column 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-dists-modules:2-SNAPSHOT (/Users/joel/cocoon/cocoon-2.2/dists/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 26, column 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-servlet-service-components:1.1.0-SNAPSHOT (/Users/joel/cocoon/cocoon-2.2/core/cocoon-servlet-service/cocoon-servlet-service-components/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 24, column 11 - [Help 2] [ERROR] [ERROR] The project org.apache.cocoon:cocoon-servlet-service-components-sample:1.0.0-SNAPSHOT (/Users/joel/cocoon/cocoon-2.2/core/cocoon-servlet-service/cocoon-servlet-service-components-sample/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.cocoon:cocoon:pom:6-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 23, column 11 - [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException MacBook-Pro:cocoon-2.2 joel$
RE: How to build cocoon 2.2 from source for debugging
Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache's server deploying the proyect, clean some parts of the proyect and everything its going to be all right. Alexander R. Este mensaje (incluyendo cualquier anexo) contiene información confidencial que se encuentra protegida por la ley. La información que contiene sólo puede ser utilizada por la persona o la compañía a la cual está dirigido. Si usted no es un receptor autorizado, o por error recibe el mensaje, omita su contenido y elimínelo inmediatamente. Cualquier retención, difusión, distribución y/o copia así como la ejecución de cualquier acción basado en el contenido del mismo, se encuentra estrictamente prohibido, y esta amparado por la ley. -- This message (including any attachments) contains confidential information intented for a specific individual and purpose, and is protected by law. If you are not the intented recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
Re: How to build cocoon 2.2 from source for debugging
Unfortunately I am working on an app built on cocoon 2.2 so need to use that version. Thanks for the quick reply though! On Mon, Jul 9, 2012 at 1:00 PM, Reyes, Rafael rafael.re...@tigo.com.cowrote: Hi joel, i had the same trouble when i began with cocoon but I recommend that you download the cocoon`s .war proyect, in google you can find this file with the name of cocoon 2.1.6 .war, after, you should to put this in the apache’s server deploying the proyect, clean some parts of the proyect and everything its going to be all right. ** ** Alexander R. ** ** Este mensaje (incluyendo cualquier anexo) contiene información confidencial que se encuentra protegida por la ley. La información que contiene sólo puede ser utilizada por la persona o la compañía a la cual está dirigido. Si usted no es un receptor autorizado, o por error recibe el mensaje, omita su contenido y elimínelo inmediatamente. Cualquier retención, difusión, distribución y/o copia así como la ejecución de cualquier acción basado en el contenido del mismo, se encuentra estrictamente prohibido, y esta amparado por la ley. -- This message (including any attachments) contains confidential information intented for a specific individual and purpose, and is protected by law. If you are not the intented recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. -- Joel McConaughy 206-300-4732 joelmcconau...@gmail.com
Weird I18NTransformer problem (Cocoon 2.2)
I Cocoon 2.2 running on Glassfish 3.1 and I'm using the I18nTransformer and I'm using a generator to create the translation files (see pipelines and transformer config below), my problem is thet when I use the DerbyEmbedded database, the transformer does not work, I can call the pipelines ok so is a transformer+DerbyEmbedded problem. It works with DerbyNetworkServer and MSSQL. Transformer config: map:transformer name=i18n src=org.apache.cocoon.transformation.I18nTransformer catalogues default=msim_id catalogue id=msim_id name=dictionary location=cocoon:/ / /catalogues untranslated-textuntranslated/untranslated-text cache-at-startuptrue/cache-at-startup /map:transformer Dictionary pipelines: map:pipeline id=translation type=noncaching map:match pattern=dictionary.xml map:generate type=dictionary src=en / map:serialize type=xml / /map:match map:match pattern=dictionary_en.xml map:generate type=dictionary src=en / map:serialize type=xml / /map:match map:match pattern=dictionary_es.xml map:generate type=dictionary src=es / map:serialize type=xml / /map:match /map:pipeline - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and OSGI
On 3/2/2012 11:20 AM, Fawzib Rojas wrote: I have been working in Glassfish and OSGI and was wondering, did Cocoon 2.2 was ever made into an OSGI bundle? I googled some info about it and all I saw was some messages from 2005-2008 talking about it and a wiki page about experimenting with it, last edited on 2009. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org So no info on this? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and OSGI
On 03/12/2012 02:39 PM, Fawzib Rojas wrote: On 3/2/2012 11:20 AM, Fawzib Rojas wrote: I have been working in Glassfish and OSGI and was wondering, did Cocoon 2.2 was ever made into an OSGI bundle? I googled some info about it and all I saw was some messages from 2005-2008 talking about it and a wiki page about experimenting with it, last edited on 2009. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org So no info on this? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org I think it is not implemented. Sorry for not being a bigger help. salu2 -- Thorsten Scherlerscherler.at.gmail.com codeBusters S.L. - web based systems consulting, training and solutions http://www.codebusters.es/ - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2 and OSGI
I have been working in Glassfish and OSGI and was wondering, did Cocoon 2.2 was ever made into an OSGI bundle? I googled some info about it and all I saw was some messages from 2005-2008 talking about it and a wiki page about experimenting with it, last edited on 2009. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and OSGI
Hi Fawzib, There are certainly traces of such attempts, for instance: artifactIdcocoon-xml/artifactId version2.0.3-SNAPSHOT/version packagingbundle/packaging Anyone knows more? Jos On 03/02/2012 04:20 PM, Fawzib Rojas wrote: I have been working in Glassfish and OSGI and was wondering, did Cocoon 2.2 was ever made into an OSGI bundle? I googled some info about it and all I saw was some messages from 2005-2008 talking about it and a wiki page about experimenting with it, last edited on 2009. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Nullpointer in ZipSerializer (cocoon 2.2)
Hi guys, Just wanted to know if the issue in below thread has ever been fixed. http://web.archiveorange.com/archive/v/uRmkWnxszXP6g7Xuw33H To shortly describe the use case: http://cocoon.apache.org/2.1/userdocs/ziparchive-serializer.html The zipserializer only allows either: - You specify a @src pointing to some cocoon pipeline using cocoon:// (Ideally it would also support the servlet: protocol as now I have to provide a façade in the calling cocoon block) - You specify inline content and the @serializer In a ideal world you should be able to use @src in combination with the @serializer because now I have to first include the content from a pipeline by using cinclude before calling map:serialize type=zip/ I actually created some nice generic functionality to work around some issues: FLOWSCRIPT *** function downloadImdsZip() { var entries = []; new Collection(cocoon.request.getParameterValues(id)).forEach(function(id){ var entry = {name: id + .xml, source: cocoon://chemicalcontent/imds/ + id + .xml, serializer: upload}; print('Adding entry [name=' + entry.name + ', source=' + entry.source + '] to ZIP archive.'); entries.push(entry); }); var response = cocoon.response; response.setHeader( Content-Disposition, attachment; filename=imds.zip ); cocoon.sendPage(zipArchive, {entries: entries}); } * ?xml version=1.0 encoding=UTF-8? jx:template xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; xmlns:zip=http://apache.org/cocoon/zip-archive/1.0; xmlns:cinclude=http://apache.org/cocoon/include/1.0; !-- This jx expects an array called 'entries' containing objects with following properties: * name (mandatory) * source (mandatory) * serializer (optional) * * If both source and serializer are provided, we assume that we want to include the content inline so we can specify the serializer -- zip:archive jx:forEach var=entry items=${entries} zip:entry name=${entry.name} jx:choose jx:when test=${entry.serializer != null} jx:attribute name=serializer value=${entry.serializer}/ cinclude:include src=${entry.source}/ /jx:when jx:otherwise jx:attribute name=src value=${entry.source}/ /jx:otherwise /jx:choose /zip:entry /jx:forEach /zip:archive /jx:template * map:match pattern=zipArchive map:generate src=jx/zipArchive.jx type=jx/ map:transform type=cinclude/ map:serialize type=zip/ /map:match * But I now am facing the same nullpointer exception as in the link above. Anyone some usefull input on this matter? Cheers, Robby Pelssers
Cocoon 2.2 and block cocoon-xsltal
Hello, I try to use xslthl with cocoon 2.2. I have tested with the block cocoon-xsltal dependency groupIdcocoon/groupId artifactIdcocoon-xsltal/artifactId version2.1.9/version /dependency but I have not result. There is an alternative to cocoon-xsltal or a tutorial ? Thank for your help. Grégory Roche site : www.polymorphisme.com mail : webmas...@polymorphisme.org fixe : +33 (0)9.67.07.91.94 port : +33 (0)6.89.54.14.84
Re: Cocoon 2.2/3.0 and Spring WebMVC
Very Nice! So you managed to run cocoon 2.2 with Spring 3.0? Can you provide the community with some hints, or even better supply some patches to a JIRA issue, so it could be picked up by others and could be integrated in the next 2.x version (2.3?) thanx in advance gabriel +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Workflow EDV GmbH, Dannebergplatz 6/23, A-1030 Wien www.workflow.at From: kremnef krem...@gmail.com To: users@cocoon.apache.org Date: 23.08.2011 13:26 Subject:Re: Cocoon 2.2/3.0 and Spring WebMVC Hi Mark Today I successfully ran cocoon 2.2.1-snapshot and Spring 3.0 I think that some question and problems will be the case. Mark Diggory wrote: Cocoon Community, While, possibly unconventional, we are considering the the possibility of marrying Cocoon and WebMVC in our project to use Cocoon as a View technology while relying on WebMVC as our Controller/Model framework. I would like to explore if anyone else out there has approached such a solution? Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- View this message in context: http://old.nabble.com/Cocoon-2.2-3.0-and-Spring-WebMVC-tp32084435p32318052.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 production server configuration
Hello Jeroen, i've also commented inline: On Tue, Sep 13, 2011 at 10:59 AM, Jeroen Reijn j.re...@onehippo.com wrote: Hi, see my comments inline: On Fri, Sep 9, 2011 at 10:37 AM, Brecht Schoolmeesters brecht.schoolmeest...@zappware.com wrote: Hi, we are currently using cocoon for transforming source xml files into xml files in a different format. The transformations are pretty heavy because data from other xml files is inserted and also transformed. When using cocoon on our test server, we saw that the memory usage was peaking at around 1.1Gb RAM. We were testing with about 10 clients sending requests every 1.5second. Is this normal memory usage for cocoon? That depends. It would be interesting for us to know which version of Cocoon you are using to begin with. Processing XML can always be quite memory intensive depending on the size of the XML being processed and the amount and type of transformations taking place. As the subject of this mail states, we're using cocoon 2.2 ;) The xml files we are transforming are not large (about 400-500lines). We are doing one special thing: we have a pipeline that generates an xslt transformation file which is then used in another pipeline in a transformer: map:transform src=cocoon:/otherpipe / We would also like some more information about the scalability. Will cocoon use a lot more memory when a few more clients connect? I'm not aware of any figures, but every request will of course take more memory, but I'm not sure what is 'a lot'. That mostly depends on the kind of transformations your application is doing. Which configuration files/settings can we change to enable cocoon to handle more requests? We would like to be able to handle about 40requests/second at peak times. I'm not sure, that might depend on the interaction between the client and the cocoon server. 40 requests/second should definitely be possible, but that can depend on what Cocoon is doing. Is for instance the XML processing 'static' in certain situations? Then you might be thinking of caching the result of a certain pipeline or component output. That way you will be able to handle a lot more requests per second. Caching is enabled for the static pipelines. What type of server is recommend for this type of usage? How much RAM, CPU power? Hmm that's a good question. I'm not really an infra guys, so I do not know the specs. And one final question: are there any cocoon components that are optional and therefore can be disabled? If yes, how can we check which components are optional and how can we disable them? Will this help decrease the total memory usage? This might help, but I'm not sure if disabling components will make it use less memory. As far as I know most memory will be taken once a component is triggered in the request cycle. Where can I disable these components and how should this be done? Cheers, Jeroen thanks in advance, best regards, Brecht best regards, Brecht -- Amsterdam - Oosteinde 11, 1017 WT Amsterdam Boston - 1 Broadway, Cambridge, MA 02142 US +1 877 414 4776 (toll free) Europe +31(0)20 522 4466 www.onehippo.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 production server configuration
Hi Robby, thanks for your reply. I think the memory leak is causing the high memory usage. I decompiled the class file we use in our cocoon server and it uses the unpatched PoolableProxyHandler. How can I apply the patch to the cocoon version we are using (stable 2.2.0 version from the site)? I tried checking out the trunk version and compile it, but it gives some missing daisy depency errors. The source files for the stable version are also on the subversion server but there is no build script included. How did you apply the patch? Is it possible to send me your cocoon-sitemap-impl.jar file or should I compile it myself? thanks in advance, best regards, Brecht On Tue, Sep 13, 2011 at 1:52 PM, Robby Pelssers robby.pelss...@nxp.comwrote: Hi Brecht, ** ** Just wondering how large the data is you are processing. We have a cocoon 2.2 app running stable with 512mb of memory. And I’m pretty sure it even uses less memory after we solved a memory leak. Check this thread http://old.nabble.com/memory-leak-in-PoolableProxyHandler-td29023190.html* *** ** ** Can you perhaps isolate a single pipeline execution which would require that much memory? If so it would be interesting to see if I can replicate this in my setup depending on the complexity of course. ** ** Robby ** ** ** ** ** ** ** ** *From:* Brecht Schoolmeesters [mailto:brecht.schoolmeest...@zappware.com] *Sent:* Friday, September 09, 2011 10:38 AM *To:* users@cocoon.apache.org *Subject:* Cocoon 2.2 production server configuration ** ** Hi, ** ** we are currently using cocoon for transforming source xml files into xml files in a different format. The transformations are pretty heavy because data from other xml files is inserted and also transformed. ** ** When using cocoon on our test server, we saw that the memory usage was peaking at around 1.1Gb RAM. We were testing with about 10 clients sending requests every 1.5second. Is this normal memory usage for cocoon? We would also like some more information about the scalability. Will cocoon use a lot more memory when a few more clients connect? ** ** Which configuration files/settings can we change to enable cocoon to handle more requests? We would like to be able to handle about 40requests/second at peak times. ** ** What type of server is recommend for this type of usage? How much RAM, CPU power? And one final question: are there any cocoon components that are optional and therefore can be disabled? If yes, how can we check which components are optional and how can we disable them? Will this help decrease the total memory usage? ** ** ** ** thanks in advance, best regards, Brecht
Re: Cocoon 2.2 production server configuration
Hi Robby, thanks for your reply. I think the memory leak is causing the high memory usage. I decompiled the class file we use in our cocoon server and it uses the unpatched PoolableProxyHandler. How can I apply the patch to the cocoon version we are using (stable 2.2.0 version from the site)? I tried checking out the trunk version and compile it, but it gives some missing daisy depency errors. (see attached errors below) The source files for the stable version are also on the subversion server but there is no build script included. How did you apply the patch? Is it possible to send me your cocoon-sitemap-impl.jar file or should I compile it myself? thanks in advance, best regards, Brecht Missing: -- 1) daisy:daisy-repository-api:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-api -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-api -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-api:jar:1.5-dev 2) daisy:daisy-repository-xmlschema-bindings:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-xmlschema-bindings -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-xmlschema-bindings -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-xmlschema-bindings:jar:1.5-dev 3) daisy:daisy-repository-client-impl:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-client-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-client-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-client-impl:jar:1.5-dev 4) daisy:daisy-repository-common-impl:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-common-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-common-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-common-impl:jar:1.5-dev 5) daisy:daisy-repository-spi:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-spi -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-spi -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-spi:jar:1.5-dev 6) daisy:daisy-jmsclient-api:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-jmsclient-api -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-jmsclient-api -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1)
RE: Cocoon 2.2 production server configuration
Hi Brecht, I checked out the Cocoon sources from SVN and applied the patch locally and installed the module in our repo. I mailed you my patched version of the jar. Kind regards, Robby From: Brecht Schoolmeesters [mailto:brecht.schoolmeest...@zappware.com] Sent: Wednesday, September 14, 2011 12:57 PM To: users@cocoon.apache.org Subject: Re: Cocoon 2.2 production server configuration Hi Robby, thanks for your reply. I think the memory leak is causing the high memory usage. I decompiled the class file we use in our cocoon server and it uses the unpatched PoolableProxyHandler. How can I apply the patch to the cocoon version we are using (stable 2.2.0 version from the site)? I tried checking out the trunk version and compile it, but it gives some missing daisy depency errors. (see attached errors below) The source files for the stable version are also on the subversion server but there is no build script included. How did you apply the patch? Is it possible to send me your cocoon-sitemap-impl.jar file or should I compile it myself? thanks in advance, best regards, Brecht Missing: -- 1) daisy:daisy-repository-api:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-api -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-api -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-api:jar:1.5-dev 2) daisy:daisy-repository-xmlschema-bindings:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-xmlschema-bindings -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-xmlschema-bindings -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-xmlschema-bindings:jar:1.5-dev 3) daisy:daisy-repository-client-impl:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-client-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-client-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-client-impl:jar:1.5-dev 4) daisy:daisy-repository-common-impl:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-common-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-common-impl -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-common-impl:jar:1.5-dev 5) daisy:daisy-repository-spi:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-repository-spi -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=daisy -DartifactId=daisy-repository-spi -Dversion=1.5-dev -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-sitemaptags2daisy-plugin:maven-plugin:1.0.0-SNAPSHOT 2) daisy:daisy-repository-spi:jar:1.5-dev 6) daisy:daisy-jmsclient-api:jar:1.5-dev Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=daisy -DartifactId=daisy-jmsclient-api -Dversion=1.5
Re: Cocoon 2.2 production server configuration
Hi, see my comments inline: On Fri, Sep 9, 2011 at 10:37 AM, Brecht Schoolmeesters brecht.schoolmeest...@zappware.com wrote: Hi, we are currently using cocoon for transforming source xml files into xml files in a different format. The transformations are pretty heavy because data from other xml files is inserted and also transformed. When using cocoon on our test server, we saw that the memory usage was peaking at around 1.1Gb RAM. We were testing with about 10 clients sending requests every 1.5second. Is this normal memory usage for cocoon? That depends. It would be interesting for us to know which version of Cocoon you are using to begin with. Processing XML can always be quite memory intensive depending on the size of the XML being processed and the amount and type of transformations taking place. We would also like some more information about the scalability. Will cocoon use a lot more memory when a few more clients connect? I'm not aware of any figures, but every request will of course take more memory, but I'm not sure what is 'a lot'. That mostly depends on the kind of transformations your application is doing. Which configuration files/settings can we change to enable cocoon to handle more requests? We would like to be able to handle about 40requests/second at peak times. I'm not sure, that might depend on the interaction between the client and the cocoon server. 40 requests/second should definitely be possible, but that can depend on what Cocoon is doing. Is for instance the XML processing 'static' in certain situations? Then you might be thinking of caching the result of a certain pipeline or component output. That way you will be able to handle a lot more requests per second. What type of server is recommend for this type of usage? How much RAM, CPU power? Hmm that's a good question. I'm not really an infra guys, so I do not know the specs. And one final question: are there any cocoon components that are optional and therefore can be disabled? If yes, how can we check which components are optional and how can we disable them? Will this help decrease the total memory usage? This might help, but I'm not sure if disabling components will make it use less memory. As far as I know most memory will be taken once a component is triggered in the request cycle. Cheers, Jeroen thanks in advance, best regards, Brecht -- Amsterdam - Oosteinde 11, 1017 WT Amsterdam Boston - 1 Broadway, Cambridge, MA 02142 US +1 877 414 4776 (toll free) Europe +31(0)20 522 4466 www.onehippo.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Cocoon 2.2 production server configuration
Hi Brecht, Just wondering how large the data is you are processing. We have a cocoon 2.2 app running stable with 512mb of memory. And I’m pretty sure it even uses less memory after we solved a memory leak. Check this thread http://old.nabble.com/memory-leak-in-PoolableProxyHandler-td29023190.html Can you perhaps isolate a single pipeline execution which would require that much memory? If so it would be interesting to see if I can replicate this in my setup depending on the complexity of course. Robby From: Brecht Schoolmeesters [mailto:brecht.schoolmeest...@zappware.com] Sent: Friday, September 09, 2011 10:38 AM To: users@cocoon.apache.org Subject: Cocoon 2.2 production server configuration Hi, we are currently using cocoon for transforming source xml files into xml files in a different format. The transformations are pretty heavy because data from other xml files is inserted and also transformed. When using cocoon on our test server, we saw that the memory usage was peaking at around 1.1Gb RAM. We were testing with about 10 clients sending requests every 1.5second. Is this normal memory usage for cocoon? We would also like some more information about the scalability. Will cocoon use a lot more memory when a few more clients connect? Which configuration files/settings can we change to enable cocoon to handle more requests? We would like to be able to handle about 40requests/second at peak times. What type of server is recommend for this type of usage? How much RAM, CPU power? And one final question: are there any cocoon components that are optional and therefore can be disabled? If yes, how can we check which components are optional and how can we disable them? Will this help decrease the total memory usage? thanks in advance, best regards, Brecht
Cocoon 2.2 production server configuration
Hi, we are currently using cocoon for transforming source xml files into xml files in a different format. The transformations are pretty heavy because data from other xml files is inserted and also transformed. When using cocoon on our test server, we saw that the memory usage was peaking at around 1.1Gb RAM. We were testing with about 10 clients sending requests every 1.5second. Is this normal memory usage for cocoon? We would also like some more information about the scalability. Will cocoon use a lot more memory when a few more clients connect? Which configuration files/settings can we change to enable cocoon to handle more requests? We would like to be able to handle about 40requests/second at peak times. What type of server is recommend for this type of usage? How much RAM, CPU power? And one final question: are there any cocoon components that are optional and therefore can be disabled? If yes, how can we check which components are optional and how can we disable them? Will this help decrease the total memory usage? thanks in advance, best regards, Brecht
Cocoon 2.2: configuring persistent store/cache
Hello, can someone give a small example of how to configure cocoon to use the FileSystemStore? I cannot find any documentation for cocoon 2.2, only for older versions. I don't know in which files the configuration should be placed. What do I need to change in the sitemap to use the FileSystemStore as the default? What parameters can I pass to the FileSystemStore (a directory to use maybe)? thanks in advance, best regards, Brecht
Cocoon 2.2: configuring and using persistent store/cache
Hello, can someone give a small example of how to configure cocoon to use the FileSystemStore? I cannot find any documentation for cocoon 2.2, only for older versions. I don't know in which files the configuration should be placed. What do I need to change in the sitemap to use the FileSystemStore as the default? What parameters can I pass to the FileSystemStore (a directory to use maybe)? thanks in advance, best regards, Brecht
Re: Cocoon 2.2/3.0 and Spring WebMVC
Hi Mark Today I successfully ran cocoon 2.2.1-snapshot and Spring 3.0 I think that some question and problems will be the case. Mark Diggory wrote: Cocoon Community, While, possibly unconventional, we are considering the the possibility of marrying Cocoon and WebMVC in our project to use Cocoon as a View technology while relying on WebMVC as our Controller/Model framework. I would like to explore if anyone else out there has approached such a solution? Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- View this message in context: http://old.nabble.com/Cocoon-2.2-3.0-and-Spring-WebMVC-tp32084435p32318052.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2/3.0 and Spring WebMVC
Cocoon Community, While, possibly unconventional, we are considering the the possibility of marrying Cocoon and WebMVC in our project to use Cocoon as a View technology while relying on WebMVC as our Controller/Model framework. I would like to explore if anyone else out there has approached such a solution? Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2/3.0 and Spring WebMVC
On Mon, 2011-07-18 at 09:10 -0700, Mark Diggory wrote: Cocoon Community, While, possibly unconventional, we are considering the the possibility of marrying Cocoon and WebMVC in our project to use Cocoon as a View technology while relying on WebMVC as our Controller/Model framework. I would like to explore if anyone else out there has approached such a solution? Have a look into the wicket integration I guess that comes closest. salu2 -- Thorsten Scherler thorsten.at.apache.org codeBusters S.L. - web based systems consulting, training and solutions http://www.codebusters.es/ - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2/3.0 and Spring WebMVC
It not so unconventional. I am thinking about it since long ago, and decided to finally do it recently. Not so much progress at this time, but I was able to make some basic things running. Handling requests by Spring @Controllers and then running pipeline with default Spring ViewResolver. This works, but not with Cocoon Reloading ClassLoader - I have EntityManagerFactory configured in applicationContext.xml and Reloading ClassLoader recreates it on every request and subsequently closes the old instance which is used by Spring DispatcherServlet. I configured JRebel, and it serves reloading well in the less destructive way to spring context. I was planning to get back to the Cocoon community when some code is ready to show to the public, so you are not alone trying to marry Cocoon and Spring MVC and hopefully soon I will be back with something useful (and I would like to also marry it with JPA and JAXB (with EclipseLink) and also Spring forms/validation to make the full stack). PS. I am trying it with C3 and S3. On 2011-07-18 19:10, Mark Diggory wrote: Cocoon Community, While, possibly unconventional, we are considering the the possibility of marrying Cocoon and WebMVC in our project to use Cocoon as a View technology while relying on WebMVC as our Controller/Model framework. I would like to explore if anyone else out there has approached such a solution? Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2/3.0 and Spring WebMVC
Igor and Thorsten, On Mon, Jul 18, 2011 at 2:48 PM, Igor Malinin igor...@gmail.com wrote: It not so unconventional. I am thinking about it since long ago, and decided to finally do it recently. Not so much progress at this time, but I was able to make some basic things running. Handling requests by Spring @Controllers and then running pipeline with default Spring ViewResolver. This works, but not with Cocoon Reloading ClassLoader - I have EntityManagerFactory configured in applicationContext.xml and Reloading ClassLoader recreates it on every request and subsequently closes the old instance which is used by Spring DispatcherServlet. I configured JRebel, and it serves reloading well in the less destructive way to spring context. Sounds like the reloading classloader is actually running in the background though? TBH, we've not been able to utilize the rcl at all with our work due to problems we've had with with cocoon-servlet-service, thus we approach a the classical cocoon approach with 2.2 without use of blocks atm (hopefully we can correct this when we adopt 3.0). I'm very interested in seeing how this works, we may actually want to be more aggressive about reloading the entire spring context for the webapp as well as cocoon itself, we also are looking for a means to reload the spring context on changes to the configuration properties (currently stored in a properties file but possibly in a database in the near future) I was planning to get back to the Cocoon community when some code is ready to show to the public, so you are not alone trying to marry Cocoon and Spring MVC and hopefully soon I will be back with something useful (and I would like to also marry it with JPA and JAXB (with EclipseLink) and also Spring forms/validation to make the full stack). PS. I am trying it with C3 and S3. Yes, all these are of interest. we are looking into legacy and JPA integration via Spring and then just using Cocoon to render the resulting state to the browser. Basically, we would be replacing the Cocoon Actions and Flow we currently are using with Spring WebMVC. Mark p.s. I will also look at Wicket. Thanks for the advice. On 2011-07-18 19:10, Mark Diggory wrote: Cocoon Community, While, possibly unconventional, we are considering the the possibility of marrying Cocoon and WebMVC in our project to use Cocoon as a View technology while relying on WebMVC as our Controller/Model framework. I would like to explore if anyone else out there has approached such a solution? Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and Mysql 5.0
Hi, have you tried to connect with a mysql client from you local machine to the mysql server? It seems to me a connection related problem. Cheers, Jeroen 2011/5/12 Grégory Roche webmas...@polymorphisme.org: Hi, after the mail, I'm trying to do a test with a database Mysql 5.0 and a block of Cocoon 2.2. At this moment, it's a catastrophe, my browser return : http://locahost:/test/sql-page Hello This is my first Cocoon2 page filled with SQL data! Failed to obtain connection from datasource 'dbMySQL5'. Made 5 attempts with 5000ms interval Mysql server is ok, and I have create my database with phpMyAdmin. For my Cocoon, I have : -- in the file META-INF/cocoon/spring/datasource.xml : bean name=org.apache.avalon.excalibur.datasource.DataSourceComponent/dbMySQL5 class=org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper property name=wrappedBean bean class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value=com.mysql.jdbc.Driver/ property name=url value=jdbc:mysql://188.165.XX.XX:3306/db?autoReconnect=true/ property name=username value=XXX/ property name=password value=XXX/ /bean /property /bean -- In my sitemap.xmap, I have my SQLTransformer and the pipeline for my sql-page.xml : map:transformer logger=sitemap.transformer.sql name=sql src=org.apache.cocoon.transformation.SQLTransformer/ map:match pattern=* map:generate src=xdocs/{1}.xml / map:transform type=sql map:parameter name=use-connection value=dbMySQL5 / /map:transform map:transform src=stylesheets/sql2html.xsl / map:transform type=servletLinkRewriter / map:serialize type=html / /map:match -- My file sql-page.xml is very simple, it contains just one request SQL : page titleHello/title content paraThis is my first Cocoon2 page filled with SQL data!/para sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query select id, name, description from department /sql:query /sql:execute-query /content /page Have you an idea ? Thanks. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and Mysql 5.0
Hello, the database Mysql is on a server and the problem is not his firewall (the port 3306 is open) ! Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andre Juffer andre.juf...@oulu.fi a écrit : Is possibly related to a firewall rule. The database is located on another server? On 12/05/11 17:21, Grégory Roche wrote: Hi, after the mail, I'm trying to do a test with a database Mysql 5.0 and a block of Cocoon 2.2. At this moment, it's a catastrophe, my browser return : http://locahost:/test/sql-page Hello This is my first Cocoon2 page filled with SQL data! Failed to obtain connection from datasource 'dbMySQL5'. Made 5 attempts with 5000ms interval Mysql server is ok, and I have create my database with phpMyAdmin. For my Cocoon, I have : -- in the file META-INF/cocoon/spring/datasource.xml : bean name=org.apache.avalon.excalibur.datasource.DataSourceComponent/dbMySQL5 class=org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper property name=wrappedBean bean class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value=com.mysql.jdbc.Driver/ property name=url value=jdbc:mysql://188.165.XX.XX:3306/db?autoReconnect=true/ property name=username value=XXX/ property name=password value=XXX/ /bean /property /bean -- In my sitemap.xmap, I have my SQLTransformer and the pipeline for my sql-page.xml : map:transformer logger=sitemap.transformer.sql name=sql src=org.apache.cocoon.transformation.SQLTransformer/ map:match pattern=* map:generate src=xdocs/{1}.xml / map:transform type=sql map:parameter name=use-connection value=dbMySQL5 / /map:transform map:transform src=stylesheets/sql2html.xsl / map:transform type=servletLinkRewriter / map:serialize type=html / /map:match -- My file sql-page.xml is very simple, it contains just one request SQL : page titleHello/title content paraThis is my first Cocoon2 page filled with SQL data!/para sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query select id, name, description from department /sql:query /sql:execute-query /content /page Have you an idea ? Thanks. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84 -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing | WWW: www.triacle-bc.com
Cocoon 2.2 and Mysql 5.0
Hi, after the mail, I'm trying to do a test with a database Mysql 5.0 and a block of Cocoon 2.2. At this moment, it's a catastrophe, my browser return : http://locahost:/test/sql-page Hello This is my first Cocoon2 page filled with SQL data! Failed to obtain connection from datasource 'dbMySQL5'. Made 5 attempts with 5000ms interval Mysql server is ok, and I have create my database with phpMyAdmin. For my Cocoon, I have : -- in the file META-INF/cocoon/spring/datasource.xml : bean name=org.apache.avalon.excalibur.datasource.DataSourceComponent/dbMySQL5 class=org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper property name=wrappedBean bean class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value=com.mysql.jdbc.Driver/ property name=url value=jdbc:mysql://188.165.XX.XX:3306/db?autoReconnect=true/ property name=username value=XXX/ property name=password value=XXX/ /bean /property /bean -- In my sitemap.xmap, I have my SQLTransformer and the pipeline for my sql-page.xml : map:transformer logger=sitemap.transformer.sql name=sql src=org.apache.cocoon.transformation.SQLTransformer/ map:match pattern=* map:generate src=xdocs/{1}.xml / map:transform type=sql map:parameter name=use-connection value=dbMySQL5 / /map:transform map:transform src=stylesheets/sql2html.xsl / map:transform type=servletLinkRewriter / map:serialize type=html / /map:match -- My file sql-page.xml is very simple, it contains just one request SQL : page titleHello/title content paraThis is my first Cocoon2 page filled with SQL data!/para sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query select id, name, description from department /sql:query /sql:execute-query /content /page Have you an idea ? Thanks. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84
Re: Cocoon 2.2 and sendmail
Thank Andy for your comments, I have understands and now I can send and receved emails. The transformer Sendmail don't use the authentication, but the action sendmail do that : map:act type=sendmail map:parameter name=smtp-host value=smtp.polymorphisme.org / map:parameter name=smtp-user value=XXX / map:parameter name=smtp-password value=XXX / map:parameter name=from value=webmas...@polymorphisme.org / map:parameter name=to value=webmas...@polymorphisme.org / map:parameter name=subject value=test / map:parameter name=body value=Good ! / /map:act and it work fine. Good day :) Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andre Juffer andre.juf...@oulu.fi a écrit : The generated XML seems fine. Possible, the Invalid address message is a response from smtp.polymorphisme.org. It may be that the email address itself is OK, but the protocol for accepting emails is wrong. Port 25 suggests that you assume no connection security and no authentication either. That is correct? If you send it from a machine outside the domain polymorphisme.org, it may be that your email is simply not accepted by the SMTP. If so, you would need to use the local sendmail (on unix/Linux boxes at least). On 09/05/11 11:59, Grégory Roche wrote: Ok, now, I have a minimal pipeline : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform type=sendmail/ map:serialize type=xml/ /map:match and my file sendmail.xml (an exemple is on the page http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) : ?xml version=1.0 encoding=UTF-8? document xmlns:email=http://apache.org/cocoon/transformation/sendmail; email:sendmail email:smtphostsmtp.polymorphisme.org/email:smtphost email:smtpport25/email:smtpport email:fromwebmas...@polymorphisme.org/email:from email:towebmas...@polymorphisme.org/email:to email:subjectsubject/email:subject email:bodybody/email:body /email:sendmail /document And with my navigator I open URL : http://localhost:/admin/sendmail but he returns : ?xml version=1.0 encoding=UTF-8? documentxmlns:email=http://apache.org/cocoon/transformation/sendmail; email:result email:failureto=webmas...@polymorphisme.orgInvalid address/email:failure /email:result /document It's more funny, but I don't understand why I can't to receve my email, my email adress is valid ! Thank for you help. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84 Andre Juffer andre.juf...@oulu.fi a écrit : One way to find out what is happening is to remove (comment out) the map:transform type=sendmail/ and have a look at the generated XML e.g. in your browser with: http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org There may be just a simple error in the generated XML that sendmail receives. On 09/05/11 11:27, Andy Stevens wrote: What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote: So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:transform type=sendmail/ map:serialize type=xml/ /map:match That it's good :) But then I send an email, I have the reponce : :result xmlns=http://apache.org/cocoon/transformation/sendmail; :failure to=webmas...@polymorphisme.org mailto:webmas...@polymorphisme.orgInvalid address/:failure /:result And my adresse email webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org is valide. I don't know what is the problem ! Thanks. G R www.polymorphisme.com http://www.polymorphisme.com webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andy Stevens insomniacpeng...@googlemail.com mailto:insomniacpeng...@googlemail.com a écrit : 2011/5/9 Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml
Re: Cocoon 2.2 and Mysql 5.0
Is possibly related to a firewall rule. The database is located on another server? On 12/05/11 17:21, Grégory Roche wrote: Hi, after the mail, I'm trying to do a test with a database Mysql 5.0 and a block of Cocoon 2.2. At this moment, it's a catastrophe, my browser return : http://locahost:/test/sql-page Hello This is my first Cocoon2 page filled with SQL data! Failed to obtain connection from datasource 'dbMySQL5'. Made 5 attempts with 5000ms interval Mysql server is ok, and I have create my database with phpMyAdmin. For my Cocoon, I have : -- in the file META-INF/cocoon/spring/datasource.xml : bean name=org.apache.avalon.excalibur.datasource.DataSourceComponent/dbMySQL5 class=org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper property name=wrappedBean bean class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value=com.mysql.jdbc.Driver/ property name=url value=jdbc:mysql://188.165.XX.XX:3306/db?autoReconnect=true/ property name=username value=XXX/ property name=password value=XXX/ /bean /property /bean -- In my sitemap.xmap, I have my SQLTransformer and the pipeline for my sql-page.xml : map:transformer logger=sitemap.transformer.sql name=sql src=org.apache.cocoon.transformation.SQLTransformer/ map:match pattern=* map:generate src=xdocs/{1}.xml / map:transform type=sql map:parameter name=use-connection value=dbMySQL5 / /map:transform map:transform src=stylesheets/sql2html.xsl / map:transform type=servletLinkRewriter / map:serialize type=html / /map:match -- My file sql-page.xml is very simple, it contains just one request SQL : page titleHello/title content paraThis is my first Cocoon2 page filled with SQL data!/para sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query select id, name, description from department /sql:query /sql:execute-query /content /page Have you an idea ? Thanks. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84 -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing | WWW: www.triacle-bc.com
Cocoon 2.2 and sendmail
Hi, I'm trying send email with Cocoon 2.2. So, I have in my pom.xml the dependency : dependency groupIdorg.apache.cocoon/groupId artifactIdcocoon-mail-impl/artifactId version1.0.0/version /dependency and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! So, I can read (on http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) NOTE: The SendMailTransformer needs the JavaMail[1] and JavaBeans Activation Framework (JAF)[2] API's from Sun to work. Add them to WEB-INF/lib. Remove geronimo-spec-javamail-*.jar and geronimo-spec-activation-*.jar from WEB-INF/lib. but I don't have a repertory WEB-INF/lib, I have just a COB-INF and META-INF ! Have you got an idea ? Where can I put my .jar ? Thanks G. R. www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84 Liens: -- [1] http://java.sun.com/products/javamail/ [2] http://java.sun.com/products/javabeans/glasgow/jaf.html
Re: Cocoon 2.2 and sendmail
Hi! Did you check that the jars you mention are not included over the dependency cocoon-mail-impl? If not, you could add these dependencies in your pom, then you should get them in your build. -- Med vennlig hilsen / kind regards Søren D. Krum Systemutvikler/system developer UNINETT FAS + 47 73557859 There are 10 different kind of people in the world, those who understand binary and those who don't - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and sendmail
2011/5/9 Grégory Roche webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! Maybe I'm missing something here, but you don't appear to have called the sendmail transformer - the pipeline you quoted only has a generator, xslt transformation and xml serialiser...? Andy -- http://pseudoq.sourceforge.net/ - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 and sendmail
So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:transform type=sendmail/ map:serialize type=xml/ /map:match That it's good :) But then I send an email, I have the reponce : :result xmlns=http://apache.org/cocoon/transformation/sendmail; :failure to=webmas...@polymorphisme.orgInvalid address/:failure /:result And my adresse email webmas...@polymorphisme.org is valide. I don't know what is the problem ! Thanks. G R www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andy Stevens insomniacpeng...@googlemail.com a écrit : 2011/5/9 Grégory Roche webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! Maybe I'm missing something here, but you don't appear to have called the sendmail transformer - the pipeline you quoted only has a generator, xslt transformation and xml serialiser...? Andy -- http://pseudoq.sourceforge.net/
Re: Cocoon 2.2 and sendmail
What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org wrote: So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:transform type=sendmail/ map:serialize type=xml/ /map:match That it's good :) But then I send an email, I have the reponce : :result xmlns=http://apache.org/cocoon/transformation/sendmail; :failure to=webmas...@polymorphisme.orgInvalid address/:failure /:result And my adresse email webmas...@polymorphisme.org is valide. I don't know what is the problem ! Thanks. G R www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andy Stevens insomniacpeng...@googlemail.com a écrit : 2011/5/9 Grégory Roche webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! Maybe I'm missing something here, but you don't appear to have called the sendmail transformer - the pipeline you quoted only has a generator, xslt transformation and xml serialiser...? Andy -- http://pseudoq.sourceforge.net/
Re: Cocoon 2.2 and sendmail
One way to find out what is happening is to remove (comment out) the map:transform type=sendmail/ and have a look at the generated XML e.g. in your browser with: http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org There may be just a simple error in the generated XML that sendmail receives. On 09/05/11 11:27, Andy Stevens wrote: What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote: So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:transform type=sendmail/ map:serialize type=xml/ /map:match That it's good :) But then I send an email, I have the reponce : :result xmlns=http://apache.org/cocoon/transformation/sendmail; :failure to=webmas...@polymorphisme.org mailto:webmas...@polymorphisme.orgInvalid address/:failure /:result And my adresse email webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org is valide. I don't know what is the problem ! Thanks. G R www.polymorphisme.com http://www.polymorphisme.com webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andy Stevens insomniacpeng...@googlemail.com mailto:insomniacpeng...@googlemail.com a écrit : 2011/5/9 Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! Maybe I'm missing something here, but you don't appear to have called the sendmail transformer - the pipeline you quoted only has a generator, xslt transformation and xml serialiser...? Andy -- http://pseudoq.sourceforge.net/ -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing | WWW: www.triacle-bc.com
Re: Cocoon 2.2 and sendmail
Ok, now, I have a minimal pipeline : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform type=sendmail/ map:serialize type=xml/ /map:match and my file sendmail.xml (an exemple is on the page http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) : ?xml version=1.0 encoding=UTF-8? document xmlns:email=http://apache.org/cocoon/transformation/sendmail; email:sendmail email:smtphostsmtp.polymorphisme.org/email:smtphost email:smtpport25/email:smtpport email:fromwebmas...@polymorphisme.org/email:from email:towebmas...@polymorphisme.org/email:to email:subjectsubject/email:subject email:bodybody/email:body /email:sendmail /document And with my navigator I open URL : http://localhost:/admin/sendmail but he returns : ?xml version=1.0 encoding=UTF-8? document xmlns:email=http://apache.org/cocoon/transformation/sendmail; email:result email:failure to=webmas...@polymorphisme.orgInvalid address/email:failure /email:result /document It's more funny, but I don't understand why I can't to receve my email, my email adress is valid ! Thank for you help. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andre Juffer andre.juf...@oulu.fi a écrit : One way to find out what is happening is to remove (comment out) the map:transform type=sendmail/ and have a look at the generated XML e.g. in your browser with: http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org There may be just a simple error in the generated XML that sendmail receives. On 09/05/11 11:27, Andy Stevens wrote: What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote: So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:transform type=sendmail/ map:serialize type=xml/ /map:match That it's good :) But then I send an email, I have the reponce : :result xmlns=http://apache.org/cocoon/transformation/sendmail; :failure to=webmas...@polymorphisme.org mailto:webmas...@polymorphisme.orgInvalid address/:failure /:result And my adresse email webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org is valide. I don't know what is the problem ! Thanks. G R www.polymorphisme.com http://www.polymorphisme.com webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andy Stevens insomniacpeng...@googlemail.com mailto:insomniacpeng...@googlemail.com a écrit : 2011/5/9 Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! Maybe I'm missing something here, but you don't appear to have called the sendmail transformer - the pipeline you quoted only has a generator, xslt transformation and xml serialiser...? Andy -- http://pseudoq.sourceforge.net/ -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing | WWW: www.triacle-bc.com
Re: Cocoon 2.2 and sendmail
The generated XML seems fine. Possible, the Invalid address message is a response from smtp.polymorphisme.org. It may be that the email address itself is OK, but the protocol for accepting emails is wrong. Port 25 suggests that you assume no connection security and no authentication either. That is correct? If you send it from a machine outside the domain polymorphisme.org, it may be that your email is simply not accepted by the SMTP. If so, you would need to use the local sendmail (on unix/Linux boxes at least). On 09/05/11 11:59, Grégory Roche wrote: Ok, now, I have a minimal pipeline : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform type=sendmail/ map:serialize type=xml/ /map:match and my file sendmail.xml (an exemple is on the page http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html) : ?xml version=1.0 encoding=UTF-8? document xmlns:email=http://apache.org/cocoon/transformation/sendmail; email:sendmail email:smtphostsmtp.polymorphisme.org/email:smtphost email:smtpport25/email:smtpport email:fromwebmas...@polymorphisme.org/email:from email:towebmas...@polymorphisme.org/email:to email:subjectsubject/email:subject email:bodybody/email:body /email:sendmail /document And with my navigator I open URL : http://localhost:/admin/sendmail but he returns : ?xml version=1.0 encoding=UTF-8? documentxmlns:email=http://apache.org/cocoon/transformation/sendmail; email:result email:failureto=webmas...@polymorphisme.orgInvalid address/email:failure /email:result /document It's more funny, but I don't understand why I can't to receve my email, my email adress is valid ! Thank for you help. Grégory Roche www.polymorphisme.com webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84 Andre Juffer andre.juf...@oulu.fi a écrit : One way to find out what is happening is to remove (comment out) the map:transform type=sendmail/ and have a look at the generated XML e.g. in your browser with: http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org http://foo.bar.com/sendmail?name=rocheemail=webmas...@polymorphisme.org There may be just a simple error in the generated XML that sendmail receives. On 09/05/11 11:27, Andy Stevens wrote: What mail server host are you sending the mail through? Perhaps it's set up to prevent relaying and your message is being rejected because of the address(es) involved? Andy -- http://pseudoq.sourceforge.net/ On 9 May 2011 09:19, Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org wrote: So, I have change my pipeline ! I add the transformer for the emails : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:transform type=sendmail/ map:serialize type=xml/ /map:match That it's good :) But then I send an email, I have the reponce : :result xmlns=http://apache.org/cocoon/transformation/sendmail; :failure to=webmas...@polymorphisme.org mailto:webmas...@polymorphisme.orgInvalid address/:failure /:result And my adresse email webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org is valide. I don't know what is the problem ! Thanks. G R www.polymorphisme.com http://www.polymorphisme.com webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org fixe : +33 (0)5.24.07.64.02 port : +33 (0)6.89.54.14.84Andy Stevens insomniacpeng...@googlemail.com mailto:insomniacpeng...@googlemail.com a écrit : 2011/5/9 Grégory Roche webmas...@polymorphisme.org mailto:webmas...@polymorphisme.org: I'm trying send email with Cocoon 2.2. ... and in my sitemap.xmap, I have my tramsformer sendmail : map:transformer name=sendmail src=org.apache.cocoon.mail.transformation.SendMailTransformer/ and a pipeline for my test : map:match pattern=sendmail map:generate src=xdocs/sendmail.xml/ map:transform src=stylesheets/sendmail.xsl map:parameter name=name value={request-param:name}/ map:parameter name=email value={request-param:email}/ map:parameter name=id value={session:id}/ /map:transform map:serialize type=xml/ /map:match I'm sure that my params are good :) But then I send an email, I have nothing in my email box !!! Maybe I'm missing something here, but you don't appear to have called the sendmail transformer - the pipeline you quoted only has a generator, xslt transformation and xml serialiser...? Andy -- http://pseudoq.sourceforge.net/ -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Charles, Charles Yates ceyates at stanford.edu writes: Yes, we use spring-3.0.4 and cocoon-2.2 but in a non-standard way. We use our own bean definitions for cocoon components rather than the ones built into the cocoon jars, and have subclassed a number of cocoon classes. The methodology used in getting it to work was to just change the dependency then fix what was broken until nothing was. Sorry I can't be more specific than that. The result is here: http://lane.stanford.edu/index.html Any chance you could identify the cocoon components you subclassed so we can evaluate/test them in our migration to Spring 3.0.5 as well? Best, Mark - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2 + Glassfish 3.1
I'm trying to deploy a cocoon 2.2 app to Glassfish 3.1 but it's not working, the app deploys on Geronimo 2.2. Anyone has a sample (or is using) Glassfish with Cocoon 2.2? The error I'm getting in Glassfish is: SEVERE: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.spectron.website.webapp-home.service': Cannot resolve reference to bean 'com.spectron.website.webapp-logger.service' while setting bean property 'connections' with key [TypedStringValue: value [loggerBlock], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.spectron.website.webapp-logger.service': Invocation of init method failed; nested exception is java.net.MalformedURLException: Could not resolve blockcontext:/webapp-logger/ due to java.net.MalformedURLException: Unknown block name webapp-logger in block context uri blockcontext:/webapp-logger/ - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Odd Cocoon 2.2 POST problem
I'm making a generator that is a descendant of AbstractGenerator. The problem I'm having is when I use a POST. If in my form I use the encoding type text/plain all works well, content-length is ok, I open the stream and read the posted data. If I use the encoding type application/x-www-form-urlencoded or multipart/form-data, the content length is ok, but I get no data on the stream. What am I doing wrong? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Trouble deploying a *.war file to Tomcat from Cocoon 2.2
Many thanks for the replies! Indeed, it was just a problem related to the servlet's mount-path and context-path. I'll have to be a little more careful checking those details. The help was greatly appreciated =) - Patrick E. On Thu, Jan 27, 2011 at 11:27 PM, Robby Pelssers robby.pelss...@ciber.comwrote: It depends on how you configured your block-servlet-service.xml Assuming it looks like: bean name=com.mycompany.block1.service class=org.apache.cocoon.sitemap.SitemapServlet servlet:context mount-path=/block1 context-path=blockcontext:/block1/ !-- in the servlet connections you typically add other block references which in your case might be 0 servlet:connections entry key=ajax value-ref=org.apache.cocoon.ajax.impl.servlet/ entry key=forms value-ref=org.apache.cocoon.forms.impl.servlet/ /servlet:connections -- /servlet:context /bean Then you should be able to invoke it like: http://localhost:8080/{webappname}/block1{/somepattern} And of course assuming you did add the block1 dependency in your webapp project: E.g. dependency groupIdcom.mycompany/groupId artifactIdblock1/artifactId version1.0-SNAPSHOT/version /dependency Kind regards, Robby Pelssers -Oorspronkelijk bericht- Van: Patrick Etienne [mailto:patrick.etie...@library.gatech.edu] Verzonden: do 27-1-2011 22:06 Aan: users@cocoon.apache.org; us...@tomcat.apache.org Onderwerp: Trouble deploying a *.war file to Tomcat from Cocoon 2.2 Cocoon Tomcat Users, I'm writing (cross-list) concerning a test case for producing a small cocoon application for tomcat. I've been a user of Cocoon for quite some time, but have had a little trouble adjusting to the new spring/maven-based 2.2 version. My quest at the moment is just to create the default cocoon block as well as a webapp block in order to yield a war file to be uploaded to tomcat. So far I've followed the instructions from Your first Cocoon application using Maven 2 http://cocoon.apache.org/2.2/1159_1_1.html and Deploying a Cocoon application http://cocoon.apache.org/2.2/1362_1_1.html. Rather than creating a two (option 2) blocks, a webapp block, and a parent block, I've just created a regular block and a webapp block and attempted to upload the resulting *.war file to Tomcat and deploy the war there. The application seems to load alright (based off of information listed in the tomcat manager, and catalina.out logs), but browsing to the actual URL seems to show that I've not completed the process properly in some way. The result is: HTTP Status 404 - No block for / -- *type* Status report *message* *No block for /* *description* *The requested resource (No block for /) is not available.* -- Apache Tomcat/6.0.18 Catalina.out only shows: Loading catalog: file:/usr/local/apache-tomcat-6.0.18/work/Catalina/localhost/mobileApp-1.0.0/cocoon_xml_resolver_entities/catalog In reference to the mobileApp application that I'm attempting to load. Again, I have experience with both Cocoon 2.2 and Tomcat in general, but am having trouble understanding what needs to be done in order to run a Cocoon 2.2 application in Tomcat (rather than Jetty). By the way, I'm able to get everything to come up as expected from Jetty. Any tips, hints, suggestions, or resources would be greatly appreciated! - Patrick E. -- Patrick K. Etienne Systems Analyst Georgia Institute of Technology Library Information Center (404) 385-8121 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- Patrick K. Etienne Systems Analyst Georgia Institute of Technology Library Information Center (404) 385-8121
Trouble deploying a *.war file to Tomcat from Cocoon 2.2
Cocoon Tomcat Users, I'm writing (cross-list) concerning a test case for producing a small cocoon application for tomcat. I've been a user of Cocoon for quite some time, but have had a little trouble adjusting to the new spring/maven-based 2.2 version. My quest at the moment is just to create the default cocoon block as well as a webapp block in order to yield a war file to be uploaded to tomcat. So far I've followed the instructions from Your first Cocoon application using Maven 2 http://cocoon.apache.org/2.2/1159_1_1.html and Deploying a Cocoon application http://cocoon.apache.org/2.2/1362_1_1.html. Rather than creating a two (option 2) blocks, a webapp block, and a parent block, I've just created a regular block and a webapp block and attempted to upload the resulting *.war file to Tomcat and deploy the war there. The application seems to load alright (based off of information listed in the tomcat manager, and catalina.out logs), but browsing to the actual URL seems to show that I've not completed the process properly in some way. The result is: HTTP Status 404 - No block for / -- *type* Status report *message* *No block for /* *description* *The requested resource (No block for /) is not available.* -- Apache Tomcat/6.0.18 Catalina.out only shows: Loading catalog: file:/usr/local/apache-tomcat-6.0.18/work/Catalina/localhost/mobileApp-1.0.0/cocoon_xml_resolver_entities/catalog In reference to the mobileApp application that I'm attempting to load. Again, I have experience with both Cocoon 2.2 and Tomcat in general, but am having trouble understanding what needs to be done in order to run a Cocoon 2.2 application in Tomcat (rather than Jetty). By the way, I'm able to get everything to come up as expected from Jetty. Any tips, hints, suggestions, or resources would be greatly appreciated! - Patrick E. -- Patrick K. Etienne Systems Analyst Georgia Institute of Technology Library Information Center (404) 385-8121
Re: Trouble deploying a *.war file to Tomcat from Cocoon 2.2
Try: http://localhost:8080/webapp/name-of-default-block-here/something something should be matched in your sitemap of name-of-default-block-here. e.g. http://localhost:8080/webapp/ui/login On 01/27/2011 11:06 PM, Patrick Etienne wrote: Cocoon Tomcat Users, I'm writing (cross-list) concerning a test case for producing a small cocoon application for tomcat. I've been a user of Cocoon for quite some time, but have had a little trouble adjusting to the new spring/maven-based 2.2 version. My quest at the moment is just to create the default cocoon block as well as a webapp block in order to yield a war file to be uploaded to tomcat. So far I've followed the instructions from Your first Cocoon application using Maven 2 http://cocoon.apache.org/2.2/1159_1_1.html and Deploying a Cocoon application http://cocoon.apache.org/2.2/1362_1_1.html. Rather than creating a two (option 2) blocks, a webapp block, and a parent block, I've just created a regular block and a webapp block and attempted to upload the resulting *.war file to Tomcat and deploy the war there. The application seems to load alright (based off of information listed in the tomcat manager, and catalina.out logs), but browsing to the actual URL seems to show that I've not completed the process properly in some way. The result is: HTTP Status 404 - No block for / *type* Status report *message* _No block for /_ *description* _The requested resource (No block for /) is not available._ Apache Tomcat/6.0.18 Catalina.out only shows: Loading catalog: file:/usr/local/apache-tomcat-6.0.18/work/Catalina/localhost/mobileApp-1.0.0/cocoon_xml_resolver_entities/catalog In reference to the mobileApp application that I'm attempting to load. Again, I have experience with both Cocoon 2.2 and Tomcat in general, but am having trouble understanding what needs to be done in order to run a Cocoon 2.2 application in Tomcat (rather than Jetty). By the way, I'm able to get everything to come up as expected from Jetty. Any tips, hints, suggestions, or resources would be greatly appreciated! - Patrick E. -- Patrick K. Etienne Systems Analyst Georgia Institute of Technology Library Information Center (404) 385-8121 -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
upgrade spring in cocoon 2.2
hi, i'm trying to use cocoon 2.2 with latest spring release. jetty start fails with java.lang.AbstractMethodError: org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setId(Ljava/lang/String;)V i found this change in org.apache.cocoon:cocoon-maven-plugin:1.0.0 but this is not released. i tried to build that version (svn tag checkout) but that fails (inkonsistent parents, one is cocoon:8, another cocoon:5 aso) is there a repository with a current cocoon 2.2 version released? regards Thomas - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2 Build Fails (continues to fail)
The issue reported here from September 17th... https://issues.apache.org/jira/browse/COCOON-2302 ...is still a problem for me. After adding the daisycms repo AND moving all the versions up from 1.5-dev to 2.4 I was able to the build a little further. Also mixed in this list is nekodtd which I managed to find by downloading the jar from http://repo1.maven.org/maven2/nekohtml/nekodtd/0.1.11/nekodtd-0.1.11.jar; and installing directly. This still doesn't let me build because tests fail, starting with cocoon-html-sample block. Skipping the tests doesn't provide the cocoon-serializers-impl so I'm guessing html serializer is critically affected. For reference, these are the missing artifacts. 1) daisy:daisy-repository-api:jar:1.5-dev 2) daisy:daisy-repository-xmlschema-bindings:jar:1.5-dev 3) nekodtd:nekodtd:jar:0.1.11 4) daisy:daisy-repository-client-impl:jar:1.5-dev 5) daisy:daisy-repository-common-impl:jar:1.5-dev 6) daisy:daisy-repository-spi:jar:1.5-dev 7) daisy:daisy-jmsclient-api:jar:1.5-dev 8) daisy:daisy-htmlcleaner:jar:1.5-dev 9) daisy:daisy-util:jar:1.5-dev This: http://markmail.org/message/eaapichdrctmv5bx Was posted back in May with a reluctant workaround. I looks like 2.2 hasn't been able to build cleanly for months (and if it is for you, try clearing your local repo first and running).
Re: Cocoon 2.2 block+sitemap question
I have a webapp (war) that we use at our company it has a few blocks (let say block-a to block-d), I want to install that war at our clients but they should not have block-b. The simplest option would be just remove that block and serve a simple document if its not found. The other option is have 2 projects one for us one for clients which seems extra work since the only difference is: a) block-b not included b) change a matcher in block-a sitemap from this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline to this: map:pipeline map:match pattern=document map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:match /map:pipeline On 11/2/2010 11:17 AM, Robby Pelssers wrote: I have a more urgent question to you... why would you want to sometimes not include block-b??? I think your design should be reconsidered drastically because this makes no sense to me... so i'll await your reponse for a good reason ;-) Robby -Oorspronkelijk bericht- Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Verzonden: di 2-11-2010 14:43 Aan: users@cocoon.apache.org Onderwerp: Cocoon 2.2 block+sitemap question I have 2 blocks (block-a and block-b) and I want to serve an xml from block-b in block-a so i did the following: block-a/block-servlet-service.xml: servlet:context mount-path=/block-a context-path=blockcontext:/block-a/ servlet:connections entry key=block-b value-ref=com.my-company.block-b.service/ /servlet:connections /servlet:context block-a/sitemap.xml: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline That way i can read the my document using /block-a/document. In certain instances block-b wont be included in the war so I want the /block-a/document to go to a default document in block-a so I thought of adding an error handler, something like this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match map:handle-errors map:select type=exception map:when test=error map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:when /map:select /map:handle-errors /map:pipeline Since the connection in the block-a/block-servlet-service.xml cannot be made the war is not loaded so this method wont work. Is there another way to do this? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.2 block+sitemap question
I have to admit that your design is somewhat odd. Apparently you have a particular block in your webapp that is only to be used by your company but not by your clients. There is no obvious solution. You could create a Makefile for running make or a shell script on *nix boxes. It would copy the relevant blocks of your webapp into a separate folder, then automatically replaces the relevant portions of your block a sitemap into something else that does not rely on block b, and, finally, run maven to create the war for your clients. You can do this each time you want to deploy a stripped webapp to your clients. This would be a fully automated solution. If you deploy your webapp to your own server that is also accessible by your clients, you could consider to make a small modification in the block-a sitemap. Before serving the document, first call a flowscript function that decides whether or not block b in fact should called. If not, then continue with a pipeline in block a that servers the document from block-a-resources/document.xml, otherwise continue with a pipeline that calls block b. The flowscript could check whether or not the request is from within the company or from outside (e.g. by IP addresses). Best regards, Andre On 11/03/2010 02:29 PM, Fawzib Rojas wrote: I have a webapp (war) that we use at our company it has a few blocks (let say block-a to block-d), I want to install that war at our clients but they should not have block-b. The simplest option would be just remove that block and serve a simple document if its not found. The other option is have 2 projects one for us one for clients which seems extra work since the only difference is: a) block-b not included b) change a matcher in block-a sitemap from this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline to this: map:pipeline map:match pattern=document map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:match /map:pipeline On 11/2/2010 11:17 AM, Robby Pelssers wrote: I have a more urgent question to you... why would you want to sometimes not include block-b??? I think your design should be reconsidered drastically because this makes no sense to me... so i'll await your reponse for a good reason ;-) Robby -Oorspronkelijk bericht- Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Verzonden: di 2-11-2010 14:43 Aan:users@cocoon.apache.org Onderwerp: Cocoon 2.2 block+sitemap question I have 2 blocks (block-a and block-b) and I want to serve an xml from block-b in block-a so i did the following: block-a/block-servlet-service.xml: servlet:context mount-path=/block-a context-path=blockcontext:/block-a/ servlet:connections entry key=block-b value-ref=com.my-company.block-b.service/ /servlet:connections /servlet:context block-a/sitemap.xml: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline That way i can read the my document using /block-a/document. In certain instances block-b wont be included in the war so I want the /block-a/document to go to a default document in block-a so I thought of adding an error handler, something like this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match map:handle-errors map:select type=exception map:when test=error map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:when /map:select /map:handle-errors /map:pipeline Since the connection in the block-a/block-servlet-service.xml cannot be made the war is not loaded so this method wont work. Is there another way to do this? - To unsubscribe, e-mail:users-unsubscr...@cocoon.apache.org For additional commands, e-mail:users-h...@cocoon.apache.org - To unsubscribe, e-mail:users-unsubscr...@cocoon.apache.org For additional commands, e-mail:users-h...@cocoon.apache.org -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Cocoon 2.2 block+sitemap question
I think the main question is if it (block-b) is protected software which cannot be distributed to your client. If that is no issue, you could for instance try out if you can replace the value of the @src from servlet:block-b:/document to ${document-pattern} and inject this as a property into the sitemap using cocoon-spring-configurator. The property then would get a different value depending on the environment profile which is loaded at initialization of the spring context. If my proposal is a suitable approach feel free to ask for more information if you get stuck. Kind regards, Robby Pelssers -Oorspronkelijk bericht- Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Verzonden: wo 3-11-2010 13:29 Aan: users@cocoon.apache.org Onderwerp: Re: Cocoon 2.2 block+sitemap question I have a webapp (war) that we use at our company it has a few blocks (let say block-a to block-d), I want to install that war at our clients but they should not have block-b. The simplest option would be just remove that block and serve a simple document if its not found. The other option is have 2 projects one for us one for clients which seems extra work since the only difference is: a) block-b not included b) change a matcher in block-a sitemap from this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline to this: map:pipeline map:match pattern=document map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:match /map:pipeline On 11/2/2010 11:17 AM, Robby Pelssers begin_of_the_skype_highlighting end_of_the_skype_highlighting wrote: I have a more urgent question to you... why would you want to sometimes not include block-b??? I think your design should be reconsidered drastically because this makes no sense to me... so i'll await your reponse for a good reason ;-) Robby -Oorspronkelijk bericht- Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Verzonden: di 2-11-2010 14:43 Aan: users@cocoon.apache.org Onderwerp: Cocoon 2.2 block+sitemap question I have 2 blocks (block-a and block-b) and I want to serve an xml from block-b in block-a so i did the following: block-a/block-servlet-service.xml: servlet:context mount-path=/block-a context-path=blockcontext:/block-a/ servlet:connections entry key=block-b value-ref=com.my-company.block-b.service/ /servlet:connections /servlet:context block-a/sitemap.xml: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline That way i can read the my document using /block-a/document. In certain instances block-b wont be included in the war so I want the /block-a/document to go to a default document in block-a so I thought of adding an error handler, something like this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match map:handle-errors map:select type=exception map:when test=error map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:when /map:select /map:handle-errors /map:pipeline Since the connection in the block-a/block-servlet-service.xml cannot be made the war is not loaded so this method wont work. Is there another way to do this? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org winmail.dat - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2 block+sitemap question
I have 2 blocks (block-a and block-b) and I want to serve an xml from block-b in block-a so i did the following: block-a/block-servlet-service.xml: servlet:context mount-path=/block-a context-path=blockcontext:/block-a/ servlet:connections entry key=block-b value-ref=com.my-company.block-b.service/ /servlet:connections /servlet:context block-a/sitemap.xml: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline That way i can read the my document using /block-a/document. In certain instances block-b wont be included in the war so I want the /block-a/document to go to a default document in block-a so I thought of adding an error handler, something like this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match map:handle-errors map:select type=exception map:when test=error map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:when /map:select /map:handle-errors /map:pipeline Since the connection in the block-a/block-servlet-service.xml cannot be made the war is not loaded so this method wont work. Is there another way to do this? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Cocoon 2.2 block+sitemap question
I have a more urgent question to you... why would you want to sometimes not include block-b??? I think your design should be reconsidered drastically because this makes no sense to me... so i'll await your reponse for a good reason ;-) Robby -Oorspronkelijk bericht- Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Verzonden: di 2-11-2010 14:43 Aan: users@cocoon.apache.org Onderwerp: Cocoon 2.2 block+sitemap question I have 2 blocks (block-a and block-b) and I want to serve an xml from block-b in block-a so i did the following: block-a/block-servlet-service.xml: servlet:context mount-path=/block-a context-path=blockcontext:/block-a/ servlet:connections entry key=block-b value-ref=com.my-company.block-b.service/ /servlet:connections /servlet:context block-a/sitemap.xml: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match /map:pipeline That way i can read the my document using /block-a/document. In certain instances block-b wont be included in the war so I want the /block-a/document to go to a default document in block-a so I thought of adding an error handler, something like this: map:pipeline map:match pattern=document map:generate src=servlet:block-b:/document / map:serialize type=xml / /map:match map:handle-errors map:select type=exception map:when test=error map:generate type=file src=block-a-resources/document.xml / map:serialize type=xml/ /map:when /map:select /map:handle-errors /map:pipeline Since the connection in the block-a/block-servlet-service.xml cannot be made the war is not loaded so this method wont work. Is there another way to do this? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org winmail.dat - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
On 10/30/2010 08:34 PM, Charles Yates wrote: Yes, we use spring-3.0.4 and cocoon-2.2 but in a non-standard way. We use our own bean definitions for cocoon components rather than the ones built into the cocoon jars, and have subclassed a number of cocoon classes. The methodology used in getting it to work was to just change the dependency then fix what was broken until nothing was. Sorry I can't be more specific than that. The result is here: http://lane.stanford.edu/index.html OK, thanks. Your site looks good. It shows that cocoon 2.2 with Spring 3 in principle should work. On 10/30/10 2:44 AM, Andre Juffer wrote: Has anybody tried to use Spring 3 with cocoon? On 10/29/2010 02:05 PM, Jasha Joachimsthal wrote: Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade to 2.5.6.SEC02. [1] http://www.springsource.com/security/cve-2010-1622 Jasha Joachimsthal j.joachimst...@onehippo.com mailto:j.joachimst...@onehippo.com - ja...@apache.org mailto:ja...@apache.org Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • +1 (707) 773 4646 Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com http://www.onehippo.com/ • www.onehippo.org http://www.onehippo.org/ • i...@onehippo.com mailto:i...@onehippo.com On 29 October 2010 07:41, Barbara Slupik barbara_slu...@wro.vectranet.pl mailto:barbara_slu...@wro.vectranet.pl wrote: Hello The error was caused by the wrong version for ehcache. It works fine with ehcache-1.2.4. I defined spring-2.5.6 dependencies in my application: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version2.5.6/version /dependency instead of changing cocoon poms. It works fine. Barbara On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote: Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:11.448::WARN: failed org.mortbay.jetty.plugin.jetty6pluginwebappcont...@c4edc7{/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp} java.lang.AbstractMethodError: org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253) Barbara On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote: Hi, set your version in dependecyManagement section cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks) regards Thomas Am 07.04.2010 17:04, schrieb Robby Pelssers: Hi all, Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1. I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts. So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6? And how big is the risk that Cocoon will not work anymore? Any help is very much appreciated. Kind regards, Robby Pelssers - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Has anybody tried to use Spring 3 with cocoon? On 10/29/2010 02:05 PM, Jasha Joachimsthal wrote: Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade to 2.5.6.SEC02. [1] http://www.springsource.com/security/cve-2010-1622 Jasha Joachimsthal j.joachimst...@onehippo.com mailto:j.joachimst...@onehippo.com - ja...@apache.org mailto:ja...@apache.org Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • +1 (707) 773 4646 Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com http://www.onehippo.com/ • www.onehippo.org http://www.onehippo.org/ • i...@onehippo.com mailto:i...@onehippo.com On 29 October 2010 07:41, Barbara Slupik barbara_slu...@wro.vectranet.pl mailto:barbara_slu...@wro.vectranet.pl wrote: Hello The error was caused by the wrong version for ehcache. It works fine with ehcache-1.2.4. I defined spring-2.5.6 dependencies in my application: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version2.5.6/version /dependency instead of changing cocoon poms. It works fine. Barbara On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote: Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:11.448::WARN: failed org.mortbay.jetty.plugin.jetty6pluginwebappcont...@c4edc7{/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp} java.lang.AbstractMethodError: org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253) Barbara On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote: Hi, set your version in dependecyManagement section cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks) regards Thomas Am 07.04.2010 17:04, schrieb Robby Pelssers: Hi all, Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1. I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts. So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6? And how big is the risk that Cocoon will not work anymore? Any help is very much appreciated. Kind regards, Robby Pelssers - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Yes, we use spring-3.0.4 and cocoon-2.2 but in a non-standard way. We use our own bean definitions for cocoon components rather than the ones built into the cocoon jars, and have subclassed a number of cocoon classes. The methodology used in getting it to work was to just change the dependency then fix what was broken until nothing was. Sorry I can't be more specific than that. The result is here: http://lane.stanford.edu/index.html On 10/30/10 2:44 AM, Andre Juffer wrote: Has anybody tried to use Spring 3 with cocoon? On 10/29/2010 02:05 PM, Jasha Joachimsthal wrote: Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade to 2.5.6.SEC02. [1] http://www.springsource.com/security/cve-2010-1622 Jasha Joachimsthal j.joachimst...@onehippo.com mailto:j.joachimst...@onehippo.com - ja...@apache.org mailto:ja...@apache.org Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • +1 (707) 773 4646 Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com http://www.onehippo.com/ • www.onehippo.org http://www.onehippo.org/ • i...@onehippo.com mailto:i...@onehippo.com On 29 October 2010 07:41, Barbara Slupik barbara_slu...@wro.vectranet.pl mailto:barbara_slu...@wro.vectranet.pl wrote: Hello The error was caused by the wrong version for ehcache. It works fine with ehcache-1.2.4. I defined spring-2.5.6 dependencies in my application: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version2.5.6/version /dependency instead of changing cocoon poms. It works fine. Barbara On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote: Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:11.448::WARN: failed org.mortbay.jetty.plugin.jetty6pluginwebappcont...@c4edc7{/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp} java.lang.AbstractMethodError: org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253) Barbara On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote: Hi, set your version in dependecyManagement section cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks) regards Thomas Am 07.04.2010 17:04, schrieb Robby Pelssers: Hi all, Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1. I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts. So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6? And how big is the risk that Cocoon will not work anymore? Any help is very much appreciated. Kind regards, Robby Pelssers - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org mailto:users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org mailto:users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade to 2.5.6.SEC02. [1] http://www.springsource.com/security/cve-2010-1622 Jasha Joachimsthal j.joachimst...@onehippo.com - ja...@apache.org Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • +1 (707) 773 4646 Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • i...@onehippo.com On 29 October 2010 07:41, Barbara Slupik barbara_slu...@wro.vectranet.plwrote: Hello The error was caused by the wrong version for ehcache. It works fine with ehcache-1.2.4. I defined spring-2.5.6 dependencies in my application: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version2.5.6/version /dependency instead of changing cocoon poms. It works fine. Barbara On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote: Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:11.448::WARN: failed org.mortbay.jetty.plugin.jetty6pluginwebappcont...@c4edc7 {/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp} java.lang.AbstractMethodError: org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253) Barbara On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote: Hi, set your version in dependecyManagement section cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks) regards Thomas Am 07.04.2010 17:04, schrieb Robby Pelssers: Hi all, Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1. I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts. So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6? And how big is the risk that Cocoon will not work anymore? Any help is very much appreciated. Kind regards, Robby Pelssers - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Hello The error was caused by the wrong version for ehcache. It works fine with ehcache-1.2.4. I defined spring-2.5.6 dependencies in my application: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version2.5.6/version /dependency instead of changing cocoon poms. It works fine. Barbara On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote: Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:11.448::WARN: failed org.mortbay.jetty.plugin.jetty6pluginwebappcont...@c4edc7{/,/ Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp} java.lang.AbstractMethodError: org .apache .cocoon .tools .rcl .springreloader .SynchronizedConfigureableWebApplicationContext .setConfigLocation(Ljava/lang/String;)V at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:253) Barbara On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote: Hi, set your version in dependecyManagement section cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks) regards Thomas Am 07.04.2010 17:04, schrieb Robby Pelssers: Hi all, Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1. I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts. So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6? And how big is the risk that Cocoon will not work anymore? Any help is very much appreciated. Kind regards, Robby Pelssers - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Hello I am trying to do it but no success so far. I changed spring dependencies in cocoon-6.pom dependencyManagement section but get error when starting my block in jetty. What else do I need to change? Error: 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root WebApplicationContext 2010-10-19 09:39:11.448::WARN: failed org.mortbay.jetty.plugin.jetty6pluginwebappcont...@c4edc7{/,/Developer/ Expertys/cocoon-2.2/admin/target/rcl/webapp} java.lang.AbstractMethodError: org .apache .cocoon .tools .rcl .springreloader .SynchronizedConfigureableWebApplicationContext .setConfigLocation(Ljava/lang/String;)V at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:253) Barbara On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote: Hi, set your version in dependecyManagement section cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks) regards Thomas Am 07.04.2010 17:04, schrieb Robby Pelssers: Hi all, Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1. I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts. So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6? And how big is the risk that Cocoon will not work anymore? Any help is very much appreciated. Kind regards, Robby Pelssers - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
I really appreciate if somebody would help me with Cocoon 2.2/Fop/Batik
I've posted twice about this and got no response. My problem: I'm moving from cocoon 2.1 to 2.2 (haven't done it yet because I knew maven would be a PITA and it didn't dissapoint). After a lot of hair pulling I finally compiled my webapp + blocks for cocoon 2.2 and was able to deploy on geronimo. The problem now is that cocoon-fop-impl will not work with embedded SVG. It uses fop-0.20.4 which wants to use batik 1.6 and those 2 are incompatible. After looking around in a lot of posts found out about cocoon-fop-ng-impl, unfortunately it cant be found on maven (why?). Found a post that linked to the source, after more hair pulling got it working cocoon-fop-ng-impl+fop-1.0+batik 1.7. I thought I was done but no. Now the SVG serializer stopped working. So I'll try and make a batik-ng. I did and now batik is giving me errors I was getting NullPointerException in SAXDocumentFactory.java at: public void startElement(String uri,String localName,String rawName,Attributes attributes) throws SAXException { // Check If we should halt early. if (HaltingThread.hasBeenHalted()) { throw new SAXException(new InterruptedIOException()); } if (inProlog) { // for some reason parser is null here inProlog = false; try { isStandalone = parser.getFeature (http://xml.org/sax/features/is-standalone;); } catch (SAXNotRecognizedException ex) { } try { xmlVersion = (String) parser.getProperty (http://xml.org/sax/properties/document-xml-version;); } catch (SAXNotRecognizedException ex) { } } . } I moved both trys to where the parser is created since that code just saves the values so *I think* it makes no difference. Now I get another error: java.lang.ClassCastException: org.apache.batik.dom.GenericElement cannot be cast to org.w3c.dom.svg.SVGSVGElement after another search found a post talking about DOMUtilities.deepCloneDocument saying it would convert dom to Batik's own dom. It gives me the same error, so I'm stuck. I would really appreciate any help on this. rant It was much easier to work with Cocoon 2.1, just add jars to build path in eclipse and that was it. I find maven to be an obstacle, most of the time I'm fighting it to get something done. When the dust settles I still end up downloading and creating my own things because what I need either outdated (cocoon-fop-impl), non-existent even though it was created a long time ago (cocoon-fop-ng-impl) or just wrongly configured (cocoon-fop-impl again). Also, why when a new version of a library is created most of the time compatibility is just ignored (and I see this a lot with java)? Why not add a simple class that uses the old interfaces so you can move up to new versions without problems. /rant - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
Barbara / Christopher / Robby, thanks again for your help - finally i found out that my jre installation was messed up, so the problems were caused by a corrupt jre classpath config, not by tomcat or cocoon (i didn't expect that since other java apps and tomcat webapps were running fine and didn't show any errors). florian - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.2 + Fop + Embedded SVG
I posted another message about trying to get cocoon-fop-ng-impl and being unable to find it. This is another problem. Since I cant use cocoon-fop-ng-impl I used cocoon-fop-impl as a dependency for my block. I can create PDF but I cant create a PDF with an embedded SVG I get the following error: java.lang.NoSuchMethodError: org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/Element;)Lorg/apache/batik/util/UnitProcessor$Context; at org.apache.fop.svg.SVGElement.layout(SVGElement.java:218) at org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeignObject.java:251) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) . From looking around is seems fop 0.20.5 is incompatible with batik-1.6 (according to http://jira.codehaus.org/browse/MPPDF-32) yet cocoon-fop-impl uses it as a dependency. How can I get a working cocoon-fop-impl (or even better cocoon-fop-ng-impl)? - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
Some hints: *) When you run mvn jetty:run you don't have a WebapplicationContext in your url so you can address it like http://localhost:/block/ However, when you deploy the warfile in tomcat you do have a webapplicationContext so it will become something like http://localhost:8080/mywebapp/block/ *) Did you make sure you have declared a dependency on the block in your webapp project? *) It's best to disable the reloading classloader when deploying as a war. Use it only while developing for quick prototyping Kind regards, Robby Pelssers -Oorspronkelijk bericht- Van: fls...@googlemail.com namens Florian Schmitt Verzonden: ma 4-10-2010 12:59 Aan: users@cocoon.apache.org Onderwerp: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20 Hi, i'm quite new regarding cocoon 2.2 and i'm stuck trying to deploy a Cocoon 2.2 webapp in Tomcat 6.0.20. I've spent two days googling, going through the tutorials at cocoon.apache.org and the nice article at http://www.csparks.com/cocoon/c22without, but without any success. I followed those steps to create a minimal webapp : - create a new dir for the complete webapp == create a new block: - in that new dir, run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; - select 2 to create a block, enter groupId, artifactId block, version and package - change to block subdir created by maven, run mvn install to build and install block in repo; == create a new webapp - change back to parent dir - run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; again - select 3 to create a webap, enter same groupId, artifactId webapp, same version and same package with new artifactId appended - modified webapp/pom.xml to add the block dependency; - change to package subdir created by maven, run mvn package jetty:run to build webapp and test it using Jetty; - open http://localhost:/block/ - works :-) == deploy it in tomcat - open Tomcat manager app, select webapp/target/webapp-1.0.0.war, hit deploy; - Tomcat replies OK, displaying webapp-1.0.0 as deployed but not started; starting manually fails. :-( - Tomcat log contains the stacktrace attached. I found some hints online regarding class loaders, but i'm not experienced enough to fix this on my own. I tried to add dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version /dependency to webapp/pom.xml because it seems that Tomcat can't find the javax.servlet.ServletContextListener class, but that didn't help. Are there any step i missed? TIA for any help! florian winmail.dat - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
I had similar problem. I fixed it by adding: filter filter-namespringRequestContextFilter/filter-name filter-classorg.springframework.web.filter.RequestContextFilter/ filter-class /filter filter-mapping filter-namespringRequestContextFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping to my application web.xml file. Barbara On 4 Oct, 2010, at 1:01 pm, Florian Schmitt wrote: Hi, i'm quite new regarding cocoon 2.2 and i'm stuck trying to deploy a Cocoon 2.2 webapp in Tomcat 6.0.20. I've spent two days googling, going through the tutorials at cocoon.apache.org and the nice article at http://www.csparks.com/cocoon/c22without, but without any success. I followed those steps to create a minimal webapp : - create a new dir for the complete webapp == create a new block: - in that new dir, run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; - select 2 to create a block, enter groupId, artifactId block, version and package - change to block subdir created by maven, run mvn install to build and install block in repo; == create a new webapp - change back to parent dir - run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org again - select 3 to create a webap, enter same groupId, artifactId webapp, same version and same package with new artifactId appended - modified webapp/pom.xml to add the block dependency; - change to package subdir created by maven, run mvn package jetty:run to build webapp and test it using Jetty; - open http://localhost:/block/ - works :-) == deploy it in tomcat - open Tomcat manager app, select webapp/target/webapp-1.0.0.war, hit deploy; - Tomcat replies OK, displaying webapp-1.0.0 as deployed but not started; starting manually fails. :-( - Tomcat log contains the stacktrace attached. I found some hints online regarding class loaders, but i'm not experienced enough to fix this on my own. I tried to add dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version /dependency to webapp/pom.xml because it seems that Tomcat can't find the javax.servlet.ServletContextListener class, but that didn't help. Are there any step i missed? TIA for any help! florian stacktrace2.txt - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
Hi, i'm quite new regarding cocoon 2.2 and i'm stuck trying to deploy a Cocoon 2.2 webapp in Tomcat 6.0.20. I've spent two days googling, going through the tutorials at cocoon.apache.org and the nice article at http://www.csparks.com/cocoon/c22without, but without any success. I followed those steps to create a minimal webapp : - create a new dir for the complete webapp == create a new block: - in that new dir, run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; - select 2 to create a block, enter groupId, artifactId block, version and package - change to block subdir created by maven, run mvn install to build and install block in repo; == create a new webapp - change back to parent dir - run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; again - select 3 to create a webap, enter same groupId, artifactId webapp, same version and same package with new artifactId appended - modified webapp/pom.xml to add the block dependency; - change to package subdir created by maven, run mvn package jetty:run to build webapp and test it using Jetty; - open http://localhost:/block/ - works :-) == deploy it in tomcat - open Tomcat manager app, select webapp/target/webapp-1.0.0.war, hit deploy; - Tomcat replies OK, displaying webapp-1.0.0 as deployed but not started; starting manually fails. :-( - Tomcat log contains the stacktrace attached. I found some hints online regarding class loaders, but i'm not experienced enough to fix this on my own. I tried to add dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version /dependency to webapp/pom.xml because it seems that Tomcat can't find the javax.servlet.ServletContextListener class, but that didn't help. Are there any step i missed? TIA for any help! florian 04.10.2010 11:27:46 org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost' 04.10.2010 11:28:03 org.apache.catalina.core.StandardContext listenerStart SCHWERWIEGEND: Error configuring application listener of class org.springframework.web.util.WebAppRootListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1314) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1245) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3877) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:902) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:525) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1340) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1473
Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
Hi, i'm quite new regarding cocoon 2.2 and i'm stuck trying to deploy a Cocoon 2.2 webapp in Tomcat 6.0.20. I've spent two days googling, going through the tutorials at cocoon.apache.org and the nice article at http://www.csparks.com/cocoon/c22without, but without any success. I followed those steps to create a minimal webapp : - create a new dir for the complete webapp == create a new block: - in that new dir, run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; - select 2 to create a block, enter groupId, artifactId block, version and package - change to block subdir created by maven, run mvn install to build and install block in repo; == create a new webapp - change back to parent dir - run mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org; again - select 3 to create a webap, enter same groupId, artifactId webapp, same version and same package with new artifactId appended - modified webapp/pom.xml to add the block dependency; - change to package subdir created by maven, run mvn package jetty:run to build webapp and test it using Jetty; - open http://localhost:/block/ - works :-) == deploy it in tomcat - open Tomcat manager app, select webapp/target/webapp-1.0.0.war, hit deploy; - Tomcat replies OK, displaying webapp-1.0.0 as deployed but not started; starting manually fails. :-( - Tomcat log contains the stacktrace attached. I found some hints online regarding class loaders, but i'm not experienced enough to fix this on my own. I tried to add dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version /dependency to webapp/pom.xml because it seems that Tomcat can't find the javax.servlet.ServletContextListener class, but that didn't help. Are there any step i missed? TIA for any help! florian 04.10.2010 11:27:46 org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost' 04.10.2010 11:28:03 org.apache.catalina.core.StandardContext listenerStart SCHWERWIEGEND: Error configuring application listener of class org.springframework.web.util.WebAppRootListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1314) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1245) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3877) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:902) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:525) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1340) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1473
Re: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
Hi Barbara / Robby, thanks both of you for the quick reply - and sorry for originally posting my question twice! Sadly, your hints didn't help me solving the issue. @Robby: - i think it's not a webapp context issue - tomcat refuses to start the wepapp, so no context (neither the webabb nor the block) is accesible; - the block dependency is declared in the pom, and maven doesn't complain on mvn package, so i think this isn't the problem, too; - how to disable the reloading classloader? I'm not sure, but after reading http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1297_1_1.html i think i have to enable it explicitly, so i don't know ho to disable it after i don't hae such a dependency declaration in my webapp pom.xml. @Barbara: Inserting the filter and the filter-mapping as proposed didn't change anything - tomcat still refuses to start that webapp, still the same stacktrace appears. I've checked the content of the web.xml in the packaged war to be sure that the change shows up there. Are there any other changes to apply to the standard webapp code? I tried the adding the filter to web.xml with both my own test app (involving a block, as described in my first post) and the cocoon22-classic-webapp from the cocoon whiteboard - both with the same result (Jetty works, Tomcat doesn't, same NoClassDefFoundError), both with and without the proposed filer/filter-mapping. mvn -v displays (just if it's a matter of the JRE / Tomcat version): Apache Maven 2.2.1 (rdebian-1) Java version: 1.6.0_20 Java home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre Default locale: de_DE, platform encoding: UTF-8 OS name: linux version: 2.6.31-22-generic-pae arch: i386 Family: unix florian - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org