C3 and XSP equivalent

2012-04-02 Thread gelo1234
Hello, We've been using Cocoon framework for years and are very happy with its simplicity and RAD features. Although we use very old version of Cocoon (2.0.5), it still satisfies us. Unfortunately there are some bugs inside those old framework libs that we cannot fix as well as some memory leaks

Re: C3 and XSP equivalent

2012-04-04 Thread gelo1234
you and please carry on with developing that wonderful piece of software. I hope to see OSGi support soon :) Greetings, Greg 2012/4/4 Francesco Chicchiriccò ilgro...@apache.org Hi Greg, sorry for the delay: you will find my reply embedded below. Regards. On 02/04/2012 11:00, gelo1234 wrote

Re: Forms and maps

2012-04-18 Thread gelo1234
Hello, I would like to share my opinion on C3. I think that dropping support for the most of native Cocoon components is a good step forward. As you see trends now in enterprise applications, everybody from RedHat to Oracle limits the amount of code from bare application server core engine making

Re: [C3] Sting template, passing argument to method

2012-10-05 Thread gelo1234
Andre, In my opinion, if you are dealing with XML data, you should turn your eyes into XSL[T] instead of ST. Greetings, Greg 2012/10/5 André Juffer andre.juf...@oulu.fi On 10/05/2012 09:30 AM, Francesco Chicchiriccò wrote: On 04/10/2012 08:53, André Juffer wrote: Hello, I am dealing

Re: Modular database actions

2012-11-14 Thread gelo1234
3) I agree, XSP was very flexible and I do miss it in 2.2/3.x Cocoon. I wonder what kind of limits did you find in XSP ? Its pretty straightforward and very general in nature - you can put any kind of Java and mixmatch with XML. Its auto-compiled into Java classes so you don't have to redeploy

Re: Cocoon zone now with 2.2 samples (besides 2.1 and 3.0)

2012-11-30 Thread gelo1234
Looks like C 3.0 samples need more tweaking: http://cocoon.zones.apache.org/cocoon3/ Greetings, -Greg 2012/11/30 Francesco Chicchiriccò ilgro...@apache.org Hi all, having found [1], I finally put the Cocoon 2.2 samples at [2] together with 2.1 and 3.0, already available there. I have also

Re: Cocoon 3.0 generators/aggregators/calling controllers/include/xslt questions

2012-12-01 Thread gelo1234
Enterprise Service Bus) while other Java EE components be used from inside or outside that ESB. I think about that kind of architecture model. Greetings, -Greg 2012/12/1 Thorsten Scherler scher...@gmail.com On 12/01/2012 01:15 AM, gelo1234 wrote: Hello, I was trying to find some

Re: Cocoon 3.0 generators/aggregators/calling controllers/include/xslt questions

2012-12-01 Thread gelo1234
when you just used to simple and clear sitemap pipelines :) That's why I think servlet-sitemap component of Cocoon is really what makes Cocoon the most flexible/easy in terms of web programming. Greetings, -Greg 2012/12/1 gelo1234 gelo1...@gmail.com One more note: Typical ESBs don't

Re: Cocoon 3.0 generators/aggregators/calling controllers/include/xslt questions

2012-12-01 Thread gelo1234
when you already have some system architecture in place. BPM should not be used for _integration_ purposes. Thats why I really consider Cocoon to have features most wanted in terms of ESB and EAI. Greetings, -Greg 2012/12/1 gelo1234 gelo1...@gmail.com Thank you Thorsten, That clarified a lot

Re: Generator with XMLFilterImpl

2012-12-06 Thread gelo1234
If you need to do this in generator why not writing your own Generator ? that extends AbstractSAXGenerator ? You can find example in: cocoon-sample/src/main/java/org/apache/cocoon/sample/generation/ Greetings, Greg 2012/12/6 Mansour Al Akeel mansour.alak...@gmail.com Javier, thank you for

Re: Generator with XMLFilterImpl

2012-12-06 Thread gelo1234
cocoon-sax/src/main/java/org/apache/cocoon/sax/component/CleaningTransformer.java You just consume SAX events and generate new ones :) Greetings, Greg 2012/12/6 gelo1234 gelo1...@gmail.com If you need to do this in generator why not writing your own Generator ? that extends AbstractSAXGenerator

Re: using both Xalan and Saxon with C3

2012-12-06 Thread gelo1234
When you are paranoid;) about the performance, you can set many different configs for xslt processors. e.g. the one that uses compiled versions of XSL sheets - translets (XSLTC) http://xml.apache.org/xalan-j/xsltc_usage.html or the one that is faster because it doesn't use Request Parameters or

