1 2 Previous Next 16 Replies Latest reply: Dec 21, 2011 4:42 PM by Ben Lyman RSS

    EJB3.0 deployment failing in Jboss5.1.0GA

    kumaran srinivasan Newbie

      I am using EJB3.0 and Spring 2.5 in my project .Using EJB3.0 as session facade bean. Trying to Inject Spring beans into EJB3 session bean using @Interceptors(SpringBeanAutowiringInterceptor.class) and @Autowired anontations

      Here is my ear package struture

      freeads.ear
      |
      |--APP-INF
      | |--lib ( contains all the jars files -Spring,Jboss ,hibernate)
      |
      |--META-INF
      | |--application.xml
      | |--jboss-app.xml
      | |--MANIFEST.MF
      |-- freeads-ejb.jar
      |-- META-INF
      |-ejb-jar.xml
      |-MANIFEST.MF

      wf.ear has only one ejb jar under wf.ear & one application jar freeads.jar that contains all the,spring beans, spring applicationContext.xml, beanrefContext.xml,helper classes & dao layers under APP_INF\lib

      All other jars files (jboss,spring & hbernate) are also APP_INF\lib

      when i try to deploy in JBOSS5.1.0 under server\default\deploy folder it throws below exception. It seems EHB bean class inside freeads.jar was not able to recognize meta data like @interceptors and @ Autowired but i am not sure ...Please help me in resolving the issue.This is my first time injecting Spring bean in EJB3.0

      14:26:30,795 WARN [Ejb3AnnotationHandler] JBMETA-4: did not find any bean meta data for annotation bean AdsReplySessionBean, will create some
      14:26:30,826 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/freeads.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying freeads-ejb.jar: Error creating ejb container AdsReplySessionBean: Bean Class com.bluec.freeads.ejb.AdsReplySessionBean has no local, webservice, or remote interfaces defined and does not implement at least one business interface: AdsReplySessionBean
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container AdsReplySessionBean: Bean Class com.bluec.freeads.ejb.AdsReplySessionBean has no local, webservice, or remote interfaces defined and does not implement at least one business interface: AdsReplySessionBean
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:732)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
      ... 34 more
      Caused by: java.lang.RuntimeException: Bean Class com.bluec.freeads.ejb.AdsReplySessionBean has no local, webservice, or remote interfaces defined and does not implement at least one business interface: AdsReplySessionBean
      at org.jboss.ejb3.proxy.factory.ProxyFactoryHelper.getLocalAndBusinessLocalInterfaces(ProxyFactoryHelper.java:255)
      at org.jboss.ejb3.proxy.factory.ProxyFactoryHelper.getLocalBusinessInterfaces(ProxyFactoryHelper.java:550)
      at org.jboss.ejb3.session.SessionContainer.resolveBusinessInterfaces(SessionContainer.java:192)
      at org.jboss.ejb3.EJBContainer.instantiated(EJBContainer.java:1564)
      at org.jboss.ejb3.session.SessionContainer.instantiated(SessionContainer.java:182)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:726)



        • 1. Re: EJB3.0 deployment failing in Jboss5.1.0GA
          jaikiran pai Master

          1) APP-INF is not a standard folder and JBoss will not process it. You might want to move the APP-INF/lib contents to META-INF/lib of the ear. I am assuming that those jar files are just plain libraries.

          2) As the error message states:

          Error deploying freeads-ejb.jar: Error creating ejb container AdsReplySessionBean: Bean Class com.bluec.freeads.ejb.AdsReplySessionBean has no local, webservice, or remote interfaces defined and does not implement at least one business interface: AdsReplySessionBean


          Looks like the AdsReplySessionBean is incorrect. Can you post the relevant code of that bean?
          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: EJB3.0 deployment failing in Jboss5.1.0GA
            kumaran srinivasan Newbie

            Hi Jaikiran,
            Now I have modified the ear file packaging structure as below

            freeads.ear
             |
             |--META-INF
             | |--application.xml
             | |--jboss-app.xml
             | |--MANIFEST.MF
             |
             |--lib
             | |--spring jars,hibernate jars, jboss jars etc
             | |--freeads.jar (To,DAO,Domain,helper classes,applicationContext.xml,beanRefContext.xml etc)
             |
             |
             |--freeads-ejb.jar
             |
             |--META-INF
             |--MANIFEST.MF
            
            


            lib folder is now placed directly under root of the ear file.lib folder contains all the api libraries of spring2.5,hibernate3,other libraries etc and one application jar i.e freeads.jar that contains DAO classes,Domain classes,To classes,helper & utility classes.It also has spring applicationContext.xml and beanRefContext.xml etc

            freeads-ejb.jar has ejb3 stateless session bean classes , remote & local business interfaces. Since i am using annotation there is no ejb-jar.xml

            But when i try to deploy the freeads.ear in Jboss5.1.0 under server/default/deploy it throws different deployment error as shown below in the log.


            Error Log
            10:25:18,845 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
            10:25:22,589 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/freeads.ear/ state=PreReal mode=Manual requiredState=Real
            org.jboss.deployers.spi.DeploymentException: Error deploying freeads-ejb.jar: failed to initialize bean container
            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
            at org.jboss.Main.boot(Main.java:221)
            at org.jboss.Main$1.run(Main.java:556)
            at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.RuntimeException: failed to initialize bean container
            at org.jboss.ejb3.EJBContainer.(EJBContainer.java:253)
            at org.jboss.ejb3.session.SessionContainer.(SessionContainer.java:119)
            at org.jboss.ejb3.session.SessionSpecContainer.(SessionSpecContainer.java:69)
            at org.jboss.ejb3.stateless.StatelessContainer.(StatelessContainer.java:112)
            at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:310)
            at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:203)
            at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)
            at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
            at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
            at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
            at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
            ... 34 more
            Caused by: java.lang.IllegalStateException: Null beannMetaData
            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:315)
            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:235)
            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.(BeanInterceptorMetaDataBridge.java:138)
            at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.(AdditiveBeanInterceptorMetaDataBridge.java:48)
            at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:194)
            at org.jboss.ejb3.EJBContainer.(EJBContainer.java:249)
            ... 45 more
            Caused by: java.lang.NullPointerException
            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:268)
            ... 50 more
            10:25:22,651 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            DEPLOYMENTS IN ERROR:
            Deployment "vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/freeads.ear/" is in error due to the following reason(s): java.lang.NullPointerException

            10:25:22,667 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
            10:25:22,698 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
            10:25:22,713 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:12s:352ms




            EJB3 Stateless session bean class : AdsReplySessionBean.java
            I am using @Interceptors & @Autowired to inject spring beans into ejb3 stateless session bean

            package com.bluec.freeads.ejb;
            import javax.ejb.Local;
            import javax.ejb.Remote;
            import javax.ejb.Stateless;
            import javax.interceptor.Interceptors;
            import org.apache.log4j.Logger;
            import org.jboss.ejb3.annotation.LocalBinding;
            import org.jboss.ejb3.annotation.RemoteBinding;
            import org.springframework.beans.factory.annotation.Autowired;
            import org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor;
            import com.bluec.freeads.businessservice.IAdsReplyBusinessService;
            import com.bluec.freeads.errors.Errors;
            import com.bluec.freeads.request.InsertAdsReplyRequest;
            import com.bluec.freeads.request.Request;
            import com.bluec.freeads.response.InsertAdsReplyResponse;
            import com.bluec.freeads.response.Response;
            import com.bluec.freeads.util.FreeAdsUtil;
            
            @Stateless
            @Local(IAdsReplyLocal.class)
            @Remote(IAdsReplyRemote.class)
            @RemoteBinding(jndiBinding="ejb/IAdsReplyRemote")
            @LocalBinding(jndiBinding="ejb/IAdsReplyLocal")
            @Interceptors(SpringBeanAutowiringInterceptor.class)
            public class AdsReplySessionBean implements IAdsReplyLocal,IAdsReplyRemote
            {
             private static final Logger log = Logger.getLogger(AdsReplySessionBean.class);
             @Autowired
             private IAdsReplyBusinessService adsReplyBusinessService;
            
             public Response InsertAdsReply(Request request)
             {
             long start = System.currentTimeMillis();
             InsertAdsReplyResponse insertAdsReplyResponse=null;
             if(FreeAdsUtil.validateRequestForNull(request))
             {
             log.error("User Insert AdsReply service failed due to NULL request");
             insertAdsReplyResponse=new InsertAdsReplyResponse();
             insertAdsReplyResponse.setErrors(new Errors(Errors.SYSTEM_ERROR_CODE_903,Errors.SYSTEM_ERROR_TEXT_903));
             insertAdsReplyResponse.setStatus(false);
             insertAdsReplyResponse.setStatusDescription("User Insert AdsReply service failed");
             return insertAdsReplyResponse;
             }
             if(log.isDebugEnabled())
             {
             log.debug("User Insert AdsReply service request : "+request.toString());
             }
             InsertAdsReplyRequest insertAdsReplyRequest=(InsertAdsReplyRequest)request;
             try
             {
             insertAdsReplyResponse= adsReplyBusinessService.InsertAdsReply(insertAdsReplyRequest);
             }
             catch (Throwable e)
             {
             log.error("Inside Insert AdsReply exception is ",e);
             e.printStackTrace();
             insertAdsReplyResponse=new InsertAdsReplyResponse();
             insertAdsReplyResponse.setErrors(new Errors(Errors.SYSTEM_ERROR_CODE_900,Errors.SYSTEM_ERROR_TEXT_900));
             insertAdsReplyResponse.setStatus(false);
             insertAdsReplyResponse.setStatusDescription("Insert AdsReply service failed");
            
             }
             if(log.isDebugEnabled())
             {
             log.debug("Insert AdsReply service Time ["+ (System.currentTimeMillis() - start) + " ] milliseconds !");
             }
             return insertAdsReplyResponse;
             }
            
            }
            
            



            EJB3 Local interface : IAdsReplyLocal.java
            package com.bluec.freeads.ejb;
            public interface IAdsReplyLocal extends IAdsReplyBusiness
            {
            }
            



            EJB3 Remote interface : IAdsReplyRemote.java
            package com.bluec.freeads.ejb;
            public interface IAdsReplyRemote extends IAdsReplyBusiness
            {
            }
            


            Business Interface : IAdsReplyBusiness.java
            package com.bluec.freeads.ejb;
            import com.bluec.freeads.request.Request;
            import com.bluec.freeads.response.Response;
            public interface IAdsReplyBusiness
            {
             public Response InsertAdsReply(Request request);
            }
            



            beanRefContext.xml and applicationcontext.xml are inside lib\freeads.jar

            beanRefContext.xml
            <?xml version="1.0" encoding="UTF-8"?>
            <beans xmlns="http://www.springframework.org/schema/beans"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.springframework.org/schema/beans
             http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
            <bean id="com.bluec.freeads.ejb" class="org.springframework.context.support.ClassPathXmlApplicationContext">
            <constructor-arg value="applicationContext.xml" />
            </bean>
            </beans>
            



            application.xml
            <?xml version="1.0" encoding="UTF-8"?>
            <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"
            xmlns="http://java.sun.com/xml/ns/javaee">
             <display-name>freeads</display-name>
             <module>
             <ejb>freeads-ejb.jar</ejb>
             </module>
             </application>
            



            jboss-app.xml
            <jboss-app>
             <loader-repository>
             com.bluec:archive=freeads.ear
             </loader-repository>
            </jboss-app>
            



            Thanks
            kumaran

            • 3. Re: EJB3.0 deployment failing in Jboss5.1.0GA
              jaikiran pai Master

              If you can share this application, then please attach it to https://jira.jboss.org/jira/browse/EJBTHREE-1969, so that we can investigate the cause of:

              Caused by: java.lang.IllegalStateException: Null beannMetaData
              at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:315)
              at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:235)
              at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.(BeanInterceptorMetaDataBridge.java:138)
              at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.(AdditiveBeanInterceptorMetaDataBridge.java:48)
              at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:194)
              at org.jboss.ejb3.EJBContainer.(EJBContainer.java:249)
              ... 45 more
              Caused by: java.lang.NullPointerException
              at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:268)
              ... 50 more


              • 4. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                kumaran srinivasan Newbie

                As mentioned i have attached my  ear file & source zip .Sorry for the late response. Please kindly take a look

                 

                Thanks in Adavance

                kumaran

                • 5. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                  jaikiran pai Master

                  There were some other users who had reported this too. So while looking into that, i was able to figure out what was going on. See my latest comments in that JIRA. The Null bean metadata thing has been cleanly fixed in the recently released AS 6.0.0.M1. The issue manifests if you have EJBs deployed in .ear/lib/somejar.jar. If you have a similar packaging then move such EJB jars to the root of the .ear instead of having them in the lib folder of the .ear

                  • 6. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                    kumaran srinivasan Newbie

                    I don't hava any ejb jar under .ear/lib folder. if you see my ear file all i have is one ejb jar i.e freeads-ejb.jar in the root folder . freeads-ejb.jar has bean class,remote,home & business interfaces. All the support ,helper classes and hibernate dao layers are inside a jar file freeads.jar under .ear/lib/folder.

                     

                    You mentioned you have fixed it in recent release released AS 6.0.0.M1.   I downloaded the Jboss5.1.0GA one month ago. Do i need download  the latest version again ?

                     

                    Thanks

                    kumaran

                    • 7. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                      jaikiran pai Master

                      Just looked at your package in the JIRA. You are packaging jboss specific jar files in your application. Remove the jboss-ejb3-ext-api.jar and jboss-javaee.jar from the .ear/lib folder.

                       

                      kumaran_is wrote:

                       

                       

                       

                      You mentioned you have fixed it in recent release released AS 6.0.0.M1.   I downloaded the Jboss5.1.0GA one month ago. Do i need download  the latest version again ?

                       

                      Thanks

                      kumaran

                       

                      With new technologies, the Application server is frequently released. JBoss AS 5.1.0 was released around 7 months back. The 6.0.0.M1 was released just a few weeks back. There will be a new 6.0.0.M2 very soon.

                      • 8. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                        kumaran srinivasan Newbie

                        Hi Jaikiran,

                         

                        I removed jboss related jars from the ear\lib and is working now. Thanks for all your help and support

                         

                        -Thanks

                        kumaran

                        • 9. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                          raj kumar Newbie

                          Hi Kumaran,

                           

                          unfortunately, i can't comment on your issue as i am new to jboss. i have a question for u. It looks like u r using jboss-app.xml to define the classloader policy. i am struggling with this for 2 days. i have jsf jar files in my web-inf/lib and i want jboss to use those jars (jboss server also has jsf jars which is used by default). though i defined my jboss-app.xml, it is still ignoring the jars in my web-inf/lib. r u able to use the jar files in ur war/ear file?. would u mind sharing ur full jboss-app.xml?. i even tried using jboss-classloading.xml (as i am using jboss 5.1 version). but no luck.

                           

                          Any help will be much appreciated.

                          • 10. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                            kumaran srinivasan Newbie

                            Hi Raj,

                            I am using  default JSF Implementation jar that  ships with Jboss5.1.0. May i know why you want to bundle separate JSF jar under lib folder.


                            To disable the built-JSF and want to use your own JSF jars then you need add below entry to web.xml. I never tried this approach.Hope it should work.

                            <context-param>
                                  <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
                                  <param-value>true</param-value>
                            </context-param

                            Makesure your application ear uses default classloader settings . i.e you should not
                            set any classeloader in jboss-app.xml just leave it blank

                            <jboss-app>
                            </jboss-app>


                            • 11. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                              Pepe Gamba Newbie

                              Hi, sorry for my english, i speak spanish. I have the same problem, but  I don't have any jar under .ear/lib folder (in fact, I don't have these folder).

                              Im using the 5.1.0GA version, I can't easily change the jboss version. Exists some workaround?

                              I can't attach my ear, it contains +- 300 ejbs

                              Thanks

                              • 12. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                                Brett Cave Newbie

                                Hi, I have the same issue here, and have slimmed down the application dramatically to troubleshoot.

                                 

                                Is there something obvious I need to do with this to get isolation working?

                                 

                                app1-ear.ear

                                | - some-ds.xml

                                | - app1-ejb.jar

                                | - lib

                                   | - app1-common.jar

                                   | - app1-entities.jar

                                | - META-INF

                                   | - application.xml

                                   | - jboss-app.xml

                                 

                                and then app2:

                                 

                                app2-ear.ear

                                | - app2.jar

                                | - app2.sar

                                | - jboss-seam.jar

                                | - lib

                                   | - my libraries: drools, commons-codec, gwt-servlet, httpclient, httpcore, app1-ejb-client, app1-entities

                                | - META-INF

                                   | - application.xml

                                   | - jboss-app.xml

                                 

                                app1 application.xml:

                                <application>

                                  <display-name>app1-ear.ear</display-name>

                                  <description>some desc</description>

                                  <module>

                                    <ejb>app1-ejb.jar</ejb>

                                  </module>

                                </application>

                                 

                                app1 jboss-app.xml:

                                <jboss-app>
                                  <module>
                                    <service>some-ds.xml</service>
                                  </module>
                                </jboss-app>

                                 

                                 

                                app2 application.xml is the same. jboss-seam.jar is listed as an EJB module, as is app2-ejb.jar. everything else is listed as a java module.

                                 

                                app2 jboss-app.xml

                                <jboss-app>
                                  <module>
                                    <service>app2.sar</service>
                                  </module>
                                </jboss-app>

                                 

                                Startup is fine, without any errors

                                If I add <loader-repository> configuration to both ear's, i get classcastexception, with "com.mycompany.app1.SomeClass cannot be cast to com.mycompany.app1.SomeClass" when trying to deploy app2.

                                 

                                I have tried with and without the loader-repository-config element, and with parent delegation set to both true and false, consistently get classcastexception errors.

                                 

                                Jboss AS 5.1.0.GA, jdk6_17

                                • 13. EJB3.0 deployment failing in Jboss5.1.0GA
                                  Vince Soh Newbie

                                  Thanks for the info.

                                   

                                  I hit the same problem and the root cause is the jboss jar. : )

                                  • 14. Re: EJB3.0 deployment failing in Jboss5.1.0GA
                                    Alexander Hartner Expert

                                    I am having the same issue. The ClientCommand.jar file only contains a manifest file. This jar file is used by lesser application servers such as webfear to invoke the deployed components. Unfortunately there is nothing I can do about these client jars being included in the EAR. Also the EAR works fine on JBoss 4.2.3.

                                     

                                    Any suggestions what I can change to get my EAR working on JBoss 5.1 ?

                                     

                                    org.jboss.deployers.spi.DeploymentException: Error deploying ClientCommand.jar: failed to initialize bean container
                                            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
                                            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
                                            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
                                            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                                            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                                            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                                            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                                            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                                            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                                            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                                            at org.jboss.Main.boot(Main.java:221)
                                            at org.jboss.Main$1.run(Main.java:556)
                                            at java.lang.Thread.run(Thread.java:662)
                                    Caused by: java.lang.RuntimeException: failed to initialize bean container
                                            at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:253)
                                            at org.jboss.ejb3.mdb.MessagingContainer.<init>(MessagingContainer.java:87)
                                            at org.jboss.ejb3.mdb.MDB.<init>(MDB.java:63)
                                            at org.jboss.ejb3.Ejb3AnnotationHandler.getMDB(Ejb3AnnotationHandler.java:336)
                                            at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:215)
                                            at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)
                                            at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
                                            at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
                                            at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
                                            at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
                                            at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
                                            ... 34 more
                                    Caused by: java.lang.IllegalStateException: Null beannMetaData
                                            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:315)
                                            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:235)
                                            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.<init>(BeanInterceptorMetaDataBridge.java:138)
                                            at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.<init>(AdditiveBeanInterceptorMetaDataBridge.java:48)
                                            at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:194)
                                            at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:249)
                                            ... 44 more
                                    Caused by: java.lang.NullPointerException
                                            at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:268)
                                            ... 49 more
                                    15:38:36,421 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                                    
                                    1 2 Previous Next