8 Replies Latest reply on Apr 18, 2008 12:20 AM by jaikiran pai

    JNDIView cant be found

    Guillaume Jeudy Master

      Hi,

      I have installed jboss as 4.2.2 and I cannot find the JNDIView in the jmx-console.

      here is what I have in the jboss section:

      jboss
      database=localDB,service=Hypersonic
      name=PropertyEditorManager,type=Service
      name=SystemProperties,type=Service
      partition=DefaultPartition,service=FarmMember
      partitionName=DefaultPartition,service=DistributedReplicantManager
      partitionName=DefaultPartition,service=DistributedState
      readonly=true,service=invoker,target=Naming,type=http
      service=AttributePersistenceService
      service=ClientUserTransaction
      service=CorbaNaming
      service=CorbaORB
      service=CorbaTransaction
      service=DefaultPartition
      service=HAJNDI
      service=HASessionState
      service=KeyGeneratorFactory,type=HiLo
      service=KeyGeneratorFactory,type=UUID
      service=Mail
      service=Naming
      service=NamingBeanImpl
      service=TransactionManager
      service=WebService
      service=XidFactory
      service=invoker,target=HAJNDI,type=http
      service=invoker,target=Naming,type=http
      service=invoker,type=http
      service=invoker,type=httpHA
      service=invoker,type=iiop
      service=invoker,type=jrmp
      service=invoker,type=jrmpha
      service=invoker,type=local
      service=invoker,type=pooled
      service=invoker,type=pooledha
      service=invoker,type=unified
      service=invoker,type=unifiedha
      service=juddi
      service=proxyFactory,target=ClientUserTransaction
      service=proxyFactory,target=ClientUserTransactionFactory


      Shouldnt I see something like:

      service=JNDIView ?

      as specified in the following link:
      http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/Additional_Naming_MBeans-The_org.jboss.naming.JNDIView_MBean.html

        • 1. Re: JNDIView cant be found
          csaldanh Newbie

          Could you check if server//conf/jboss-service.xml has the following code uncommented:

          <mbean code="org.jboss.naming.JNDIView"
          name="jboss:service=JNDIView"
          xmbean-dd="resource:xmdesc/JNDIView-xmbean.xml">
          <!-- The HANamingService service name -->
          jboss:service=HAJNDI

          • 2. Re: JNDIView cant be found
            Guillaume Jeudy Master

            Actually I checked for JNDIView string in the whole file and I only found it uncommented in the following fragment:

            <mbean code="org.jboss.management.j2ee.LocalJBossServerDomain"
             name="jboss.management.local:j2eeType=J2EEDomain,name=Manager">
             <attribute name="MainDeployer">jboss.system:service=MainDeployer</attribute>
             <attribute name="SARDeployer">jboss.system:service=ServiceDeployer</attribute>
             <attribute name="EARDeployer">jboss.j2ee:service=EARDeployer</attribute>
             <attribute name="EJBDeployer">jboss.ejb:service=EJBDeployer</attribute>
             <attribute name="RARDeployer">jboss.jca:service=RARDeployer</attribute>
             <attribute name="CMDeployer">jboss.jca:service=ConnectionFactoryDeployer</attribute>
             <attribute name="WARDeployer">jboss.web:service=WebServer</attribute>
             <attribute name="CARDeployer">jboss.j2ee:service=ClientDeployer</attribute>
             <attribute name="MailService">jboss:service=Mail</attribute>
             <attribute name="JMSService">jboss.messaging:service=ServerPeer</attribute>
             <attribute name="JNDIService">jboss:service=Naming</attribute>
             <attribute name="JTAService">jboss:service=TransactionManager</attribute>
             <attribute name="UserTransactionService">jboss:service=ClientUserTransaction</attribute>
             <attribute name="RMI_IIOPService">jboss:service=CorbaORB</attribute>
             </mbean>


            What could this mean ?


            • 3. Re: JNDIView cant be found
              Guillaume Jeudy Master

              Sorry the fragment above contains only JNDIService. I didnt find anything such as JNDIView anywhere. Should I add the fragment you posted?

              Its quite strange that it is not present by default in my jboss 4.2.2 default installation ...

              • 4. Re: JNDIView cant be found
                csaldanh Newbie

                hmm that's weird, I guess you could put it in.

                Try rebuilding it :)

                • 5. Re: JNDIView cant be found
                  csaldanh Newbie

                   

                  "csaldanh" wrote:
                  hmm that's weird, I guess you could put it in.

                  Try rebuilding it :)


                  Ignore the rebuilding part :P

                  • 6. Re: JNDIView cant be found
                    jaikiran pai Master

                     

                    "gjeudy" wrote:
                    Hi,

                    I have installed jboss as 4.2.2 and I cannot find the JNDIView in the jmx-console.



                    How did you install JBoss? Through JEMS installer or by downloading the JBoss zip? We have a discussion going on, where we have seen that the JEMS installer (for some reason) doesn't configure the JNDIView MBean.


                    • 7. Re: JNDIView cant be found
                      Guillaume Jeudy Master

                      I have installed jboss through the JEMS installer. So that would be the issue ?

                      • 8. Re: JNDIView cant be found
                        jaikiran pai Master

                        Yes. JEMS installer for some reason does not configure the JNDIView MBean. I would suggest, you download the JBoss zip file. Unzip it to some location, set JAVA_HOME appropriately and start JBoss. That should get you going and you should be able to see the JNDIView.