5 Replies Latest reply on Jul 2, 2009 4:11 PM by jesper.pedersen

    Error In Building

    gurkanerdogdu

      Hi;

      I have checked out from anonsvn trunk. It gives following error while building

      [ivy:retrieve] :: resolution report :: resolve 1355ms :: artifacts dl 46ms
       ---------------------------------------------------------------------
       | | modules || artifacts |
       | conf | number| search|dwnlded|evicted|| number|dwnlded|
       ---------------------------------------------------------------------
       | standalone | 51 | 0 | 0 | 0 || 49 | 0 |
       | test | 55 | 0 | 0 | 0 || 53 | 0 |
       | sjc | 25 | 0 | 0 | 0 || 23 | 0 |
       ---------------------------------------------------------------------
      [ivy:retrieve]
      [ivy:retrieve] :: problems summary ::
      [ivy:retrieve] :::: WARNINGS
      [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
      [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:retrieve] :: org.jboss.metadata#metadata-common;2.0.0-SNAPSHOT: several problems occured while resolving dependency: org.jboss.metadata#metadata-common;2.0.0-SNAPSHOT {standalone=[default], sjc=}:
      [ivy:retrieve] Index: 0, Size: 0
      [ivy:retrieve] Index: 0, Size: 0
      [ivy:retrieve] Index: 0, Size: 0
      [ivy:retrieve] :: org.jboss.metadata#metadata-rar;2.0.0-SNAPSHOT: several problems occured while resolving dependency: org.jboss.metadata#metadata-rar;2.0.0-SNAPSHOT {standalone=[default], sjc=
      }:
      [ivy:retrieve] Index: 0, Size: 0
      [ivy:retrieve] Index: 0, Size: 0
      [ivy:retrieve] Index: 0, Size: 0
      [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:retrieve]
      [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
      
      BUILD FAILED
       resolve failed - see output for details
      
      
      


      Thanks

      --Gurkan

        • 1. Re: Error In Building
          jesper.pedersen

          There is a bug in Ivy when compiling on Windows.

          You need compile the Ivy trunk and install that JAR file. Then it'll work.

          I'll update the developer guide with the requirement.

          Thanks for the feedback.

          • 2. Re: Error In Building
            gurkanerdogdu

             


            PostPosted: Thu Jul 2, 2009 14:39 PM Post subject: Re: Error In Building
            There is a bug in Ivy when compiling on Windows.

            I am using Linux Distro. Anyway, as you suggested, I have downloaded ivy trunk and build jar. it works!

            In the mean time, how could I start standalone server after build? I used the
            java -jar jboss-jca-sjc.jar
            but it is resulted as

            java.lang.StringIndexOutOfBoundsException: String index out of range: -1
             at java.lang.String.substring(String.java:1938)
             at org.jboss.jca.sjc.Main.boot(Main.java:94)
             at org.jboss.jca.sjc.Main.access$000(Main.java:55)
             at org.jboss.jca.sjc.Main$1.run(Main.java:592)
             at java.lang.Thread.run(Thread.java:619)
            Server started in 5ms
            


            • 3. Re: Error In Building
              jesper.pedersen

              You can do

              ant clean sjc
              cd target/sjc/bin
              ./run.sh
              


              There is a bit of information in the developer guide - see chapter 8.2. You are most welcome to send a patch against the documentation with the changes you would like to see. That will make it easier to others to get up and running.

              Thanks.

              • 4. Re: Error In Building
                gurkanerdogdu

                 

                There is a bit of information in the developer guide - see chapter 8.2. You are most welcome to send a patch against the documentation with the changes you would like to see. That will make it easier to others to get up and running.


                https://jira.jboss.org/jira/browse/JBJCA-104

                --Gurkan

                • 5. Re: Error In Building
                  jesper.pedersen

                  Changed it a bit, applied.

                  Thanks.