Java - NameNotFoundException

   
Vista:

NameNotFoundException

Publicado por Rubén (2 intervenciones) el 17/09/2008 11:24:05
Hola amigos;

Tengo una duda, trabajo con EJB sobre JBOSS con JSF y RICHFACES.

me da el siguiente error....
11:19:19,346 ERROR [STDERR] javax.naming.NameNotFoundException: DecodificadoraFacadeBean not bound
11:19:19,346 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
11:19:19,346 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
11:19:19,346 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
11:19:19,346 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
11:19:19,361 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
11:19:19,361 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
11:19:19,361 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
11:19:19,361 ERROR [STDERR] at javax.naming.InitialContext.lookup(Unknown Source)
11:19:19,361 ERROR [STDERR] at com.tecnocom.alba2.administracionSeguridad.manager.DecodificadoraMB.<init>(DecodificadoraMB.java:158)
11:19:19,361 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
11:19:19,361 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
11:19:19,361 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
11:19:19,361 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source)
11:19:19,361 ERROR [STDERR] at java.lang.Class.newInstance0(Unknown Source)
11:19:19,361 ERROR [STDERR] at java.lang.Class.newInstance(Unknown Source)
11:19:19,361 ERROR [STDERR] at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:277)
11:19:19,377 ERROR [STDERR] at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:527)
11:19:19,377 ERROR [STDERR] at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
11:19:19,377 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
11:19:19,377 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
11:19:19,377 ERROR [STDERR] at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
11:19:19,377 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:86)
11:19:19,377 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
11:19:19,377 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
11:19:19,377 ERROR [STDERR] at javax.faces.component.UISelectItems.getValue(UISelectItems.java:130)
11:19:19,377 ERROR [STDERR] at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils.java:323)
11:19:19,377 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:675)
11:19:19,392 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:793)
11:19:19,392 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
11:19:19,392 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
11:19:19,392 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
11:19:19,392 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
11:19:19,392 ERROR [STDERR] at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
11:19:19,392 ERROR [STDERR] at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
11:19:19,392 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
11:19:19,392 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
11:19:19,392 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
11:19:19,392 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
11:19:19,392 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:284)
11:19:19,408 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
11:19:19,408 ERROR [STDERR] at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
11:19:19,408 ERROR [STDERR] at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
11:19:19,408 ERROR [STDERR] at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
11:19:19,408 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
11:19:19,408 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
11:19:19,408 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
11:19:19,408 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
11:19:19,408 ERROR [STDERR] at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
11:19:19,408 ERROR [STDERR] at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
11:19:19,424 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
11:19:19,424 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
11:19:19,424 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
11:19:19,424 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
11:19:19,424 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
11:19:19,424 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:19:19,424 ERROR [STDERR] at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
11:19:19,424 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
11:19:19,424 ERROR [STDERR] at org.ajax4jsf.Filter.doFilter(Filter.java:175)
11:19:19,424 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:19:19,424 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:19:19,439 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
11:19:19,439 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:19:19,439 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:19:19,439 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
11:19:19,439 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
11:19:19,439 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
11:19:19,439 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
11:19:19,439 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
11:19:19,439 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:19:19,439 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
11:19:19,455 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:19:19,455 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
11:19:19,455 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
11:19:19,455 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
11:19:19,455 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
11:19:19,455 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)

El código que ejecuto es el siguiente:
try {
if(ctx == null)
ctx = new InitialContext();

objDecodi = (DecodificadoraFacade) ctx.lookup("alba2/DecodificadoraFacadeBean/local");
} catch (NamingException e) {
e.printStackTrace();
}


me da en la linea del lookup()

Es un proyecto de Enterprise Aplication Project, con un proyecto EJB y otro WEB


Muchas gracias de antemano!!!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:NameNotFoundException

Publicado por mario (622 intervenciones) el 18/09/2008 19:17:44
Si estas declarando la referencia del EJB en el web.xml???

tambien puede ser q no este definido el EJB en el servidor de aplicaciones
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:NameNotFoundException

Publicado por Rubén (2 intervenciones) el 19/09/2008 08:32:15
y com ose hacen cada una de las 2 cosas...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:NameNotFoundException

Publicado por mario (622 intervenciones) el 19/09/2008 15:59:50
Q onda

t dejo una liga de comolo hacen con xdoclet y eclipse

http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html

saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar