I checked that I have the bean included in jbosscmp-jdbc.xml & it is - I basically copied both files (ejb-jar.xml & jbosscmp-jdbc.xml) from the CMP2.0 docs
Files are below - any help greatly appreciated. ( I also tried <cmp-version>2.0</cmp-version> instead of <cmp-version>2.x</cmp-version> incase this was the problem ... no luck :-( Regards, Niall. ------------------------------------------------------------ <?xml version="1.0"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd"> <ejb-jar> <enterprise-beans> <entity> <description>Reservation</description> <ejb-name>ReservationEJB</ejb-name> <home>com.sykon.em.reservations.ejb.ReservationHome</home> <remote>com.sykon.em.reservations.ejb.Reservation</remote> <local-home>com.sykon.em.reservations.ejb.ReservationLocalHome</local-home> <local>com.sykon.em.reservations.ejb.ReservationLocal</local> <ejb-class>com.sykon.em.reservations.ejb.ReservationEJB</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>java.lang.String</prim-key-class> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>Reservation</abstract-schema-name> <cmp-field><field-name>id</field-name></cmp-field> <primkey-field>id</primkey-field> </entity> </enterprise-beans> </ejb-jar> ------------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jbosscmp-jdbc> <jbosscmp-jdbc> <enterprise-beans> <entity> <ejb-name>ReservationEJB</ejb-name> <table-name>Reservation</table-name> <datasource>java:/EMDB</datasource> <type-mapping>mySQL</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> <pk-constraint>false</pk-constraint> <read-ahead>true</read-ahead> </entity> </enterprise-beans> </jbosscmp-jdbc> ------------------------------------------------------------ -----Original Message----- From: Jozsa Kristof [mailto:[EMAIL PROTECTED]] Sent: 19 January 2002 11:50 To: Niall Keane Cc: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss 3.0.0alpha problem Make sure you include the bean in jbosscmp-jdbc.xml as well. Christopher On Thu, Jan 17, 2002 at 08:38:55PM -0000, Niall Keane wrote: > Hi, > > When trying out my first CMP.20 bean on JBoss3.0.0 I get the error below - > is the "TopicConnectionFactory" related to JMS & > why is this error occuring when deploying an Entity Bean (with nothing to do > with JMS). > > Kind Regards, > > Niall. > > Error: > [2002-01-17 20:32:40,740,ContainerFactory,ERROR] Could not deploy > file:/C:/jboss-3.0.0alpha/deploy/Default/reservations.jar > javax.naming.NameNotFoundException: TopicConnectionFactory 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:365) > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349) > at javax.naming.InitialContext.lookup(InitialContext.java:350) > at > org.jboss.ejb.plugins.AbstractInstanceCache.init(AbstractInstanceCache.java: > 347) > at org.jboss.ejb.EntityContainer.init(EntityContainer.java:310) > at org.jboss.ejb.Application.start(Application.java:201) > at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382) > at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467) > at > org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:444) > at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654) > at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327) > at java.lang.Thread.run(Thread.java:484) > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
