1 Reply Latest reply on Aug 25, 2007 11:15 PM by Matt Drees

    seam-gen and hibernate tools! Target Unreachable, identifier

    Mohammad Dashti Newbie

      Hi there !

      I wanted to generate my entites automatically from my database !

      I used jboss-seam-2.0.0.BETA1 , jboss-4.2.1.GA, JBossTools-200706241629-nightly-ALL-win32.

      I had 2 ways:

      1. I used hibernate tools reverse engineering to do this approach!
      I get the lastest dev Jboss IDE from the eclipse update center
      and do the tutorial follow the flash ,
      http://www.jboss.com/products/seam/captivate/SeamHBTools.swf

      there was a big problem that there was no longer @jboss.seam.annotations.IfInvalid in the jboss-seam.jar. and after deleting all references to it, it doesn't work either !

      how can I get it work ??!?

      2. after that I used Seam Gen:
      first of all , I made a new project, and the I used generate entites, it worked properly, but when I run the project, I can login, and after logging in, I go to one of the xyzList pages, and after trying to use Create New row or Search the table, I encounter this exeption:


      so now i cannot ran this tutorial ,
      maybe this tutorial cannot work in the lastest Jboss IDE or something i do wrong .

      Exception during request processing:
      Caused by javax.el.PropertyNotFoundException with message: "Target Unreachable, identifier 'humansHome' resolved to null"
      
      org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
      org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
      org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
      org.jboss.seam.navigation.Page.preRender(Page.java:275)
      org.jboss.seam.navigation.Pages.preRender(Pages.java:292)
      org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:541)
      org.jboss.seam.jsf.SeamPhaseListener.beforeRender(SeamPhaseListener.java:473)
      org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
      org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
      org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      java.lang.Thread.run(Unknown Source)
      
      


      and I couldn't find any help all over the world wide web !!!

      please help me ! please !

        • 1. Re: seam-gen and hibernate tools! Target Unreachable, identi
          Matt Drees Master

           

          "dashti" wrote:

          1. I used hibernate tools reverse engineering to do this approach!


          Yeah, that's old and deprecated. Seam-gen is its replacement.

          "dashti" wrote:

          Exception during request processing:
          Caused by javax.el.PropertyNotFoundException with message: "Target Unreachable, identifier 'humansHome' resolved to null"
          ...
          



          That's strange. Is there a class called HumansHome that is correctly annotated @Name("humansHome")?

          Maybe try seam-gen from the command line (outside of Jboss IDE).