4 Replies Latest reply on Nov 4, 2006 1:30 PM by pmuir

    Still have issues with my installation

    diablo341

      I installed AS 4.0.5.GA. I also installed EJB3-RC9. Is this the embedded ejb for testing? I'm confused. Doesn't the appserver have EJB3 installed? My components.xml has a property for EJB installed. I set it to false, b/c I saw that the component.properties file had an entry for embeddedEjb true. I figured I wanted to use the ejb in the appserver. Anyway, I noticed an entry in the console that the JNDI was not bound. I read that it's just an info message. I'm getting the following error:

      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
       at org.jboss.seam.Component.newInstance(Component.java:1578)
       at org.jboss.seam.Component.getInstance(Component.java:1492)
       at org.jboss.seam.Component.getInstance(Component.java:1466)
       at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
       at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
       at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
       at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
       at com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
       at com.sun.el.parser.AstValue.invoke(AstValue.java:147)
       at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
       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)
       ... 36 more
      Caused by: javax.naming.NameNotFoundException: LoginAction not bound
      

      I went to my jmx-console and saw in the Global JNDI Namespace my app and all the EJBs listed. I also saw in jboss.j2ee that all EJBs are started. What am I missing?

      John

        • 1. Re: Still have issues with my installation
          pmuir

          I suspect your jndiPattern is wrong. What is it?

          • 2. Re: Still have issues with my installation
            basel

            You might need to get jems-installer-1.2.0.BETA3.jar since JBoss-4.0.5-GA does not have ejb3 support. You can get it from here: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=193295&release_id=457191

            • 3. Re: Still have issues with my installation
              diablo341

              jndiPattern=#{ejbName}/local

              I didn't put the projectName in front, b/c I thought I was using the EJB3 built into the server, but after reading Basel's post, I might've made an error.

              Okay, I've read more about the server. It's provides a *bridge* to EJB3.0. So that means the embedded EJB3 container is THE EJB3 container. I tell you, for a newbie, the docs are confusing at first read. I've now read that the full JEMS suite is not all embeddable yet. I'll check out Basel's link below.

              For now though, can someone confirm for me the setup? I use the embedded EJB container. I put the project name at the front of my jndiPattern. Anything else I need to get it functioning properly?

              John

              • 4. Re: Still have issues with my installation
                pmuir

                You sound confused ;)

                You can run Seam in full JBoss AS, in which case EJB3 is built in. You don't configure embeddable EJB3 in Seam. You use jndiPattern=projectName/#{ejbName}/local.

                You can run Seam in another container (typically Tomcat), in which case you must provide EJB3 - Embeddable EJB3. You use jndiPattern=#{ejbName}/local.

                What Basel was saying is that the default install of JBoss AS doesn't install EJB3, but a J2EE 1.4 system (so EJB 2.1). You need to explicitly install the EJB3 profile so that EJB3 is built into JBoss AS.

                I'm not sure about how much of JEMS is embeddable.

                HTH