Re: zip-archive generator (reverse of zip-archive serializer)

2012-12-07 Thread gelo1234
I don't know about your use-case of zip-archive usage, but it looks like a typical Data Integration scenario. Perhaps you should take a look at Apache Camel: http://camel.apache.org/zip-dataformat.html Greetings, -Greg 2012/12/7 Robby Pelssers robby.pelss...@nxp.com Hi guys, Not sure if we

Re: Flowscript - delete file

2012-12-29 Thread gelo1234
Hi Peter, file.delete() doesn't get executed in this case. Its: if (!file.exists()) { throw new FileNotFoundException(filePath); that line of code that triggers your Error message and file.delete() has not been reached. Greetings, Greg 2012/12/29 Peter Sparkes pe...@didm.co.uk

Re: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread gelo1234
Ajax calls use default character encoding defined by HTTP 1.1 spec (which iso-8859-1, not UTF-8). You have to encode BEFORE sending and decode AFTER retrieving those strings. Encode with encodeURIComponent, decode with decodeURIComponent (if Javascript). Greetings, Greg 2013/1/14 Peter Sparkes

Re: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread gelo1234
); produces the following error when I submit the completed form Can't find method org.apache.cocoon.xml.dom.DOMStreamer.stream(string). What am I doing wrong Peter On 14/01/2013 14:27, gelo1234 wrote: Ajax calls use default character encoding defined by HTTP 1.1 spec (which iso

Re: Deployment scenarios for cocoon 3.0

2013-01-30 Thread gelo1234
for your tip on Tomcat config. Greetings, Greg [2] http://docs.oracle.com/cd/E13222_01/wls/docs90/programming/versioning.html 2013/1/30 Francesco Chicchiriccò ilgro...@apache.org On 30/01/2013 11:19, gelo1234 wrote: Hello, Im thinking about applying several urgent patches onto the running

Re: A generator with sitemap parameter in C3

2013-02-11 Thread gelo1234
/org/apache/cocoon/servlet/component/RequestParametersGenerator.java Greetings, Greg 2013/2/11 Francesco Chicchiriccò ilgro...@apache.org On 11/02/2013 12:07, gelo1234 wrote: Question 1: Can we have some example of this one ? map:generate type=some-custom map:parameter name=a value=1

Re: A generator with sitemap parameter in C3

2013-02-11 Thread gelo1234
setConfiguration is for Java only (without sitemap-servlet) Cocoon use and setup is for standard sitemap-servlet ? Is that correct ? Greetings, Greg 2013/2/11 Francesco Chicchiriccò ilgro...@apache.org On 11/02/2013 13:27, gelo1234 wrote: Ohh...ok that clarifies a problem a bit. So

Re: from Cforms to Wicket

2013-02-18 Thread gelo1234
Why using CForms at all ? If you use XSLT you can transform dynamic XML data into HTML5 native forms templates. Greetings, -Greg 2013/2/18 Mika M Lehtonen m...@digikartta.net Yep, sounds like a lot of work and like re-inventing the wheel.. - mika - 18.2.2013 10:47, Francesco

Re: from Cforms to Wicket

2013-02-18 Thread gelo1234
IMHO, any kind of *Forms* technology is not a viable solution today in the long term. I wouldn't bet on XForms or any other non-standard/standard framework/technology as long as you just don't want to play around with it. The only valid standard today for View part of MVC/MVVP is ... HTML5. Even

Re: from Cforms to Wicket

2013-02-18 Thread gelo1234
HTML5 in its basics is a superset of HTML4. If you don't use HTML5-specific tags/spec you go well with old good HTML4. The original issue was NOT whether to use HTML5 or old HTML, but whether to use CForms or just raw XHTML/HTML (4 or 5) forms. If you like to have HTML5 goodies in browsers that

Re: sitemap parameter in C3 (was Re: A generator with sitemap parameter in C3)

2013-02-18 Thread gelo1234
So value from any parameter name (not only source is available from setConfiguration(...) configuration object :) Thanks for clarifying this! Greetings, -Greg 2013/2/18 Thorsten Scherler scher...@gmail.com On 02/11/2013 01:55 PM, gelo1234 wrote: ... So the setup(...) has access

Re: from Cforms to Wicket

2013-02-18 Thread gelo1234
to be a real option. HTML5 is still hype from my point of view. - mika - 18.2.2013 15:50, gelo1234 kirjoitti: HTML5 in its basics is a superset of HTML4. If you don't use HTML5-specific tags/spec you go well with old good HTML4. The original issue was NOT whether to use HTML5 or old HTML

