Error Building RHQ Remoting Web Services Client 4.5.0-SNAPSHOT
chupito Jun 13, 2012 9:16 PMHi! I followed the build steps given at https://docs.jboss.org/author/display/RHQ/Building+RHQ & https://docs.jboss.org/author/display/RHQ/Advanced+Build+Notes , but when I run mvn -Penterprise,dev -Ddbsetup -DskipTests install command at "projects\rhq", I encounter these errors:
-------------------------------------------------------------------------------------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Building RHQ Remoting Web Services Client 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.1:enforce (enforce-versions) @ rhq-remoting-webservices ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:maven-version (default) @ rhq-remoting-webservices ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (write-build-properties-file) @ rhq-remoting-webservices ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (read-build-properties-file) @ rhq-remoting-webservices ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ rhq-remoting-webservices ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\projects\rhq\modules\enterprise\remoting\webservices\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ rhq-remoting-webservices ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (echo-build-properties) @ rhq-remoting-webservices ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (client-distribution) @ rhq-remoting-webservices ---
[INFO] Executing tasks
main:
[echo] ant.version=Apache Ant(TM) version 1.8.2 compiled on December 20 2010
prepare-dist:
prepare-jbossws:
unzip-jboss:
prepare-jbossws:
unzip-jboss:
prepare-wsdl:
[echo] *** Creating new wsdl
[echo] The JAVA HOME being used: C:\Program Files\Java\jdk1.7.0_04\jre
[echo]
[echo] List of Stateless Session Beans passed into WSProvide/WSConsume :Webservices
iterate-wsprovide:
[echo] *** Providing WebservicesManagerRemote wsdl...
[wsprovide] Error: Could not generate. (use --show-traces to see full traces)
[wsprovide] java.lang.IllegalStateException: Cannot build JAXB context
[wsprovide] at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:984)
[wsprovide] at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:154)
[wsprovide] at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:108)
[wsprovide] at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:124)
[wsprovide] at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:183)
[wsprovide] at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:76)
[wsprovide] Caused by: org.jboss.ws.WSException: Failed to create JAXBContext
[wsprovide] at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:114)
[wsprovide] at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:980)
[wsprovide] ... 5 more
[wsprovide] Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:1 counts of IllegalAnnotationExceptions
[wsprovide] java.lang.StackTraceElement does not have a no-arg default constructor.
[wsprovide] this problem is related to the following location:
[wsprovide] at java.lang.StackTraceElement
[wsprovide] at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
[wsprovide] at java.lang.Throwable
[wsprovide] at private java.lang.Throwable[] org.rhq.enterprise.server.webservices.jaxws.ExceptionBean.suppressed
[wsprovide] at org.rhq.enterprise.server.webservices.jaxws.ExceptionBean
[wsprovide]
[wsprovide] at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
[wsprovide] at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
[wsprovide] at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
[wsprovide] at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
[wsprovide] at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
[wsprovide] at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:108)
[wsprovide] ... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
.
.
.
[INFO] RHQ Remote Client Dependencies .................... SUCCESS [1.487s]
[INFO] RHQ Remoting Web Services Client .................. FAILURE [8.728s]
[INFO] RHQ Remoting Parent POM ........................... SKIPPED
.
.
.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:06.872s
[INFO] Finished at: Thu Jun 14 02:18:16 CEST 2012
[INFO] Final Memory: 148M/452M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (client-distribution) on project rhq-remoting-webservices: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] C:\projects\rhq\modules\enterprise\remoting\webservices\src\main\scripts\rhq-client.build.xml:55: The following error occurred while executing this line:
[ERROR] C:\projects\rhq\modules\enterprise\remoting\webservices\src\main\scripts\rhq-client.build.xml:188: The following error occurred while executing this line:
[ERROR] C:\projects\rhq\modules\enterprise\remoting\webservices\src\main\scripts\rhq-client.build.xml:216: Could not invoke WSProvideTask
[ERROR] around Ant part ...<ant antfile="C:\projects\rhq\modules\enterprise\remoting\webservices/src/main/scripts/rhq-client.build.xml" inheritRefs="false" dir="C:\projects\rhq\modules\enterprise\remoting\webservices" target="prepare-dist"inheritAll="false">... @ 5:235 in C:\projects\rhq\modules\enterprise\remoting\webservices\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :rhq-remoting-webservices
C:\projects\rhq>
-------------------------------------------------------------------------------------------------------------------------------------------------------
How can I fix them??