0 Replies Latest reply on Feb 26, 2003 11:34 AM by darul

    [Tomcat 4.1.18] & JNDI

    darul

      We had a problem of JNDI (to connect to JBoss) using the new version
      of Tomcat.

      We found a solution which is to pass argument to the JVM like this :

      set CATALINA_OPTS=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      set CATALINA_OPTS=%CATALINA_OPTS%
      -Djava.naming.provider.url=localhost:1099
      set CATALINA_OPTS=%CATALINA_OPTS%
      -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

      in startup.bat

      but it is not very clean, have u got a better solution, we don't know
      how to store this in Tomcat 4.1.18 conf's files. (we just know 3.2.4
      version)

      thanks, sorry for my bad english ;)