Where did you get the jar home/jboss/.m2/repository/com/sun/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar ?
2009/11/25 Koxkorrita <koxkorr...@laudio.info>: > Hello > > i have one great problem > > i have several days trying to compile one Webservice using jaxb. > > the pom i have writte bellow. > > whe y ry to make one mvn package always appears this error: > > > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] BUILD FAILURE > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Compilation failure > > error: error reading > /home/jboss/.m2/repository/com/sun/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar; > error in opening zip file > > error: error reading > /home/jboss/.m2/repository/com/sun/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar; > error in opening zip file > > > > > > i have deleting the dir but it doesn't work well the new downloaded file is > corrupt. > > > > Can you help me please? i dont know how to load running. > > thanks > > my pom is is this: > > <?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/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > <groupId>my.proyect</groupId> > > <artifactId>myWS</artifactId> > > <packaging>war</packaging> > > <name>my webservice</name> > > <version>0.0.1-SNAPSHOT</version> > > <description /> > > <developers> > > <developer> > > </developer> > > </developers> > > <repositories> > > <repository> > > > <id>maven2-repository.dev.java.net</id> > > <name>Java.net Maven 2 > Repository</name> > > > <url>http://download.java.net/maven/2</url> > > </repository> > > <repository> > > <id>java.net</id> > > <name>java.net Maven > Repository</name> > > > <url>https://maven-repository.dev.java.net/nonav/repository</url> > > <layout>legacy</layout> > > </repository> > > <repository> > > <id>maven1</id> > > <name>maven1</name> > > > <url>http://download.java.net/maven/1/</url> > > </repository> > > <repository> > > <id>maven2 ibiblio</id> > > <name>maven2 ibiblio</name> > > > <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url> > > </repository> > > </repositories> > > <pluginRepositories> > > <pluginRepository> > > > <id>maven2-repository.dev.java.net</id> > > <name>Java.net Maven 2 > Repository</name> > > > <url>http://download.java.net/maven/2</url> > > </pluginRepository> > > </pluginRepositories> > > > > <build> > > <finalName>${artifactId}</finalName> > > <plugins> > > <plugin> > > > <artifactId>maven-war-plugin</artifactId> > > </plugin> > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-plugin-plugin</artifactId> > > > <version>2.3</version> > > > <dependencies> > > > <dependency> > > > <groupId>org.jfrog.maven.annomojo</groupId> > > > <artifactId>maven-plugin-tools-anno</artifactId> > > > <version>1.2.4</version> > > > <scope>runtime</scope> > > > </dependency> > > > </dependencies> > > </plugin> > > <plugin> > > > <groupId>org.jvnet.jaxb2.maven2</groupId> > > > <artifactId>maven-jaxb2-plugin</artifactId> > > <executions> > > > <execution> > > > <goals> > > > <goal>generate</goal> > > > </goals> > > > </execution> > > </executions> > > > <configuration> > > > <generateDirectory>src/main/java</generateDirectory> > > > <generatePackage>my.proyect.entities</generatePackage> > > > <includeSchemas> > > > <includeSchema>myWsXSD.xsd</includeSchema> > > > </includeSchemas> > > > <strict>true</strict> > > > <verbose>true</verbose> > > > </configuration> > > > <version>0.7.1</version> > > </plugin> > > <plugin> > > > <groupId>org.codehaus.mojo</groupId> > > > <artifactId>jaxws-maven-plugin</artifactId> > > <executions> > > > <execution> > > > <id>wsgen</id> > > > <goals> > > > <goal>wsgen</goal> > > > </goals> > > > <configuration> > > > <keep>true</keep> > > > <genWsdl>true</genWsdl> > > > <sei>my.proyect.impl.myWSImpl</sei> > > > <sourceDestDir>src/main/java/</sourceDestDir> > > > </configuration> > > > </execution> > > > <execution> > > > <id>wsimport</id> > > > <phase>generate-test-sources</phase> > > > <goals> > > > <goal>wsimport</goal> > > > </goals> > > > <configuration> > > > <verbose>true</verbose> > > > <wsdlFiles> > > > <wsdlFile>../../target/jaxws/wsgen/wsdl/myWS.wsdl > > > </wsdlFile> </wsdlFiles> > > > > > <sourceDestDir>src/test/java/</sourceDestDir> > > > </configuration> > > > > > </execution> > > </executions> > > > <dependencies> > > > <dependency> > > > <groupId>com.sun.xml.ws</groupId> > > > <artifactId>jaxws-tools</artifactId> > > > <version>2.1.7</version> > > > </dependency> > > > </dependencies> > > </plugin> > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-javadoc-plugin</artifactId> > > > <configuration> > > > <doctitle>My API for ${project.name} ${project.version} > > > </doctitle> > > > <!-- Used by javadoc:javadoc goal --> > > > <windowtitle>My API for ${project.name} ${project.version} > > > </windowtitle> > > > <!-- Used by javadoc:javadoc goal --> > > > <testDoctitle>My Test API for ${project.name} ${project.version} > > > </testDoctitle> > > > <!-- Used by javadoc:test-javadoc goal --> > > > <testWindowtitle>My Test API for ${project.name} > > > ${project.version}</testWindowtitle> > > > <!-- Used by javadoc:test-javadoc goal --> > > > </configuration> > > </plugin> > > > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-jxr-plugin</artifactId> > > > <version>2.1</version> > > </plugin> > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-docck-plugin</artifactId> > > > <version>1.0</version> > > </plugin> > > > > </plugins> > > </build> > > <dependencies> > > <dependency> > > > <groupId>org.jvnet.jax-ws-commons.spring</groupId> > > > <artifactId>jaxws-spring</artifactId> > > <version>1.8</version> > > <exclusions> > > <!-- > Incorrect version declared in this pom --> > > <exclusion> > > > <groupId>com.sun.xml.ws</groupId> > > > <artifactId>jaxws-rt</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>javax.jws</groupId> > > > <artifactId>jsr181-api</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>com.sun.xml.bind</groupId> > > > <artifactId>jaxb-impl</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>javax.xml.soap</groupId> > > > <artifactId>saaj-api</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>com.sun.xml.messaging.saaj</groupId> > > > <artifactId>saaj-impl</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>com.sun.xml.stream.buffer</groupId> > > > <artifactId>streambuffer</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>com.sun.xml.stream</groupId> > > > <artifactId>sjsxp</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>com.sun.org.apache.xml.internal</groupId> > > > <artifactId>resolver</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>javax.annotation</groupId> > > > <artifactId>jsr250-api</artifactId> > > </exclusion> > <exclusion> > > > <groupId>javax.activation</groupId> > > > <artifactId>activation</artifactId> > > </exclusion> > > <exclusion> > > > <groupId>javax.servlet</groupId> > > > <artifactId>servlet-api</artifactId> > > </exclusion> > > </exclusions> > > </dependency> > > <dependency> > > <groupId>log4j</groupId> > > > <artifactId>log4j</artifactId> > > <version>1.2.14</version> > > <type>jar</type> > > <scope>provided</scope> > > </dependency> > > <dependency> > > <groupId>junit</groupId> > > > <artifactId>junit</artifactId> > > <version>3.8.1</version> > > <scope>test</scope> > > </dependency> > > <dependency> > > > <groupId>org.jfrog.maven.annomojo</groupId> > > > <artifactId>maven-plugin-anno</artifactId> > > <version>1.3.1</version> > > </dependency> > > <dependency> > > <groupId>castor</groupId> > > > <artifactId>castor</artifactId> > > <version>1.0</version> > > </dependency> > > <dependency> > > <groupId>xerces</groupId> > > > <artifactId>xercesImpl</artifactId> > > <version>2.7.1</version> > > <scope>provided</scope> > > </dependency> > > <dependency> > > <groupId>soap</groupId> > > <artifactId>soap</artifactId> > > <version>2.3.1</version> > > <scope>test</scope> > > </dependency> > > <dependency> > > > <groupId>javax.xml.bind</groupId> > > > <artifactId>jaxb-api</artifactId> > > <version>2.1</version> > > <type>jar</type> > > <scope>provided</scope> > > </dependency> > > <dependency> > > > <groupId>org.springframework</groupId> > > > <artifactId>spring-beans</artifactId> > > <version>2.5.6</version> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.springframework</groupId> > > > <artifactId>spring-web</artifactId> > > <version>2.5.6</version> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.springframework</groupId> > > > <artifactId>spring-context</artifactId> > > <version>2.5.6</version> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.springframework</groupId> > > > <artifactId>spring-tx</artifactId> > > <version>2.5.6</version> > > <type>jar</type> > > > <classifier>sources</classifier> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.springframework</groupId> > > > <artifactId>spring-aop</artifactId> > > <version>2.5.6</version> > > <type>jar</type> > > > <classifier>sources</classifier> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.aspectj</groupId> > > > <artifactId>aspectjweaver</artifactId> > > <version>1.6.1</version> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.springframework</groupId> > > > <artifactId>spring-core</artifactId> > > <version>2.5.6</version> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.apache.xbean</groupId> > > > <artifactId>xbean-spring</artifactId> > > <version>2.7</version> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > <dependency> > > > <groupId>org.jvnet.staxex</groupId> > > > <artifactId>stax-ex</artifactId> > > <version>1.2</version> > > <type>jar</type> > > </dependency> > > <dependency> > > > <groupId>com.sun.xml.ws</groupId> > > > <artifactId>jaxws-rt</artifactId> > > <version>2.1.4</version> > > <type>jar</type> > > </dependency> > > <dependency> > > > <groupId>com.sun.xml.bind</groupId> > > > <artifactId>jaxb-api</artifactId> > > <version>2.1</version> > > <type>jar</type> > > <scope>provided</scope> > > </dependency> > > </dependencies> > > <reporting> > > <plugins> > > <plugin> > > > <groupId>org.codehaus.mojo</groupId> > > > <artifactId>taglist-maven-plugin</artifactId> > > > <version>2.2</version> > > > <configuration> > > > <tags> > > > <tag>TODO</tag> > > > <tag>FIXME</tag> > > > <tag>@todo</tag> > > > <tag>@deprecated</tag> > > > </tags> > > > </configuration> > > </plugin> > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-javadoc-plugin</artifactId> > > </plugin> > > </plugins> > > </reporting> > > <distributionManagement></distributionManagement> > > </project> > > > >