Hi All,
I am using JDeveloper 11.1.1.7.1 and Webcenter Portal 11.1.1.8.0
I have used Jsch jar file in my application developed in Jdeveloper. It is working fine in the JDev application, when I used that taskflow in the Webcenter portal it gives me NoClassDefFoundError: com/jcraft/jsch/JSch.
I already have another JAR file used for the application, which does not throw any error while using it in Webcenter Portal.
Only this JAR file is not recognizing at runtime in Webcenter Portal.
I checked in project properties Libraries and Classpath, both JAR files are marked as checked.
Can someone help me with this.
It gives me this error:
[URI: /webcenter/faces/oracle/webcenter/page/scopedMD/s99ca7bfc_3d2d_45e9_b42e_6bae422a0f5a/PortalHome.jspx] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3[[
javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: com/jcraft/jsch/JSch
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1415)
at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:216)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:181)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:103)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
.......................................................
Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/JSch
at view.beans.ServerStatGraphs.executeCommandAndfetchResult(ServerStatGraphs.java:303)
at view.beans.ServerStatGraphs.createCPUUsageStatistics(ServerStatGraphs.java:40)
at view.beans.ServerStatGraphs.selectedDayVCL(ServerStatGraphs.java:393)
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:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
... 86 more