Re: Cocoon 2.2 WebApp in JBoss 7

2013-03-08 Thread gelo1234
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

Re: Cocoon 2.2 WebApp in JBoss 7

2013-03-08 Thread gelo1234
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

Re: Dom Transformer

2013-03-15 Thread gelo1234
='the-section-title-with-dashes-only 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 ?? On Fri, Mar 15, 2013 at 2:18 PM, gelo1234 gelo1...@gmail.com wrote: The question is WHY? you want DOM

Re: Dom Transformer

2013-03-15 Thread gelo1234
Seems reasonable. Although its a bit awkward idea. Simplicity is the key ;) Greetings, -Greg 2013/3/15 Jos Snellings jos.snelli...@upperware.biz Not sure what your usage is, Mansour. If your program has to generate references to things that 'yet have to come' in the input stream, of

Sample sitemap.xmap war

2013-05-09 Thread gelo1234
Trying to making things up with Cocoon 3-beta, I gave up. Error points to not founding sitemap.xmap inside jar file in lib/ directory. Trunk sources from 20130507. Can somebody send here a simple sitemap web app with Cocoon 3-beta as a war archive (with WEB-INF/lib/_all_required_libs_for_c3-beta

Re: Sample sitemap.xmap war

2013-05-10 Thread gelo1234
at 6:11 PM, gelo1234 gelo1...@gmail.com wrote: Trying to making things up with Cocoon 3-beta, I gave up. Error points to not founding sitemap.xmap inside jar file in lib/ directory. Trunk sources from 20130507. Can somebody send here a simple sitemap web app with Cocoon 3-beta as a war

Re: Sample sitemap.xmap war

2013-05-10 Thread gelo1234
Yes, I just want a single block (or none?:) with a sitemap.xmap which is packaged as a war module and can be deployed to Tomcat 7. sitemap.xmap just reads an XML file and serialize it Greetings, -Greg

Re: Sample sitemap.xmap war

2013-05-10 Thread gelo1234
Thanks, that clarifies a bit my scenario. Greetings, -Greg 2013/5/10 Francesco Chicchiriccò ilgro...@apache.org On 10/05/2013 15:52, gelo1234 wrote: Yes, I just want a single block (or none?:) with a sitemap.xmap which is packaged as a war module and can be deployed to Tomcat 7

Re: Cocoon 3.0 components

2013-06-19 Thread gelo1234
={jexl:cocoon.hostname.param} ? In 2.1 there was a HostSelector: http://cocoon.apache.org/2.1/userdocs/selectors.html How to code that in C3 ? Greetings, Greg 2013/6/19 gelo1234 gelo1...@gmail.com Hi all, I wonder if C3 still supports: 1. matchers in sitemap.xmap ? e.g. map:matchers default=wildcard

Re: Cocoon 3.0 components

2013-06-19 Thread gelo1234
2013/6/19 gelo1234 gelo1...@gmail.com Sorry for the mistyping: s/cutom/custom. One more question: I saw map:select ... in examples sitemap.xmap under map:match ... Is it possible to put map:select ... straight under map:pipeline ? And what param? to use to select hostname of the incoming

Re: Sample sitemap.xmap war

2013-06-19 Thread gelo1234
, Greg 2013/5/11 Francesco Chicchiriccò ilgro...@apache.org Il 10/05/2013 19:18, gelo1234 ha scritto: I have followed the servlet-service config you mentioned but still no luck. I attach my war file here. Deployed to Tomcat 7 from web app module + c3 libs added to WEB-INF/lib

Re: Sample sitemap.xmap war

2013-06-19 Thread gelo1234
:/classes/COB-INF/test1/ /bean bean name=test2 class=org.apache.cocoon.servlet.XMLSitemapServlet servlet:context mount-path=/test1/test2 context-path=classpath:/classes/COB-INF/test2/ /bean Greetings, Greg 2013/6/19 gelo1234 gelo1...@gmail.com Thanks Francesco. It works perfectly! The only

Re: Cocoon 3.0 components

2013-06-20 Thread gelo1234
Thanks for clarifying this. Greetings, Greg 2013/6/20 Thorsten Scherler scher...@gmail.com On 06/20/2013 09:15 AM, Francesco Chicchiriccò wrote: On 20/06/2013 09:07, Francesco Chicchiriccò wrote: 4. actions in sitemap.xmap ? e.g. map:actions map:action

Re: Cocoon 3.0 components

2013-06-20 Thread gelo1234
I've got Cocoon site that hosts multiple www domains, all based on the same sitemap.xmap with map:mount uri-prefix= src=domain_X check-reload=yes/ so the configuration is as follows: map:pipeline map:select type=cutomDomainSelector map:when

Re: Cocoon 3.0 components

2013-06-20 Thread gelo1234
Any idea how to get HTTP Header named Host ? or any other HTTP Header value ? [1] tried cocoon.request.header['Host'], cocoon.request.header.host without effect I managed to get only requestURL: map:parameter name=host value={jexl:cocoon.request.requestURL}/ Greetings, Greg [1]

Re: Cocoon 3.0 components

2013-06-20 Thread gelo1234
Can you provide me with some simple example of that new language interpreter (module) ? :) Greetings, Greg 2013/6/20 Thorsten Scherler scher...@gmail.com On 06/20/2013 03:02 PM, gelo1234 wrote: I've got Cocoon site that hosts multiple www domains, all based on the same sitemap.xmap

