Hi,

I wrote a web-app which runs on Tomcat. I have to hold a value from a
web-app which runs on Weblogic Webcontainer. I use the following jndi to
connect the weblogic:

...
         try
      {
         Properties h = new Properties();

         h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
        ...
      }
...

But I got following exception:
java.lang.RuntimeException: javax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root
exception is java.lang.ClassNotFoundException:
weblogic.jndi.WLInitialContextFactory]


But I do have attached the weblogic.jar in the lib and the
WLInitialContextFactory.class is inside.

If I run my web-app on a Weblogic-Webcontainer, it's ok.

Why?

Regards


Reply via email to