0 Replies Latest reply on Dec 19, 2006 6:49 PM by Asif Akhtar

    Problems deploying to JBoss

    Asif Akhtar Newbie

      I am having some difficulty deploying the Sun's "Converter" example to the JBoss server. (A local stateless EJB)

      I am using the following code to do the lookup

      HelloWorld helloWorld=null;
      InitialContext ic = new InitialContext();

      helloWorld= (HelloWorld) ic.lookup("conv/MyHelloWorldBean/local");

      The server shows the following error
      java.lang.ClassCastException: $Proxy71

      I noticed the build doesnt contain and ejb-jar and was wondering whether i had missed something out from specific to jboss.

      The server does show it has deployed the EJB ok,

      2006-12-19 23:32:57,357 DEBUG [org.jboss.ejb3.EJB3Deployer] create, converter-ejb.jar
      2006-12-19 23:32:57,367 DEBUG [org.jboss.ejb3.EJB3Deployer] Deploying: file:/C:/Program Files/jboss-4.0.5.GA/server/default/tmp/deploy/tmp57442conv.ear-contents/converter-ejb.jar
      2006-12-19 23:32:57,367 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB3,module=converter-ejb.jar
      2006-12-19 23:32:57,367 DEBUG [org.jboss.ejb3.Ejb3Module] Creating jboss.j2ee:service=EJB3,module=converter-ejb.jar
      2006-12-19 23:32:57,367 DEBUG [org.jboss.ejb3.security.JaccHelper] Initialising JACC Context for deployment: converter-ejb.jar
      2006-12-19 23:32:57,387 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3: ejbName=MyHelloWorldBean, class=converter.hello.MyHelloWorldBean, type=STATELESS
      2006-12-19 23:32:57,387 DEBUG [org.jboss.ejb3.ProxyDeployer] no declared remote bindings for : MyHelloWorldBean
      2006-12-19 23:32:57,387 INFO [org.jboss.ejb3.Ejb3Deployment] EJB3 deployment time took: 20

      (I have had a look at the docs and but cant seem to find anything of help)

      I am using JDK5.0 with JBoss 4.0.5GA.

      Thanks in advance