0 Replies Latest reply: Sep 25, 2013 4:10 AM by 967398 RSS

    using data source in adf application.

    967398

      Hi ,

       

      JDev version : 11.1.1.6.0

       

      I am planning to use data source in the application  , but there is an issue facing while running with data source.

       

      Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]

          at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)

          at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

          at javax.naming.InitialContext.init(InitialContext.java:223)

          at javax.naming.InitialContext.<init>(InitialContext.java:197)

          at com.cisco.complianceutil.WizardDataSourceUtil.main(WizardDataSourceUtil.java:42)

      Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory

          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

       

       

      So I used "Weblogic.jar" once and "wlfullclient.jar" . By using one of these jars issue fixed but because of it while loading the application it is throwing the below error .

       

      <Sep 10, 2013 2:42:05 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004

      weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "ComplianceWizard".

      javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider

          at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)

          at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)

          at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)

          at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)

          at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)

          at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:150)

          at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)

       

      For this I observed that solution is removing the wlfullcient.jar or weblogic.jar from the libraries. But If I do not use any one of them then data source does not work. Please guide me with your suggestions.