Re: Cocoon 3.0 components

2013-06-20 Thread gelo1234
Thorsten Scherler scher...@gmail.com On 06/20/2013 03:42 PM, gelo1234 wrote: Can you provide me with some simple example of that new language interpreter (module) ? :) http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/expression

XSLT import/include errors

2013-06-20 Thread gelo1234
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: exception-report class=org.apache.cocoon.pipeline.SetupException timestamp=Thu, 20 Jun 2013 19:58:23 +0200messageImpossible to read XSLT from

Re: XSLT import/include errors

2013-06-20 Thread gelo1234
$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Greetings, Greg 2013/6/20 Javier Puerto jpue...@gmail.com Hi Greg, El 20/06/2013 20:00, gelo1234 gelo1...@gmail.com escribió: It looks like XSLT also got cut in functionality in C3. I tried to rerun old XSL

Re: XSLT import/include errors

2013-06-20 Thread gelo1234
xsl:variable .../ being defined in 2 different places :/ One place - in main XSL file and other one - in imported XSL file. While it worked fine in C2.1. I use extensively xsl:template / and xsl:variable ../ inheritance, now in C3 it makes XSLT not being compiled :/ Greetings, Greg 2013/6/20 gelo1234

Re: XSLT import/include errors

2013-06-20 Thread gelo1234
:) Greetings, Greg 2013/6/20 Javier Puerto jpue...@gmail.com 2013/6/20 gelo1234 gelo1...@gmail.com OK, resolved the issue. Deleted xslt/ directory :/ and now its starting. STRANGE!! Yeah, computer's stuff. :) And also found that more detailed error info about not being able

Re: XSLT import/include errors

2013-06-20 Thread gelo1234
=/ /map:transformer in sitemap.xmap. So requestURI is some GLOBAL variable ? Greetings, Greg 2013/6/20 Javier Puerto jpue...@gmail.com 2013/6/20 gelo1234 gelo1...@gmail.com What version of C2.1 did you use? Maybe old Xalan? I've found the following note in the Xalan documentation [1]: Note

Re: XSLT import/include errors

2013-06-21 Thread gelo1234
with XML Document. Greetings, Greg 2013/6/20 gelo1234 gelo1...@gmail.com The latest Saxon got the same _global_ variable context scope and doesn't allow overriding xsl:variables. OK, I will fix that :) Greetings, Greg 2013/6/20 gelo1234 gelo1...@gmail.com Thank you! I will try

Re: XSLT import/include errors

2013-06-21 Thread gelo1234
version of Saxon which works differently. Robby -- *Van:* gelo1234 [gelo1...@gmail.com] *Verzonden:* vrijdag 21 juni 2013 15:23 *To:* Cocoon Users *Onderwerp:* Re: XSLT import/include errors OK, one more question. Is it possible with Saxon/Xalan in C3

Re: XSLT import/include errors

2013-06-21 Thread gelo1234
Looks like Saxon-HE doesn't support anymore calling Java functions that way: http://saxon-xslt-and-xquery-processor.13853.n7.nabble.com/XSLT-2-0-Saxon-9-HE-and-call-java-functions-td4347.html But there are available in PE and EE versions, huh Greetings, Greg 2013/6/21 gelo1234 gelo1

Re: XSLT import/include errors

2013-06-21 Thread gelo1234
Solution: If you want to call Java functions freely from C3 XSLT, use older Saxon implementation. Version 9.1 works perfectly! Greetings, Greg 2013/6/21 gelo1234 gelo1...@gmail.com Looks like Saxon-HE doesn't support anymore calling Java functions that way: http://saxon-xslt-and-xquery

Re: XSLT import/include errors

