Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-3714

Null Pointer Exception when using Apache configuration files

    XMLWordPrintable

Details

    • Hide

      With a clean install of a JBoss 5.1.0GA, JBoss ESB 4.10, and Apache CXF 3.4.0GA , create an empty esb project.
      Create a cxf configuration file on the root level of the esb labeled cxf.xml. Guidelines were used here http://cxf.apache.org/docs/configuration.html

      Sanity check was done to confirm the server started fine with no errors without the cxf.xml file.

      Show
      With a clean install of a JBoss 5.1.0GA, JBoss ESB 4.10, and Apache CXF 3.4.0GA , create an empty esb project. Create a cxf configuration file on the root level of the esb labeled cxf.xml. Guidelines were used here http://cxf.apache.org/docs/configuration.html Sanity check was done to confirm the server started fine with no errors without the cxf.xml file.

    Description

      This is performed on a clean install of JBoss 5.1.0GA jdk6 , JBossESB 4.10 , and JBossWS CXF 3.4.0GA.

      If I use a Apache configuration file cxf.xml for an esb, an null pointer exception occurs when trying to deploy juddiv3.war

      2011-11-23 09:54:55,654 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (main) CXF configuration found: vfsfile:/C:/jboss/server/default/deploy/cxf-bug.esb/cxf.xml
      2011-11-23 09:54:56,293 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/C:/jboss/server/default/deploy/juddiv3.war/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/jboss/server/default/deploy/juddiv3.war/
      	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.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.NullPointerException
      	at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:96)
      	at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:110)
      	at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:107)
      	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      	... 29 more
      

      This did not happen on previous versions of JBoss ESB and only started with 4.10

      Thank you

      Attachments

        Activity

          People

            Unassigned Unassigned
            bl5536 Brian L (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: