3 Replies Latest reply on Mar 2, 2012 4:05 AM by michael.lytvyn

    JNDI Lookup issue

    michael.lytvyn

      Hello Community,

       

      I'm quite new to any of JBoss and working on migrating application from JBoss 3 to the JBoss 7.1, I've fixed some of the issues and was able to deploy and open login page, but can't find how to fix JNDI lookup issue or configure it thrown per Login action.

      Server log: {code}

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3) com.CompanyName.ffc.ConfigurationException: javax.naming.NameNotFoundException: xmldir:classpath:mcc.xml/default -- service jboss.naming.context.java."xmldir:classpath:mcc.xml".default

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3) {

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)     javax.naming.NameNotFoundException: xmldir:classpath:mcc.xml/default -- service jboss.naming.context.java."xmldir:classpath:mcc.xml".default

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:177)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at javax.naming.InitialContext.lookup(InitialContext.java:392)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.ffc.ConfigurationSource.createContext(ConfigurationSource.java:686)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.ffc.ConfigurationSource.access$300(ConfigurationSource.java:73)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.ffc.ConfigurationSource$Factory.create(ConfigurationSource.java:719)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.util.Pool$CreateTask.run(Pool.java:47)

      07:34:52,653 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.util.ThreadPool$Worker.run(ThreadPool.java:840)

      07:34:52,669 ERROR [stderr] (http--127.0.0.1-8080-3) }

      07:34:52,669 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.ffc.ConfigurationSource.createContext(ConfigurationSource.java:688)

      07:34:52,669 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.ffc.ConfigurationSource.access$300(ConfigurationSource.java:73)

      07:34:52,669 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.ffc.ConfigurationSource$Factory.create(ConfigurationSource.java:719)

      07:34:52,669 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.util.Pool$CreateTask.run(Pool.java:47)

      07:34:52,669 ERROR [stderr] (http--127.0.0.1-8080-3)           at com.CompanyName.util.ThreadPool$Worker.run(ThreadPool.java:840)

      {code}

       

      It would be awesome if someone could help me in configuring paths for WAR file like above: xmldir:classpath:mcc.xml or give link to documentation.

        • 1. Re: JNDI Lookup issue
          sfcoy

          JBoss 3! Wow man. We used that at the last JBoss Training course I attended (in 2001).

           

          It would help if we know what kind of resource or object it is that you're looking up. That JNDI name is kind of smelly and doesn't look very portable.

          • 2. Re: JNDI Lookup issue
            wolfc

            Most likely you are using a xmllibURLContextFactory.

             

            Do you have URL_PKG_PREFIXES properly set?

            And do you have the xmllibURLContextFactory class available? (Either packaged or a modules dependency.)

            1 of 1 people found this helpful
            • 3. Re: JNDI Lookup issue
              michael.lytvyn

              Hello Carlo,

               

              Thanks for your notes, I found xmldirURLContextFactory.class in one of the .zip files (I don't have it's sources), tried to add as module dependency, but didn't success on that. It seems that I have to configure URL_PKG_PREFIXES, could you please forward me to the appropriate docs article or give additional advise

               

              location of the required file: WAR_NAME.war\WEB-INF\lib\Apps.jar\com\COMPANY_NAME\mcc\admin\migrator\xmldir\xmldirURLContextFactory.class