3 Replies Latest reply on Jul 25, 2002 3:46 PM by tbfmicke

    [ERR] Session Bean Stateless

    thedandy

      Hi,
      I write a session bean called gestore but when i try to deploy it jboss show me this:

      [Container factory] java.lang.NoSuchMethodException
      [Container factory] at java.lang.Class.getMethod0(Native Method)
      [Container factory] at java.lang.Class.getMethod(Class.java:888)
      [Container factory] at org.jboss.ejb.StatelessSessionContainer.setupHomeMapp
      ing(StatelessSessionContainer.java:397)
      [Container factory] at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:158)
      [Container factory] at org.jboss.ejb.Application.init(Application.java:202)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)

      [Container factory] at java.lang.Thread.run(Thread.java:484)

      i don't post the code but if it's can help i will post...

      sorry me for my bad English...

      thank you

        • 1. Re: [ERR] Session Bean Stateless
          tbfmicke

          You are probably missing out on some of the required methods in the bean.

          You got to post the code for anyone here to be able to help you.

          • 2. Re: [ERR] Session Bean Stateless
            thedandy

            Well i do...
            but i have a question wy is not possible in a session bean export the remote method in the home like cmp bean...

            for example:

            i have a business method in the remote interface like this:

            public void boolean checkUser(String login,String password) throws RemoteException,FinderEsception;

            i would like this method in the home interface so when i lookup the bean and obtaining the home i call the method
            without do home.create for obtaining the remote interface...
            where i do mistake????

            thank's

            • 3. Re: [ERR] Session Bean Stateless
              tbfmicke

              Which is it, void or boolean?

              Assuming boolean; the signature in the bean
              class should be:

              public boolean ejbHomeCheckUser(String login, String password) throws FinderException
              {
              ...
              }


              Regards