Hi there, you have to set the datasource mapping in the jboss subtask of the ejbdoclet task in the samples build.xml.
Look in the standardjbosscmp-jdbc.xml in your Jboss conf dir, to find the correct name for the Postgres mapping. It might be that you also have to change the datasource name to the name your Postgres datasource is configured under Jboss (which is probably not java:/airline_DS). The name (default is PostgresDS) is configured in the postgres-service.xml in your deploy directory. CU Leander Am Mon, 2002-07-29 um 10.42 schrieb [EMAIL PROTECTED]: > Hi, > > I am using the CVS version of middlegen checked out today (29/7/02), > Jboss 3.0.0, Ant 1.5, and a postgresql database. > > I have managed to successfully build the ear file (connect to the DB ok, > etc). When I try to deploy it, Jboss reports the error: > > 18:22:34,911 ERROR [EjbModule] Initialization failed > org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : > datasource-mapping not found at > >org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:365) > ... > ... > > > I looked in the generated /build/ejb-meta/META-INF/jbosscmp-jdbc.xml > file and the datasource-mapping tag is indeed empty: > ... > <defaults> > <datasource>java:/airline_DS</datasource> > <datasource-mapping></datasource-mapping> > </defaults> > ... > > Have I missed some configuration somewhere? Can anyone help? > > > Thanks! > > -- > Glenn > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > _______________________________________________ > middlegen-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/middlegen-user -- M.-Leander Reimer Dipl.-Inf. (FH) Techdivision Kunstm�hlstr. 17 83022 Rosenheim Fon: (08031) 356 38 32 Fax: (08031) 356 38 48 Mail: [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code1 _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
