4 Replies Latest reply on Sep 15, 2010 11:04 AM by hedlabel

    Problems when deploying an .ear in JBoss AS

    hedlabel Newbie

      Guys, I'm having a problem when i try to deploy my application(as the title says). When I try to start the server the following erro occurs:

       

      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/Users/Megatech1/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1284485543642/deploy/sisbioid-ear.ear/sisbioid-ejb.jar/
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
          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.hotdeploy.HDScanner.scan(HDScanner.java:362)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
          at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NullPointerException
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Unknown Source)
          at org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor.process(SetDefaultLocalBusinessInterfaceProcessor.java:114)
          at org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain.process(JBossMetaDataProcessorChain.java:115)
          at org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:115)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
          ... 25 more
      14:57:27,135 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=sisbioidDatasource' to JNDI name 'java:sisbioidDatasource'
      14:57:27,137 WARN  [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      *** DEPLOYMENTS IN ERROR: Name -> Error

       

      vfsfile:/C:/Users/Megatech1/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1284485543642/deploy/sisbioid-ear.ear/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/Users/Megatech1/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1284485543642/deploy/sisbioid-ear.ear/sisbioid-ejb.jar/

       


      DEPLOYMENTS IN ERROR:
        Deployment "vfsfile:/C:/Users/Megatech1/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1284485543642/deploy/sisbioid-ear.ear/" is in error due to the following reason(s): java.lang.NullPointerException

       

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
          at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

       

      I googled about that, but I haven't found a solution. I'm using Eclipse Galileo with the JBoss AS 5.1.x and JBoss Seam 2.2.0GA.

       

       

      Thanks for helping!

        • 1. Re: Problems when deploying an .ear in JBoss AS
          jaikiran pai Master

          What does your EJB class and the business interface(s) look like?

          • 2. Re: Problems when deploying an .ear in JBoss AS
            hedlabel Newbie

            The application is quite big, and I don't know why(and where) this is happening, because I already deployed the application many times with no problems, but yesterday this error appeared with no reason. Oo"

            I think that this error might be in my remore interface, but it is very simples, just like that:

            @Remote
            public interface ImpressaoDigitalRemote
            {
                public void setData(byte data[]);
            }

             

            And the implementer is:

            @Name("impressaoDigitalHome")
            public class ImpressaoDigitalHome extends EntityHome<ImpressaoDigital> implements ImpressaoDigitalRemote{

             

            //some EntityHome methods generated by Seam

             

            public void setData(byte[] data) {
                    try {
                        getInstance().setData(data);
                    } catch (NullPointerException e) {
                        e.printStackTrace();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                   
                }

             

            And I have a .xml called jboss.xml:

             

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">
            <jboss>
               <enterprise-beans>
                  <session>
                     <ejb-name>ImpressaoDigitalHome</ejb-name>
                     <jndi-name>ImpressaoDigitalRemote</jndi-name>
                  </session>    
               </enterprise-beans>
            </jboss>

             

            Thanks for helping.

            • 3. Re: Problems when deploying an .ear in JBoss AS
              Wolfgang Knauf Master

              Hi,

               

              is your class "ImpressaoDigitalHome" the session bean? If yes: shouldn't it have an annotation "@Stateless"?

               

              Do you migrate an EJB 2 app, or what is the reason to have a "Home" bean? (at least this is an unusual name for an EJB3 entity).

               

              Byt the way: your "jboss.xml" has a mismatch beetween public ID and dtd reference. It should be:

              <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">

               

              Hope something of this helps

               

              Wolfgang

              1 of 1 people found this helpful
              • 4. Re: Problems when deploying an .ear in JBoss AS
                hedlabel Newbie

                I'm maintaing the software, so I don't know why the guys didn't use  @Stateless. I put the @Stateless and the new exception is that:

                 

                  java.lang.RuntimeException: Could not create Component: impressaoDigitalHome
                     at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1202)
                     at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1118)
                     at org.jboss.seam.init.Initialization.init(Initialization.java:733)
                     at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                     at java.lang.reflect.Method.invoke(Unknown Source)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                     at $Proxy38.start(Unknown Source)
                     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                     at  org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                     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.ServiceController.doChange(ServiceController.java:688)
                     at org.jboss.system.ServiceController.start(ServiceController.java:460)
                     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                     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:1178)
                     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.hotdeploy.HDScanner.scan(HDScanner.java:362)
                     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
                     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                     at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
                     at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
                     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
                     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
                     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
                     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                     at java.lang.Thread.run(Unknown Source)
                Caused by: java.lang.IllegalArgumentException: Only JavaBeans and  stateful session beans support @Create methods: impressaoDigitalHome
                     at org.jboss.seam.Component.scanMethod(Component.java:673)
                     at org.jboss.seam.Component.initMembers(Component.java:552)
                     at org.jboss.seam.Component.<init>(Component.java:244)
                     at org.jboss.seam.Component.<init>(Component.java:205)
                     at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1186)
                     ... 68 more

                 

                But I'm not using the @Create in any method. Oo"