Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 22648 invoked from network); 7 Mar 2008 00:06:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2008 00:06:14 -0000 Received: (qmail 5264 invoked by uid 500); 7 Mar 2008 00:06:05 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 5241 invoked by uid 500); 7 Mar 2008 00:06:05 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 5228 invoked by uid 99); 7 Mar 2008 00:06:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 16:06:04 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.blevins@visi.com designates 208.42.176.212 as permitted sender) Received: from [208.42.176.212] (HELO g2host.com) (208.42.176.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 00:05:13 +0000 Received: from [76.94.51.83] (account dblevins@visi.com HELO [192.168.42.22]) by mailfront1.g2host.com (CommuniGate Pro SMTP 5.1.14) with ESMTPSA id 40500941 for user@geronimo.apache.org; Thu, 06 Mar 2008 17:59:53 -0600 Message-Id: From: David Blevins To: user@geronimo.apache.org In-Reply-To: <15884374.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Geronimo 2.1 and Seam Date: Thu, 6 Mar 2008 15:59:58 -0800 References: <47BE30FE.9000002@gmail.com> <15703423.post@talk.nabble.com> <1b5bfeb50802261940p179cd494k9a391d43c5846fc4@mail.gmail.com> <15721151.post@talk.nabble.com> <15726090.post@talk.nabble.com> <1b5bfeb50802271729g4a2a8a6dl56581c2d86a8d660@mail.gmail.com> <1b5bfeb50802271736l4b6f3d98nc16d56fa19a8f57f@mail.gmail.com> <7E66A1C9-EB6D-4909-B5DB-DC5724800146@yahoo.com> <1b5bfeb50802271801j257d7ea6w76b975b76ba37e6f@mail.gmail.com> <15749616.post@talk.nabble.com> <59EA35F4-350B-4A9A-8C72-4ED09F0B5F87@yahoo.com> <993F0E8B-9ECF-4840-B55B-26A94CD5CA6B@yahoo.com> <47C85CF7.7000905@gmail.com> <15810073.post@talk.nabble.com> <1b5bfeb50803031030t7a18dbdbq27f07b19b84f2083@mail.gmail.com> <15840865.post@talk.nabble.com> <962674BE-1B93-4E17-9937-D722C732F373@yahoo.com> <15884374.post@talk.nabble.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 6, 2008, at 1:30 PM, Burt Prior wrote: > ... > 13:16:36,385 INFO [OpenEJB] invoking method create on > jboss-seam.jar/EjbSynchronizations > 13:16:36,385 INFO [OpenEJB] finished invoking method create > 13:16:36,495 INFO [Transaction] TX Required: Started transaction > org.apache.geronimo.transaction.manager.TransactionImpl@13a6ecc > 13:16:36,495 ERROR [OpenEJB] The bean instance business method > encountered a > system exception: Callback methods cannot access parameters > java.lang.IllegalStateException: Callback methods cannot access > parameters > at > org > .apache > .openejb > .core > .interceptor > .ReflectionInvocationContext > .getParameters(ReflectionInvocationContext.java:71) > at > org > .jboss > .seam > .intercept > .EJBInvocationContext.getParameters(EJBInvocationContext.java:34) > at > org > .jboss > .seam > .intercept > .SeamInvocationContext.getParameters(SeamInvocationContext.java:49) > ... > 13:16:36,495 WARN [Component] Exception calling component @Destroy > method: > hotelBooking > javax.ejb.EJBException: The bean encountered a non-application > exception.; > nested exception is: > java.lang.IllegalStateException: Callback methods cannot access > parameters > at > org > .apache > .openejb > .core > .ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java: > 366) > at > org > .apache > .openejb > .core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:323) > at > org > .apache > .openejb > .util > .proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49) > at $Proxy77.destroy(Unknown Source) > ... > > I'm really stuck on this. Any idea's on how I can resolve this last > error? This it seems like some code is trying to call InvocationContext.getParameters() from inside a lifecycle method. I can't find a reference to this in the spec, but the TCK definitely says this must throw an IllegalStateException. -David > djencks wrote: >> >> I don't have oracle set up here which makes it hard to test much. >> >> Right now you have the persistence element in your geronimo plan set >> up so that it's using the jdbc/ElvisPool configured later on in the >> same plan. While it was my idea originally to introduce the "ext- >> module" stuff I now think its usually a bad idea. In this case there >> are no config-properties specified in the plan for the pool, so it's >> not surprising that oracle can't figure out where the db is. >> >> From the end of your post it looks like you've set up a pool using >> the wizard. I'd recommend using that one. So >> - remove the entire ext-module section from your plan. >> - Change the persistence element so the jta-datasource is whatever >> you named the datasource in the wizard-created pool. >> - Remove the oracle dependency from the plan and replace it with a >> dependency on the wizard-created pool. >> - I don't know if you'll need the non-jta-datasource. I strongly >> recommend removing it until you find out you need it. If present, it >> absolutely needs to be a different datasource, with no-transaction >> configured. >> >> hope this helps >> david jencks >> >> >> >> On Mar 4, 2008, at 5:07 PM, Burt Prior wrote: >> >>> >>> Hi Jacek and David, >>> >>> Here is the stack trace of when I try to 'register' myself in the >>> booking >>> application: >>> >>> and here is my 'jboss-seam-jee5-geronimo-plan.xml': >>> >>> >>> >>> >>> >>> >>> org.jboss.seam.examples.jee5 >>> jboss-seam-jee5 >>> 2.1.0.A1 >>> ear >>> >>> >>> >>> org.apache.geronimo.hibernate >>> >>> geronimo-hibernate-transaction-manager-lookup>> artifactId> >>> jar >>> >>> >>> >>> >>> oracle >>> jdbc >>> 10.2 >>> jar >>> >>> >>> >>> >>> >>> concurrent >>> concurrent >>> jar >>> >>> >>> >>> >>> >>> >>> jboss-seam-jee5.war >>> >>> >>> >>> org.jboss.seam.examples.jee5 >>> jboss-seam-jee5 >>> 2.1.0.A1 >>> war >>> >>> >>> /seam-jee5 >>> >>> >>> >>> >>> jboss-seam-jee5.jar >>> >>> >>> >>> >>> org.jboss.seam.examples.jee5 >>> jboss-seam-jee5 >>> 2.1.0.A1 >>> jar >>> >>> >>> >>> >>> >>> >>> >>> org.hibernate.ejb.HibernatePersistence >>> jdbc/ElvisPool >>> jdbc/ElvisPool >>> org.jboss.seam.example.booking.Booking >>> org.jboss.seam.example.booking.Hotel >>> org.jboss.seam.example.booking.User >>> true >>> >>> >>> >> value="org.hibernate.dialect.OracleDialect"/> >>> >> name="hibernate.transaction.manager_lookup_class" >>> >>> value >>> ="org.apache.geronimo.hibernate.transaction.GeronimoTransactionMa >>> nagerLookup" >>> /> >>> >>> >>> >>> >> name="hibernate.transaction.flush_before_completion" >>> value="true"/> >>> >> value="org.hibernate.cache.HashtableCacheProvider"/> >>> >>> >>> >>> >>> >>> >>> org.jboss.seam.example.booking.Booking >>> org.jboss.seam.example.booking.Hotel >>> org.jboss.seam.example.booking.User >>> true >>> >>> >>> >>> >>> >>> >>> >>> >>> seam-jee5-dbpool >>> >> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"> >>> org.tranql >>> tranql-connector-oracle-local >>> rar >>> >>> >>> >>> >>> org.jboss.seam.examples.jee5 >>> booking-dbpool >>> 2.1.0.A1 >>> rar >>> >>> >>> >>> org.apache.geronimo.configs >>> system-database >>> car >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> javax.sql.DataSource>> connectionfactory-interface> >>> >>> >>> jdbc/ElvisPool >>> >>> >>> >>> >>> >>> >>> >>> >>> 8 >>> 4 >>> >>> 5000 >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> and here is my 'persistence.xml': >>> >>> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://java.sun.com/xml/ns/ >>> persistence >>> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" >>> version="1.0"> >>> >>> org.hibernate.ejb.HibernatePersistence >>> ElvisPool >>> >>> >>> >> value="org.hibernate.dialect.OracleDialect"/> >>> >> >>> value >>> ="org.apache.geronimo.hibernate.transaction.GeronimoTransactionMa >>> nagerLookup"/> >>> >>> >>> >>> >>> >>> >>> >>> >> name="hibernate.transaction.flush_before_completion" >>> value="true"/> >>> >> value="org.hibernate.cache.HashtableCacheProvider"/> >>> >>> >>> >>> >>> >>> I think the 'jta-data-source' is incorrect, but I've tried every >>> example I >>> could find with no luck. >>> >>> I have my Geronimo database pool configured correctly with the >>> usual Oracle >>> thin driver; >>> >>> >>> console.dbpool >>> ElvisPool >>> 1.0 >>> rar >>> >>> >>> >>> Could I ask for your help in this? I'm just not able to connect to >>> the >>> geronimo's database pool, and I'm not sure why. >>> >>> Thanks again, >>> .Burt >>> >>> >>> >>> >>> Jacek Laskowski wrote: >>>> >>>> On Mon, Mar 3, 2008 at 10:16 AM, Burt Prior >>>> wrote: >>>> >>>>> 'java.sql.SQLException - invalid oracle url specified: >>>>> OracleDataSource.makeURL'. >>>> >>>> Show the plan for the database pool and the entire stack trace. If >>>> oracle thin driver class barfs it could mean that the url is >>>> incorrect >>>> which might be easy to fix. In the meantime write a sample jdbc >>>> program to connect to the database to make sure it can be connected >>>> from outside. >>>> >>>> Jacek >>>> >>>> -- >>>> Jacek Laskowski >>>> http://www.JacekLaskowski.pl >>>> >>>> >>> >>> -- >>> View this message in context: http://www.nabble.com/Geronimo-2.1- >>> and-Seam-tp15621154s134p15840865.html >>> Sent from the Apache Geronimo - Users mailing list archive at >>> Nabble.com. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/Geronimo-2.1-and-Seam-tp15621154s134p15884374.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. > >