Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Ejb - Stateless e session bean -Error Target Unreachable, identifier 'nomesBean' resolved

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, all!!

I trying very times. but it same problem. Project EJB communication other project web (I created project enterprise application in netbeans) with Glassfish Server. see in below.
You can to help me. tips or fixed the resolve this problem.

Project EJB:


Bean do stateless

Project Web


Index page

See error message in below

FATAL: JSF1073: javax.faces.FacesException obtido durante o processamento de PROCESS_VALIDATIONS 3: UIComponent-ClientId=, Message=/index.xhtml @13,73 value="#{nomesBean.nome}": Target Unreachable, identifier 'nomesBean' resolved to null FATAL: /index.xhtml @13,73 value="#{nomesBean.nome}": Target Unreachable, identifier 'nomesBean' resolved to null javax.faces.FacesException: /index.xhtml @13,73 value="#{nomesBean.nome}": Target Unreachable, identifier 'nomesBean' resolved to null at com.sun.faces.lifecycle.ProcessValidationsPhase.execute( at com.sun.faces.lifecycle.Phase.doPhase( at com.sun.faces.lifecycle.LifecycleImpl.execute( at javax.faces.webapp.FacesServlet.service( at org.apache.catalina.core.StandardWrapper.service( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.core.StandardPipeline.doInvoke( at org.apache.catalina.core.StandardPipeline.invoke( at com.sun.enterprise.web.WebPipeline.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.doService( at org.apache.catalina.connector.CoyoteAdapter.service( at at org.glassfish.grizzly.http.server.HttpHandler.runService( at org.glassfish.grizzly.http.server.HttpHandler.doHandle( at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead( at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute( at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter( at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart( at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute( at org.glassfish.grizzly.filterchain.DefaultFilterChain.process( at org.glassfish.grizzly.ProcessorExecutor.execute( at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent( at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent( at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0( at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100( at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$ at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork( at org.glassfish.grizzly.threadpool.AbstractThreadPool$ at Caused by: javax.el.PropertyNotFoundException: /index.xhtml @13,73 value="#{nomesBean.nome}": Target Unreachable, identifier 'nomesBean' resolved to null at com.sun.faces.facelets.el.TagValueExpression.getType( at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue( at javax.faces.component.UIInput.getConvertedValue( at javax.faces.component.UIInput.validate( at javax.faces.component.UIInput.executeValidate( at javax.faces.component.UIInput.processValidators( at javax.faces.component.UIComponentBase.processValidators( at javax.faces.component.UIForm.processValidators( at javax.faces.component.UIComponentBase.processValidators( at javax.faces.component.UIComponentBase.processValidators( at javax.faces.component.UIViewRoot.processValidators( at com.sun.faces.lifecycle.ProcessValidationsPhase.execute( ... 30 more Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'nomesBean' resolved to null at com.sun.el.parser.AstValue.getTarget( at com.sun.el.parser.AstValue.getType( at com.sun.el.ValueExpressionImpl.getType( at org.jboss.weld.el.WeldValueExpression.getType( at com.sun.faces.facelets.el.TagValueExpression.getType( ... 41 more
Posts: 3648
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Were you able to figure out what might went wrong?

I suspect you the web project can't find the EJB from the JNDI. Are the EJBs deployed? Is the JNDI path known/correct? May want to specify the "name" attribute for the EJB annotation:

This way this will create a reference to JNDI as "java:comp/env/MyEJB" instead of "java:/comp/env/somepackage/MyClass/myField" or something hard to decipher.

Another thing I noticed is @Named. Since you seem to be using JSF, should a @ManagedBean be more appropriate?
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic