1 Reply Latest reply on Dec 22, 2010 1:23 PM by Filipe C

    war with rest and hibernate

    Filipe C Newbie

      Hi,

      I've a war pom.xml with rest easy dependencies, and it works when i've a code snippet.

       

      But when i put the hibernate dependencie it gives a lot of errors on deployment, i can'tunderstand whatś bad...

       

      POM

       

      <properties>
            <!--  tell the compiler we can use 1.5 -->
            <maven.compiler.source>1.6</maven.compiler.source>
            <maven.compiler.target>1.6</maven.compiler.target>
        </properties>

       

       

       

       


        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
          </dependency>
         
         
          <dependency>
              <groupId>javax.servlet</groupId>
              <artifactId>servlet-api</artifactId>
              <version>2.2</version>
              <scope>provided</scope>
            </dependency>   
                 
          <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.3</version>
          </dependency>

       

       

       

        <dependency>
                  <groupId>org.jboss.resteasy</groupId>
                  <artifactId>resteasy-jaxrs</artifactId>
                  <version>2.0.0.GA</version>
                  <!-- filter out unwanted jars -->
                  <exclusions>
                      <exclusion>
                          <groupId>commons-httpclient</groupId>
                          <artifactId>commons-httpclient</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>javax.servlet</groupId>
                          <artifactId>servlet-api</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>javax.xml.bind</groupId>
                          <artifactId>jaxb-api</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>com.sun.xml.bind</groupId>
                          <artifactId>jaxb-impl</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>
              <dependency>
                  <groupId>org.jboss.resteasy</groupId>
                  <artifactId>resteasy-jettison-provider</artifactId>
                  <version>2.0.0.GA</version>
                  <exclusions>
                      <exclusion>
                          <groupId>javax.xml.bind</groupId>
                          <artifactId>jaxb-api</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>com.sun.xml.bind</groupId>
                          <artifactId>jaxb-impl</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>javax.xml.stream</groupId>
                          <artifactId>stax-api</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>
                 
           
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-annotations</artifactId>
                  <version>3.4.0.GA</version>
              </dependency>
         
        </dependencies>

       


      <build>
          <outputDirectory>war/WEB-INF/classes</outputDirectory>
          <plugins>

       

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-war-plugin</artifactId>
              <version>2.0.2</version>
              <configuration>
                <warSourceDirectory>war</warSourceDirectory>
                <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
              </configuration>
            </plugin>
           
           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <!-- <version>2.0.2</version> -->
      <version>2.1</version>
                <configuration>
                  <source>${maven.compiler.source}</source>
                  <target>${maven.compiler.target}</target>
                </configuration>
            </plugin>
           
               
          </plugins>
        </build>

       

       

       

       

      crash

       

       

       

       

      11:32:42,866 INFO  [TomcatDeployment] deploy, ctxPath=/HeWeb

       

      11:32:42,924 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.

       

      11:32:42,924 ERROR [STDERR] SLF4J: Found binding in [vfszip:/usr/local/jboss/510/server/efaheall/deploy/applications/HeWeb.war/WEB-INF/lib/slf4j-simple-1.5.8.jar/org/slf4j/impl/StaticLoggerBinder.class]

       

      11:32:42,925 ERROR [STDERR] SLF4J: Found binding in [vfszip:/usr/local/jboss/510/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]

       

      11:32:42,925 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

       

      11:32:43,775 ERROR [STDERR] 847 [HDScanner] INFO org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap - Adding scanned resource: com.TryJSON

       

      11:32:43,876 ERROR [[/HeWeb]] Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap

       

      java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate MessageBodyReader

       

          at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:36)

       

          at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:171)

       

          at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)

       

          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(NativeMethodAccessorImpl.java:39)

       

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

          at java.lang.reflect.Method.invoke(Method.java:597)

       

          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.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(Executors.java:441)

       

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

       

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

       

          at java.lang.Thread.run(Thread.java:662)

       

      Caused by: java.lang.RuntimeException: Unable to instantiate MessageBodyReader

       

          at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:762)

       

          at org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:71)

       

          at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:32)

       

          ... 66 more

       

      Caused by: java.lang.RuntimeException: Failed to construct public org.jboss.resteasy.plugins.providers.DocumentProvider()

       

          at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:144)

       

          at org.jboss.resteasy.spi.ResteasyProviderFactory.getProviderInstance(ResteasyProviderFactory.java:1036)

       

          at org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyReader(ResteasyProviderFactory.java:450)

       

          at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:758)

       

          ... 68 more

       

      Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

       

          at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)

       

          at org.jboss.resteasy.plugins.providers.DocumentProvider.<init>(DocumentProvider.java:40)

       

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

       

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

       

          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

       

          at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:132)

       

          ... 71 more

       

      11:32:43,878 ERROR [StandardContext] Error listenerStart

       

      11:32:43,878 ERROR [StandardContext] Context [/HeWeb] startup failed due to previous errors

       

      11:32:43,880 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/HeWeb state=Create mode=Manual requiredState=Installed

       

      org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/jboss/510/server/efaheall/tmp/3j011-ey97yb-ghyonvoj-1-ghyptxyz-b0/HeWeb.war/ deployment failed

       

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

       

          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(NativeMethodAccessorImpl.java:39)

       

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

          at java.lang.reflect.Method.invoke(Method.java:597)

       

          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.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(Executors.java:441)

       

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

       

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

       

          at java.lang.Thread.run(Thread.java:662)

       

      11:32:43,889 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/usr/local/jboss/510/server/efaheall/deploy/applications/HeWeb.war/ state=PreReal mode=Manual requiredState=Real

       

      org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/jboss/510/server/efaheall/tmp/3j011-ey97yb-ghyonvoj-1-ghyptxyz-b0/HeWeb.war/ deployment failed

       

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

       

          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(NativeMethodAccessorImpl.java:39)

       

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

          at java.lang.reflect.Method.invoke(Method.java:597)

       

          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.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(Executors.java:441)

       

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

       

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

       

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

       

          at java.lang.Thread.run(Thread.java:662)

       

      11:32:43,892 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

       

      vfszip:/usr/local/jboss/510/server/efaheall/deploy/applications/HeWeb.war/ -> org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/jboss/510/server/efaheall/tmp/3j011-ey97yb-ghyonvoj-1-ghyptxyz-b0/HeWeb.war/ deployment failed

       

       

      DEPLOYMENTS IN ERROR:

       

        Deployment "vfszip:/usr/local/jboss/510/server/efaheall/deploy/applications/HeWeb.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/usr/local/jboss/510/server/efaheall/tmp/3j011-ey97yb-ghyonvoj-1-ghyptxyz-b0/HeWeb.war/ deployment failed

       

          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(Executors.java:441)

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

        • 1. Re: war with rest and hibernate
          Filipe C Newbie

          found the problem:

           

          hibernate dependency shall be provided.

           

             <dependency>
                    <groupId>org.jboss.ejb3</groupId>
                    <artifactId>jboss-ejb3-core</artifactId>
                    <version>1.1.20</version>
            <scope>provided</scope>
                  </dependency>