2 Replies Latest reply on Dec 11, 2007 7:11 AM by Chris Lowe

    Error building from CVS

    Chris Lowe Apprentice

      Hi,

      I've checked out Seam from CVS. I updated default.build.properties to point to my JBossAS instance:

      C:/bin/seam/jboss-4.2.2.GA

      When I build, I get the following error:

      [java] [ERROR] Error on generate component
       [java] org.ajax4jsf.builder.config.ParsingException: I/O error on parsing config file
       [java] at org.ajax4jsf.builder.config.BuilderConfig.parseConfig(BuilderConfig.java:387)
       [java] at org.ajax4jsf.builder.mojo.GenerateMojo.createConfig(GenerateMojo.java:253)
       [java] at org.ajax4jsf.builder.mojo.GenerateMojo.execute(GenerateMojo.java:92)
       [java] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
       [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
       [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
       [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
       [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
       [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
       [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
       [java] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
       [java] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
       [java] at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [java] at java.lang.reflect.Method.invoke(Method.java:597)
       [java] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       [java] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       [java] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       [java] at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
       [java] Caused by: java.net.MalformedURLException: unknown protocol: c
       [java] at java.net.URL.<init>(URL.java:574)
       [java] at java.net.URL.<init>(URL.java:464)
       [java] at java.net.URL.<init>(URL.java:413)
       [java] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
       [java] at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
       [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
       [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
       [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
       [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
       [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
       [java] at org.apache.commons.digester.Digester.parse(Digester.java:1605)
       [java] at org.ajax4jsf.builder.config.BuilderConfig.parseConfig(BuilderConfig.java:384)
       [java] ... 20 more



      Is there anything else that I need to do to get a build going?

      Cheers,

      Chris.

        • 1. Re: Error building from CVS
          Pete Muir Master

          Can you provide the whole log from ant?

          • 2. Re: Error building from CVS
            Chris Lowe Apprentice

            Sure:

            Buildfile: C:\Documents and Settings\chrisl\workspace\jboss-seam\build.xml
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam
            initpoms:
             [echo] Setting up dependencies
             [mkdir] Created dir: C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
            [artifact:install] [INFO] Installing C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms\root.pom to C:\Documents and Settings\chrisl\.m2\repository\org\jboss\seam\root\2.0.1.SNAPSHOT\root-2.0.1.SNAPSHOT.pom
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
            [artifact:install] [INFO] Installing C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms\parent.pom to C:\Documents and Settings\chrisl\.m2\repository\org\jboss\seam\parent\2.0.1.SNAPSHOT\parent-2.0.1.SNAPSHOT.pom
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\poms
            init:
            initcore:
             [echo] Build JBoss Seam core 2.0
             [mkdir] Created dir: C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\coreclasses
             [copy] Copying 27 files to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\coreclasses
            [artifact:dependencies] [INFO] snapshot org.jboss.el:jboss-el:2.0.1-SNAPSHOT: checking for updates from local.repository
            [artifact:dependencies] [INFO] snapshot org.jboss.el:jboss-el:2.0.1-SNAPSHOT: checking for updates from repository.jboss.org
            [artifact:dependencies] [INFO] snapshot org.jboss.el:jboss-el:2.0.1-SNAPSHOT: checking for updates from snapshots.jboss.org
            [artifact:dependencies] Downloading: org/jboss/el/jboss-el/2.0.1-SNAPSHOT/jboss-el-2.0.1-SNAPSHOT.pom from snapshots.jboss.org
            [artifact:dependencies] Transferring 1K from snapshots.jboss.org
            [artifact:dependencies] [INFO] snapshot org.jboss.seam.embedded:jboss-embedded-api:beta3-SNAPSHOT: checking for updates from local.repository
            [artifact:dependencies] [INFO] snapshot org.jboss.seam.embedded:jboss-embedded-api:beta3-SNAPSHOT: checking for updates from repository.jboss.org
            [artifact:dependencies] [INFO] snapshot org.jboss.seam.embedded:jboss-embedded-api:beta3-SNAPSHOT: checking for updates from snapshots.jboss.org
            [artifact:dependencies] Downloading: org/jboss/seam/embedded/jboss-embedded-api/beta3-SNAPSHOT/jboss-embedded-api-beta3-SNAPSHOT.pom from snapshots.jboss.org
            [artifact:dependencies] Transferring 1K from snapshots.jboss.org
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6.pom from local.repository
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6.pom from repository.jboss.org
            [artifact:dependencies] Transferring 1K from repository.jboss.org
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-microcontainer/2.0.0.Beta6/jboss-microcontainer-2.0.0.Beta6.pom from local.repository
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-microcontainer/2.0.0.Beta6/jboss-microcontainer-2.0.0.Beta6.pom from repository.jboss.org
            [artifact:dependencies] Transferring 18K from repository.jboss.org
            [artifact:dependencies] Downloading: org/jboss/jboss-parent/3/jboss-parent-3.pom from repository.jboss.org
            [artifact:dependencies] Transferring 11K from repository.jboss.org
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-core-spi/2.0.0.Beta6/jboss-deployers-core-spi-2.0.0.Beta6.pom from local.repository
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-core-spi/2.0.0.Beta6/jboss-deployers-core-spi-2.0.0.Beta6.pom from repository.jboss.org
            [artifact:dependencies] Transferring 1K from repository.jboss.org
            [artifact:dependencies] Downloading: org/jboss/el/jboss-el/2.0.1-SNAPSHOT/jboss-el-2.0.1-SNAPSHOT.jar from snapshots.jboss.org
            [artifact:dependencies] Transferring 130K from snapshots.jboss.org
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-core-spi/2.0.0.Beta6/jboss-deployers-core-spi-2.0.0.Beta6.jar from local.repository
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-core-spi/2.0.0.Beta6/jboss-deployers-core-spi-2.0.0.Beta6.jar from repository.jboss.org
            [artifact:dependencies] Transferring 18K from repository.jboss.org
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6.jar from local.repository
            [artifact:dependencies] Downloading: org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6.jar from repository.jboss.org
            [artifact:dependencies] Transferring 10K from repository.jboss.org
            [artifact:dependencies] Downloading: org/jboss/seam/embedded/jboss-embedded-api/beta3-SNAPSHOT/jboss-embedded-api-beta3-SNAPSHOT.jar from snapshots.jboss.org
            [artifact:dependencies] Transferring 50K from snapshots.jboss.org
            select-compiler:
            antlr:
             [mkdir] Created dir: C:\Documents and Settings\chrisl\workspace\jboss-seam\src\main\org\jboss\seam\text
            [antlrtask] ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
            compilecore:
             [javac] Compiling 495 source files to C:\Documents and Settings\chrisl\workspace\jboss-seam\classes\coreclasses
             [javac] Note: Some input files use or override a deprecated API.
             [javac] Note: Recompile with -Xlint:deprecation for details.
             [javac] Note: Some input files use unchecked or unsafe operations.
             [javac] Note: Recompile with -Xlint:unchecked for details.
            jarcore:
             [mkdir] Created dir: C:\Documents and Settings\chrisl\workspace\jboss-seam\lib
             [mkdir] Created dir: C:\Documents and Settings\chrisl\workspace\jboss-seam\lib\src
             [jar] Building jar: C:\Documents and Settings\chrisl\workspace\jboss-seam\lib\jboss-seam.jar
             [jar] Building jar: C:\Documents and Settings\chrisl\workspace\jboss-seam\lib\src\jboss-seam-sources.jar
            [artifact:install] [INFO] Installing C:\Documents and Settings\chrisl\workspace\jboss-seam\lib\jboss-seam.jar to C:\Documents and Settings\chrisl\.m2\repository\org\jboss\seam\jboss-seam\2.0.1.SNAPSHOT\jboss-seam-2.0.1.SNAPSHOT.jar
            [artifact:install] [INFO] Installing C:\Documents and Settings\chrisl\workspace\jboss-seam\lib\src\jboss-seam-sources.jar to C:\Documents and Settings\chrisl\.m2\repository\org\jboss\seam\jboss-seam\2.0.1.SNAPSHOT\jboss-seam-2.0.1.SNAPSHOT-sources.jar
            initui:
            [artifact:dependencies] [INFO] snapshot org.jboss.seam:jboss-seam:2.0.1.SNAPSHOT: checking for updates from local.repository
            [artifact:dependencies] [INFO] snapshot org.jboss.seam:jboss-seam:2.0.1.SNAPSHOT: checking for updates from repository.jboss.org
            [artifact:dependencies] [INFO] snapshot org.jboss.seam:jboss-seam:2.0.1.SNAPSHOT: checking for updates from snapshots.jboss.org
            jarui:
             [copy] Copying 1 file to C:\Documents and Settings\chrisl\workspace\jboss-seam\ui
             [java] [INFO] Scanning for projects...
             [java] [INFO] ----------------------------------------------------------------------------
             [java] [INFO] Building Seam JSF Controls
             [java] [INFO] task-segment: [install]
             [java] [INFO] ----------------------------------------------------------------------------
             [java] [INFO] Preparing cdk:generate
             [java] [WARNING] Removing: generate from forked lifecycle, to prevent recursive invocation.
             [java] [INFO] [resources:resources]
             [java] [INFO] Using default encoding to copy filtered resources.
             [java] [WARNING]
             [java] Artifact javax.servlet:servlet-api:jar:2.5:provided retains local scope 'provided' overriding broader scope 'compile'
             [java] given by a dependency. If this is not intended, modify or remove the local scope.
             [java] [WARNING]
             [java] Artifact javax.faces:jsf-api:jar:1.2_04-p02:provided retains local scope 'provided' overriding broader scope 'compile'
             [java] given by a dependency. If this is not intended, modify or remove the local scope.
             [java] [WARNING]
             [java] Artifact javax.el:el-api:jar:1.0:provided retains local scope 'provided' overriding broader scope 'compile'
             [java] given by a dependency. If this is not intended, modify or remove the local scope.
             [java] [INFO] [compiler:compile]
             [java] [INFO] Compiling 80 source files to C:\Documents and Settings\chrisl\workspace\jboss-seam\ui\target\classes
             [java] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
             [java] [INFO] Setting property: velocimacro.messages.on => 'false'.
             [java] [INFO] Setting property: resource.loader => 'classpath'.
             [java] [INFO] Setting property: resource.manager.logwhenfound => 'false'.
             [java] [INFO] **************************************************************
             [java] [INFO] Starting Jakarta Velocity v1.4
             [java] [INFO] RuntimeInstance initializing.
             [java] [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
             [java] [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
             [java] [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
             [java] [INFO] ClasspathResourceLoader : initialization starting.
             [java] [INFO] ClasspathResourceLoader : initialization complete.
             [java] [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
             [java] [INFO] Default ResourceManager initialization complete.
             [java] [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
             [java] [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
             [java] [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
             [java] [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
             [java] [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
             [java] [INFO] Created: 20 parsers.
             [java] [INFO] Velocimacro : initialization starting.
             [java] [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
             [java] [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
             [java] [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
             [java] [INFO] Velocimacro : VM library template macro registration complete.
             [java] [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
             [java] [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
             [java] [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
             [java] [INFO] Velocimacro : initialization complete.
             [java] [INFO] Velocity successfully started.
             [java] [INFO] [cdk:generate {execution: default}]
             [java] [INFO] Parse config file C:\Documents and Settings\chrisl\workspace\jboss-seam\ui\src\main\config\component\button.xml
             [java] [ERROR] Error on generate component
             [java] org.ajax4jsf.builder.config.ParsingException: I/O error on parsing config file
             [java] at org.ajax4jsf.builder.config.BuilderConfig.parseConfig(BuilderConfig.java:387)
             [java] at org.ajax4jsf.builder.mojo.GenerateMojo.createConfig(GenerateMojo.java:253)
             [java] at org.ajax4jsf.builder.mojo.GenerateMojo.execute(GenerateMojo.java:92)
             [java] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
             [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
             [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
             [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
             [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
             [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
             [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
             [java] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
             [java] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
             [java] at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
             [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [java] at java.lang.reflect.Method.invoke(Method.java:597)
             [java] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
             [java] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
             [java] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
             [java] at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
             [java] Caused by: java.net.MalformedURLException: unknown protocol: c
             [java] at java.net.URL.<init>(URL.java:574)
             [java] at java.net.URL.<init>(URL.java:464)
             [java] at java.net.URL.<init>(URL.java:413)
             [java] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
             [java] at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
             [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
             [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
             [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
             [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
             [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
             [java] at org.apache.commons.digester.Digester.parse(Digester.java:1605)
             [java] at org.ajax4jsf.builder.config.BuilderConfig.parseConfig(BuilderConfig.java:384)
             [java] ... 20 more
             [java] [INFO] ------------------------------------------------------------------------
             [java] [ERROR] BUILD ERROR
             [java] [INFO] ------------------------------------------------------------------------
             [java] [INFO] Error in component generation
             [java] Embedded error: I/O error on parsing config file
             [java] unknown protocol: c
             [java] [INFO] ------------------------------------------------------------------------
             [java] [INFO] For more information, run Maven with the -e switch
             [java] [INFO] ------------------------------------------------------------------------
             [java] [INFO] Total time: 15 seconds
             [java] [INFO] Finished at: Tue Dec 11 08:56:28 GMT 2007
             [java] [INFO] Final Memory: 9M/21M
             [java] [INFO] ------------------------------------------------------------------------
             [java] Java Result: 1
             [delete] Deleting: C:\Documents and Settings\chrisl\workspace\jboss-seam\ui\pom.xml
            
            BUILD FAILED
            C:\Documents and Settings\chrisl\workspace\jboss-seam\build.xml:282: Warning: Could not find file C:\Documents and Settings\chrisl\workspace\jboss-seam\ui\target\jboss-seam-ui.jar to copy.
            
            Total time: 57 seconds