2013-06-22 Thread gelo1234
:( Greetings, Greg 2013/6/21 gelo1234 gelo1...@gmail.com Solution: If you want to call Java functions freely from C3 XSLT, use older Saxon implementation. Version 9.1 works perfectly! Greetings, Greg 2013/6/21 gelo1234 gelo1...@gmail.com Looks like Saxon-HE doesn't support anymore

Re: XSLT import/include errors

2013-06-22 Thread gelo1234
10:34, gelo1234 gelo1...@gmail.com escribió: Now when everything is up and working fine, the really ennoying part of C3 is caching imported/included XSL files. Is there any way to invalidate that cache ? Or to turn if off ? I wouldn't like to restart the application server every time I make

Re: XSLT import/include errors

2013-06-22 Thread gelo1234
2013/6/22 gelo1234 gelo1...@gmail.com The same problem appears with Saxon (any version). I think its rather C3 issue not XSLT engine. Greetings, Greg 2013/6/22 Javier Puerto jpue...@gmail.com Hi Greg, Did you tried yourself with Saxon? I had caching issues with Xalan but never tried

Re: CForms validation in Cocoon-2.1.12

2013-12-04 Thread gelo1234
Hello Barbara, My pure guess: the problem might be with different Dojo version. Did you check that there is exactly the same Dojo Toolkit between 2.1.11 and 2.1.12 ? When this is not the case, the next possible cause of error might be generating unnecessary ?xml ... version=... header within your

cocoon-xml-2.0.4

2014-01-16 Thread gelo1234
Hello, I wonder how to classify C3-beta dependency: cocoon-xml ? Which project does that dependency belong to ? As I got it right, it is NOT part of Cocoon 3.0-beta package ? Is it just a separate jar file from Apache Maven repo ? Or a part or separate project like Apache Commons ? cocoon-sax

Re: cocoon-xml-2.0.4

2014-01-16 Thread gelo1234
Javier Puerto jpue...@gmail.com Hi Greg, 2014/1/16 gelo1234 gelo1...@gmail.com 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

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread gelo1234
Hello Alberto, Have you defined map:match pattern=translations_*.properties with: map:generate type=service-consumer/ ? Otherwise: map:parameter name=bundle value=servlet:/translations_{jexl:cocoon.request.lang}.properties / will not work as expected. Take a look at C3 samples sitemap.xmap

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread gelo1234
Hello Alberto, One more thing is that any map:transform or map:serialize must have: type=servlet-service with servlet:/ protocol. Greetings, Greg 2014/1/17 gelo1234 gelo1...@gmail.com Hello Alberto, Have you defined map:match pattern=translations_*.properties with: map:generate type

Re: cocoon-xml-2.0.4

2014-01-17 Thread gelo1234
;) 2014/1/17 Javier Puerto jpue...@gmail.com 2014/1/16 gelo1234 gelo1...@gmail.com Hi Salu2, Thanks for clarifying this. Now I got interested in cocoon-osgi, but it seems like rather old stuff (and uses old spring release). Any plans to reactivate this subproject ? It would be awesome

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread gelo1234
, gelo1234 wrote: Hello Alberto, One more thing is that any map:transform or map:serialize must have: type=servlet-service with servlet:/ protocol. Greetings, Greg 2014/1/17 gelo1234 gelo1...@gmail.com Hello Alberto, Have you defined

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread gelo1234
Can you show here your full original Cocoon pipeline ? Do you store property files content or property filenames inside db ? Greetings, Greg 2014/1/17 Alberto Brosich abros...@ogs.trieste.it Hi, I'm migrating a 2.1 cocoon application to 3.0, using beta1-SNAPSHOT because I need the sql

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread gelo1234
xsl:text=/xsl:text xsl:textxsl:value-of select=sql:value//xsl:text /xsl:template Alberto On Fri, 2014-01-17 at 15:30 +0100, gelo1234 wrote: Can you show here your full original Cocoon pipeline ? Do you store property files content or property filenames inside db

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread gelo1234
(); while (rs.hasNext()) { rs.next(); data.put(rs.getString(key), rs.getString(value)); } return new Page(servlet:/homepage, data); }} Greetings, Greg 2014/1/17 Alberto Brosich abros...@ogs.trieste.it On Fri, 2014-01-17 at 16:44 +0100, gelo1234 wrote

Re: Adding EXSLT functions

2014-02-28 Thread gelo1234
Hi, We have used EXSLT in C2 stylesheets without problems. Here is an excerpt: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:exslt=http://exslt.org/common; ... xsl:if test=exslt:node-set($content)/checkboxes/checkbox[not(@selected)] ... As far as memory

