0 Replies Latest reply on Aug 24, 2010 8:25 AM by phelen harg

    CDK build error

    phelen harg Newbie

      [INFO] Scanning for projects...
      [INFO] Reactor build order:
      [INFO]   Richfaces UI Components: schedule bom
      [INFO]   Richfaces UI Components: schedule parent
      [INFO]   Richfaces UI Components: schedule ui
      [INFO]   Richfaces UI Components: schedule demo
      [INFO]   Richfaces UI Components: Schedule Aggregator
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Richfaces UI Components: schedule bom
      [INFO]    task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
      [INFO] [enforcer:enforce {execution: enforce-java-version}]
      [INFO] [enforcer:enforce {execution: enforce-maven-version}]
      [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
      [INFO] [source:jar-no-fork {execution: attach-sources}]
      [INFO] [install:install {execution: default-install}]
      [INFO] Installing C:\WorkSpace\Schedule\bom\pom.xml to C:\Users\Romulo\.m2\repo
      itory\org\richfaces\ui\schedule\richfaces-ui-schedule-bom\4.0.0-SNAPSHOT\richfa
      es-ui-schedule-bom-4.0.0-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Richfaces UI Components: schedule parent
      [INFO]    task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
      [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequirePluginVersions faile
      with message:
      Some plugins are missing valid versions:(LATEST RELEASE SNAPSHOT are not allowe
      )
      org.richfaces.cdk:maven-cdk-plugin.     The version currently in use is 4.0.0-S
      APSHOT
      Best practice is to always define plugin versions!
      [INFO] [enforcer:enforce {execution: enforce-java-version}]
      [INFO] [enforcer:enforce {execution: enforce-maven-version}]
      [INFO] [cdk:generate {execution: cdk-generate-sources}]
      [INFO] Skipping 'pom' packaging project: org.richfaces.ui.schedule:richfaces-ui
      schedule-parent:pom:4.0.0-SNAPSHOT
      [INFO] Preparing checkstyle:check
      [INFO] [checkstyle:checkstyle {execution: checkstyle}]
      [INFO] Source directory does not exist - skipping report.
      [INFO] [checkstyle:check {execution: richfaces-checkstyle-report}]
      [INFO] Unable to perform checkstyle:check, unable to find checkstyle:checkstyle
      outputFile.
      [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
      [INFO] [source:jar-no-fork {execution: attach-sources}]
      [INFO] [install:install {execution: default-install}]
      [INFO] Installing C:\WorkSpace\Schedule\parent\pom.xml to C:\Users\Romulo\.m2\r
      pository\org\richfaces\ui\schedule\richfaces-ui-schedule-parent\4.0.0-SNAPSHOT\
      ichfaces-ui-schedule-parent-4.0.0-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Richfaces UI Components: schedule ui
      [INFO]    task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
      [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequirePluginVersions faile
      with message:
      Some plugins are missing valid versions:(LATEST RELEASE SNAPSHOT are not allowe
      )
      org.richfaces.cdk:maven-cdk-plugin.     The version currently in use is 4.0.0-S
      APSHOT
      Best practice is to always define plugin versions!
      [INFO] [enforcer:enforce {execution: enforce-java-version}]
      [INFO] [enforcer:enforce {execution: enforce-maven-version}]
      [INFO] [cdk:generate {execution: cdk-generate-sources}]


      An annotation processor threw an uncaught exception.
      Consult the following stack trace for details.
      org.richfaces.cdk.CdkException: XML error
              at org.richfaces.cdk.xmlconfig.JAXBBinding.unmarshal(JAXBBinding.java:1
      9)
              at org.richfaces.cdk.xmlconfig.JAXBBinding.unmarshal(JAXBBinding.java:9
      )
              at org.richfaces.cdk.templatecompiler.RendererTemplateParser.parseTempl
      te(RendererTemplateParser.java:293)
              at org.richfaces.cdk.templatecompiler.RendererTemplateParser.build(Rend
      rerTemplateParser.java:191)
              at org.richfaces.cdk.templatecompiler.RendererTemplateParser.build(Rend
      rerTemplateParser.java:161)
              at org.richfaces.cdk.apt.CdkProcessorImpl.processNonJavaSources(CdkProc
      ssorImpl.java:112)
              at org.richfaces.cdk.apt.CdkProcessorImpl.process(CdkProcessorImpl.java
      101)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProces
      or(JavacProcessingEnvironment.java:624)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$000
      JavacProcessingEnvironment.java:69)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment$Discovered
      rocessors$ProcessorStateIterator.runContributingProcs(JavacProcessingEnvironmen
      .java:484)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment.runLastRou
      d(JavacProcessingEnvironment.java:839)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessi
      g(JavacProcessingEnvironment.java:766)
              at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompile
      .java:981)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
              at com.sun.tools.javac.main.Main.compile(Main.java:353)
              at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
              at org.richfaces.cdk.apt.AptBuilder.build(AptBuilder.java:61)
              at org.richfaces.cdk.Generator.execute(Generator.java:155)
              at org.richfaces.builder.mojo.GenerateMojo.execute(GenerateMojo.java:23
      )
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
      nManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
      ultLifecycleExecutor.java:694)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
      fecycle(DefaultLifecycleExecutor.java:556)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
      ltLifecycleExecutor.java:535)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
      dleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
      ts(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
      fecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:
      0)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430

              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://r
      chfaces.org/cdk/core", local:"root"). Expected elements are <{http://jboss.org/
      chema/richfaces/cdk/core}body>,<{http://jboss.org/schema/richfaces/cdk/core}cal
      >,<{http://jboss.org/schema/richfaces/cdk/core}case>,<{http://jboss.org/schema/
      ichfaces/cdk/jstl/core}choose>,<{http://jboss.org/schema/richfaces/cdk/core}def
      ult>,<{http://jboss.org/schema/richfaces/cdk/jstl/core}forEach>,<{http://jboss.
      rg/schema/richfaces/cdk/jstl/core}if>,<{http://jboss.org/schema/richfaces/cdk/j
      f/composite}implementation>,<{http://jboss.org/schema/richfaces/cdk/jsf/composi
      e}interface>,<{http://jboss.org/schema/richfaces/cdk/core}object>,<{http://jbos
      .org/schema/richfaces/cdk/jstl/core}otherwise>,<{http://jboss.org/schema/richfa
      es/cdk/core}resourceDependency>,<{http://jboss.org/schema/richfaces/cdk/core}ro
      t>,<{http://jboss.org/schema/richfaces/cdk/core}switch>,<{http://jboss.org/sche
      a/richfaces/cdk/jstl/core}when>
              at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handle
      vent(UnmarshallingContext.java:642)
              at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.j
      va:254)
              at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.j
      va:249)
              at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChil
      Element(Loader.java:116)
              at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$Defaul
      RootLoader.childElement(UnmarshallingContext.java:1049)
              at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._start
      lement(UnmarshallingContext.java:478)
              at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startE
      ement(UnmarshallingContext.java:459)
              at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startEl
      ment(InterningXmlVisitor.java:71)
              at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(S
      XConnector.java:148)
              at org.apache.cocoon.pipeline.component.sax.XIncludeTransformer.startEl
      ment(XIncludeTransformer.java:230)
              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sou
      ce)
              at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown So
      rce)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfte
      Name(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.
      canRootElementHook(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConten
      Dispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
      known Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.richfaces.cdk.xmlconfig.JAXBBinding.unmarshal(JAXBBinding.java:1
      6)
              ... 37 more
      Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://r
      chfaces.org/cdk/core", local:"root"). Expected elements are <{http://jboss.org/
      chema/richfaces/cdk/core}body>,<{http://jboss.org/schema/richfaces/cdk/core}cal
      >,<{http://jboss.org/schema/richfaces/cdk/core}case>,<{http://jboss.org/schema/
      ichfaces/cdk/jstl/core}choose>,<{http://jboss.org/schema/richfaces/cdk/core}def
      ult>,<{http://jboss.org/schema/richfaces/cdk/jstl/core}forEach>,<{http://jboss.
      rg/schema/richfaces/cdk/jstl/core}if>,<{http://jboss.org/schema/richfaces/cdk/j
      f/composite}implementation>,<{http://jboss.org/schema/richfaces/cdk/jsf/composi
      e}interface>,<{http://jboss.org/schema/richfaces/cdk/core}object>,<{http://jbos
      .org/schema/richfaces/cdk/jstl/core}otherwise>,<{http://jboss.org/schema/richfa
      es/cdk/core}resourceDependency>,<{http://jboss.org/schema/richfaces/cdk/core}ro
      t>,<{http://jboss.org/schema/richfaces/cdk/core}switch>,<{http://jboss.org/sche
      a/richfaces/cdk/jstl/core}when>
              ... 58 more
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] CDK build error

      Embedded error: Compilation error
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 9 seconds
      [INFO] Finished at: Tue Aug 24 09:23:34 BRT 2010
      [INFO] Final Memory: 30M/71M
      [INFO] ------------------------------------------------------------------------