6 Replies Latest reply on Nov 1, 2006 12:59 AM by vardhan.kn

    jndi.properties

      Hi,

      I´m using JBoss jboss-4.0.4.CR2 and I´m having some trouble booting JBoss.I have the jndi.properties file configured to search an ejb server (192.168.101.114), but it seems that my ejb server is not answering.

      I´m running it in all configuration, with HA-JNDI service enabled.

      Below is my jndi.properties file configured.

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp\://192.168.101.114\:1100
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      ~


      ...booting JBoss...

      17:23:12,549 WARN [NamingService] Context.PROVIDER_URL in server jndi.properties, url=192.168.101.114:1100

      ........After some time, the exception below is thrown:

      17:35:48,857 WARN [ServiceController] Problem starting service jboss:service=proxyFactory,target=ClientUserTransactionFactory
      javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.]
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:578)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:531)
      at javax.naming.InitialContext.bind(InitialContext.java:359)
      at org.jboss.util.naming.Util.bind(Util.java:102)


      Does anyone have an idea of what is going on?


      Thank you very much.

        • 1. Re: jndi.properties
          brian.stansberry

          Please use the user forums at http://www.jboss.com/index.html?module=bb&op=viewforum&f=64 for user questions.

          • 2. Re: jndi.properties
            vardhan.kn

            i get the following error when i say cluster to true in jboss.xml in ejb component

            ObjectName: jboss.j2ee:jndiName=ejb/ConfigMgrHome,service=EJB
            State: FAILED
            Reason: javax.naming.NameNotFoundException: HAPartition not bound

            Please help ... urgent

            Thanks
            Vishnu

            • 3. Re: jndi.properties
              vardhan.kn

              any updates , please help

              -Vishnu

              • 4. Re: jndi.properties
                brian.stansberry

                1) See my previous post on this thread.
                2) Make sure you are running the 'all' configuration.

                • 5. Re: jndi.properties
                  brian.stansberry

                  My apologies to both the posters on this thread. You posted on the user forum but for some reason the e-mail we get notifying us of your post said it was for the Design of Clustering forum, where user questions are inappropriate. I didn't notice this until just now when a colleague pointed out the problem with the e-mail.

                  vardhan.kn, my response is still pretty much the same based on what you wrote -- the most likely reason for not finding the HAPartition is that you are not running the 'all' config.

                  adias@unimedbh.com.br, do not place a jndi.properties file on the classpath of the server, and if what you are talking about are edits you made to the server/all/conf/jndi.properties file, you need to revert them. If you want to configure your services to do HA-JNDI lookups, you need to programatically create a Properties object and pass those properties to the InitialContext constructor. If you want to use a properties file to create the Properties object, that's fine, just don't name it jndi.properties.

                  • 6. Re: jndi.properties
                    vardhan.kn

                    Still I am getting the same error, I have run using
                    run -c all