This discussion is archived
3 Replies Latest reply: Jan 18, 2013 2:06 AM by 974650 RSS

Oracle forms 11g error when loading forms

974650 Newbie
Currently Being Moderated
Hi ,
I have installed weblogic 11g server with oracle forms 11g. When i try to run the form i find the below error in java console.

Exception in thread "thread applet-oracle.forms.engine.Main-9" java.lang.NoClassDefFoundError: oracle/forms/ui/VBean
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClassCond(Unknown Source)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClassCond(Unknown Source)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at oracle.forms.handler.UICommon.instantiate(Unknown Source)
     at oracle.forms.handler.UICommon.onCreate(Unknown Source)
     at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
     at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
     at oracle.forms.engine.Runform.startRunform(Unknown Source)
     at oracle.forms.engine.Main.createRunform(Unknown Source)
     at oracle.forms.engine.Main.start(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: oracle.forms.ui.VBean
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)



------webutiljpi.html

<!-- Forms applet definition (start) -->
<NOSCRIPT>
<OBJECT classid="%jpi_classid%"
codebase="%jpi_codebase%"
WIDTH="%Width%"
HEIGHT="%Height%"
HSPACE="0"
VSPACE="0"
ID="%applet_name%">
</NOSCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="/forms/frmjscript/forms_ie.js"></SCRIPT>
<PARAM NAME="TYPE" VALUE="%jpi_mimetype%">
<PARAM NAME="CODEBASE" VALUE="%codebase%">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
<PARAM NAME="ARCHIVE" VALUE="%archive%,%webUtilArchive%" >

---formsweb.cfg
archive=/apdcJava/frmall.jar,/apdcJava/hst65.jar,/apdcJava/assai_gifs.jar,/apdcJava/colorpicker.jar,/apdcJava/cursorpos.jar,/apdcJava/AssaiClient.jar,/apdcJava/FormsGraph.jar,/apdcJava/AdminUpload.jar,/apdcJava/AdminUtf8Writer.jar
background=AssaiADMIN_background.jpg
baseHTML=webutilbase.htm
baseHTMLjpi=webutiljpi.htm
colorScheme=blue
height=100%
jpi_classid=clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA
jpi_codebase=/apdcJava/jinstall-6u26-windows-i586.cab#Version=1,6,0,26
jpi_download_page=/apdcJava/jre-6u26-windows-i586.exe
jpi_mimetype=application/x-java-applet;version=1.6
logo=assai_forms_logo.gif
lookAndFeel=oracle
networkRetries=15
width=100%

#
# New parameters to be added to 'default' section
#
WebUtilArchive=/apdcJava/frmwebutil.jar,/apdcJava/jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Console
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384

Any idea what is the reason?
  • 1. Re: Oracle forms 11g error when loading forms
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi,

    Enable WebUtil logging in formsweb.cfg, or in the URL by adding
    &WebUtilLogging=All&WebUtilLoggingDetail=Detailed
    in the URL.
    Inspect the resulting Java Console, and confirm that the correct webutil.jar file is being loaded. Since Forms 10.1.2.2, the versions of Forms and Webutil should agree.

    Regards,
    Kal
  • 2. Re: Oracle forms 11g error when loading forms
    974650 Newbie
    Currently Being Moderated
    Hi Kal,
    The version of webutil and forms matches.

    RegisterWebUtil - Loading WebUtil Version 11.1.2.0


    Target Name /Farm_v5fmwtst/asinst_1/forms
    Version 11.1.2

    The jar file frmall.jar and frmwebutil.jar is not laoded properly. Only one loads get properly , whichever is first in the list of archive in formsweb.cfg is loaded and other one is not loaded. Any idea why both the classes are not loaded at the same time?

    Thanks,
    Geetha
  • 3. Re: Oracle forms 11g error when loading forms
    974650 Newbie
    Currently Being Moderated
    Finally i found the reason for the bugging error 'java.lang.NoClassDefFoundError" when running oracle forms even though all the jars are loaded properly and the actual class that is in the error is actually found.
    The signing of jars was the cause of the issue.
    In the weblogic , we define all the jars files that are needed for the forms in the forms configuration under archive tag.
    All the jars needs to be in same signature . If any one of the jar is signed differently and when a class in Jar A with signature 1 tries to call the class in jar B with signature 2 , then we get these 'java.lang.NoClassDefFoundError".
    Make sure all the jars are signed by the same signature certificate.

    Hope this helps info saves some time .

    Regards,
    Geetha

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points