Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5732

Deployment of @WebService fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-5.0.0.GA
    • JBossAS-5.0.0.CR1, JBossAS-5.0.0.CR2
    • Web Services
    • None

      When I try to deploy seam application which exposes stateless session bean as web service deployment fails with exception:

      10:51:00,178 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/development/tools/jboss-5.0.0.CR1/server/bankain/deploy/BIN.ear state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/development/tools/jboss-5.0.0.CR1/server/bankain/deploy/BIN.ear/BIN.jar
              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:180)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1023)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
              at org.jboss.Main.boot(Main.java:209)
              at org.jboss.Main$1.run(Main.java:544)
              at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
              at org.jboss.wsf.common.KernelAwareSPIFactory.getKernelProvidedSPI(KernelAwareSPIFactory.java:40)
              at org.jboss.wsf.framework.DefaultWSFRuntimeLocator.locateRuntime(DefaultWSFRuntimeLocator.java:36)
              at org.jboss.wsf.container.jboss50.deployer.AbstractDeployerHook.getWsfRuntime(AbstractDeployerHook.java:59)
              at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:86)
              at org.jboss.wsf.container.jboss50.deployer.AbstractDeployerHookEJB.deploy(AbstractDeployerHookEJB.java:43)
              at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:62)
              at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:95)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
              ... 18 more
      

      if I just remove @WebService from my bean it works.
      sample bean:

      @Stateless
      @WebService(name = "SessionValid", serviceName = "SessionValid")
      @Name("sessionValid")
      @SOAPBinding(style = SOAPBinding.Style.RPC )
      public class SessionValidBean implements SessionValid {
      
      	private static final Logger log = Logger.getLogger(SessionValidBean.class);
      
      	@WebMethod
      	public boolean isSessionValid(@WebParam(name="sessionId") String sessionId) {
      		log.info("calling is session valid for session id: "+sessionId);
      		return true;
      	}
      }
      

              ropalka Richard Opalka
              tomazcerar Tomaž Cerar (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: