3 Replies Latest reply on May 7, 2008 11:01 AM by Pete Muir

    Exception when my login method is a SLSB

    Eric H Novice

      Here's something I don't understand.

      In my components.xml I have:

      <security:identity authenticate-method="#{loginAction.authenticate}"/>

      Quite typical.

      When the component that is loginAction is a POJO, just with a @Name annotation, it works as expected.  However, when I make it into a stateless session bean, something bad happens:

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: loginAction
              at org.jboss.seam.Component.newInstance(Component.java:1970)
       Caused by: javax.naming.NameNotFoundException: myproj not bound
              at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
              at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
              at org.jboss.seam.Component.newInstance(Component.java:1966)

      (I've trimmed the exceptions; if you need it in full I'll post it.)

      Any ideas?  This is most strange.  My other project does have its login action as a SLSB and it works, but I can't figure out what's different.

      I have it working so I'm happy about that, just confused.