Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting error of NoClassDefFoundError: com/jcraft/jsch/JSch in Webcenter portal

Ashok VorugantiNov 2 2016 — edited Nov 10 2016

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2016
Added on Nov 2 2016
9 comments
3,749 views