[jboss-user] [EJB 3.0] - Is it possible to deploy EJB2 style entity beans in a EJB 3.

jeklund do-not-reply at jboss.com
Tue Aug 28 05:11:12 EDT 2007


Hi everybody,

I'm about to try a phased migration from EJB2 to EJB3. When I changed version to <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee"> in ejb-jar.xml, JBoss lists every session bean as EJB3-service, but none of the old entity beans show up in the debug log.

However I get a lot of 
"2007-08-28 09:00:30,558 WARN  [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.ejbca.core.ejb.ra.UserDataLocal and ejbLink of UserData in  ejb-jar.xml of UserAdminSession it might not be deployed yet" warnings for the entity beans.

and later I get
"2007-08-28 09:00:31,271 DEBUG [org.jboss.ejb3.stateless.StatelessDelegateWrapper] Starting failed jboss.j2ee:ear=ejbca.ear,jar=ejbca-ejb.jar,name=TableProtectSession,service=EJB3
java.lang.RuntimeException: Failed to populate ENC: env/ejb/TableProtectDataLocal global jndi name was null"

I also noticed some
"2007-08-28 09:00:17,579 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered." but I'm not sure this is related..

Isn't it possible to start the migration by simple running the old code in it's new environment? I'm using JBoss 4.2.1.GA and Sun's Java 1.5.0_12 on Ubuntu x64.

Any help would be greatly appreciated,
Johan


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078641#4078641

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078641



More information about the jboss-user mailing list