Filtering out (some) Sonar violations
Gents, if you take a look at [1], you will realize that we have a quite long path to reach a decent quality level of Cocoon 3's source code. At the moment, the most "bad" violations are related to a couple of rules that couldn't apply to Cocoon 3, for different reasons: 1. Using member variables in servlets [2] - Cocoon 3 uses the ServletService framework, so servlet's lifecycle is not managed in the usual way, by a Servlet container 2. Direct allocation of a specific implementation of xml interfaces [3]: NekoHtml does not provide a SAXParserFactory, only provides direct instantiation My proposal would be to open a issue to INFRA in order to ask for disabling these two rules: do you see any problem, with this? For my personal experience about Findbugs, PMD and Checkstyle, it is rather impossible to satisfy all the rules (thus bringing the number of violations to zero); however, I personally think that reducing the huge amount that we have at the moment would dramatically improve Cocoon 3's source code quality. Cheers. [1] https://analysis.apache.org/drilldown/violations/org.apache.cocoon.root:cocoon-root [2] https://analysis.apache.org/rules/show/findbugs:MTIA_SUSPECT_SERVLET_INSTANCE_FIELD?layout=false [3] https://analysis.apache.org/rules/show/findbugs:XFB_XML_FACTORY_BYPASS?layout=false -- Francesco Chicchiriccò Apache Cocoon Committer and PMC Member http://people.apache.org/~ilgrosso/
Re: Cocoon GetTogether?
On 04/08/2011 17:08, Simone Tripodi wrote: Hi all guys and sorry for have overlooked that discussion. A GT is what I really wish see realized :) I spoke also with Francesco via chat and we both agreed/wish on give new energy to C3 promoting a GT. I tried to go to Vienna last year to meet Reinhard and Steven, but unfortunately didn't have enough budget to go (here in Italy salaries are not at EU level - unless you are a Politician :P) :( I would like - just my wish - to propose the University of L'Aquila (Italy) as next Cocoon3 GT for 2 main reason (3, since it is the city when I was born :P ): * on April 6, 2009, it was partially destroyed by a earthquake[1] and it's still in terrible conditions - so organizing a so great event would hopefully attract the interest * because of it, the University lost a lot of students, we could maybe help them attracting guys It is just a prototypal idea, I should speak with people I'm still in touch there before doing a real proposal... anyway, how does it sound? Hi Simone, as per our recent discussion about this topic, I would personally love this Cocoon GT in L'Aquila :-) If other people agree, I can of course help organizing, either personally and by contacting some people at the University - it has been my University too :-P. Gents, WDYT? On Tue, Jul 19, 2011 at 6:44 PM, Lars Huttar wrote: On 7/18/2011 4:49 PM, Lars Huttar wrote: As we've been talking about Cocoon "Do-ocracy" and community contributions, my mind turns to my past attempts to help develop Cocoon, and the vast gap that seems to yawn between me and being able to contribute effectively. While I would love to be able to contribute, there is quite a stack of technologies that seem to require mastery first... e.g. Maven, Wicket, Spring...? I suspect that much of this would be reduced if I could sit down and be walked through a process with a knowledgeable person who can tell me what I do and don't need to learn, and of whom I could ask targeted questions. And that leads me to ask, what are the possibilities of a Cocoon GetTogether this year? next year? (The sooner the better, as far as I'm concerned!) AFAIK the last GT was in 2005? The hackathon sounded very productive. Regards, Lars (Sorry for not replying directly to others' replies, but I don't seem to be receiving them in my inbox (I read them at http://cocoon.markmail.org/search/?q=#query:+page:1+mid:yucxttvietp2ukac+state:results).) Given that there may not be enough people and sponsorship for a Cocoon GT, what about some kind of virtual GT? I.e. a concentrated time of group web presence. We could still have presentations, Q&A, hackathon, maybe using audio channel such as Blink/Mumble/TeamSpeak... For me, the most valuable part would be a tutorial on getting up to speed on Cocoon development... with the minimum grounding in Maven/Wicket/Spring/Java servlet technologies required, and with plenty of opportunity to ask questions. A couple of simple "hello world" tutorials would be worth a lot. Regards, Lars -- Francesco Chicchiriccò Apache Cocoon Committer and PMC Member http://people.apache.org/~ilgrosso/
Re: Cocoon GetTogether?
really interesting, both dates and both places sound *really* good :) Have a nice day! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Thu, Aug 4, 2011 at 9:08 PM, Jasha Joachimsthal wrote: > > On 19 July 2011 10:15, Thorsten Scherler wrote: >> >> On Tue, 2011-07-19 at 08:42 +0200, Francesco Chicchiriccò wrote: >> > On 19/07/2011 00:21, Torsten Curdt wrote: >> > >> And that leads me to ask, what are the possibilities of a Cocoon >> > >> GetTogether this year? next year? >> > >> (The sooner the better, as far as I'm concerned!) >> > >> >> > >> AFAIK the last GT was in 2005? The hackathon sounded very productive. >> > Last GT was in 2007, in Rome (I've found this old post from Jeroen Reijn >> > [1], since the cocoongt.org domain seems to have passed to other >> > hands... >> > > GT have always been great events but do we have enough people that >> > > would bother to come? ...and especially sponsors that see it >> > > worthwhile? >> > Hum, unfortunately I must agree with Torsten's doubts... Maybe we can >> > rediscuss this proposal in a few months, WDYT? >> > >> >> There is http://barcampspain.com/ at 8 of October. I will be there and >> we could do some c3 work if people like to come to the south of spain. >> >> salu2 >> >> > >> > [1] http://blog.jeroenreijn.com/2007/09/cocoon-gt-2007-update.html >> > > > There will also be a hackathon after GotoCon Amsterdam in the Hippo Office > on October 15 :) http://wiki.apache.org/apachecon/AmsterdamHackathon2011 > > Jasha Joachimsthal > Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466 > US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free) > > www.onehippo.com >
Re: Cocoon GetTogether?
On 19 July 2011 10:15, Thorsten Scherler wrote: > On Tue, 2011-07-19 at 08:42 +0200, Francesco Chicchiriccò wrote: > > On 19/07/2011 00:21, Torsten Curdt wrote: > > >> And that leads me to ask, what are the possibilities of a Cocoon > > >> GetTogether this year? next year? > > >> (The sooner the better, as far as I'm concerned!) > > >> > > >> AFAIK the last GT was in 2005? The hackathon sounded very productive. > > Last GT was in 2007, in Rome (I've found this old post from Jeroen Reijn > > [1], since the cocoongt.org domain seems to have passed to other > hands... > > > GT have always been great events but do we have enough people that > > > would bother to come? ...and especially sponsors that see it > > > worthwhile? > > Hum, unfortunately I must agree with Torsten's doubts... Maybe we can > > rediscuss this proposal in a few months, WDYT? > > > > There is http://barcampspain.com/ at 8 of October. I will be there and > we could do some c3 work if people like to come to the south of spain. > > salu2 > > > > > [1] http://blog.jeroenreijn.com/2007/09/cocoon-gt-2007-update.html > > > There will also be a hackathon after GotoCon Amsterdam in the Hippo Office on October 15 :) http://wiki.apache.org/apachecon/AmsterdamHackathon2011 Jasha Joachimsthal Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466 US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free) www.onehippo.com
Re: Cocoon GetTogether?
Hi all guys and sorry for have overlooked that discussion. A GT is what I really wish see realized :) I spoke also with Francesco via chat and we both agreed/wish on give new energy to C3 promoting a GT. I tried to go to Vienna last year to meet Reinhard and Steven, but unfortunately didn't have enough budget to go (here in Italy salaries are not at EU level - unless you are a Politician :P) :( I would like - just my wish - to propose the University of L'Aquila (Italy) as next Cocoon3 GT for 2 main reason (3, since it is the city when I was born :P ): * on April 6, 2009, it was partially destroyed by a earthquake[1] and it's still in terrible conditions - so organizing a so great event would hopefully attract the interest * because of it, the University lost a lot of students, we could maybe help them attracting guys It is just a prototypal idea, I should speak with people I'm still in touch there before doing a real proposal... anyway, how does it sound? TIA, all the best!!! Simo [1] http://en.wikipedia.org/wiki/2009_L'Aquila_earthquake http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Jul 19, 2011 at 6:44 PM, Lars Huttar wrote: > On 7/18/2011 4:49 PM, Lars Huttar wrote: >> As we've been talking about Cocoon "Do-ocracy" and community >> contributions, my mind turns to my past attempts to help develop Cocoon, >> and the vast gap that seems to yawn between me and being able to >> contribute effectively. While I would love to be able to contribute, >> there is quite a stack of technologies that seem to require mastery >> first... e.g. Maven, Wicket, Spring...? >> >> I suspect that much of this would be reduced if I could sit down and be >> walked through a process with a knowledgeable person who can tell me >> what I do and don't need to learn, and of whom I could ask targeted >> questions. >> >> And that leads me to ask, what are the possibilities of a Cocoon >> GetTogether this year? next year? >> (The sooner the better, as far as I'm concerned!) >> >> AFAIK the last GT was in 2005? The hackathon sounded very productive. >> >> Regards, >> Lars >> > > (Sorry for not replying directly to others' replies, but I don't seem to > be receiving them in my inbox (I read them at > http://cocoon.markmail.org/search/?q=#query:+page:1+mid:yucxttvietp2ukac+state:results).) > > Given that there may not be enough people and sponsorship for a Cocoon > GT, what about some kind of virtual GT? > I.e. a concentrated time of group web presence. > > We could still have presentations, Q&A, hackathon, maybe using audio > channel such as Blink/Mumble/TeamSpeak... > > For me, the most valuable part would be a tutorial on getting up to > speed on Cocoon development... with the minimum grounding in > Maven/Wicket/Spring/Java servlet technologies required, and with plenty > of opportunity to ask questions. A couple of simple "hello world" > tutorials would be worth a lot. > > Regards, > Lars > > > >
Re: "Springification" of C3 - proof of concept
Hi Igor!!! congrats for your committership and your dedication to this work!!! I really appreciate you shared your results with us! Just my *personal* POV: even if I'm NOT a SpringFramework fan (and I won't be :P) your work shall be included in a way or another in C3. Anyway I would prefer Spring doesn't play the main role: I mean, having 3rd parties integrations it more than fine - we already have indeed modules with 3rd parties integrations, like StringTemplate, JAX-RS, Optionals (Solr, JAXB) - but IMHO Cocoon *core* components should not be dependent by any framework, I wouldn't "force" C3 users learning Cocoon AND Spring as a starting point, or require Spring as knowledge base to get started with Cocoon. I think that should sound reasonable, WDYT? So, my suggestions, if you are happy to continue on contributing - and I really hope you are :) - is: * checkout the latest C3 code from /trunk; * understand how it is actually organized and check what has been already implemented (for sure you can help us on improving actual JAXB implementation, for example) * starting proposing and discussing modifications/additional components step by step, not sure everybody would agree on adding everything as a single big commit ;) Many thanks in advance, all the best!!! Have a nice day, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Aug 2, 2011 at 1:32 AM, Igor Malinin wrote: > Hello. I've promised some (not so long) time ago to share my experiments > with C3 and Spring, and now I am ready to show some interesting > achievements. > > Here is the source code: > https://github.com/igorzep/cocoon-springification > > What it does... > > 1) Use traditional annotated Spring Controllers > I think it is better REST than Cocoon today. Those days when Cocoon was a > leader in this respect has passed, and it really was the best REST framework > from day one when nobody even used this word. But now Spring is really > powerful and I think Cocoon should not try to invent own things but > integrate with Spring as much as possible. In current form it "disables" > Spring functionality and replace with own much more limited solution. > > 2) Use Cocoon Sitemap as Spring View > Again - traditional Spring way. Also i map Cocoon to WEB-INF so that sitemap > is hidden for direct browser access (good trick to workaround lack of > private pipelines in C3). > > 3) Use Spring FORM tag library in SAX pipeline > When it is very simple implementation it works quite good already, much > better than I expect from it myself... > > 4) Integrated Validation with Spring and Hibernate Validator > Again - traditional Spring 3 way of handling forms, together with previous > item can be a good foundation for replacing old Cocoon forms module... > > 5) EclipseLink JPA > Just my favorite, as it implements both JPA and JAXB... > > 6) Mapping Spring model to XML with JAXB annotations > Just a quick hack as everything else... > > 7) JRebel compatible, just generate rebel.xml for "main" module > Unfortunately EclipseLink JRebel plugin does not work with latest > EclipseLink, but can be switched off easily. Otherwise I did a small fix to > XSLT transformer, so it rechecks for modifications correctly (not included > with sources) and it works much better than Cocoon RCL. Actually Cocoon RCL > destroyed root spring context on first invocation and any future requests to > EclipseLink didn't work at all. > > I think that Cocoon RCL should be dropped at all - it is unusable for > something serious, if you do something more than totally trivial it takes > more time to fight with it, works almost always incorrectly and saves no > time as the result... > > > Thanks. > Discussions and critics are welcome. > >