Re: Adding EXSLT functions

2014-02-28 Thread gelo1234
?). The problem with 9.x HE Saxon release is also with calling Java functions from XSLT. If you want that functionality, you either have to buy EE/PE release or downgrade to older Saxon (7.x/8.x) which works fine with Java/EXSL functions. Greetings, Greg 2014-02-28 17:53 GMT+01:00 gelo1234 gelo1...@gmail.com

Re: URLResponse from Restcontroller with Hibernate circular relationships

2014-03-04 Thread gelo1234
: authors) { ListBook books = author.getBooks(); for (Book book: books) book.setAuthor(null); } Now you can safely call URLResponse with authors (they don't contain any circular references anymore). Greetings, Greg 2014-03-04 23:00 GMT+01:00 gelo1234 gelo1...@gmail.com

Re: URLResponse from Restcontroller with Hibernate circular relationships

2014-03-04 Thread gelo1234
...@yahoo.de: Thanks Greg,That's the idea as long as I don't save the bean there is no problem with the database. And such methods I already use with Lazy loading between two requests. Am 04.03.2014 23:47, schrieb gelo1234: Another kind of hack (if you cannot modify entity sources

Re: URLResponse from Restcontroller with Hibernate circular relationships

2014-03-05 Thread gelo1234
04.03.2014 23:47, schrieb gelo1234: Another kind of hack (if you cannot modify entity sources and they are not external .xml files) would be setting all child objects' parent references to null _before_ serializing that data. Lets say you got: Author and Book entites with One-To-Many relationship

Re: URLResponse from Restcontroller with Hibernate circular relationships

2014-03-07 Thread gelo1234
should be nulled in the Dao.Do you know if there is already a professional solution for this usage? Am 04.03.2014 23:47, schrieb gelo1234: Another kind of hack (if you cannot modify entity sources and they are not external .xml files) would be setting all child objects' parent references

Re: Feeding a Bean to the pipeline

2014-03-12 Thread gelo1234
Why JAXB/annotations didn't work ? Open-session problem ? Greetings, Greg 2014-03-12 12:14 GMT+01:00 Piratenvisier hansheinrichbr...@yahoo.de: I have to feed the Pipeline with the content of a Hibernate Bean. I tried with JAXB and and annotations. But I could not get the preferred result.

Re: Jexl in embedded Pipeline

2014-03-13 Thread gelo1234
With servlet-sitemaps Jexl can be used within any pipeline as {jexl:.} value. Please show example of your embedded pipeline ? Greetings, Greg 2014-03-13 11:09 GMT+01:00 Yahoo hansheinrichbr...@yahoo.de: How can I use Jexl in an embadded Pipline ?

Re: Jexl in embedded Pipeline

2014-03-13 Thread gelo1234
Bean. how do feed the pipeline with this Bean that it is used by Jexl to resolve the input String. Am 13.03.2014 12:55, schrieb gelo1234: With servlet-sitemaps Jexl can be used within any pipeline as {jexl:.} value. Please show example of your embedded pipeline ? Greetings, Greg

Re: Jexl in embedded Pipeline

2014-03-13 Thread gelo1234
application which I wanted to transfer to 3.0 Am 13.03.2014 14:23, schrieb gelo1234: I got lost with your explanation :) It's a kind of awkward thing to me that you are actually trying to do with that code. Why not making it clean: 1. First you need a String-Template match to serialize

Re: Jexl in embedded Pipeline

2014-03-14 Thread gelo1234
); message.setText(text, true); In my case the text comes from an inline Cocoon Pipeline. I could first import the template use the Velocity Engine and then give it to the Pipeline. or is there possibility to make the job done by the pipeline . Am 13.03.2014 19:34, schrieb gelo1234: I

Re: Accessing application/json message body of POST request

