2 Replies Latest reply on May 4, 2007 8:18 AM by Baskaran Balasubramanian

    kindly help in running this deployment

    Baskaran Balasubramanian Newbie

      hi all,

      i m new to this EJB3.0, i have download an sample application named "helloworld" from a link provided in the same forum of ours...

      i tried to deploy the application its showing the following error
      WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=HelloWorld-ejb.jar
      java.lang.ClassNotFoundException: Unexpected error during load of: hello.StatelessHelloBean, msg=Bad version number in .class file
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:550)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:265)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:123)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:409)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:397)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
      at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)...

      kindly help..

        • 1. Re: kindly help in running this deployment
          fhh Expert

          Is your app server running under Java 5?



          • 2. Re: kindly help in running this deployment
            Baskaran Balasubramanian Newbie

            hi fhh..

            i m using jboss IDE 1.6, jboss server 4.0.5 and its running...

            package hello;

            public interface HelloBean
            public String hello ();

            package hello;

            import org.jboss.annotation.ejb.LocalBinding;
            import javax.ejb.*;

            public class StatelessHelloBean implements HelloBean {

            public String hello () {
            return "Hello World!";



            <%@ page import="hello.*, javax.naming.*, java.text.*"%>

            private HelloBean hb = null;
            public void jspInit () {
            try {
            InitialContext ctx = new InitialContext();
            hb = (HelloBean) ctx.lookup(
            } catch (Exception e) {
            e.printStackTrace ();

            String result;
            try {
            result = hb.hello();
            } catch (Exception e) {
            result = e.getMessage();