Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 75990 invoked from network); 16 Nov 2007 16:06:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2007 16:06:44 -0000 Received: (qmail 21655 invoked by uid 500); 16 Nov 2007 16:06:20 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 21608 invoked by uid 500); 16 Nov 2007 16:06:20 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 21590 invoked by uid 99); 16 Nov 2007 16:06:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2007 08:06:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 209.85.132.245 as permitted sender) Received: from [209.85.132.245] (HELO an-out-0708.google.com) (209.85.132.245) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2007 16:06:07 +0000 Received: by an-out-0708.google.com with SMTP id d33so215495and for ; Fri, 16 Nov 2007 08:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=Mwkfe4JMf0Eyg9tIe2za5cqcEvrZBTgMkDmjrmldf20=; b=c/KAW5+5SgFz5NMjk9xfLK5Ji6nI9INZWVmszF/MylZCUjPDMOpDNxhefKqJh/u0eaeiYCdzFubqnmn2x5UdOS9TLE1mjTVIMDCvDrJEPhBlR0EHrM+QjWJT6/zAcZmoJ4V6Oi47cZ/w0CkQA7wtPIsboQUFSv1bgdL99kpgQzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=q9XXtP6a95Y4vxsWiS8DxS5AK17r74oofqzDpB7jf6un+1LJOZvaeM4scgJOSHj0/FX4TtE/YOHsfl4QidQVbqArUN5R9LbXEWLKA5iOFf/iUSx+nABU0VT7uxue0KRO+49/NjHvjGNo1+3s7hBdeUs9djagljf3RZ13TuigHvE= Received: by 10.101.70.5 with SMTP id x5mr2942680ank.1195229160025; Fri, 16 Nov 2007 08:06:00 -0800 (PST) Received: from 1023host162.starwoodbroadband.com ( [12.37.189.162]) by mx.google.com with ESMTPS id c4sm4036398anc.2007.11.16.08.05.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Nov 2007 08:05:58 -0800 (PST) Message-Id: <4638EBD2-722E-49DE-BF15-A9EAD72B2D93@gmail.com> From: Kevan Miller To: dev@geronimo.apache.org In-Reply-To: <1b5bfeb50711151738s4a0cee21ue96ea93cd32e839c@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: Deploying jboss seam 2.0.0.GA's jee5 sample onto geronimo 2.1-SNAPSHOT...DONE Date: Fri, 16 Nov 2007 11:05:54 -0500 References: <1b5bfeb50711151738s4a0cee21ue96ea93cd32e839c@mail.gmail.com> X-Mailer: Apple Mail (2.912) X-Virus-Checked: Checked by ClamAV on apache.org On Nov 15, 2007, at 8:38 PM, Jacek Laskowski wrote: > On Nov 15, 2007 8:37 AM, Jacek Laskowski > wrote: > >> Just to let you know I'm still working on it and ended up with the >> following plan with no changes to the sample application - booking. >> With the plan I can easily deploy the sample, seam starts up >> fine...almost. The PU the application uses is not injected, but the >> duplicate class...something is not reported. Any comments greatly >> appreciated. > > Your silence was as helpful as verbal help that I did not receive and > I do really appreciate it - I read it as "you're on your way to sort > it out. keep going!" ;-) Thanks! Heh. Always glad to help! ;-) I was quite interested in this problem (I'd hit the same/similar problem deploying a Seam app a week or two ago). Afraid I've just had zero-time, lately. Thanks for chasing this one down. Hoping to look at this in more detail over the weekend... --kevan > It made me dug into the source code > deeper and deeper and finally found the solution. I couldn't believe > that it was a matter of creating the plan file with no other changes > involved. I don't have to touch the sample either. No changes, but the > plan makes Geronimo happy to deploy Seam's jee5 booking sample. > Unbelievable how much you guys did in the server. Only now could I > realize it. Awesome. > > I'm now able to run the sample when deployed with the following plan > file. What's even more interesting is that I can run it with Hibernate > JPA (!). Other than there's an issue I had to step over using a > debugger with Ejb3Configuration changed (where it checks whether > there're any jars to be processed where geronimo returns null when > exclude-unlisted-classes is set to true, but hibernate expects empty > list, i.e. Collections.EMPTY_LIST worked fine ;-)). I'm going to > describe it very soon, but the real treasure is the plan and the > supporting class - > org > .apache > .geronimo.hibernate.transaction.GeronimoTransactionManagerLookup > so Hibernate can get at Geronimo's tx manager (when openjpa's used > it's not needed and it works fine too). The only change I did > comparing to the previous plan was to change xa-transaction to > local-transaction for jdbc/__default datasource as Seam didn't like it > (don't remember what it was, but with the change it worked like a > charm and didn't mean to spend more time investigating it). > > I think having Seam working pretty well on Geronimo makes Geronimo > even more entertaining. Lots of people have asked me about it recently > and am going to check whether other examples work fine as well. > > > > > > org.jboss.seam.examples.jee5 > jboss-seam-jee5 > 2.0.0.GA > ear > > > > org.apache.geronimo.hibernate.transaction > geronimo-hibernate-transaction-manager-lookup artifactId> > jar > > > > > jboss-seam-jee5.war > > > > org.jboss.seam.examples.jee5 > jboss-seam-jee5 > 2.0.0.GA > war > > > /seam-jee5 > > > > jboss-seam-jee5.jar > > > > org.jboss.seam.examples.jee5 > jboss-seam-jee5 > 2.0.0.GA > jar > > > > > > > > jdbc/__default > org.jboss.seam.example.booking.Booking > org.jboss.seam.example.booking.Hotel > org.jboss.seam.example.booking.User > true > > > value > = > "org > .apache > .geronimo.hibernate.transaction.GeronimoTransactionManagerLookup" > /> > > > > > org.jboss.seam.example.booking.Booking > org.jboss.seam.example.booking.Hotel > org.jboss.seam.example.booking.User > true > > > > > > > seam-jee5-dbpool > > org.tranql > tranql-connector-derby-embed-xa > rar > > > > > org.jboss.seam.examples.jee5 > booking-dbpool > 2.0.0.GA > rar > > > > org.apache.geronimo.configs > system-database > car > > > > > > > javax.sql.DataSource connectionfactory-interface> > > jdbc/__default > name="DatabaseName">SystemDatabase > > > > 100 > > 5000 > > > > > > > > > > > > Jacek > > -- > Jacek Laskowski > http://www.JacekLaskowski.pl