8 Replies Latest reply on Oct 17, 2002 6:24 AM by pavlov

    jaas not bound

    chrishunter

      I am having trouble getting security working, I'v been at this for three days now.

      If I try to get a security manager from JNDI using the java:/jaas/hades lookup I get a name not bound exception for jaas.

      If I use the JNDIViewer I can see that jaas/hades is bound to java:

      If I try to enumerate the names bound to java: it is empty even though there are a number of things bound to java:

      What am I doing wrong?

      TIA

      Chris

        • 1. Re: jaas not bound
          starksm64

          Contexts under java: are only accessible from within the JBoss server vm. I would guess your doing the
          lookup from a remove vm and thus the failure.

          • 2. Re: jaas not bound
            chrishunter

            Thanks for the reply. I will try other approaches to securing a client.


            Chris

            • 3. Re: jaas not bound
              sujith_prabhu

              where do i find this JNDIViewer ?
              I am using JBoss 3.0 and trying to run HelloWorld Session bean and need to check if my ejb is bound.
              Please help me out.

              Thanks in advance
              Sujith

              • 4. Re: jaas not bound
                sujith_prabhu

                > I am having trouble getting security working, I'v
                > been at this for three days now.
                >
                > If I try to get a security manager from JNDI using
                > the java:/jaas/hades lookup I get a name not bound
                > exception for jaas.
                >
                > If I use the JNDIViewer I can see that jaas/hades is
                > bound to java:
                >
                > If I try to enumerate the names bound to java: it is
                > empty even though there are a number of things bound
                > to java:
                >
                > What am I doing wrong?
                >
                > TIA
                >
                > Chris


                where do i find this JNDIViewer ?
                I am using JBoss 3.0 and trying to run HelloWorld Session bean and need to check if my ejb is bound.
                Please help me out.

                Thanks in advance
                Sujith

                • 5. Re: jaas not bound
                  mike.pettit

                  JNDIView is at http://localhost:8080/jmx-console
                  Do a search for JNDIView on that page....

                  • 6. Re: jaas not bound
                    mike.pettit

                    In reference to the jaas not bound. I had similar problems with EJBs - The beans would deploy, be in the jmx-console, but would be "not bound" when the app tried to access it.
                    I still don't know exactly what it is that got it to work.... I think it had to do with an unclosed CDATA in my deploy descriptor, which was causing the jar to 'not fully deploy'. When I cleaned up my descriptor the problem went away. Watch your console when you start up or when you deploy. Get rid of(fix) any errors you see.

                    its not much but I hope this helps
                    -mp

                    • 7. Can't get jmx-console
                      sujith_prabhu

                      hi,
                      At the url "http://localhost:8082/ " I am able to find
                      "Agent View" . But "http://localhost:8082/jmx-console" displays "page not found" .
                      Also there are is no "jmx-console" text in the displayed agent view page.

                      Please help me out to check if my bean is bound.

                      Thanks
                      Sujith

                      • 8. Re: Can't get jmx-console
                        pavlov

                        >At the url "http://localhost:8082/ " I am able to find
                        >"Agent View" . But "http://localhost:8082/jmx-console" >displays "page not found" .
                        >Also there are is no "jmx-console" text in the displayed >agent view page.

                        at bottom of this page click on "service=JNDIView"
                        or try this "http://localhost:8080/jmx-console"