Re: How to configure TraxProcessor in 2.2?

2019-12-05 Thread Javier Puerto
Hi Mark, I recommend you to use the Spring configuration. I never had this requirement before but by the error message and the configuration fragment that you have sent the NPE is caused because you are not passing an instance of "org.dspace.saxon.ConfigurableTransformerFactory", you are passing a

Re: Handling errors retrieving a for

2016-08-24 Thread Javier Puerto
2016-08-21 18:38 GMT+02:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Javier > > On 6/1/16 3:19 PM, Javier Puerto wrote: > > Hi Christopher, > > > > I more used to version 2.2 but it should be the same. By you > >

Re: Handling errors retrieving a for

2016-06-02 Thread Javier Puerto
2016-06-02 15:35 GMT+02:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Javier, > > On 6/1/16 3:19 PM, Javier Puerto wrote: > > I more used to version 2.2 but it should be the same. By you > > description I think about creating a

Re: Handling errors retrieving a for

2016-06-01 Thread Javier Puerto
Hi Cristopher, I more used to version 2.2 but it should be the same. By you description I think about creating a new pipeline with a matcher to handle the external request with a specific error handler[1] that contains a reader with an empty file. It should be something like: http://rem

Re: What are the alternatives to in Cocoon 2.2?

2016-03-04 Thread Javier Puerto
Hi Mark, 2016-03-04 16:21 GMT+01:00 Mark H. Wood : > 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

Re: Sending Email from a form

2015-03-05 Thread Javier Puerto
Hi Peter, If the code worked for long time and now it's failing intermitently it's probably due to changes in the mail server. I never seen this error before but there's a lot of information about this SMTP status code like: https://portal.my-tss.com/knowledgebase/139/Mail-Error-451-Could-not-ver

Re: Resize images

2014-09-11 Thread Javier Puerto
Hi Peter, If you can use ImageMagick, you can try with: http://im4java.sourceforge.net/ 2014-09-11 16:27 GMT+02:00 Edward David : > Peter, > There are numerous image resizer programs out there. > Check out this Free Picture Resizer at > http://download.cnet.com/Free-Picture-Resizer/3000-12511_4-

Fwd: [REMINDER] ApacheCon NA 2014 Travel Assistance Applications now open!

2014-02-05 Thread Javier Puerto
-- Forwarded message -- From: lewis john mcgibbney Date: 2014-02-05 Subject: [REMINDER] ApacheCon NA 2014 Travel Assistance Applications now open! To: p...@apache.org Cc: "travel-assista...@apache.org" Hi pmcs@, This is a gentle reminder that Travel Assistance Applications are

Re: cocoon-xml-2.0.4

2014-01-17 Thread Javier Puerto
means "regards" but it's written like "l8ter". The original word is "Saludos". ;-) > Greetings, > Greg > > > 2014/1/16 Javier Puerto > >> Hi Greg, >> >> >> 2014/1/16 gelo1234 >> >>> >>>

Re: cocoon-xml-2.0.4

2014-01-16 Thread Javier Puerto
Hi Greg, 2014/1/16 gelo1234 > > Hello, > > I wonder how to classify C3-beta dependency: cocoon-xml ? > Which project does that dependency belong to ? > It's part of Apache Cocoon subprojets. http://svn.apache.org/repos/asf/cocoon/subprojects/ http://cocoon.apache.org/subprojects/ > > As I g

Re: [C3] Calling another from REST resource

2013-08-26 Thread Javier Puerto
ne: +358-294-481161 > Email: andre.juf...@oulu.fi > WWW: > www.biochem.oulu.fi/Biocomputing/ > www.oulu.fi/biocenter/biocomputing-and-bioinformatics > www.oulu.fi/biocenter/groups/juffer > > StrucBioCat, www.strucbiocat.oulu.fi > Triacle Biocomputing, www.triacle-bc.com >

Re: [C3] Calling another from REST resource

2013-08-26 Thread Javier Puerto
2013/8/26 Andre Juffer > I am working on using the Java pipe. So far so so good. I have two > issues: > > 1. I intend to use a TextSerializer in the final step as I need just a > single String returned from the other block, but I cannot find the > org.apache.cocoon.sax.component.TextSerializer:

Re: XSLT import/include errors

2013-06-22 Thread Javier Puerto
Hi Greg, Did you tried yourself with Saxon? I had caching issues with Xalan but never tried with Saxon before. Salu2. El 22/06/2013 10:34, "gelo1234" escribió: > Now when everything is up and working fine, the really ennoying part of C3 > is caching imported/included XSL files. > > Is there any

Re: XSLT import/include errors

2013-06-20 Thread Javier Puerto
[1] http://mvnrepository.com/artifact/net.sf.saxon/Saxon-HE [2] http://cocoon.markmail.org/message/mjuftsfwdxmnc5fn?q=saxon#query:saxon+page:1+mid:fe2faygf7jdfrzb3+state:results > Greetings, > Greg > > > 2013/6/20 Javier Puerto > >> >> >> >> 2

Re: XSLT import/include errors

