[jboss-user] [Installation, Configuration & DEPLOYMENT] - Splitting EJB components into multiple jar files

rjstanford do-not-reply at jboss.com
Sun Aug 5 14:56:19 EDT 2007


I'm splitting an existing Seam project into multiple EJB jars - one for the data model, one for the services, et cetera.

During startup, I get this INFO log:

13:50:20,144 INFO  [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: com.kimbia.actions.RegisterAction, JNDI: Company.ear/RegisterAction/local

In the components.xml file that's located in my war file's /WEB-INF/ directory, I have this line:

<core:init jndi-pattern="Company.ear/#{ejbName}/local" debug="false" />

But when I try to refer to the component, I get the following exception:

org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
  | ...
  | Caused by: javax.naming.NameNotFoundException: Company.ear not bound 

Changing the jndi-pattern changes the error message, so that seems to be working fine.  But from the log, it looks as if "Company.ear/.../local" is exactly the right pattern to be using.

Any advice would be very welcomed at this point.

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

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



More information about the jboss-user mailing list