[jboss-user] [EJB 3.0] - Re: Session bean lookup fails JBoss 5, worked in 4.0.5

jaikiran do-not-reply at jboss.com
Thu Jul 17 09:59:07 EDT 2008


anonymous wrote : javax.naming.NameNotFoundException: ec20 not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
  | at javax.naming.InitialContext.lookup(InitialContext.java:351)
  | at com.pearson.util.LookupUtil.lookupEJB(LookupUtil.java:59)
  | at com.pearson.util.SWStartup.initApp(SWStartup.java:36)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
  | at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
  | at org.jboss.seam.Component.callPostConstructMethod(Component.java:2039)
  | at org.jboss.seam.intercept.JavaBeanInterceptor$1.proceed(JavaBeanInterceptor.java:126)
  | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at org.jboss.seam.intercept.Interceptor.postConstruct(Interceptor.java:184)
  | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:74)
  | at org.jboss.seam.intercept.Interceptor.postConstruct(Interceptor.java:184)
  | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:74)
  | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
  | at org.jboss.seam.intercept.RootInterceptor.invokeAndHandle(RootInterceptor.java:84)
  | at org.jboss.seam.intercept.JavaBeanInterceptor.callPostConstruct(JavaBeanInterceptor.java:131)
  | at org.jboss.seam.intercept.JavaBeanInterceptor.postConstruct(JavaBeanInterceptor.java:116)
  | at org.jboss.seam.Component.instantiateJavaBean(Component.java:1325)
  | at org.jboss.seam.Component.instantiate(Component.java:1271)
  | at org.jboss.seam.Component.newInstance(Component.java:1970)
  | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
  | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
  | at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:596)
  | at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
  | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3862)
  | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
  | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
  | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
  | at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
  | at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
  | at org.jboss.web.deployers.WebModule.start(WebModule.java:90) 

The lookup seems to be happening when the web application (WAR) is being deployed and probably before the EJB is deployed and bound to JNDI. Looks like a deployment ordering issue. Is this EJB and WAR part of an EAR? If yes, then the deployment order is determined by the order in which the "module" are mentioned in the application.xml. What does your application.xml look like? And do you have a jboss-app.xml?

While posting the logs or code or xml content, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted


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

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



More information about the jboss-user mailing list