6 Replies Latest reply on Apr 6, 2006 9:55 PM by vlad_oz

    problems with jboss-seam-booking example

    vlad_oz

      Hi,
      I'm new to jboss seam framework. Trying to get the booking example running. Downloaded JBoss IDE and followed the instructions in the "movie". Can build and deploy jboss-seam and the examples ok. The login page and the registration page of the booking example work fine. But when I try to register a new user I get the following error:

      javax.servlet.ServletException: Could not instantiate Seam component
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
      org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      org.jboss.seam.InstantiationException: Could not instantiate Seam component
      org.jboss.seam.Component.newInstance(Component.java:605)
      org.jboss.seam.Component.newInstance(Component.java:1104)
      org.jboss.seam.Component.getInstance(Component.java:1055)
      org.jboss.seam.Component.getInstance(Component.java:1038)
      org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
      com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:130)
      com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
      com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
      com.sun.el.parser.AstValue.getType(AstValue.java:34)
      com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:171)
      com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:60)
      com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:94)
      org.apache.myfaces.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:55)
      org.apache.myfaces.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:324)
      org.apache.myfaces.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:643)
      org.apache.myfaces.renderkit.html.HtmlSecretRendererBase.getConvertedValue(HtmlSecretRendererBase.java:103)
      javax.faces.component.UIInput.getConvertedValue(UIInput.java:289)
      javax.faces.component.UIInput.validate(UIInput.java:265)
      javax.faces.component.UIInput.processValidators(UIInput.java:144)
      javax.faces.component.UIForm.processValidators(UIForm.java:68)
      javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
      javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:142)
      org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:240)
      org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      Many thanks in advance!

        • 1. Re: problems with jboss-seam-booking example
          kryptontri

          did your application deploy w/o any errors ? Check your datasource started up correctly and you have it configured for your database ?

          also look in server/log for the log file which has debug info

          • 2. Re: problems with jboss-seam-booking example
            vlad_oz

            Hi.. sorry for the late reply.
            Yes, the application compiles and deployes with no errors.
            The database wasn't configured, so I've done that. Getting a different error now (any idea what that could mean?):
            Thanks for your help, much appreciated

            javax.faces.FacesException: Error calling action method of component with id _tagId0:_tagId6
            at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
            at javax.faces.component.UICommand.broadcast(UICommand.java:106)
            at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
            at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
            at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            at java.lang.Thread.run(Unknown Source)
            Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component
            at org.jboss.seam.Component.newInstance(Component.java:605)
            at org.jboss.seam.Component.newInstance(Component.java:1104)
            at org.jboss.seam.Component.getInstance(Component.java:1055)
            at org.jboss.seam.Component.getInstance(Component.java:1038)
            at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
            at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:130)
            at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
            at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:126)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
            at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
            ... 28 more
            Caused by: javax.naming.NameNotFoundException: jboss-seam-booking not bound
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
            at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at org.jboss.seam.Component.instantiate(Component.java:645)
            at org.jboss.seam.Component.newInstance(Component.java:601)
            ... 40 more

            • 3. Re: problems with jboss-seam-booking example
              gavin.king

              What version of JBoss is this? is EJB3 installed in JBoss?

              • 4. Re: problems with jboss-seam-booking example
                vlad_oz

                I'm using JBoss 4.0.4RC1
                I've copied the EJB3 jars into the server\default\lib directory.

                • 5. Re: problems with jboss-seam-booking example
                  gavin.king

                  You should reinstall JBoss using the installer, and selecting the ejb3 profile.

                  I've no idea if "copying jars" works (probably not).

                  • 6. Re: problems with jboss-seam-booking example
                    vlad_oz

                    Thanks for your reply. Incorrect JBoss installation was the problem. I've reinstalled with EJB3.0 option and all is working well now.
                    Once again, thanks a lot for your help!