2014-03-17 Thread gelo1234
Hi Bardo, Are you talking about REST in C3 (cocoon-rest dependency) ? Have you tried annotating REST Resource with: @Consumes(MediaType.APPLICATION_JSON) ? e.g. @Path(/orders) @Consumes(MediaType.APPLICATION_JSON)public class OrderRestResource {

Re: Accessing application/json message body of POST request

2014-03-17 Thread gelo1234
gelo1234 gelo1...@gmail.com: Hi Bardo, Are you talking about REST in C3 (cocoon-rest dependency) ? Have you tried annotating REST Resource with: @Consumes(MediaType.APPLICATION_JSON) ? e.g. @Path(/orders) @Consumes(MediaType.APPLICATION_JSON)public class OrderRestResource

Re: calling a sitemap-snippet from within a program

2014-03-21 Thread gelo1234
Hi, 1. Yes, it's possible. Since all sitemap matching URL's are actually kind of HTTP Servlets, you can just use any http client (e.g. Apache HttpClient) to invoke the servlet and get the response (if that is outside Cocoon): HttpClient client = new DefaultHttpClient(); HttpGet request = new

Re: Help needed moving from 2.1.11

2016-01-07 Thread gelo1234
Hi, There is no need to configure it in any special way. All defaults are out of the box and are mostly sane (what every developer needs). C3 is considered to be more a RESTful framework not only a simple XML distribution system. Most sitemap.xmaps work ok. We have taken some steps into moving

Re: Help needed moving from 2.1.11

2016-01-07 Thread gelo1234
>> If I upgrade manually to Tomcat 8 it's going to break all the directory >> changes and control software setups that RH-based systems expect, which >> will create work for my ops and my staff because it will be different >> from all the other Tomcat servers around here. Unfortunately. > I

Re: Re: cocoon and cocoon-webapp together

2016-06-26 Thread gelo1234
Hello, You have to use 3.0.0-beta-SNAPSHOT maven dependencies and all works seamlessly. I didn't have any problems building package (jar) and deploying to Tomcat. Openshift shouldn't have any issues either. Btw. C3 development is stale now. Beta release hasn't been published officially. Feel

Re: where to get cocoon 3.0.0-beta-1-SNAPSHOT

2016-02-08 Thread gelo1234
PSHOT and i cannot find in internet. > Can you help me? > > > -- > *Von:* gelo1234 <gelo1...@gmail.com> > *An:* Cocoon Users <users@cocoon.apache.org> > *Gesendet:* 11:31 Donnerstag, 7.Januar 2016 > *Betreff:* Re: Help needed moving

Re: Possible Apache Cocoon trademark violation

2016-02-22 Thread gelo1234
Well, what relates to Cocoon, I have found a brand new baby called Cocoon: https://cocoon.io/ Shall we not protect Apache Cocoon (R) (TM) ? :) Greetings, Greg 2016-02-22 13:08 GMT+01:00 Francesco Chicchiriccò : > On 20/02/2016 23:38, Paul Foxworthy wrote: > >> >> Hi, >>

Re: new mail archives interface

2016-05-18 Thread gelo1234
Well done! It's more readable now :) Thanks. Good Job! Greetings, -Greg 2016-05-19 4:24 GMT+02:00 David Crossley : > At the recent ApacheCon conference, the new mail archives interface was > unveiled. > > See https://lists.apache.org/ > > See the mention at the weekly

Re: [2.1] cinclude using a pipeline as a generator source

2016-05-09 Thread gelo1234
Hello Chris, >what would happen if I wanted to use a pipeline from >a different sitemap in my URL? Something (conceptually) like this? > >Since I need to remove the "other-foo" to get this to work, how can I >address it? It depends on what version of Cocoon you are using. If pre-block version,

Re: Cocoon 3 sitemap setup

2016-08-24 Thread gelo1234
Hi, AFAIK there is no more direct sitemap mounting in C3. You have to make a separate C3 module/block and "mount"/assign a context to it. Then you can connect 2 or more Cocoon blocks together in order to share some common servlet or functionality. Take a look at Cocoon samples:

Re: Re: Using absolute adresses in sitemap

2016-11-27 Thread gelo1234
Hello Hans, You should try resolve absolute addresses within servlet or Java code, not within sitemap. We define absolute addresses in sitemap as a map parameter only in order to be resolved when Java code is being executed.. That is the only way to get outside the cocoon context. As you know

Re: [2.1] Overzealous escaping of high Unicode code points

2017-06-21 Thread gelo1234
Christopher Schultz <ch...@christopherschultz.net >: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Greg, > > On 6/20/17 4:11 PM, Christopher Schultz wrote: > > Greg, > > > > On 6/8/17 2:17 PM, gelo1234 wrote: > >> Chris, > > > &

Re: [2.1] Overzealous escaping of high Unicode code points

2017-06-08 Thread gelo1234
... Greetings, Greg 2017-06-08 20:11 GMT+02:00 gelo1234 <gelo1...@gmail.com>: > > It depends on what type of Serializer you use and what kind of Serlializer > config you put into your sitemap? > > By default XMLSerializer/HTMLSerializer uses UTF-8 encoding. So instead of &

Re: [2.1] Overzealous escaping of high Unicode code points

2017-06-08 Thread gelo1234
It depends on what type of Serializer you use and what kind of Serlializer config you put into your sitemap? By default XMLSerializer/HTMLSerializer uses UTF-8 encoding. So instead of 1 UTF-16 char you got 2 chars UTF-8 encoded. Of cource there might be also issue with emoji charset, but I would

Re: Migrating cocoon 2.1 project to 2.2

2018-10-04 Thread gelo1234
Hello Senthilkumar, I think we have the 2-factor based problem here. 1 is that you use Xalan instead of Saxon in your Pipeline (error log shows xalan package info not saxon) 2. is that it might adhere to Saxon version that you use. Old Saxon had many features that new Saxon does NOT have unless

Re: Compatibility check

2018-09-11 Thread gelo1234
Tomcat9 and Java8 works fine with C3.0beta. Never tried C2.1.x Greetings, Greg wt., 11 wrz 2018 o 11:24 Cédric Damioli napisał(a): > Hi, > > We use Cocoon 2.1.12 with Java 8 in production for years without any > problems. Never tried Tomcat 9 yet, but any other versions worked well > also,

Re: Cocoon java function call Byte code verification failed

2019-02-05 Thread gelo1234
Hello Senthilkumar, The problem is related to String Pool implementation that has changed in the Java 8 spec. I suppose you were running the previous Java release (7, 6?) and switched now to Java 8? Unfortunately you cannot use Java8 with the current Cocoon 2.1.11 stack unless you change the Java

Re: Cocoon java function call Byte code verification failed

2019-02-05 Thread gelo1234
and not everything Open-Source is getting slimmed down (for addons you have to pay!). If you take into the consideration that future Oracle Java updates/releases will be commercial/paid only via subscriptions :( most of Open-Source World is switching to OpenJDK now :) Greetings, Greg wt., 5 lut

Re: How to configure TraxProcessor in 2.2?

2019-12-09 Thread gelo1234
Mark, Why do you need a Custom XSLT Processor other than Saxon actually?? Saxon should do the right thing. Why wrapping it inside any "upper-level" Transformer? It's getting kinda weird. You can always add a new Java class to standard Cocoon Processors/Transformers.

Re: How to configure TraxProcessor in 2.2?

2019-12-10 Thread gelo1234
Dec 10, 2019 at 12:10:41AM +0100, gelo1234 wrote: > > Mark, > > > > Why do you need a Custom XSLT Processor other than Saxon actually?? Saxon > > should do the right thing. Why wrapping it inside any "upper-level" > > Transformer? It's getting kinda weird.

Re: How to configure TraxProcessor in 2.2?

2019-12-11 Thread gelo1234
mouth :) Man, you made my day!!! Greetings, Greg śr., 11 gru 2019 o 14:59 Mark H. Wood napisał(a): > On Tue, Dec 10, 2019 at 11:21:09PM +0100, gelo1234 wrote: > > I don't think this is the proper way to do this and if it's possible at > > all. Extension functions are only availabl