2013-06-20 Thread Javier Puerto
atalina.core.ContainerBase.addChild(ContainerBase.java:877) >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) >> at >> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114) >> at >> org.apache.catalina.startup.HostConfig$DeployDirectory.run(Hos

Re: XSLT import/include errors

2013-06-20 Thread Javier Puerto
Hi Greg, El 20/06/2013 20:00, "gelo1234" escribió: > > > It looks like XSLT also got cut in functionality in C3. I tried to rerun old XSL stylesheets with new C3 and gave up. > > The error says nothing meaningful: > > Impossible to read XSLT from 'javax.xml.transform.stream.StreamSource@cba24d',

Re: Doubt about file upload in Cocoon 2.2

2013-06-06 Thread Javier Puerto
Hola Miguel, 2013/6/6 Miguel > 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.**auto

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Javier Puerto > > > 2013/3/15 Mansour Al Akeel > >> I have tags with id's like: >> >> >> >> I think this can be done is Stax, xslt or Sax, however, I am trying to >> do it in a clean way without any hacks. >> >> Do y

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Mansour Al Akeel > I have tags with id's like: > > > > I think this can be done is Stax, xslt or Sax, however, I am trying to > do it in a clean way without any hacks. > > Do you have any suggestion ?? > XSLT sample: You can add the following transformation to oyur pipeline sitemap.x

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Javier Puerto > > > 2013/3/15 Mansour Al Akeel > >> I have tags with id's like: >> >> >> >> I think this can be done is Stax, xslt or Sax, however, I am trying to >> do it in a clean way without any hacks. >> >> Do

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Mansour Al Akeel > I have tags with id's like: > > > > I think this can be done is Stax, xslt or Sax, however, I am trying to > do it in a clean way without any hacks. > > Do you have any suggestion ?? > You can do it whithout any hack with all the ways, sax, stax and xslt. XSLT: si

Re: Generator with XMLFilterImpl

2012-12-06 Thread Javier Puerto
>> Javier, thank you for replying. >>> For many additional reasons, I need to do this in a generator. It's >>> not my call on this. So I need to connect the XMLFilterImpl to the >>> Generator. >>> I know it can be done, but looking for the simplest and cleanes

Re: Generator with XMLFilterImpl

2012-12-06 Thread Javier Puerto
Hi Mansour, 2012/12/6 Mansour Al Akeel > Hello all, > I am using C2.2 for this project, and I need to add some functionality > to the current file generator (ie, logging and warning for broken > links). I know this can be done in a transformer, > but since it's required in many places, I want it

Re: accessing a spring bean methods from sitemap

2012-11-11 Thread Javier Puerto
ke other core components of Apache Cocoon, modules are declared in >> cocoon.xconf. There are already too many to list here. >> >> >>>class="org.apache.cocoon.**components.modules.input.** >> RequestParameterModule"/> >> . >> " >>

Re: accessing a spring bean methods from sitemap

2012-11-10 Thread Javier Puerto
I did something similar for a client. We did it with a custom input module so you can define a protocol on when the input is the key an the output the value. Also I can't access to my laptop now but I have an example about accessing to spring beans from flow script, probably the input module it's

Re: database connections used up by script?

2012-10-12 Thread Javier Puerto
Hi Paul, Your pool is configured to max 200 connections. Is your postgres configured to support this quantity? (by default is 100). The error is thrown by postgres itself so I suspect that's could be the cause. See http://www.postgresql.org/docs/8.1/static/runtime-config-connection.html Salu2 20

Re: two scripts to handle flowscript in one sitemap

2012-10-05 Thread Javier Puerto
Hi Paul, I can tell you for 2.2 version, but you can try... 2012/10/5 Paul Joseph > Hi there, > > I have a flowscript that has a lot of functiofnality (functions). > > It is possible for one sitemap to handle more than one flowscript? That > way I can split this file out into smaller units ass

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Javier Puerto
2012/5/16 Bob Harrod > Ok, thank you! I can look at the LinkRewriterTransformer. Since I'm new > to this, I have some follow up questions: > > 1. Is this a "plugin" that I have to install or does it exist in the stock > version of cocoon 2.1? > It's included as a block for cocoon-2.1 and it's

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Javier Puerto
Hi Bob 2012/5/16 Bob Harrod > I'm rending html in a transform, and would like to render an anchor who's > href is absolute, not relative. For example, instead of this: > > ... > > I would like to be able to provide a full url in the href: > > http://mysite/application1/home";>... > > Thank you

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Javier Puerto
e for having this > feature available in next release of cocoon 3. At least to me, this would be > extremely useful. > AFAIK, Resource protocol is not yet implemented in Cocoon 3. > > Thanks, > André > Salu2. > > > > > On 14/09/11 13:06, Javier Puert

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Javier Puerto
Hi Andre, 2011/9/14 Andre Juffer > Hi, > > with cocoon 2.2 one can read javascript resources residing in separate jars > like: > > > > > > (the above is for loading javascript from the dojotoolkit. I made a > separate maven project for Dojo, and make a cocoon-based project depending > on it.

Re: Transformer parameters are intermittently not set.

2011-09-14 Thread Javier Puerto
2011/9/14 Alec Bickerton > On 14/09/11 11:48, Thorsten Scherler wrote: > > On Wed, 2011-09-14 at 10:58 +0200, Alec Bickerton wrote: > >> Hi, > >> > >> I'm seeing some unusual behaviour in Cocoon 2.1.9. It appears that it > possible for the xalan transformer parameters to > >> not be set in a pipe

Re: How-to disable caching for Cocoon2.2 completely

2011-02-17 Thread Javier Puerto
Hi Robby, 2011/2/17 Robby Pelssers > > Hi all, > > I was just wondering if it is possible to completely disable caching of > components. I have severe issues lately with wrong content being shown and > the only way to resolve these issues is by deleting the > tomcat/work/catalina/localhost fold

Unable to create field with date format in POI block

2010-06-09 Thread Javier Puerto
Hi! I'm working with Apache Cocoon 2.2 and POI block to generate a report in excel format. http://cocoon.apache.org/2.1/userdocs/xls-serializer.html I need the date, not the time part so I generated a gnumeric xml from a xhtml table: 10 60