Validator missing during deployment - AS7
samwun9988 Jan 7, 2012 8:04 AMHi, with Spring 3, Hibernate 3 and AS7.1, I don't know why I am getting the following error:
09:48:50,281 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-3) Add Service
id=CategorySubcategoriesServiceImpl
address=http://localhost:8080/category6-ws-web/CategoryServices
implementor=ix.houseware.category.service.CategorySubcategoriesServiceImpl
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://service.category.houseware.ix/}CategorySubcategoriesServiceImplService
portName={http://service.category.houseware.ix/}CategorySubcategoriesServiceImplPort
wsdlLocation=null
mtomEnabled=false
09:48:50,282 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-3) Add Service
id=CategoryImagesServiceImpl
address=http://localhost:8080/category6-ws-web/CategoryImagesServices
implementor=ix.houseware.category.service.CategoryImagesServiceImpl
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://service.category.houseware.ix/}CategoryImagesServiceImplService
portName={http://service.category.houseware.ix/}CategoryImagesServiceImplPort
wsdlLocation=null
mtomEnabled=false
09:48:50,283 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-3) register: jboss.ws:context=category6-ws-web,endpoint=CategorySubcategoriesServiceImpl
09:48:50,285 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-3) register: jboss.ws:context=category6-ws-web,endpoint=CategoryImagesServiceImpl
09:48:50,423 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-3) Creating Service {http://service.category.houseware.ix/}CategorySubcategoriesServiceImplService from class ix.houseware.category.service.CategorySubcategoriesService
09:48:50,965 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-3) Setting the server's publish address to be http://localhost:8080/category6-ws-web/CategoryServices
09:48:51,065 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-3) WSDL published to: file:/usr/local/users/jboss/jboss71A2/standalone/data/wsdl/category6-ws-ear.ear/catetory6-ws-web.war/CategorySubcategoriesServiceImplService.wsdl
09:48:51,070 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-3) Creating Service {http://service.category.houseware.ix/}CategoryImagesServiceImplService from class ix.houseware.category.service.CategoryImagesService
09:48:51,128 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-3) Setting the server's publish address to be http://localhost:8080/category6-ws-web/CategoryImagesServices
09:48:51,146 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-3) WSDL published to: file:/usr/local/users/jboss/jboss71A2/standalone/data/wsdl/category6-ws-ear.ear/catetory6-ws-web.war/CategoryImagesServiceImplService.wsdl
09:48:51,226 INFO [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-4) Starting service jboss.ws.endpoint.category6-ws-web.CategoryImagesServiceImpl
09:48:51,227 INFO [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-7) Starting service jboss.ws.endpoint.category6-ws-web.CategorySubcategoriesServiceImpl
09:48:51,240 INFO [org.jboss.web] (MSC service thread 1-5) registering web context: /category6-ws-web
09:48:51,444 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "category6-ws-ear.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.subunit.\"category6-ws-ear.ear\".\"category6-ws-ejb.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"category6-ws-ear.ear\".\"category6-ws-ejb.jar\".INSTALL: Failed to process phase INSTALL of subdeployment \"category6-ws-ejb.jar\" of deployment \"category6-ws-ear.ear\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade.Validator missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade ]","jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade.ValidatorFactory missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade ]","jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade.Validator missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade ]","jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade.ValidatorFactory missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade ]"]}
09:48:51,445 INFO [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-8) Stopping service jboss.ws.endpoint.category6-ws-web.CategoryImagesServiceImpl
09:48:51,446 INFO [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-1) Stopping service jboss.ws.endpoint.category6-ws-web.CategorySubcategoriesServiceImpl
09:48:51,478 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) remove: jboss.ws:context=category6-ws-web,endpoint=CategorySubcategoriesServiceImpl
09:48:51,478 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) remove: jboss.ws:context=category6-ws-web,endpoint=CategoryImagesServiceImpl
09:48:51,483 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment category6-ws-ejb.jar in 39ms
09:48:51,490 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment catetory6-ws-web.war in 46ms
09:48:51,499 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment category6-ws-ear.ear in 55ms
09:48:51,500 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.subunit.\"category6-ws-ear.ear\".\"category6-ws-ejb.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"category6-ws-ear.ear\".\"category6-ws-ejb.jar\".INSTALL: Failed to process phase INSTALL of subdeployment \"category6-ws-ejb.jar\" of deployment \"category6-ws-ear.ear\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade.Validator missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade ]","jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade.ValidatorFactory missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade ]","jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade.Validator missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategoryImagesFacade ]","jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade.ValidatorFactory missing [ jboss.naming.context.java.comp.category6-ws-ear.category6-ws-ejb.CategorySubcategoriesFacade ]"]}}}
Here is my pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>category6-ws</artifactId>
<groupId>ix.houseware.category</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>ix.houseware.category</groupId>
<artifactId>category6-ws-ejb</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>ejb</packaging>
<name>category6-ws-ejb EJB</name>
<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<log4j.version>1.2.14</log4j.version>
<hibernate.version>3.5.3-Final</hibernate.version>
<netbeans.hint.deploy.server>JBoss4</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-envers</artifactId>
<version>${hibernate.version}</version>
<exclusions>
<exclusion>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.8</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<targetPath>META-INF</targetPath>
<directory>src</directory>
<includes/>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.3</version>
<configuration>
<ejbVersion>3.1</ejbVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>6.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.10</version>
<executions></executions>
<dependencies>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>webservices-api</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<configuration>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<xnocompile>true</xnocompile>
<verbose>true</verbose>
<extension>true</extension>
<catalog>${basedir}/src/jax-ws-catalog.xml</catalog>
<target>2.0</target>
</configuration>
</plugin>
</plugins>
<finalName>category6-ws-ejb</finalName>
</build>
</project>
Any suggestion would be very appreciated.
Thanks
Sam