com
email info@alexys.us
Webutil Settings
Requirements
Download Jacob 1.8 archive and webutil 1.06
(Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
webutil can be downloaded from http://otn.oracle.com )
1. Database Setup
Login as SYS
set serveroutput on
declare
a boolean;
begin
a:=webutil_db.closeblob(1);
If a then
dbms_output.put_line('webutil/blob setup '||'TRUE');
else
dbms_output.put_line(' webutil/blob setup '||'FALSE');
end if;
end;
1
http://www.Alexyscorp.com
email info@alexys.us
http://machinename.com/forms/webutil/jacob.dll
http://machinename.com/forms/webutil/JNIsharedstubs.dll
http://machinename.com/forms/webutil/d2kwutil.dll
WEBUTIL_CONFIG=/opt/oracle/product/10gas/forms/server/webutil.cfg
CLASSPATH=c:\temp\webutil\lib\frmwebutil.jar;c:\"Program
Files"\Java\j2re1.4.2_06\lib\rt.jar (Include rt.jar)
logging.file=c:\temp\webutil.log
logging.enabled=TRUE
logging.errorsonly=TRUE
logging.connections=TRUE
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=<Enter Directory /folder on Server>
transfer.appsrv.accessControl=TRUE
transfer.appsrv.read.1=<Enter Directory /folder on Server>
transfer.appsrv.write.1=<Enter Directory /folder on Server>
[webutil]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=on
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=basejpi.htm
baseHTMLjpi=webutiljpi.htm
#archive_jini=frmall_jinit.jar
lookAndFeel=oracle
form=WELCOME.fmx
2
http://www.Alexyscorp.com
email info@alexys.us
userid=webutil/Webutil$123@ORCL
width=955
height=545
jpi_download_page=https://java.sun.com/products/archive/j2se/1.4.2_09/index.ht ml
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_codebase=https://java.sun.com/products/plugin/autodl/jinstall-1_4-windows- i586.
cab#Version=1,4,0,0
jpi_mimetype=application/x-java-applet;version=1.4
9. Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
http://server:port/forms/frmservlet?config=webutil
3
http://www.Alexyscorp.com
email info@alexys.us
Debugging
1. Clear the browser cache and enable the jinitator / sun java plugin.
For Sun Java Plugin
Start ->Settings ->Control –Panel->Java->Advanced ->Show Java Console
Debugging ->Select All
Clear the plugin cache and once again access the URL. Make sure all the dlls,jar files
are getting downloaded.
java.lang.ClassNotFoundException:
java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
Cause
-----
Ensure that the ORACLE_HOME in the .Env file points to a correct home.
Cause
-----
Ported webutil to Unix . The form appears , but when a call is made to webutil
functions, it resulted in the above error .The reason was PLL was not compiled
on unix .
Reference
---------
4
http://www.Alexyscorp.com
email info@alexys.us
The code was not erroring out, but the image was not getting copied in the
image item .
Cause
-----
While Writing Image file ( remember its the client to which the image
is written to ).
Example
client_image.write_image_file('d:\myimg\','GIF','CTRL.MY_IMG',
maximize_compression, original_depth);
Then ensure that on the thin client , there exist a directory called as "myimg" in the D drive .
One should watch out for the error in the console or the log depending on how
the logging has been set to .In case if the directory does not exist on the
client message appears that cannot create a file ...
2) The basic forms Write Image file is used to extract a temporary copy
of the image into that directory.
3) The image is downloaded into the client machine and saved as the name
that you specified as the filename in the write_image_file command.
4) The temporary copy of the image held in the workAreaRoot on the Appserver
is cleaned up.
5
http://www.Alexyscorp.com
email info@alexys.us
7. Last option is to send an email to info@alexys.us We will look into it and can give the
suggestions/resolution. Suggestions/feedbacks are always welcome.