it's off-topic for this list, it's a jboss thing, but here's how to do it anyway.
* copy the example mssql file from $JBOSS_HOME/docs/examples/jca/ into your deploy directory, and that should deploy a datasource called MSSQLDS into your Jboss container. * change the <property name="datasource.jndi.name" value="java:/DefaultDS"/> line in the samples/config/ejb/jboss.xml file to say MSSQLDS instead of DefaultDS * rebuild airline sample should go! if it doesn't work, the right place to get help is the jboss forums at jboss.org :) good luck! > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, 29 March 2003 10:35 a.m. > To: [EMAIL PROTECTED] > Subject: [Middlegen-user] Deploy ear file to jboss > > > I am using jboss 3.0.4 with mssql server2000, > I have successfully built the airline example > with middlegen 2.0 beta 1, jboss started with no errors, > but when I drop the ear file into > jboss deploy directory, I get errors such as: > > Caused by: javax.naming.NameNotFoundException: DefaultDS not bound > at > org.jnp.server.NamingServer.getBinding(NamingServer.java:495) > at > org.jnp.server.NamingServer.getBinding(NamingServer.java:503) > at > org.jnp.server.NamingServer.getObject(NamingServer.java:509) > at org.jnp.server.NamingServer.lookup(NamingServer.java:282) > at > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464) > at > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443) > at javax.naming.InitialContext.lookup(InitialContext.java:347) > at > org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEnt > > Do I need to copy deployment descriptors from middlegen build > directory also or > is the ear file enough? > I have searched the archives but cannot find anything. > Thanks in advance, > Mark > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > middlegen-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/middlegen-user > ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
