title: Class not found Exception from Weblogic 9.2
body: <p>In my JSF project workspace, I have a Java project <strong>A</strong> and a Weblogic EJB project <strong>B</strong> that uses the Java project.</p>
  
  <p>On generating the EAR I can see that the jar for Project A and B are there in the EAR as well as that of other projects in the workspace.</p>
  
  <p>However, on trying to access class from A in B i am getting a class not found exception.</p>
  
  <p>The Ejb Project <strong>B</strong> has the <code>managedbean/dao/ejb/delegate</code> and at this point the EJB is not getting called at all. The managedbean is instantiated and from another action call I am calling the method(loadWorklist) from where the offending class is called.</p>
  
  <p>Is there any specific setting I am missing?</p>
  
  <p>Note this is deployed as EAR in weblogic 9.2 in UNIX server.
  All required jars are loaded from inside the EAR at runtime only the classes in project A is missing.</p>
  
  <p>Stack trace from the error:</p>
  
  <pre><code>javax.faces.FacesException: Error calling action method of component with id worklistForm:_idJsp131
          at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
          at javax.faces.component.UICommand.broadcast(UICommand.java:109)
          at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
          at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
          Truncated. see log file for complete stacktrace
  javax.faces.el.EvaluationException: Exception while invoking expression #{worklistManagedBean.loadWorklist}
          at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:156)
          at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
          at javax.faces.component.UICommand.broadcast(UICommand.java:109)
          at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
          Truncated. see log file for complete stacktrace
  java.lang.NoClassDefFoundError: com/tcs/nextgen/workflow/util/WorkflowUtil
          at com.ultimatix.nextgen.worklist.managedbean.WorklistManagedBean.loadWorklist(WorklistManagedBean.java:36)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          Truncated. see log file for complete stacktrace
  </code></pre>
  
  <p>Ear structure:</p>
  
  <pre><code>EAR
  |
  |-META-INF
  |-library1.jar
  |-library2.jar
  |-A.jar
  |-B.jar
  </code></pre>
  
  <p>Since this is an existing legacy app, jars are not in APP-INF/lib. </p>