Weird. So this has to point to either the standardjbosscmp-jdbc.xml or jbosscmp-jdbc.xml. What's really strange is the default is null. This should come from standardjbosscmp-jdbc.xml. What else is strange is that it thinks in jboss-cmp-jdbc.xml for each entity you have a datasource element. Maybee grabbing the wrong standard config?
Hunter Hillegas wrote: > I'm not so sure. Despite having my jbosscmp-jdbc.xml file included, I get > this on the console as it deploys my beans after I made Dave's change: > > [13:02:37,433,Default] Entity = ProductAttribute java:/DefaultDS null > [13:02:37,437,Default] Entity = Product java:/DefaultDS null > [13:02:37,439,Default] Entity = Order java:/DefaultDS null > [13:02:37,443,Default] Entity = OrderLineItem java:/DefaultDS null > [13:02:37,445,Default] Entity = ProductLineItem java:/DefaultDS null > [13:02:37,448,Default] Entity = ProductGroup java:/DefaultDS null > > It's apparently trying to use DefaultDS even though I explicitly tell it not > to in the jbosscmp-jdbc.xml file... > > If your config is working correctly, I'm stumped! > > >>From: Dain Sundstrom <[EMAIL PROTECTED]> >>Date: Tue, 20 Nov 2001 14:56:24 -0600 >>To: "'Dave Smith'" <[EMAIL PROTECTED]>, Hunter Hillegas >><[EMAIL PROTECTED]> >>Cc: David Jencks <[EMAIL PROTECTED]>, Torsten Schlumm >><[EMAIL PROTECTED]>, JBoss Dev >><[EMAIL PROTECTED]> >>Subject: RE: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >> >>Funny. I just did that but in >>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager line 110 where the >>datasource is looked up. And it successfully looks up my new datasource. I >>think you have a different problem. I changed the name of the hypersonic >>data source. May be the problem is your postgresql driver setup. >> >>-dain >> >> >>>-----Original Message----- >>>From: Dave Smith [mailto:[EMAIL PROTECTED]] >>>Sent: Tuesday, November 20, 2001 2:41 PM >>>To: Hunter Hillegas >>>Cc: David Jencks; Torsten Schlumm; JBoss Dev >>>Subject: Re: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >>> >>> >>>Well if you want to get down and dirty in >>>jboss/server/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/ >>>JDBCEntityMetaData.java >>>line 336 is where it sets the datasouce for each entity. On >>>line 343 you >>>could add >>>System.out.println("Enity = "+entityName+" "+dataSourceNameString+" >>>"+defaultValues.getDataSourceName()); >>> >>> >>>That should give you the datasource the entity is bound to. >>> >>> >>> >>>Hunter Hillegas wrote: >>> >>> >>>>Are we sure that the datasource name in jbosscmp-jdbc.xml >>>> >>>is even being >>> >>>>checked properly? >>>> >>>>I gave my config another look and it seems correct. Here >>>> >>>are is the console >>> >>>>log output: >>>> >>>>[11:43:51,571,AutoDeployer] Auto deploy of >>>> >>>> >>>file:/Users/hunter/Desktop/jboss-3.0.0alpha/deploy/postgresqld >>>b-default-serv >>> >>>>ice.xml >>>>[11:43:51,602,Default] Libraries adding URLClassLoader >>>> >>>1240345370 key URL >>> >>>>file:/Users/hunter/Desktop/jboss-3.0.0alpha/lib/ext/postgresql.jar >>>>[11:43:51,647,ServiceCreator] About to create the >>>>beanJBOSS-SYSTEM:service=ConnectionFactoryLoader,name=Groundswell >>>>[11:43:51,653,ServiceCreator] Created the >>>>beanJBOSS-SYSTEM:service=ConnectionFactoryLoader,name=Groundswell >>>> >>>>And the file: >>>> >>>><?xml version="1.0" encoding="UTF-8"?> >>>> >>>> >>>><!-- >>>> >>>===================================================================== >>> >>>>--> >>>><!-- >>>>--> >>>><!-- JBoss Server Configuration >>>>--> >>>><server> >>>> <classpath archives=" >>>> postgresql.jar"/> >>>> >>>> <!-- >>>> >>>==================================================================== >>> >>>>--> >>>> <!-- JDBC - Initialize the databases >>>>--> >>>> <!-- to ConnectionFactoryLoader >>>>--> >>>> <!-- >>>> >>>==================================================================== >>> >>>>--> >>>> >>>> <mbean code="org.jboss.resource.ConnectionFactoryLoader" >>>> >>>> >>>name="JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=Groundswell"> >>> >>>> <attribute >>>> >>>> >>>name="ManagedConnectionFactoryProperties">ConnectionURL=jdbc:p >>>ostgresql://lo >>> >>>>calhost/groundswell >>>> DriverClass=org.postgresql.Driver >>>> UserName=postgres >>>> Password=""</attribute> >>>> <attribute name="JndiName">Groundswell</attribute> >>>> <attribute >>>>name="TransactionManagerName">java:/TransactionManager</attribute> >>>> >>>> <!--Anonymous mbean-ref to database being started --> >>>> <mbean-ref>JBOSS-SYSTEM:service=PostgreSQL</mbean-ref> >>>> >>>> <mbean-ref >>>> >>>> >>>name="ResourceAdapterName">JCA:service=RARDeployment,name=Minerva JDBC >>> >>>>LocalTransaction ResourceAdapter</mbean-ref> >>>> <mbean-ref >>>> >>>> >>>name="ConnectionManagerFactoryLoaderName">JCA:service=Connecti >>>onManagerFacto >>> >>>>ryLoader,name=MinervaSharedLocalCMFactory</mbean-ref> >>>> <attribute name="ConnectionManagerProperties"># >>>> #Wed Aug 15 16:17:29 EDT 2001 >>>> MinSize=0 >>>> MaxSize=10 >>>> BlockingTimeoutMillis=5000 >>>> IdleTimeoutMinutes=30 >>>> CleanupIntervalMinutes=10 >>>> MaxIdleTimeoutPercent=1.0 >>>> </attribute> >>>> <attribute name="PrincipalMappingClass"> >>>> org.jboss.resource.security.ManyToOnePrincipalMapping >>>> </attribute> >>>> <attribute >>>>name="PrincipalMappingProperties">UserName=postgres</attribute> >>>> </mbean> >>>></server> >>>> >>>> >>>>>From: David Jencks <[EMAIL PROTECTED]> >>>>>Date: Tue, 20 Nov 2001 13:48:05 -0500 >>>>>To: Torsten Schlumm <[EMAIL PROTECTED]> >>>>>Cc: Hunter Hillegas <[EMAIL PROTECTED]>, >>>>>[EMAIL PROTECTED] >>>>>Subject: Re: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >>>>> >>>>>Have you guys included the latest updates to the >>>>> >>>ConnectionFactoryLoader >>> >>>>>configuration format? The hsqldb example has been updated, >>>>> >>>the manual >>> >>>>>likewise for mysql and postgres. If updating is not the >>>>> >>>problem, could you >>> >>>>>post your cfl config? does DefaultDS get started properly >>>>> >>>on your system? >>> >>>>>Thanks >>>>>david jencks >>>>> >>>>>On 2001.11.20 12:57:30 -0500 Torsten Schlumm wrote: >>>>> >>>>> >>>>>>Hunter, >>>>>> >>>>>>I've seen the same thing with mySQL today (it did work with the CVS >>>>>>sources >>>>>>from about 3 weeks ago). >>>>>> >>>>>>After having a closer look at the list of registered MBeans >>>>>>(localhost:8082) >>>>>>I found it (at least something :) >>>>>>My mysqlDS was perfectly registered but not started. After >>>>>> >>>starting it by >>> >>>>>>hand no problems anymore - deployment works. >>>>>> >>>>>>If that still doesn't work for you I could also send you >>>>>> >>>the relevant >>> >>>>>>files >>>>>>from my setup/beans. >>>>>> >>>>>>I will also try to work out why the bloody thing doesn't >>>>>> >>>get started. >>> >>>>>>Anyone any ideas?? >>>>>> >>>>>>Cheers >>>>>>Torsten >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>On Mon, 19 Nov 2001 16:06:25 -0800 >>>>>>Hunter Hillegas <[EMAIL PROTECTED]> wrote: >>>>>> >>>>>> >>>>>> >>>>>>>So far nothing from this end. >>>>>>> >>>>>>>If you get a chance to look at or if anyone else has any >>>>>>> >>>ideas, please >>> >>>>>>chime >>>>>> >>>>>> >>>>>>>in? >>>>>>> >>>>>>>Is no one else running Rabbit Hole with PostgreSQL and 2.0 EJB? >>>>>>> >>>>>>> >>>>>>> >>>>>>>>From: Dain Sundstrom <[EMAIL PROTECTED]> >>>>>>>>Date: Mon, 19 Nov 2001 16:14:21 -0600 >>>>>>>>To: "'Hunter Hillegas'" <[EMAIL PROTECTED]>, Dain Sundstrom >>>>>>>><[EMAIL PROTECTED]>, JBoss Dev >>>>>>>> >>>>>>>> >>>>><[EMAIL PROTECTED]> >>>>> >>>>>>>>Subject: RE: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >>>>>>>>The ds jndi name is loaded in the metadata object of >>>>>>>> >>>entities in the >>> >>>>>>>>...plulgin.cmp.jdbc.metadata package. Then the ds is >>>>>>>> >>>looked up in >>> >>>>>>the >>>>>> >>>>>> >>>>>>>>JDBCStoreManager init method. Finally it is used in the >>>>>>>> >>>JDBCCommand >>> >>>>>>object. >>>>>> >>>>>> >>>>>>>>-dain >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>-----Original Message----- >>>>>>>>>From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] >>>>>>>>>Sent: Monday, November 19, 2001 3:50 PM >>>>>>>>>To: Dain Sundstrom; JBoss Dev >>>>>>>>>Subject: Re: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >>>>>>>>> >>>>>>>>> >>>>>>>>>I haven't dug around in the source yet. If you can give me a >>>>>>>>>pointer where >>>>>>>>>to look, I'll check it out... >>>>>>>>> >>>>>>>>>If I remove DefaultDS (remove the Hypersonic service XML >>>>>>>>>file), my beans >>>>>>>>>don't deploy at all, complaining that DefaultDS is missing... So >>>>>>>>> >>>>>>>>> >>>>>>it's >>>>>> >>>>>> >>>>>>>>>definitely not picking up my request for a different >>>>>>>>>datasource to be used. >>>>>>>>> >>>>>>>>> >>>>>>>>>Hunter >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>From: Dain Sundstrom <[EMAIL PROTECTED]> >>>>>>>>>>Date: Mon, 19 Nov 2001 15:40:42 -0600 >>>>>>>>>>To: "'Hunter Hillegas'" <[EMAIL PROTECTED]>, JBoss Dev >>>>>>>>>><[EMAIL PROTECTED]> >>>>>>>>>>Subject: RE: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >>>>>>>>>> >>>>>>>>>>Looks right to me. Did you try tracking this down in the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>source? I'll look >>>>>>>>> >>>>>>>>> >>>>>>>>>>at it later but I'm a little busy right now. >>>>>>>>>> >>>>>>>>>>-dain >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>-----Original Message----- >>>>>>>>>>>From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] >>>>>>>>>>>Sent: Monday, November 19, 2001 1:48 PM >>>>>>>>>>>To: JBoss Dev >>>>>>>>>>>Subject: [JBoss-dev] 2.0 jar Really Likes DefaultDS? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>I am deploying a 2.0EJB jar into RH3. >>>>>>>>>>> >>>>>>>>>>>Here's my jbosscmp-jdbc.xml file: >>>>>>>>>>> >>>>>>>>>>><?xml version="1.0" encoding="UTF-8"?> >>>>>>>>>>><!DOCTYPE jbosscmp-jdbc> >>>>>>>>>>> >>>>>>>>>>><jbosscmp-jdbc> >>>>>>>>>>> <defaults> >>>>>>>>>>> <datasource>java:/Groundswell</datasource> >>>>>>>>>>> <type-mapping>PostgreSQL</type-mapping> >>>>>>>>>>> <debug>true</debug> >>>>>>>>>>> <create-table>true</create-table> >>>>>>>>>>> <remove-table>false</remove-table> >>>>>>>>>>> <read-only>false</read-only> >>>>>>>>>>> <time-out>300</time-out> >>>>>>>>>>> <select-for-update>false</select-for-update> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>><preferred-relation-mapping>foreign-key</preferred-relat >>>>>>>>> >>>ion-mapping> >>> >>>>>>>>>>> </defaults> >>>>>>>>>>></jbosscmp-jdbc> >>>>>>>>>>> >>>>>>>>>>>No matter what, the jar tries to run against DefaultDS when I >>>>>>>>>>>want it to run >>>>>>>>>>>against 'Groundswell' as the datasource. >>>>>>>>>>> >>>>>>>>>>>What am I doing wrong? >>>>>>>>>>> >>>>>>>>>>>Hunter >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>_______________________________________________ >>>>>>>>>>>Jboss-development mailing list >>>>>>>>>>>[EMAIL PROTECTED] >>>>>>>>>>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>_______________________________________________ >>>>>>>>>Jboss-development mailing list >>>>>>>>>[EMAIL PROTECTED] >>>>>>>>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>_______________________________________________ >>>>>>>Jboss-development mailing list >>>>>>>[EMAIL PROTECTED] >>>>>>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>>>>>> >>>>>>> >>>>>>_________________________________________________________ >>>>>>Do You Yahoo!? >>>>>>Get your free @yahoo.com address at http://mail.yahoo.com >>>>>> >>>>>> >>>>>>_______________________________________________ >>>>>>Jboss-development mailing list >>>>>>[EMAIL PROTECTED] >>>>>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>>>>> >>>>>> >>>>>> >>>>>> >>>>>_______________________________________________ >>>>>Jboss-development mailing list >>>>>[EMAIL PROTECTED] >>>>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>>>> >>>>> >>>> >>>>_______________________________________________ >>>>Jboss-development mailing list >>>>[EMAIL PROTECTED] >>>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>>> >>>> >>>> >>> >>> >>>_______________________________________________ >>>Jboss-development mailing list >>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/jboss-development >>> >>> > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development