4 Replies Latest reply on Nov 3, 2010 8:49 PM by Kailash Kothari

    Jboss 5/6 source code

    Kailash Kothari Newbie

      Hi,

       

      Im trying to tweak JBoss5/6 but on downloading the source code it looks like some core classes are just not there.

       

      For example jboss-5.1.0.GA-src.tar.gz doesn't have the source code for the main server startup class org.jboss.bootstrap.spi.Server

       

      What am i missing. The JBoss4 source code does have all the pieces.

       

      Thanks!                   

        • 1. Re: Jboss 5/6 source code
          Peter Johnson Master

          Try doing a build first and then looking in the thirdparty directory. Much of the functionality of JBoss AS comes from various subprojects which all fall under the thirdparty umbrella. Once the inital compile is done, the third party components and their sources often appear in the thirdparty directory (usually inside *-src.jar files).

          • 2. Re: Jboss 5/6 source code
            Kailash Kothari Newbie

            Thanks Peter. So i downloaded the source code and ran build.sh

             

            It downloads some stuff and then breaks at this error.  I pointed my browser to the url and in face done find the .pom file at  the specified path. Am i missing something? Thanks.

             

            [ERROR]      Non-resolvable parent POM org.jboss:jboss-parent:5 for  org.jboss.jbossas:jboss-as-component-matrix:6.0.0.20100911-M5: Failed to  resolve POM for org.jboss:jboss-parent:5 due to Failure to resolve  org/jboss/jboss-parent/5/jboss-parent-5.pom from  http://repo1.maven.org/maven2 was cached in the local repository.  Resolution will not be reattempted until the update interval of central  has elapsed or updates are forced. Original error: Error transferring  file: Connection refused
               org.jboss:jboss-parent:pom:5

            • 3. Re: Jboss 5/6 source code
              Peter Johnson Master

              I suspect based on the last part of the error message, "Error transferring  file: Connection refused", that you cannot access the maven repository. Try opening the repository URL (also mentionedi n the error) in a browser.

               

              Possible causes:

              a) You use a proxy server to access the internet and Maven is not configured to use that proxy: http://maven.apache.org/guides/mini/guide-proxies.html

              b) There is a firewall issue (or some other settings) that is blocking access. This is common in corporate networks. If this is the case for you, try doing this from home.

              • 4. Re: Jboss 5/6 source code
                Kailash Kothari Newbie

                I went past that error but get this one now.. looks like a permission issue in the repository.

                 

                Also, referring to my original question, I don't quite understand why a core class like org.jboss.bootstrap.spi.Server which kicks off startup (and is not thirdparty), would be generated as part of a build rather than be included in the source code..

                 

                Thanks!

                 

                [ERROR] Failed to execute goal on project jboss-as-hornetq-int: Authorization failed: Access denied to: http://repository.jboss.org/maven2/org/hyperic/sigar-dist/1.6.3.82/sigar-dist-1.6.3.82.zip
                  org.hyperic:sigar-dist:zip:1.6.3.82

                 

                from the specified remote repositories:
                  jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true),
                  central (http://repo1.maven.org/maven2, releases=true, snapshots=false),
                  java.net (http://download.java.net/maven/1/, releases=true, snapshots=true),
                  jboss (http://repository.jboss.org/maven2/, releases=true, snapshots=false)
                Path to dependency:
                    1) org.jboss.jbossas:jboss-as-hornetq-int:pom:6.0.0.20100911-M5
                    2) org.rhq:rhq-core-plugin-api:jar:1.4.0.B01
                    3) org.rhq:rhq-core-native-system:jar:1.4.0.B01
                    4) org.hyperic:sigar-dist:zip:1.6.3.82