4 Replies Latest reply on Aug 3, 2010 1:17 PM by Stefan Polyanszky

    Jboss AS6 M1 migration to M4 startup EJB exception

    Stefan Polyanszky Newbie

      Hi everyone

       

      I am currently developing a web-application. Due to some functionality, i have to upgrade from Jboss AS6 M1 to M4

      Sadly, i get a lot of exceptions as soon as i deploy my EAR.

      Maybe someone can give me a hand on this ?

       

      Currently used frameworks:

      JBoass AS6 M4

      Seam 2.2.1 CR1

      Richfaces served from JBoss

      Primefaces 1.0.2

      Prettyfaces 3.0.2

       

      The exceptions are like this, and comes directly after the EJBs are listed.

      http://www.pastebin.org/442506

       

      I would be glad for some suggestions.

        • 1. Re: Jboss AS6 M1 migration to M4 startup EJB exception
          jaikiran pai Master
          Caused by: java.lang.IllegalStateException: EJB class is null. EJB org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData@25c39470{EjbSynchronizations}
                  at org.jboss.weld.integration.ejb.JBossEJBDescriptorAdaptor.<init>(JBossEJBDescriptorAdaptor.java:35) [:6.0.0.20100721-M4]
                  at org.jboss.weld.integration.ejb.JBossSessionBeanDescriptorAdaptor.<init>(JBossSessionBeanDescriptorAdaptor.java:36) [:6.0.0.20100721-M4]
                  at org.jboss.weld.integration.ejb.JBossSessionBeanDescriptorAdaptor.<init>(JBossSessionBeanDescriptorAdaptor.java:31) [:6.0.0.20100721-M4]
                  at org.jboss.weld.integration.ejb.JBossEjbServices.discoverEjbs(JBossEjbServices.java:177) [:6.0.0.20100721-M4]
                  at org.jboss.weld.integration.ejb.JBossEjbServices.discoverEjbs(JBossEjbServices.java:202) [:6.0.0.20100721-M4]
                  at org.jboss.weld.integration.ejb.JBossEjbServices.setDeploymentUnit(JBossEjbServices.java:61) [:6.0.0.20100721-M4]
          
          

           

           

          Looks like something related to weld deployment processing. I guess asking this in their user mailing list might help get an answer.

          • 2. Re: Jboss AS6 M1 migration to M4 startup EJB exception
            Stefan Polyanszky Newbie

            Hi, thanks for your answer.

            This error is now fixed. I had to remove the beans.xml in the prettyfaces.jar

             

            But now i get a LOT of other "WARN" log entries.

            Its something like "bean found with multiple type class" or similiar.

            I get about 1000 of these withing a second. I did not found any "ERROR" type log entries,

            but in the end it tells me that my webapp can't be started because of previous errors.

             

            I will post the Log as soon as i am home. But maybe this rings some bells?

            Do i have to add or modify something on my EJB beans or WAR beans ?

             

            Best regards,

            Stefan

            • 3. Re: Jboss AS6 M1 migration to M4 startup EJB exception
              jaikiran pai Master

              I have seen some similar forum threads with WARN/ERROR messages coming up during EJB deployments, which were mainly due to a misconfigured deployment (like the EJB names not matching in jboss.xml/annotations). But without looking at the logs, it's difficult to say whether it's the same issue.

              • 4. Re: Jboss AS6 M1 migration to M4 startup EJB exception
                Stefan Polyanszky Newbie

                Hi,

                 

                here is the "warn" log entry that comes about 1000 times:

                 

                WARN  [AbstractContextRegistry] Multiple beans match class type [enable trace log for details]: class org.jboss.ejb3.EJBContainer

                 

                I didn't find anything on google for that particular error. I hope someone knows what to do there.

                 

                Some other "WARN" log entries, which i assume are not "fatal" ones: http://www.pastebin.org/445956