8 Replies Latest reply on Jul 22, 2011 7:45 PM by abhi0123

    JAX-WS service with EJB endpoint would not deploy

    abhi0123 Newbie

      Simple JAX-WS service with EJB endpoint fails to deploy. The AS7 does not seem to handle Web Services well at all. This is the 3rd problem that I found. Service deploys just fine in other Java EE 6 compliant servers.

       

      MovieServiceEJB.java


      {code}

      @Stateless

      @WebService

      @SOAPBinding(style = Style.DOCUMENT, parameterStyle = ParameterStyle.WRAPPED, use = Use.LITERAL)

      public interface MovieServiceEJB {

       

          @WebMethod(operationName = "getMovies")

          public OrderedAssembly<Movie> getMovieSet(

              @WebParam(name = "inputDirpath") String path) throws IOException;

      }

      {code}

       

      MovieServiceEJBImpl.java

       

      {code}

      @Stateless

      @WebService(name = "movieservice", serviceName = "movieServiceEjb", targetNamespace = "http://name.app.abhi/movieservice/ejb", endpointInterface = "name.app.abhi.movieservice.ejb.service.MovieServiceEJB")

      public class MovieServiceEJBImpl implements MovieServiceEJB {

          private MovieServiceImpl movieService = new MovieServiceImpl();

       

          @Override

          public OrderedAssembly<Movie> getMovieSet(String path) throws IOException {

          SortedSet<Movie> movieSet = movieService.getMovieSet(path);

          return new OrderedAssembly<Movie>(movieSet,

              new MovieComparator<Movie>());

          }

      }

      {code}

       

       

      {code}

      08:14:19,275 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."movie-service-ear-1.0-SNAPSHOT.ear"."movie-service-ejb-1.0-SNAPSHOT.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."movie-service-ear-1.0-SNAPSHOT.ear"."movie-service-ejb-1.0-SNAPSHOT.jar".INSTALL: Failed to process phase INSTALL of subdeployment "movie-service-ejb-1.0-SNAPSHOT.jar" of deployment "movie-service-ear-1.0-SNAPSHOT.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

          at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      Caused by: java.lang.RuntimeException: java.lang.InstantiationException: name.app.abhi.movieservice.ejb.service.MovieServiceEJB

          at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.newInstance(NonSpringBusHolder.java:170)

          at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:93)

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109)

          at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132)

          at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.internalDeploy(AspectDeploymentProcessor.java:78)

          at org.jboss.as.webservices.deployers.TCCLDeploymentProcessor.deploy(TCCLDeploymentProcessor.java:42)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

      Caused by: java.lang.InstantiationException: name.app.abhi.movieservice.ejb.service.MovieServiceEJB

          at java.lang.Class.newInstance0(Class.java:340) [:1.6.0_26]

          at java.lang.Class.newInstance(Class.java:308) [:1.6.0_26]

          at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.newInstance(NonSpringBusHolder.java:166)

          ... 11 more

      {code}