1 Reply Latest reply: Aug 2, 2009 3:23 AM by 715187 RSS

    Unable to run workflow-118-JavaSamples

    715187
      Hi,

      I am new to worklist application. While running the javasample [ant run -Dclass=Authenticate -Dargs="REMOTE jcooper welcome1"], I get the following error -

      [echo] BEA HOME = C:\Oracle\Middleware;
      [echo] Log File = ./logs/client.log
      [java] Authenticating user jcooper.....
      [java] Exception in thread "main" oracle.bpel.services.workflow.client.WorkflowServiceClientException: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
      [java] at oracle.bpel.services.workflow.client.WorkflowServiceClientContext.createInitialContext(WorkflowServiceClientContext.java:445)
      [java] at oracle.bpel.services.workflow.client.WorkflowServiceClientContext.getJNDIInitialContext(WorkflowServiceClientContext.java:204)
      [java] at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.getInitialContext(TaskQueryServiceRemoteClient.java:19)
      [java] at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:99)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invokeTarget(WFClientRetryInvocationHandler.java:121)
      [java] at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invoke(WFClientRetryInvocationHandler.java:67)
      [java] at $Proxy13.authenticate(Unknown Source)
      [java] at Authenticate.authenticate(Authenticate.java:43)
      [java] at Authenticate.main(Authenticate.java:28)
      [java] Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
      [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
      [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      [java] at javax.naming.InitialContext.init(InitialContext.java:223)
      [java] at javax.naming.InitialContext.<init>(InitialContext.java:197)
      [java] at oracle.bpel.services.workflow.client.WorkflowServiceClientContext.createInitialContext(WorkflowServiceClientContext.java:442)
      [java] ... 12 more
      [java] Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

      [java] at java.lang.Class.forName0(Native Method)
      [java] at java.lang.Class.forName(Class.java:247)
      [java] at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
      [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
      [java] ... 16 more
      [java] Java Result: 1

      My worklistapp is running on http://NAMITA:7001/integration/worklistapp and wf_client_config.xml reads as -

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <workflowServicesClientConfiguration xmlns="http://xmlns.oracle.com/bpel/services/client">
      <server name="default" default="true" >
      <localClient>
      <participateInClientTransaction>false</participateInClientTransaction>
      </localClient>
      <remoteClient>
      <serverURL>t3://namita:7001</serverURL>
      <userName>weblogic</userName>
      <password>weblogic1</password>
      <initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory>
      <participateInClientTransaction>false</participateInClientTransaction>
      </remoteClient>
      <soapClient>
      <rootEndPointURL>http://namita:7001</rootEndPointURL>
      </soapClient>
      </server>
      </workflowServicesClientConfiguration>

      Please help.
      Namita