Re: How to configure TraxProcessor in 2.2?

2019-12-06 Thread gelo1234
Hi Mark, Also make sure, you have that class: org.dspace.saxon.ConfigurableTransformerFactory available on the CLASSPATH (-> WEB-INF/lib/*.jar) And a proper version/config for Saxon HE. Here is the guide: https://stackoverflow.com/questions/22483436/using-saxon9-for-xslt-with-apache-cocoon-2-2

Re: [CVE-2020-11991] Apache Cocoon security vulnerability

2020-09-11 Thread gelo1234
Hello Cedric, Are external entities blocked also in XSLT? Greetings, Greg pt., 11 wrz 2020 o 11:39 Cédric Damioli napisał(a): > [CVE-2020-11991] Apache Cocoon security vulnerability > > Severity: Important > > Vendor: The Apache Software Foundation > > Versions Affected: Apache Cocoon up to

Re: [ANN] Apache Cocoon 2.1.13 Released

2020-07-30 Thread gelo1234
No shit!!! Congratulations Apache Cocoon is back from Dead??? Great news. Can Cocoon 3.0 be finally released? If I recall C3.0 was in BETA that was _never_ released. Only ALFA3 was released. Greetings, Greg czw., 30 lip 2020 o 12:12 Cédric Damioli napisał(a): > Apache Cocoon 2.1.13

Re: using cocoon 2.1 in the long-term, security concerns

2021-07-19 Thread gelo1234
Hello Vincent, It depends on your future Strategy. Cocoon is very flexible. We've been running Cocoon 3.0-beta in production with Tomcat9/10, Quarkus and even Kubernetes 1.20 etc. No problems at all :) with Java 8 :) We cannot switch to Java 11, because it's not compatible with Cocoon libraries

  1   2   >