10 Replies Latest reply on Jun 19, 2012 11:18 AM by spolti
      • 1. Re: Jmx-console source code
        peterj

        Which version of JBoss AS?

         

        In 5.x and 6.x, you can find the sources for the JSPs in the JBoss AS source at varia/src/resources/jmx/html. Any servlets of other classes used will be in the varia/src/java directory somewhere.

        • 2. Re: Jmx-console source code
          spolti

          I have downloaded jboss-5.1.GA-src.

          Now im looking for jmx classes, i found in varia/src/resources/jmx/html.

           

           

          I have another question..

           

          How can i make jmx-console.war package?

           

          Thx

          • 3. Re: Jmx-console source code
            peterj

            Try this: run the build.bat or build.sh script in the varia directory. The jmx-console should should up in varia/output/lib.

             

            If that doesn't work, first do a full build. To do a full build, open a command prompt in the source in the build directory and run the build.bat or build.sh script (depending on your OS).

            • 4. Re: Jmx-console source code
              spolti

              Thx for replay Peter.

               

              I Already trying a full build but i got this error:

               

              [ERROR] Failed to execute goal on project jboss-as-main: Could not resolve dependencies for project org.jboss.jbossas:jboss-as-main:jar:5.1.0.GA: Failed to collect dependencies for [org.jboss.bootstrap:jboss-bootstrap:jar:1.0.0-Beta-3 (compile), gnu-getopt:getopt:jar:1.0.12-brew (compile), log4j:log4j:jar:1.2.14 (compile), org.jboss.logbridge:jboss-logbridge:jar:1.0.0.GA (compile)]: Failed to read artifact descriptor for org.jboss.bootstrap:jboss-bootstrap:jar:1.0.0-Beta-3: Could not transfer artifact org.jboss.bootstrap:jboss-bootstrap:pom:1.0.0-Beta-3 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/org/jboss/bootstrap/jboss-bootstrap/1.0.0-Beta-3/jboss-bootstrap-1.0.0-Beta-3.pom -> [Help 1]

              org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jboss-as-main: Could not resolve dependencies for project org.jboss.jbossas:jboss-as-main:jar:5.1.0.GA: Failed to collect dependencies for [org.jboss.bootstrap:jboss-bootstrap:jar:1.0.0-Beta-3 (compile), gnu-getopt:getopt:jar:1.0.12-brew (compile), log4j:log4j:jar:1.2.14 (compile), org.jboss.logbridge:jboss-logbridge:jar:1.0.0.GA (compile)]

               

              Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.jboss.jbossas:jboss-as-main:jar:5.1.0.GA: Failed to collect dependencies for [org.jboss.bootstrap:jboss-bootstrap:jar:1.0.0-Beta-3 (compile), gnu-getopt:getopt:jar:1.0.12-brew (compile), log4j:log4j:jar:1.2.14 (compile), org.jboss.logbridge:jboss-logbridge:jar:1.0.0.GA (compile)].....

               

              ...

              aused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.jboss.bootstrap:jboss-bootstrap:pom:1.0.0-Beta-3 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/org/jboss/bootstrap/jboss-bootstrap/1.0.0-Beta-3/jboss-bootstrap-1.0.0-Beta-3.pom

              ....

               

               

              Do you know how to fix up?

               

              Thx

              • 5. Re: Jmx-console source code
                peterj

                It has been years since I tried to build 5.1.0. It used to build when it first came out. But it looks like it no longer builds because the JBoss team didn't follow Maven best practices and artifacts that used to be in the repository are no longer there (I got an error on a missing artifact when I just now tired the build). It would be nice if someone from the JBoss team would post an updated source package that does build, or post a patch package that could be applied to the sources.

                • 6. Re: Jmx-console source code
                  spolti

                  Done!!.

                   

                  Jboss was successfully builded...

                   

                  Now, to implement ldap authorization for jmx-console roles (jbossAdmin i.e.), where can i mapping ldap Groups X jmx-console Roles onde jmx-console? Is in jsp files, web.xml?

                   

                  Thx for help!!>

                  • 7. Re: Jmx-console source code
                    peterj

                    Wait a minute! What is it that you are really trying to do? If you want to set up LDAP-based access control for jmx-console, then you did not have to compile it. Setting up access control involves adding a jboss-web.xml file to the WAR, and adding an entry in the server/xxx/conf/login-config.xml file. There are several wiki pages on setting up LDAP, such as https://community.jboss.org/wiki/LdapExtLoginModule

                    • 8. Re: Jmx-console source code
                      spolti

                      I know that, but i try all possibilities and no success.

                      I can Authenticate normally, but not authorizate....  And now i'm looking for alternatives ways to do that.

                       

                      See this topic pls: https://community.jboss.org/message/742079#742079

                       

                       

                      Thx

                      • 9. Re: Jmx-console source code
                        peterj

                        Many years ago when I configured LDAP in JBoss AS to connect to our corporate Active Directory server, I used some tools that enabled me to write queries against the AD. It was only after I had the queries correct that I was able to figure out how to set up the LDAP login module in JBoss AS.

                         

                        The primary tool I used was a command line tool named ldapsearch. The one I used was from the Sune ONE Directory Server Resource Kit; unfortunately the URL I have for it is no longer valid and I can't find a similar thing on the Oracle web site (though I admit I haven't tried very hard). I also use an LDAP UI tool, jxplorer: http://sourceforge.net/projects/jxplorer/. That enabled me to visualize the AD structure, which helped with writing the queries for ldapsearch. (MS has an Active Directory Users and Computers tool that I also found helpful, but then you're not using AD)

                        • 10. Re: Jmx-console source code
                          spolti

                          Yes, im using OID (oracle) and for browse into ldap im using ApacheDirectoryStudio.

                           

                          On ApacheDirectoryStudio the query returns the users members, but in login module none.. =//

                           

                           

                           

                                      <module-option name="rolesCtxDN">cn=JBOSSADMIN,cn=CONSOLE_JBOSS,cn=PERFIS,dc=XXX,dc=XXX</module-option>
                                      <module-option name="roleFilter">(uniquemember={0})</module-option>
                                      <module-option name="searchScope">SUBTREE_SCOPE</module-option>

                           

                           

                          The best way to solve this is implementing another jsp into jmx-console to do it...