2 Replies Latest reply on Jul 3, 2014 3:31 PM by Wolf-Dieter Fink

    jboss 4.2.3 migration to jboss 6 - EJB problem.

    Eric Zhao Newbie

      When I do migration from jboss 4.2.3 to jboss 6, I got the lookup failure (the following lookup code) "cannot be cast to fmalarmmgr.FMAlarmManagerLocalHome"

      this part code worked in 4.2.3, but not in jboss 6, would you please help me out?

        Context context;
        try {
         context = new InitialContext();
         managerHome = (FMAlarmManagerLocalHome) context.lookup("FMAlarmManagerLocal");
        } catch (NamingException e) {



      The following is the jboss log, I didn't find any error when deploy the EJB.


      16:32:13,860 INFO  [TomcatDeployment] deploy, ctxPath=/
      16:32:13,872 INFO  [EjbDeployer] installing bean: ejb/cfma-,uid220803409
      16:32:13,872 INFO  [EjbDeployer]   with dependencies:
      16:32:13,872 INFO  [EjbDeployer]   and supplies:
      16:32:13,872 INFO  [EjbDeployer]        jndi:FMAlarmManager
      16:32:13,872 INFO  [EjbDeployer]        jndi:FMAlarmManagerLocal
      16:32:13,872 INFO  [EjbDeployer]        jndi:cfma-main-

      16:32:13,959 INFO  [EjbModule] Deploying FMAlarmManager
      16:32:13,991 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'FMAlarmManager' to jndi 'FMAlarmManagerLocal'