6 Replies Latest reply on Apr 30, 2008 9:55 AM by cane74

    Migrating from jBoss4.0.5GA to 4.2.2GA

    Nathan Smith Newbie

      I'm trying to use 4.2.2GA for an EJB3 application that currently runs in 4.0.5GA without any major issues. I'm running into an issue where the app server is trying to use ejb-jar.xml file even though I don't use it. I get the following warnings when I start the server:

      008-02-26 13:34:22,737 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminDMALocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminStatsLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminUserLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminRegionLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrCoachLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrSchoolLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrUserLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,768 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrDMALocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserPlayerLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserCoachLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserGroupLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserGameLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,799 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserStatsLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,799 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserVenueLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,799 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserSchoolLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,815 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserSportLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,815 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserDMALocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,815 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserSeasonLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
      2008-02-26 13:34:22,831 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserUserLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar

      It finally throws up toward the end of the deployment with the following error:

      2008-02-26 13:34:36,984 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminFactoryBean,service=EJB3
      State: FAILED
      Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container BeloAdminFactoryBean: reference class: com.belo.leaderboard.ejb.session.function.ISessionDMAUserSeasonLocal ejbLink: duplicated in LeaderboardEJB.jar
      I Depend On:
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminDMABean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminStatsBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminCoachBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserRegionBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrAthleticDirectorBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserPositionBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrDiv1AthleteBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminSeasonBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminGroupBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrAlumBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminUserBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrReportingGroupBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminSportBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserTeamBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=AuthenticationBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserMeetBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserTournamentBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminSchoolBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminVenueBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserRosterBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminPlayerBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminGameBean,service=EJB3
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminRegionBean,service=EJB3
      Depends On Me:
      jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminBean,service=EJB3

      Does anyone have any ideas? Is there a way to keep jBoss from looking for the ejb-jar.xml file altogether?

        • 1. Re: Migrating from jBoss4.0.5GA to 4.2.2GA
          jaikiran pai Master

          Can you post the contents of your bean? Are you injecting any other beans?

          While posting the contents, remember to wrap it in a code block, using the Code button in the message editor window.

          • 2. Re: Migrating from jBoss4.0.5GA to 4.2.2GA
            Nathan Smith Newbie

            Here's the bean, the interface(s) implemented, and class he inherits from. Basically the business tier was built on a hierarchical scheme where the highest level user BeloAdmin would inherit his characteristics from the lower levels. ie. RegionAdmin


            @Stateless
            public class BeloAdminFactoryBean extends RegionAdminFactoryBean implements ISessionBeloAdminFactoryLocal {


            @EJB private ISessionBeloAdminRegionLocal beloAdminRegionBean;
            @EJB private ISessionBeloAdminDMALocal beloAdminDMABean;
            @EJB private ISessionBeloAdminSportLocal beloAdminSportBean;
            @EJB private ISessionBeloAdminPlayerLocal beloAdminPlayerBean;
            @EJB private ISessionBeloAdminCoachLocal beloAdminCoachBean;
            @EJB private ISessionBeloAdminGameLocal beloAdminGameBean;
            @EJB private ISessionBeloAdminStatsLocal beloAdminStatBean;
            @EJB private ISessionBeloAdminUserLocal beloAdminUserBean;



            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminRegionBean()
            */
            public ISessionBeloAdminRegionLocal getBeloAdminRegionBean() {

            return beloAdminRegionBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminDMABean()
            */
            public ISessionBeloAdminDMALocal getBeloAdminDMABean() {

            return beloAdminDMABean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminSportBean()
            */
            public ISessionBeloAdminSportLocal getBeloAdminSportBean() {

            return beloAdminSportBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminPlayerBean()
            */
            public ISessionBeloAdminPlayerLocal getBeloAdminPlayerBean() {

            return beloAdminPlayerBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminCoachBean()
            */
            public ISessionBeloAdminCoachLocal getBeloAdminCoachBean() {

            return beloAdminCoachBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminGameBean()
            */
            public ISessionBeloAdminGameLocal getBeloAdminGameBean() {

            return beloAdminGameBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminStatBean()
            */
            public ISessionBeloAdminStatsLocal getBeloAdminStatBean() {

            return beloAdminStatBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminUserBean()
            */
            public ISessionBeloAdminUserLocal getBeloAdminUserBean() {

            return beloAdminUserBean;

            }


            }

            package com.belo.leaderboard.ejb.session.factories;

            import javax.ejb.Local;

            /**
            * Interface for use in the EJB and web tier.
            * Interface to Belo Admin Entity Beans
            */
            @Local
            public interface ISessionBeloAdminFactoryLocal extends ISessionBeloAdminFactory {

            }

            package com.belo.leaderboard.ejb.session.factories;

            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminCoachLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminDMALocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminGameLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminPlayerLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminRegionLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminSportLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminStatsLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminUserLocal;

            /**
            * Interface for use in the EJB and web tier.
            * Interface to Belo Admin Entity Beans
            */

            public interface ISessionBeloAdminFactory extends ISessionRegionAdminFactory {

            /**
            * @return
            */
            public ISessionBeloAdminRegionLocal getBeloAdminRegionBean();

            /**
            * @return
            */
            public ISessionBeloAdminDMALocal getBeloAdminDMABean();

            /**
            * @return
            */
            public ISessionBeloAdminSportLocal getBeloAdminSportBean();

            /**
            * @return
            */
            public ISessionBeloAdminPlayerLocal getBeloAdminPlayerBean();

            /**
            * @return
            */
            public ISessionBeloAdminCoachLocal getBeloAdminCoachBean();

            /**
            * @return
            */
            public ISessionBeloAdminGameLocal getBeloAdminGameBean();

            /**
            * @return
            */
            public ISessionBeloAdminStatsLocal getBeloAdminStatBean();

            /**
            * @return
            */
            public ISessionBeloAdminUserLocal getBeloAdminUserBean();

            }


            package com.belo.leaderboard.ejb.session.factories;

            import javax.ejb.EJB;
            import javax.ejb.Stateless;

            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminDMALocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminGroupLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminRegionLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminSchoolLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminSeasonLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminStatsLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminUserLocal;
            import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminVenueLocal;

            /**
            * Factory class for use in the EJB and web tier.
            * Factory Class for access to Region Admin Entity Beans(interfaces)
            */
            @Stateless
            public class RegionAdminFactoryBean extends DMAMgrFactoryBean implements ISessionRegionAdminFactoryLocal {


            @EJB private ISessionRegionAdminDMALocal regionAdminDMABean;
            @EJB private ISessionRegionAdminSchoolLocal regionAdminSchoolBean;
            @EJB private ISessionRegionAdminVenueLocal regionAdminVenueBean;
            @EJB private ISessionRegionAdminSeasonLocal regionAdminSeasonBean;
            @EJB private ISessionRegionAdminGroupLocal regionAdminGroupBean;
            @EJB private ISessionRegionAdminStatsLocal regionAdminStatsBean;
            @EJB private ISessionRegionAdminUserLocal regionAdminUserBean;
            @EJB private ISessionRegionAdminRegionLocal regionAdminRegionBean;



            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminDMABean()
            */
            public ISessionRegionAdminDMALocal getRegionAdminDMABean() {

            return regionAdminDMABean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminSchoolBean()
            */
            public ISessionRegionAdminSchoolLocal getRegionAdminSchoolBean() {

            return regionAdminSchoolBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminVenueBean()
            */
            public ISessionRegionAdminVenueLocal getRegionAdminVenueBean() {

            return regionAdminVenueBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminSeasonBean()
            */
            public ISessionRegionAdminSeasonLocal getRegionAdminSeasonBean() {

            return regionAdminSeasonBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminGroupBean()
            */
            public ISessionRegionAdminGroupLocal getRegionAdminGroupBean() {

            return regionAdminGroupBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminStatsBean()
            */
            public ISessionRegionAdminStatsLocal getRegionAdminStatsBean() {

            return regionAdminStatsBean;

            }


            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminUserBean()
            */
            public ISessionRegionAdminUserLocal getRegionAdminUserBean() {

            return regionAdminUserBean;

            }

            /* (non-Javadoc)
            * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminRegionBean()
            */
            public ISessionRegionAdminRegionLocal getRegionAdminRegionBean() {

            return regionAdminRegionBean;

            }


            }

            • 3. Re: Migrating from jBoss4.0.5GA to 4.2.2GA
              Nathan Smith Newbie

               

              "nsmith80" wrote:
              Here's the bean, the interface(s) implemented, and class he inherits from. Basically the business tier was built on a hierarchical scheme where the highest level user BeloAdmin would inherit his characteristics from the lower levels. ie. RegionAdmin

              @Stateless
              public class BeloAdminFactoryBean extends RegionAdminFactoryBean implements ISessionBeloAdminFactoryLocal {
              
              
               @EJB private ISessionBeloAdminRegionLocal beloAdminRegionBean;
               @EJB private ISessionBeloAdminDMALocal beloAdminDMABean;
               @EJB private ISessionBeloAdminSportLocal beloAdminSportBean;
               @EJB private ISessionBeloAdminPlayerLocal beloAdminPlayerBean;
               @EJB private ISessionBeloAdminCoachLocal beloAdminCoachBean;
               @EJB private ISessionBeloAdminGameLocal beloAdminGameBean;
               @EJB private ISessionBeloAdminStatsLocal beloAdminStatBean;
               @EJB private ISessionBeloAdminUserLocal beloAdminUserBean;
              
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminRegionBean()
               */
               public ISessionBeloAdminRegionLocal getBeloAdminRegionBean() {
              
               return beloAdminRegionBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminDMABean()
               */
               public ISessionBeloAdminDMALocal getBeloAdminDMABean() {
              
               return beloAdminDMABean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminSportBean()
               */
               public ISessionBeloAdminSportLocal getBeloAdminSportBean() {
              
               return beloAdminSportBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminPlayerBean()
               */
               public ISessionBeloAdminPlayerLocal getBeloAdminPlayerBean() {
              
               return beloAdminPlayerBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminCoachBean()
               */
               public ISessionBeloAdminCoachLocal getBeloAdminCoachBean() {
              
               return beloAdminCoachBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminGameBean()
               */
               public ISessionBeloAdminGameLocal getBeloAdminGameBean() {
              
               return beloAdminGameBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminStatBean()
               */
               public ISessionBeloAdminStatsLocal getBeloAdminStatBean() {
              
               return beloAdminStatBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminUserBean()
               */
               public ISessionBeloAdminUserLocal getBeloAdminUserBean() {
              
               return beloAdminUserBean;
              
               }
              
              
              }
              


              
              package com.belo.leaderboard.ejb.session.factories;
              
              import javax.ejb.Local;
              
              /**
               * Interface for use in the EJB and web tier.
               * Interface to Belo Admin Entity Beans
               */
              @Local
              public interface ISessionBeloAdminFactoryLocal extends ISessionBeloAdminFactory {
              
              }
              
              



              package com.belo.leaderboard.ejb.session.factories;
              
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminCoachLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminDMALocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminGameLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminPlayerLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminRegionLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminSportLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminStatsLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminUserLocal;
              
              /**
              * Interface for use in the EJB and web tier.
              * Interface to Belo Admin Entity Beans
              */
              
              public interface ISessionBeloAdminFactory extends ISessionRegionAdminFactory {
              
               /**
               * @return
               */
               public ISessionBeloAdminRegionLocal getBeloAdminRegionBean();
              
               /**
               * @return
               */
               public ISessionBeloAdminDMALocal getBeloAdminDMABean();
              
               /**
               * @return
               */
               public ISessionBeloAdminSportLocal getBeloAdminSportBean();
              
               /**
               * @return
               */
               public ISessionBeloAdminPlayerLocal getBeloAdminPlayerBean();
              
               /**
               * @return
               */
               public ISessionBeloAdminCoachLocal getBeloAdminCoachBean();
              
               /**
               * @return
               */
               public ISessionBeloAdminGameLocal getBeloAdminGameBean();
              
               /**
               * @return
               */
               public ISessionBeloAdminStatsLocal getBeloAdminStatBean();
              
               /**
               * @return
               */
               public ISessionBeloAdminUserLocal getBeloAdminUserBean();
              
              }
              



              package com.belo.leaderboard.ejb.session.factories;
              
              import javax.ejb.EJB;
              import javax.ejb.Stateless;
              
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminDMALocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminGroupLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminRegionLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminSchoolLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminSeasonLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminStatsLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminUserLocal;
              import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminVenueLocal;
              
              /**
               * Factory class for use in the EJB and web tier.
               * Factory Class for access to Region Admin Entity Beans(interfaces)
               */
              @Stateless
              public class RegionAdminFactoryBean extends DMAMgrFactoryBean implements ISessionRegionAdminFactoryLocal {
              
              
               @EJB private ISessionRegionAdminDMALocal regionAdminDMABean;
               @EJB private ISessionRegionAdminSchoolLocal regionAdminSchoolBean;
               @EJB private ISessionRegionAdminVenueLocal regionAdminVenueBean;
               @EJB private ISessionRegionAdminSeasonLocal regionAdminSeasonBean;
               @EJB private ISessionRegionAdminGroupLocal regionAdminGroupBean;
               @EJB private ISessionRegionAdminStatsLocal regionAdminStatsBean;
               @EJB private ISessionRegionAdminUserLocal regionAdminUserBean;
               @EJB private ISessionRegionAdminRegionLocal regionAdminRegionBean;
              
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminDMABean()
               */
               public ISessionRegionAdminDMALocal getRegionAdminDMABean() {
              
               return regionAdminDMABean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminSchoolBean()
               */
               public ISessionRegionAdminSchoolLocal getRegionAdminSchoolBean() {
              
               return regionAdminSchoolBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminVenueBean()
               */
               public ISessionRegionAdminVenueLocal getRegionAdminVenueBean() {
              
               return regionAdminVenueBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminSeasonBean()
               */
               public ISessionRegionAdminSeasonLocal getRegionAdminSeasonBean() {
              
               return regionAdminSeasonBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminGroupBean()
               */
               public ISessionRegionAdminGroupLocal getRegionAdminGroupBean() {
              
               return regionAdminGroupBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminStatsBean()
               */
               public ISessionRegionAdminStatsLocal getRegionAdminStatsBean() {
              
               return regionAdminStatsBean;
              
               }
              
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminUserBean()
               */
               public ISessionRegionAdminUserLocal getRegionAdminUserBean() {
              
               return regionAdminUserBean;
              
               }
              
               /* (non-Javadoc)
               * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminRegionBean()
               */
               public ISessionRegionAdminRegionLocal getRegionAdminRegionBean() {
              
               return regionAdminRegionBean;
              
               }
              
              
              }


              • 4. Re: Migrating from jBoss4.0.5GA to 4.2.2GA
                Nathan Smith Newbie

                 

                "nsmith80" wrote:
                I'm trying to use 4.2.2GA for an EJB3 application that currently runs in 4.0.5GA without any major issues. I'm running into an issue where the app server is trying to use ejb-jar.xml file even though I don't use it. I get the following warnings when I start the server:

                008-02-26 13:34:22,737 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminDMALocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminStatsLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminUserLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionRegionAdminRegionLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrCoachLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrSchoolLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,752 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrUserLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,768 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAMgrDMALocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserPlayerLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserCoachLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserGroupLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,784 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserGameLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,799 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserStatsLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,799 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserVenueLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,799 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserSchoolLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,815 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserSportLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,815 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserDMALocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,815 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserSeasonLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                2008-02-26 13:34:22,831 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.belo.leaderboard.ejb.session.function.ISessionDMAUserUserLocal in ejb-jar.xml of BeloAdminFactoryBeanduplicated in LeaderboardEJB.jar
                


                It finally throws up toward the end of the deployment with the following error:

                2008-02-26 13:34:36,984 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
                
                --- MBeans waiting for other MBeans ---
                ObjectName: jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminFactoryBean,service=EJB3
                 State: FAILED
                 Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container BeloAdminFactoryBean: reference class: com.belo.leaderboard.ejb.session.function.ISessionDMAUserSeasonLocal ejbLink: duplicated in LeaderboardEJB.jar
                 I Depend On:
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminDMABean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminStatsBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminCoachBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserRegionBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrAthleticDirectorBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserPositionBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrDiv1AthleteBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminSeasonBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminGroupBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrAlumBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminUserBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAMgrReportingGroupBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminSportBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserTeamBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=AuthenticationBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserMeetBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserTournamentBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminSchoolBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=RegionAdminVenueBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=DMAUserRosterBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminPlayerBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminGameBean,service=EJB3
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminRegionBean,service=EJB3
                 Depends On Me:
                 jboss.j2ee:ear=Leaderboard.ear,jar=LeaderboardEJB.jar,name=BeloAdminBean,service=EJB3
                


                Does anyone have any ideas? Is there a way to keep jBoss from looking for the ejb-jar.xml file altogether?


                • 5. Re: Migrating from jBoss4.0.5GA to 4.2.2GA
                  Nathan Smith Newbie

                  Didn't mean to add anything.

                  • 6. Re: Migrating from jBoss4.0.5GA to 4.2.2GA
                    cane74 Newbie

                    Hi.

                    I've had similar problem. It occured while one of my SLSB extended another SLSB. After some code refactoring it works properly right now.

                    Regards,
                    Bart