Webutil_db

Can anyone post their webutil_db package that successfully loads documents into database. Mine gives me the impression that it is working but when I look for the loaded blob I can't find it.
What follows is my webutil_db package
CREATE OR REPLACE PACKAGE WEBUTIL_DB AUTHID CURRENT_USER AS
* WebUtil_DB - Database functions used by the WebUtil_File_Transfer
* Package. These functions allow reading and writing direct
* to the specified BLOB in the database.
* The functions should not be called externally from WebUtil
* Version 1.0.0
* Change History
* DRMILLS 11/JAN/2003 - Creation
FUNCTION OpenBlob(blobTable in VARCHAR2,
blobColumn in VARCHAR2,
blobWhere in VARCHAR2,
openMode in VARCHAR2,
chunkSize in PLS_INTEGER default null) return BOOLEAN;
FUNCTION CloseBlob(checksum in PLS_INTEGER) return BOOLEAN;
PROCEDURE WriteData(data in VARCHAR2);
FUNCTION ReadData return VARCHAR;
FUNCTION GetLastError return PLS_INTEGER;
FUNCTION GetSourceLength return PLS_INTEGER;
FUNCTION GetSourceChunks return PLS_INTEGER;
END WEBUTIL_DB;
CREATE OR REPLACE PACKAGE BODY WEBUTIL_DB AS
m_binaryData BLOB;
m_blobTable VARCHAR2(60);
m_blobColumn VARCHAR2(60);
m_blobWhere VARCHAR2(1024);
m_mode CHAR(1);
m_lastError PLS_INTEGER := 0;
m_sourceLength PLS_INTEGER := 0;
m_bytesRead PLS_INTEGER := 0;
MAX_READ_BYTES PLS_INTEGER := 4096;
-- internal Program Units
PROCEDURE Reset;
PROCEDURE Reset is
BEGIN
m_blobTable := null;
m_blobColumn := null;
m_blobWhere := null;
m_mode := null;
m_lastError := 0;
m_sourceLength := 0;
m_bytesRead := 0;
END Reset;
FUNCTION OpenBlob(blobTable in VARCHAR2, blobColumn in VARCHAR2, blobWhere in VARCHAR2, openMode in VARCHAR2, chunkSize PLS_INTEGER default null) return BOOLEAN is
result BOOLEAN := false;
stmtFetch VARCHAR2(2000);
hit PLS_INTEGER;
BEGIN
-- New transaction clean up
reset;
m_blobTable := blobTable;
m_blobColumn := blobColumn;
m_blobWhere := blobWhere;
m_mode := upper(openMode);
if chunkSize is not null then
if chunkSize > 16384 then
MAX_READ_BYTES := 16384;
else
MAX_READ_BYTES := chunkSize;
end if;
end if;
-- check the target row exists
stmtFetch := 'select count(*) from '||m_blobTable||' where '||m_blobWhere;
EXECUTE IMMEDIATE stmtFetch into hit;
if hit = 1 then
if m_mode = 'W' then
DBMS_LOB.CREATETEMPORARY(m_binaryData,false);
DBMS_LOB.OPEN(m_binaryData,DBMS_LOB.LOB_READWRITE);
m_sourceLength := 0;
result := true;
elsif m_mode = 'R' then
stmtFetch := 'select '||m_blobColumn||' from '||m_blobTable||' where '||m_blobWhere;
EXECUTE IMMEDIATE stmtFetch into m_binaryData;
if m_binaryData is not null then
m_sourceLength := dbms_lob.getlength(m_binaryData);
if m_sourceLength > 0 then
result := true;
else
m_lastError := 110;
end if;
else
m_lastError := 111;
end if;
else
m_lastError := 112;
end if; -- mode
else
-- too many rows
m_lastError := 113;
end if; -- Hit
return result;
END OpenBlob;
FUNCTION CloseBlob(checksum in PLS_INTEGER) return BOOLEAN is
sourceBlob BLOB;
stmtFetch VARCHAR2(2000);
stmtInit VARCHAR2(2000);
result BOOLEAN := false;
BEGIN
if m_mode = 'W' then
m_sourceLength := DBMS_LOB.GETLENGTH(m_binaryData);
end if;
-- checksum
if checksum = m_sourceLength then
if m_mode = 'W' then
-- get the locator to the table blob
stmtFetch := 'select '||m_blobColumn||' from '||m_blobTable||' where '||m_blobWhere||' for update';
EXECUTE IMMEDIATE stmtFetch into sourceBlob;
-- Check the blob has been initialised
-- and if it's not empty clear it out
if sourceBlob is null then
stmtInit := 'update '||m_blobTable||' set '||m_blobColumn||'=EMPTY_BLOB() where '||m_blobWhere;
EXECUTE IMMEDIATE stmtInit;
EXECUTE IMMEDIATE stmtFetch into sourceBlob;
elsif dbms_lob.getlength(sourceBlob) > 0 then
dbms_lob.TRIM(sourceBlob,0);
end if;
-- now replace the table data with the temp BLOB
DBMS_LOB.APPEND(sourceBlob,m_binaryData);
DBMS_LOB.CLOSE(m_binaryData);
result := true;
else
-- todo
null;
end if; --mode
else
m_lastError := 115;
end if; --checksum
return result;
END CloseBlob;
PROCEDURE WriteData(data in VARCHAR2) is
rawData raw(16384);
BEGIN
rawData := utl_encode.BASE64_DECODE(utl_raw.CAST_TO_RAW(data));
dbms_lob.WRITEAPPEND(m_binaryData, utl_raw.LENGTH(rawData), rawData);
END WriteData;
FUNCTION ReadData return VARCHAR is
rawData RAW(16384);
bytesToRead PLS_INTEGER;
BEGIN
bytesToRead := (m_sourceLength - m_bytesRead);
if bytesToRead > MAX_READ_BYTES then
bytesToRead := MAX_READ_BYTES;
end if;
DBMS_LOB.READ(m_binaryData, bytesToRead, (m_bytesRead + 1), rawData);
m_bytesRead := m_bytesRead + bytesToRead;
return UTL_RAW.CAST_TO_VARCHAR2(UTL_ENCODE.BASE64_ENCODE(rawData));
END ReadData;
FUNCTION GetLastError return PLS_INTEGER is
BEGIN
return m_lastError;
END GetLastError;
FUNCTION GetSourceLength return PLS_INTEGER is
BEGIN
return m_sourceLength;
END GetSourceLength;
FUNCTION GetSourceChunks return PLS_INTEGER is
chunks PLS_INTEGER;
BEGIN
chunks := floor(m_sourceLength/MAX_READ_BYTES);
if mod(m_sourceLength,MAX_READ_BYTES) > 0 then
chunks := chunks+1;
end if;
return chunks;
END GetSourceChunks;
END;
}

Alex,
Thanks for the reply, it's always been working but for some reason, after it uploads a document into database it is showing lenght to be 0, but the document is in the database and can be downloaded...
George

Similar Messages

  • How to FTP a file from client machine to database server using forms 10g

    Hi
    I want to ftp a file from a client machine to the database server machine using forms 10G (or PL/SQL).
    could you please tell me how can I do this
    Regards

    hi
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    Oracle_Home with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) 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.
    2) Copy or move jacob.jar and jacob.dll
    C:\webutile is the folder where you extracted Jacob, and will end in ...\jacob_18
    cd C:\webutile
    copy jacob.jar Oracle_Home\forms\java\.
    copy jacob.dll Oracle_Home\forms\webutil\.
    The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add Oracle_Home\jdk\bin to the PATH:
    set PATH=Oracle_Home\jdk\bin;%PATH%
    Sign the files, and check the output for success:
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\frmwebutil.jar
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
    you may skip this step. Otherwise,
    Create a schema to hold the WebUtil stored code, and privileges needed to
    connect and create a stored package. Schema name "WEBUTIL" is recommended
    for no reason other than consistency over the user base.
    Open Oracle_Home\forms\create_webutil_db.sql in a text editor, and delete or comment
    out the EXIT statement, to be able to see whether the objects were created witout
    errors.
    Start SQL*Plus as SYSTEM, and issue:
    CREATE USER webutil IDENTIFIED BY [password]
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
    CONNECT webutil/webutil@rcci
    @Oracle_Home\forms\create_webutil_db.sql
    -- Inspect SQL*Plus output for errors, and then
    CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    Reconnect as SYSTEM, and issue:
    grant execute on webutil_db to public;
    5) Modify Oracle_Home\forms\server\default.env, and append Oracle_Home\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.
    6) Modify Oracle_Home\forms\server\formsweb.cfg insde [default] add :
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
    archive=frmall.jar
    also add :
    [webutil]
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTML=webutilbase.htm
    archive_jini=frmall_jinit.jar
    WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
    archive=frmwebutil.jar,f90all.jar
    lookAndFeel=oracle
    7) Modify Oracle_Home\forms\server\webutil.cfg and add :
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    8) Start the OC4J instance
    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).
    It is important to generate the PLX, to avoid the FRM-40039 discussed in Note 303682.1
    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.
    10) Create a new FMB.
    Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
    There is no need to Subclass the WebutilConfig object.
    Attach the Webutil.pll Library, and remove the path.
    Add an ON-LOGON trigger with the code
    NULL;
    to avoid having to connect to an RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a WHEN-BUTTON-PRESSED trigger.
    Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    11) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
    the "Application Server URL" is empty.
    Then append "?config=webutil" at the end, so you end up with a URL of the form
    http://server:port/forms/frmservlet?config=webutil
    12) Run your form.

  • Please helppppppppppp in webutil as soon as possible

    I am working with developer suite release 2 using OC4J and webutil 105 and I tried before it webutil 106 but I have the same error in both of them: oracle.forms.webutil.filefunctions bean not found
    Please help i`m stuck in webutil for 4 days and I can`t solve this problem, here are my configurations from A to Z
    A-     I ran the script create_webutil_db.sql
    B-     I signed the webutil.jar and Jacob.jar files as follows:
    I changed the signer.properties file to have the following values:
    JDK_HOME=C:\j2sdk1.4.2_10
    JINIT_HOME=C:\Program Files\Oracle\JInitiator 1.3.1.22
    DN_CN=Product Management
    DN_OU=Development Tools
    DN_O=Oracle
    DN_C=US
    JAR_KEY=webutil
    JAR_KEY_PASSWORD=webutil
    I made a sign.bat file in C:\webutil\util with the following contents:
    makecert
    sign C:\webutil\lib\webutil.jar
    sign C:\webutil\lib\jacob.jar
    Then I opened the cmd and executed it.
    After this I verified both C:\webutil\lib\webutil.jar and C:\webutil\lib\jacob.jar with the following command to ensure the certification
    jarsigner –verify C:\webutil\lib\webutil.jar
    jarsigner –verify C:\webutil\lib\jacob.jar
    And in both commands the result was:
    jar verified
    Webutil folder location:
    C:\webutil
    Environment variables:
    1-CLASSPATH=c:\webutil\lib\;c:\webutil\lib\webutil.jar;c:\oracle\ids9i\jlib\debugger.jar;c:\oracle\ids9i\jlib\ewt3.jar;c:\oracle\ids9i\jlib\share.jar;c:\oracle\ids9i\jlib\utj90.jar;c:\oracle\ids9i\jdk\jre\lib\rt.jar
    2-
    WEBUTIL_CONFIG=c:\webutil\server\webutil.cfg
    3-
    Path=c:\DevSuiteR2\jdk\jre\bin\classic;c:\DevSuiteR2\jdk\jre\bin;c:\DevSuiteR2\jdk\jre\bin\client;c:\DevSuiteR2\jlib;c:\DevSuiteR2\bin;c:\DevSuiteR2\jre\1.4.2\bin\client;c:\DevSuiteR2\jre\1.4.2\bin;C:\oracle\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\oracle\jdk\bin;C:\DevSuiteR2\jdk\bin
    4-
    FORMS=c:\DevSuiteR2\forms
    5-
    FORMS_BUILDER_CLASSPATH=C:\webutil\lib\webutil.jar;c:\DevSuiteR2\forms\java\frmbld.jar;c:\DevSuiteR2\jlib\importer.jar;c:\DevSuiteR2\jlib\debugger.jar;c:\DevSuiteR2\jlib\utj.jar;c:\DevSuiteR2\jlib\dfc.jar;c:\DevSuiteR2\jlib\help4.jar;c:\DevSuiteR2\jlib\oracle_ice.jar;c:\DevSuiteR2\jlib\jewt4.jar;c:\DevSuiteR2\jlib\ewt3.jar;c:\DevSuiteR2\jlib\share.jar;c:\DevSuiteR2\forms\java\frmall.jar
    6-
    FORMS_PATH=C:\webutil\forms;c:\DevSuiteR2\cgenf61\admin;c:\DevSuiteR2\forms
    In Webutil.env in C:\webutil\server:
    I changed the existing values to the following:
    ORACLE_HOME=c:\devsuiter2
    FORMS_PATH=c:\webutil\forms;c\devsuiter2\forms
    CLASSPATH=c:\webutil\lib\webutil.jar;c:\webutil\lib\jacob.jar;c:\DevSuiteR2\jdk\jre\lib\rt.jar;c:\DevSuiteR2\jlib\debugger.jar;c:\DevSuiteR2\jlib\ewt3.jar;c:\DevSuiteR2\jlib\share.jar;c:\DevSuiteR2\jlib\utj.jar;c:\DevSuiteR2\j2ee\OC4J_BI_Forms\applications\formsapp\formsweb\WEB-INF\lib\frmsrv.jar;c:\DevSuiteR2\jlib\repository.jar;c:\DevSuiteR2\jlib\ldapjclnt10.jar;c:\DevSuiteR2\jlib\zrclient.jar;c:\DevSuiteR2\reports\jlib\rwrun.jar;
    WEBUTIL_CONFIG=c:\webutil\server\webutil.cfg
    In forms.conf in C:\DevSuiteR2\forms\server:
    # Virtual path for webutil
    AliasMatch ^/forms/webutil/(..*) "c:\DevSuiteR2/forms/webutil/$1"
    The contents of formsweb.cfg in C:\DevSuiteR2\forms\server:
    # $Id: formsweb.cfg 15-apr-2005.13:17:30 pkuhn Exp $
    # formsweb.cfg defines parameter values used by the FormsServlet (frmservlet)
    # This section defines the Default settings. Any of them may be overridden in the
    # following Named Configuration sections. If they are not overridden, then the
    # values here will be used.
    # The default settings comprise two types of parameters: System parameters,
    # which cannot be overridden in the URL, and User Parameters, which can.
    # Parameters which are not marked as System parameters are User parameters.
    # SYSTEM PARAMETERS
    # These have fixed names and give information required by the Forms
    # Servlet in order to function. They cannot be specified in the URL query
    # string. But they can be overridden in a named configuration (see below).
    # Some parameters specify file names: if the full path is not given,
    # they are assumed to be in the same directory as this file. If a path
    # is given, then it should be a physical path, not a URL.
    # USER PARAMETERS
    # These match variables (e.g. %form%) in the baseHTML file. Their values
    # may be overridden by specifying them in the URL query string
    # (e.g. "http://myhost.mydomain.com/forms/frmservlet?form=myform&width=700")
    # or by overriding them in a specific, named configuration (see below)
    [default]
    # System parameter: default base HTML file
    baseHTML=base.htm
    # System parameter: base HTML file for use with JInitiator client
    baseHTMLjinitiator=basejini.htm
    # System parameter: base HTML file for use with Sun's Java Plug-In
    baseHTMLjpi=basejpi.htm
    # System parameter: delimiter for parameters in the base HTML files
    HTMLdelimiter=%
    # System parameter: working directory for Forms runtime processes
    # WorkingDirectory defaults to <oracle_home>/forms if unset.
    workingDirectory=
    # System parameter: file setting environment variables for the Forms runtime processes
    envFile=default.env
    # Forms runtime argument: whether to escape certain special characters
    # in values extracted from the URL for other runtime arguments
    escapeparams=true
    # Forms runtime argument: which form module to run
    form=test.fmx
    # Forms runtime argument: database connection details
    userid=
    # Forms runtime argument: whether to run in debug mode
    debug=no
    # Forms runtime argument: host for debugging
    host=
    # Forms runtime argument: port for debugging
    port=
    # Other Forms runtime arguments: grouped together as one parameter.
    # These settings support running and debugging a form from the Builder:
    otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
    # Sub argument for otherparams
    buffer=no
    # Sub argument for otherparams
    debug_messages=no
    # Sub argument for otherparams
    array=no
    # Sub argument for otherparams
    obr=no
    # Sub argument for otherparams
    query_only=no
    # Sub argument for otherparams
    quiet=yes
    # Sub argument for otherparams
    render=no
    # Sub argument for otherparams
    record=
    # Sub argument for otherparams
    tracegroup=
    # Sub argument for otherparams
    log=
    # Sub argument for otherparams
    term=
    # HTML page title
    pageTitle=Oracle Application Server Forms Services
    # HTML attributes for the BODY tag
    HTMLbodyAttrs=
    # HTML to add before the form
    HTMLbeforeForm=
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms/lservlet
    # Forms applet parameter
    codebase=/forms/java
    # Forms applet parameter
    imageBase=DocumentBase
    # Forms applet parameter
    width=750
    # Forms applet parameter
    height=600
    # Forms applet parameter
    separateFrame=false
    # Forms applet parameter
    splashScreen=
    # Forms applet parameter
    background=
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,22
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=0
    # Single Sign-On OID configuration parameter
    oid_formsid=%OID_FORMSID%
    # Single Sign-On OID configuration parameter
    oracle_home=c:\DevSuiteR2
    # Single Sign-On OID configuration parameter
    formsid_group_dn=%GROUP_DN%
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=true
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    # The parameter allow_debug determines whether debugging is permitted.
    # Administrators should set allow_debug to "true" if servlet
    # debugging is required, or to provide access to the Forms Trace Xlate utility.
    # Otherwise these activities will not be allowed (for security reasons).
    allow_debug=false
    # Parameter which determines whether new Forms sessions are allowed.
    # This is also read by the Forms EM Overview page to show the
    # current Forms status.
    allowNewConnections=true
    # EndUserMonitoring
    # EndUserMonitoringEnabled parameter
    # Indicates whether EUM/Chronos integration is enabled
    EndUserMonitoringEnabled=
    # EndUserMonitoringURL
    # indicates where to record EUM/Chronos data
    EndUserMonitoringURL=
    # Example Named Configuration Section
    # Example 1: configuration to run forms in a separate browser window with
    # "generic" look and feel (include "config=sepwin" in the URL)
    # You may define your own specific, named configurations (sets of parameters)
    # by adding special sections as illustrated in the following examples.
    # Note that you need only specify the parameters you want to change. The
    # default values (defined above) will be used for all other parameters.
    # Use of a specific configuration can be requested by including the text
    # "config=<your_config_name>" in the query string of the URL used to run
    # a form. For example, to use the sepwin configuration, your could issue
    # a URL like "http://myhost.mydomain.com/forms/frmservlet?config=sepwin".
    [sepwin]
    separateFrame=True
    lookandfeel=Generic
    # Example Named Configuration Section
    # Example 2: configuration forcing use of the Java Plugin in all cases (even if
    # the client browser is on Windows)
    [jpi]
    baseHTMLJInitiator=basejpi.htm
    # Example Named Configuration Section
    # Example 3: configuration running the Forms ListenerServlet in debug mode
    # (debug messages will be written to the servlet engine's log file).
    [debug]
    serverURL=/forms/lservlet/debug
    # Sample configuration for deploying WebUtil. Note that WebUtil is shipped with
    # DS but not AS and is also available for download from OTN.
    [webutil]
    webutilarchive=/forms/webutil/webutil.jar,/forms/webutil/jacob.jar
    archive_jini=frmall_jinit.jar,c:\webutil\lib\webutil.jar,c:\webutil\jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    baseHTMLjinitiator=c:\webutil\server\webutiljini.htm
    baseHTMLjpi=c:\webutil\server\webutiljpi.htm
    baseHTML=c:\webutil\server\webutilbase.htm
    archive_jini=frmall_jinit.jar,C:\webutil\lib\webutil.jar,C:\webutil\lib\jacob.jar
    archive=frmall.jar
    lookAndFeel=oracle
    envFile=c:\webutil\server\webutil.env
    note:
    I tried to put
    webutilarchive= c:\webutil\lib\webutil.jar,c:\webutil\jacob.jar
    Instead of
    webutilarchive=/forms/webutil/webutil.jar,/forms/webutil/jacob.jar
    But I still have the same error
    In forms builder:
    I opened C:\webutil\forms\webutil.olb
    Noticing that WEBUTIL is added under Object Libraries
    I opened C:\webutil\forms\webutil.pll
    Noticing that WEBUTIL is added under PL/SQL Libraries
    Then I compiled it
    I Double-clicked on WEBUTIL under Object Libraries and Dragged WEBUTIL from WebUtil Objects the “Object Groups” under my form and i Clicked on [Copy] or (on subclass it doesn`t matter the error still occurs in both cases)
    In Object Navigator, I Double-clicked on Attached Libraries and seleced webutil.pll.
    Then I compiled all
    And when I run the form the following error appears:
    In case of webutil105:
    WUC-015:your form must contain the following bean for this function to be available:oracle.forms.webutil.file.filefunctions
    In case of webutil106:
    .oracle.forms.webutil.file.filefunctions
    WEB_UTIL_FILE_SELECTION_DIALOG_INT will not work

    hi there,
    i m sending u some steps to configure webutil which i used to do the same.
    it took me some time to configure it and i was also getting same errors(many more). but now its working fine...
    please cross check each and every step
    also dont forget to create a webutil schema and run the create_webutil_db.sql script. try to test ur application after creating some tables in the webutil schema itself(not in any other scema) . It should solve ur problem if not please send me the error.
    why dont u sign ur frmwebutil.jar and jacob.jar files with the sign_webutil.bat in /forms/webutil directory.
    Created by: Jitender Sharma.
    Dated: 18th may 2006.
    Configuring Your Database for WebUtil
    1. Create a special user "webutil" on your database as the owner of the package supplied with create_webutil_db.sql.
    grant connect, resource(if necessary),grant execute on <object> to webutil;
    Some of the functions that WebUtil provides for file transfer in the WEBUTIL_FILE_
    TRANSFER package require the database package WEBUTIL_DB.
    The script called
    create_webutil_db.sql is supplied in the forms directory to create this package.
    (c:\devsuite10g\forms\create_webutil_db.sql)
    (my oracle home is devsuite10g)
    Make a public synonym of webutil_db so that it is accessible to all relevent users of the database.
    Configuring Oracle HTTP Server for WebUtil
    create a virtual directory called
    j2ee/DevSuite/application-deployments/forms/formsweb/webutil
    which maps onto the ORACLE_HOME/forms/webutil directory in the Oracle
    Developer Suite and Oracle Application Server ORACLE_HOME directories.
    For Oracle Developer Suite, add the following line to the file
    j2ee/DevSuite/application-deployments/forms/formsweb/
    orion-web.xml under the Oracle Developer Suite Oracle Home:
    <virtual-directory virtual-path="/webutil" real-path="$ORACLE_
    HOME/forms/webutil" />
    In Oracle Application Server (c:\devsuite10g\forms\server\forms.conf), define the same virtual directory in the
    forms/server/forms.conf file:
    AliasMatch ^/forms/webutil/(..*) $ORACLE_HOME/forms/webutil/$1"
    WebUtil Entries in the formsweb.cfg File
    At runtime the Forms server must have access to the frmwebutil.jar. This should
    be present in the ORACLE_HOME/forms/java directory. You define the name and
    location of this jar file using the configuration parameter webUtilArchive that
    passes the name of the frmwebutil.jar to the Forms server:
    add following parameter to formsweb.cfg
    WebUtilArchive=frmwebutil.jar,jacob.jar
    Define the HTML templates to use with JInitiator and the Java Plug-in.
    *These settings are already done by installer in forms 10g 1.2
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi - Should point to the baseHTML file for the Java Plug-in e.g.
    baseHTMLjpi=webutiljpi.htm.
    baseHTML - Should point to the baseHTML for WebUtil, e.g.
    baseHTML=webutilbase.htm.
    Note: For Oracle Application Server, on all platforms, you must
    regenerate webutil.pll before using it; otherwise you’ll encounter error
    ORA-06508 when running a form with the attached library. To
    recompile, use the following command:
    frmcmp module=ORACLE_HOME\forms\webutil.pll
    userid=<webutil/webutil@dbconnect> module_type=library compile_
    all=yes
    The user ID can be any user with the required privileges as described
    The FORMS_PATH must include the directory where a copy of webutil.pll exists.
    FORMS_PATH=C:\DevSuite10g\forms\
    The second requirement within the .env file is for an environment variable
    WEBUTIL_CONFIG.
    WEBUTIL_CONFIG=ORACLE_HOME\forms\server\webutil.cfg
    The frmwebutil.jar (including its physical location) file must be included in the
    CLASSPATH, along with the Java runtime Jar rt.jar. e.g.
    CLASSPATH=\ORACLE_
    HOME\forms\java\frmwebutil.jar;c:\ids9i\jdk\jre\lib\rt.jar
    The webutil.cfg File
    transfer.database.enabled=true
    transfer.appsrv.enabled=true
    &#9632; transfer.appsrv.accessControl=true
    &#9632; transfer.appsrv.read.1=d:\
    &#9632; transfer.appsrv.write.1=d:\work\upload
    &#9632; transfer.appsrv.write.2=d:\work\log
    *The Formsweb.cfg file(this line is added for signing the frmwebutil.jar and jecob.jar)
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
    Signing frmwebutil.jar and jacob.jar.
    sign frmwebutil.jar and jacob.jar with the same key for that a .bat file(windows) and a .sh file(unix) is supplied in
    C:\DevSuite10g\forms\webutil\sign_webutil.bat
    c:\devsuite10g\forms\webutil>sign_webutil.bat c:\devsuite10g\java\frmwebutil.jar
    c:\devsuite10g\forms\webutil>sign_webutil.bat c:\devsuite10g\java\jacob.jar
    (If there is any problem in signing .jar files then we can sign these files in some other location and then copy them to /java directory provided we have webutil.zip and jacob.zip file).
    *From oracle site:
    You need to sign both the frmwebutil.jar and the jacob.jar with the same digital certificate. This is a one-time operation, which allows your end-users to trust that the JACOB routines can access client side resources. If you do not have an existing signing certificate or are not sure how to go about signing Jar files, scripts have been supplied in the forms/webutil directory for you.
    Sign the Jar files using sign_webutil.sh in Unix or sign_webutil.bat in Windows:
    Make sure that keytool and jarsigner are present in the path. They are usually available in the bin directory of your Java SDK installation.
    Issue sign_webutil.sh in Unix, or sign_webutil.bat in Windows
    QUICK CHECKLIST:
    Preparation for Oracle10g Release 2:
    1.Create webutil schema run create_webutul_db.sql
    Create public synonym
    2.Add the following in default.env
    WEBUTIL_CONFIG= C:\oracle\product\Ora10gDS\forms\server\webutil.cfg
    Append to existing CLASSPATH
    CLASSPATH=C:\oracle\product\Ora10gDS\forms\java\frmwebutil.jar;
    3. Append the configuration of
    C:\oracle\product\Ora10gDS\forms\server\formsweb.cfg
    archive_jini=fall_jinit.jar,frmwebutil.jar,jacob.jar
    WebUtilArchive=frmwebutil.jar,jacob.jar
    4. sign_webutil.bat C:\oracle\product\Ora10gDS\forms\webutil\jacob.jar
    sign_webutil.bat C:\oracle\product\Ora10gDS\forms\java\frmwebutil.jar
    5. In MyComputer, double-click on C:\oracle\product\Ora10gDS\forms\webutil.olb
    You will notice that WEBUTIL is added under Object Libraries
    Double-click on WEBUTIL in yellow
    Click on Minimize icon
    Drag WEBUTIL from WebUtil Objects to the Yellow “Object Groups”
    Click on [Copy]
    6. In Object Navigator, Double-click on Attached Libraries,
    Select webutil.pll from C:\oracle\product\Ora10gDS\forms\Webutil
    Run webutil.olg from C:\oracle\product\Ora10gDS\forms\Webutil
    Copy to Object Group
    Click on Program, Compile PL/SQL, All
    Click on Program, Compile Module
    7. Amend the C:\oracle\product\Ora10gDS\forms\server\default.env
    FORMS_PATH=C:\Webutil_demo;C:\oracle\product\Ora10gDS\forms
    Start OC4J
    Run the form, it works!
    hope u have patience to read it :-)
    take care bye.....

  • At my wits end with WEBUTIL!!!

    Here i am about to go for my Oracle Forms developer exams and am exploring Webutil and the functionality it provides. I am a bit excited at the many wonderful things it provides, aghh but wait a minute this is oracle and if i know anything its that oracle promises the heaven and earth but to actually get it working you have to really sweat dig, dig through docs which have not been updated and are incorrect or try to decipher what should be straighforward instructions. So i find myself in this usual scenario with Webutil.
    Downloaded the WebUtil User’s Guide in pdf format and one of the first things i read is......
    If you’ve selected the Complete installation option for installing Oracle Developer Suite 10g (10.1.2), WebUtil is installed and configured for you. Yes I have done the complete installation.
    I looked and followed the webutil simple viewlet concerning attaching the library and object group
    http://www.oracle.com/technology/sample_code/products/forms/demo/9i/javabeans_pjc_samples/webutil/viewlet/WebUtil_Simple_viewlet_swf.html
    But guess what when i run my form i get...
    Oracle.forms.webutil.file filefunctions bean not found.
    Webutil_file.file_selection_dialog_int will not work
    So I followed the Webutil release notes to see whats missing:
    1.
    WebUtil User’s Guide says....
    WebUtil directory structure has these folders:
    doc
    java
    server
    webutil
    Huh? no my webutil directory has only 4 files two of which are to do with signing. But I choose the complete installation. What happened? Should i now go ahead and download webutil and manually place the extracted directories into my existing webutil directory? ...did this
    2.
    WebUtil User’s Guide says....
    Oracle recommends that you create a special user "webutil" on your database as the owner of this package. Once the WEBUTIL_DB package has been created and compiled on the database you will need to make it available to the relevant users of your application. Additionally, you will have to create a synonym of WEBUTIL_DB for this package if you are running from a schema other than the one that you installed it with. The Forms PL/SQL code refers to the package as WEBUTIL_DB without a schema prefix.
    OMG how much more convuluted is this going to get, have seen other docs that describe the webutil package setup and not seen this before, is this necessary? ...not done this, is it really necessary?
    3.
    DevSuite/application-deployments/forms/formsweb/orion-web.xml and forms/server/forms.conf are configured correctly
    4.
    In my formsweb.cfg file I have... WebUtilArchive=frmwebutil.jar,jacob.jar
    Originally had...
    baseHTML=base.htm
    baseHTMLjinitiator=basejini.htm
    baseHTMLjpi=basejpi.htm
    then changed to (as per WebUtil User’s Guide)..
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm.
    baseHTML=webutilbase.htm.
    5.
    The FORMS_PATH must include the directory where a copy of webutil.pll exists....it does!
    The second requirement within the .env file is for an environment variable WEBUTIL_CONFIG. This variable must point at the name and location of your webutil.cfg file. By default this is in the ORACLE_HOME/forms/server directory
    ...it does!
    The frmwebutil.jar (including its physical location) file must be included in the CLASSPATH, along with the Java runtime Jar rt.jar. e.g.
    CLASSPATH=\ORACLE_HOME\forms\java\frmwebutil.jar;c:\ids9i\jdk\jre\lib\rt.jar
    c:\ids9i\jdk\jre\lib\rt.jar was missing so i added!
    The PATH and library load path (on UNIX platforms) must be defined either in the general environment or specifically in the .env file to allow Forms to call Java. On a Win32 platform this will involve adding the ORACLE_HOME\jdk\jre\bin\client directory of a 1.3 or 1.4 Java install to the PATH. This enables Forms to find the jvm.dll file.
    Checked this and the jvm is in my path already.
    Check that ORACLE_HOME/jdk/bin is in the path. If it is not, add it..........Done this and rebooted.
    5.
    Signing the WebUtil and JACOB Jar files:
    From the JACOB Zip file, extract both jacob.dll and jacob.jar into the ORACLE_HOME\forms\WebUtil and ORACLE_HOME\forms\java directories, respectively DONE!
    In Windows, Issue sign_webutil.bat ORACLE_HOME\forms\java\frmwebutil.jar (or the path to where you installed WebUtil).... Did and got the following...
    F:\>f:\DevSuiteHome_1\forms\webutil\sign_webutil.bat F:\DevSuiteHome_1\forms\java\frmwebutil.jar
    Generating a self signing certificate for key=webutil2...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
    There were warnings or errors while generating a self signing certificate. Please review them.
    Backing up F:\DevSuiteHome_1\forms\java\frmwebutil.jar as F:\DevSuiteHome_1\forms\java\frmwebutil.jar.old...
    1 file(s) copied.
    Signing F:\DevSuiteHome_1\forms\java\frmwebutil.jar using key=webutil2...
    ...successfully done.
    In Windows, Issue sign_webutil.bat ORACLE_HOME\forms\webutil\jacob.jar...........Hang on a minute where did the jacob.jar come from? As earlier in this step wasn't the instruction to put JACOB.DLL into the webtutil directory and JACOB.JAR into the forms\java directory.
    Okay decided to copy both jacob.dll and jacob.jar (not respectively as earlier instructed) but to both ORACLE_HOME\forms\WebUtil and ORACLE_HOME\forms\java directories and sign as instructed
    .................was this correct?
    F:\>f:\DevSuiteHome_1\forms\webutil\sign_webutil.bat F:\DevSuiteHome_1\forms\webutil\jacob.jar
    Generating a self signing certificate for key=webutil2...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
    There were warnings or errors while generating a self signing certificate. Please review them.
    Backing up F:\DevSuiteHome_1\forms\webutil\jacob.jar as F:\DevSuiteHome_1\forms\webutil\jacob.jar.old...
    1 file(s) copied.
    Signing F:\DevSuiteHome_1\forms\webutil\jacob.jar using key=webutil2...
    ...successfully done.
    Because in this release the JACOB code is in an external Jar file and not incorporated into frmwebutil.jar, it needs to be downloaded. To do this, change the WebUtilArchive setting to read: WebUtilArchive=frmwebutil.jar,jacob.jar
    Thanks Oracle for not pointing out exactly which file you are talking about here (formsweb.cfg dosen't exactly take that long to type, does it?), yes you can let any newbies try and figure that out for themselves :)
    6.
    EnvFile - If you use a named environment file or the default.env ensure that the FORMS_PATH that you have set includes the ORACLE_HOME\forms directory and that you have set the WEBUTIL_CONFIG variable to define the physical location of your webutil.cfg file, ORACLE_HOME\forms\server\webutil.cfg.
    ...checked this!
    I am at a loss and am getting really fed up with this having spent a whole day trying to get this working and have got nowhere. Also to read rubbish like.....
    "If you’ve selected the Complete installation option for installing Oracle Developer Suite 10g (10.1.2), WebUtil is installed and configured for you."
    in the oracle docs makes my blood boil
    Gus
    Oracle Forms 10.1.2
    Running on a standalone PC

    When i run my form this is what i get back....
    Oracle.forms.webutil.file filefunctions bean not found.
    Webutil_file.file_selection_dialog_int will not work
    With my initial email i have tried to give as much detail as possible as to what i have tried, sorry i know its really long.
    Thanks
    Gus

  • Store and Display doc/pdf files in the database using Forms

    Hi all,
    How can i store and display doc/pdf files in the database using Forms 10g?.
    Arif

    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) 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.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) 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).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      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.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.sarah

  • Problem in compiling webutil.pll

    Hello!!!
    I have downloaded and installed webutil 1.0.6. form OTN in a Windows XP in path ORACLE_HOME\forms\webutil.
    Following the instructions of configuring the webutil I have to compile the webutil.pll , otherwise i get the ORA-06508 message error!!!
    The problem is that when i use the frmcmp module=ORACLE_HOME\forms\webutil\webutil.pll userid=<....> module_type=library compile_all=yes from the command prompt I get the error message FRM-30312 Failed to compile the library - which means that The VBX control properties have changed and the proposal is to Redefine the VBX properties.
    I don't really change any of VBX properties , but however how can I Redefine the VBX properties ?

    Hi ,
    Whenever I attach the webutil.pll as it is in the downloaded Webutil.zip file I get the error message ORA-06508. Reading the help - included in the downloaded Webutil.zip file - the proposed step in this situation is to use the frmcmp module='ORACLE_HOME\forms\webutil\webutil.pll' userid=<....> module_type=library compile_all=yes. When I do this the error message FRM-30312 appears.
    When I save the webutil.pll - I cannot compile the pll inside the form builder - the error messages (PDE-IIN005 Insert is unknown command and also the message at the background FRM-91507 Internal Error : The creation of library is impossible) appear , I get also the same error message at run time ORA-06508.
    I have created the webutil_db package successfully and when I open the webutil_canvas all java beans appear without any error!!!!!
    I would never imagine that it is so difficult , just to configure it!!!!!
    Simon

  • Webutil and intermedia

    Has anyone configured webutil to upload/download ordsys.ordimage datatypes instead of just straight blobs? Just wondering before I tackle it myself.
    Jeremy.

    To configure the webutil_db package to handle intermedia, I just changed the BLOB variables to ORDSYS.ORDIMAGE datatypes and then added <variable>.source.localdata to each instance they get called: DBMS_LOB.GETLENGTH(<variable>.source.localdata) and so on. To set height, width and some other properties of the image being loaded, I made calls to the getproperties() and setproperties() methods of the ORDSYS.ORDIMAGE datatype. If you've used intermedia before, then this'll be pretty straightforward.

  • Webutil_file_transfer and webutil_db_local

    Hello
    I'm trying to use WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB to upload a file into a blob column in the database.
    While debugging, in the function WEBUTIL_FILE_TRANSFER.UploadInt the following line of code exists:
    if not WebUtil_DB_Local.openblob(spec1, spec2, spec3,'W', m_maxTransferSize) then ...
    When I step into this function, this is what I see:
    PACKAGE BODY WEBUTIL_DB_LOCAL IS
    FUNCTION OpenBlob(blobTable in VARCHAR2,
    blobColumn in VARCHAR2,
    blobWhere in VARCHAR2,
    openMode in VARCHAR2,
    chunkSize in PLS_INTEGER default null) return BOOLEAN is
    BEGIN
    raise form_trigger_FAILURE; -- BY AN 30/6/2009, IT WAS WITHOUT THE "_local"
    return WebUtil_DB_local.OpenBlob(blobTable,
    blobColumn,
    blobWhere,
    openMode,
    chunkSize);
    END OpenBlob;
    Do I have something wrong with my installation or something?
    Thanks in advance for any help.

    That is exactly what Andreas is saying. Here is the code for the OpenBlob function in my WebUtil.pll.
      FUNCTION  OpenBlob(blobTable  in VARCHAR2,
                         blobColumn in VARCHAR2,
                         blobWhere  in VARCHAR2,
                         openMode   in VARCHAR2,
                         chunkSize  in PLS_INTEGER default null) return BOOLEAN is
      BEGIN
        return WebUtil_DB.OpenBlob(blobTable,
                                 blobColumn,
                                 blobWhere,
                                 openMode,
                                 chunkSize);
      END OpenBlob;                     This line: raise form_trigger_FAILURE; -- BY AN 30/6/2009, IT WAS WITHOUT THE "_local" should not be there.
    Craig...

  • Configuring Database for Webutil

    Hi All,
    I am having problem in creating the webutil_file_transfer package through the script provided in webuitl 1.0.6.
    - I am using DSuite10g (9.0.4) and Database 10g (10.1.0)
    - I am not creating a new user for webutil as recomanded
    - Have provided the excute access on 3 database packages required byt webutil_db, to the user running the script.
    - While I run the script, It start something and then sql crashs and shutdown by itself.
    Could any one please help me here what I am doing wrong?
    Best Regards

    Hi,
    please see Note.258643.1 Ext/Pub Configuring Webutil and Note.270940.1 Ext/Pub Oracle Forms WebUtil Technical FAQ on Metalink
    Monica

  • Problem webutil on server

    Hi all.
    I have a problem with webutil on the server-side.
    On my client-machine (operating system windows xp service pack2) everything it is ok. But when I run webutil on the server (operating system Linux), I have this message error:
    "The webutil object group is not available in this form. Webutil cannot work.
    Webutil error: oracle.forms.webutil.olefunctions bean not found. CLIENT_OLE2.create_obj will not work."
    The thing that is strange is that local on my machine everything is ok. I have tried to cancel the library and the object group from the form and then to re-attach them, but the result is the same: local on my machine it's ok and on the server I have got the message above.
    Is there anyone that can help me???
    Thanks, Fabrizio

    Dear Fabrizo ;
    I am so sorry i did not work on Linux plafrom befor,
    but i think it has the same configuraion as windows.so if you check webutil configuration again and again i think it could work.
    and this is webutil configuration
    ---------- B y E n g R e d a E l M i t w a l l y ----------
    1- ....................... The Principles of the WebUtil Design .
    2- ....................... HOW TO CONFIGURE AND DEPLOY WEBUTIL .
    3- ....................... HOWT O ATTACH IT IN UR FORM .
    1 - The Principles of the WebUtil Design :-
    The aim of WebUtil is to provide a utility that any Forms developer can use to carry
    out complex tasks on the client browser computer by simply coding in PL/SQL.
    Although WebUtil itself uses Java extensively, there is no need for the developer to
    have any understanding of Java. Everything the developer needs to do is exposed
    through a standard PL/SQL library webutil.pll.
    All of the components that are needed to support WebUtil are likewise exposed
    through a simple object group.
    For an Oracle Forms application to take advantage of WebUtil, you only need to attach
    the WebUtil library and subclass the Object Group. No setup or configuration in code
    is required as WebUtil is self-configuring and where necessary, self-installing.
    Some features of WebUtil, such as client side OLE integration, require code to be
    installed onto each client computer. One of the key features of WebUtil is its ability to
    "self-install" in these cases. There is no need for an administrator to configure each and
    every computer because WebUtil detects which client-side pieces are missing and
    automatically installs them.
    Another aim of WebUtil is to simplify porting of client server integration code to work
    on the client browser computer. To achieve this, WebUtil contains PL/SQL APIs mimic
    the behavior of the equivalent native Forms functions.
    An example of this is the Forms TEXT_IO package. This package provides the
    developer with facilities to read and write text files on the application server. WebUtil
    provides an alternative implementation, CLIENT_TEXT_IO, which is identical to
    TEXT_IO except that calls are implemented on the client browser computer rather than
    on the middle tier. Migrating existing code to operate on the client can be achieved
    using a simple search and replace operation in the PL/SQL code to changes references
    to point at the alternative "CLIENT" implementations provided by WebUtil.
    The final goal of WebUtil design is to add value to Oracle Forms as a product. WebUtil
    adds capabilities to Forms which have simply not existed before in either web or client
    server deployments.
    2 - H O W T O C O N F I G U R E A N D D E P L O Y W E B U T I L
    2-1 : From folder "webutil_106" Copy folder "webutil" in this path "DeveloperHome\forms"
    -- note this step in release 3 is done .
    2-2 : From folder "JACOB_18" copy file "jacob.dll" in path "DeveloperHome\forms"
    -- note this step in release 3 is done .
    2-3 : From folder "JACOB_18" copy file "jabcob.jar" in path "DeveloperHome\forms\java"
    -- note this step in release 3 is done .
    2-4 : From folder "webutil_106" Copy file "frmwebutil.jar" in path "DeveloperHome\forms\java"
    -- note this step in release 3 is done .
    2-5 : Edit file"D:\DevSuiteHome_1\j2ee\DevSuite\application-deployments\forms\formsweb\orion-web.xml"
    by notepad and add this code
    <virtual-directory virtual-path="/webutil" real-path="D:\oracle\product\10.1.0\Developerhome\forms\webutil" />
    -- note this step in release 3 is done .
    2-6 : Edit file "Developerhome\forms\server\server\formsweb.cfg " and add this code
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
    archive=frmall.jar
    2-7 : at the end of this file add also
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar,frmall.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar,frmwebutil.jar
    lookAndFeel=oracle
    --not in releas 3 u will find this block of code replace it by this code
    2-8 : edit file "developerhome\forms\server\default.env" add this code
    FORMS_PATH=D:\DevSuiteHome_1\forms;D:\DevSuiteHome_1\forms\webutil
    WEBUTIL_CONFIG=D:\DevSuiteHome_1\forms\server\webutil.cfg
    2-9 : at line class_path add this code in addition of it's code and remember to modify ur home path
    ;D:\oracle\product\10.1.0\Developer\forms90\java\jacob.jar;D:\oracle\product\10.1.0\Developer\jdk\jre\lib\rt.jar;D:\oracle\product\10.1.0\Developer\forms90\java\frmall.jar;D:\oracle\product\10.1.0\Developer\forms90\java\frmwebutil.jar
    2-10 : Replace all code in line "path" by again remember to modify the developerhome
    PATH=d:\oracle\product\10.1.0\Developer\jdk\bin;d:\oracle\product\10.1.0\Developer\jdk\jre\bin\classic;d:\oracle\product\10.1.0\Developer\jdk\jre\bin; d:\oracle\product\10.1.0\Developer\jdk\jre\bin\client;d:\oracle\product\10.1.0\Developer\jlib;d:\oracle\product\10.1.0\Developer\bin;d:\oracle\product\10.1.0\Developer\jre\1.4.2\bin\client;d:\oracle\product\10.1.0\Developer\jre\1.4.2\bin;
    d:\oracle\product\10.1.0\Developer\bin;d:\oracle\product\10.1.0\Developer\jdk\jre\bin\client
    2-11 : Edit file "devloperhome\forms\server\webutil.cfg" and add these two lines at the end of it
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    -- very important note the two lines
    transfer.appsrv.read.1=C:\ -- Only files in this directory can be downloaded from AS
    transfer.appsrv.write.1=C:\ -- Only files in this directory can be uploaded to AS
    2-12 : Open msdos(or shell on linux) and run these batches :be carefull to run tis batch put it first in the JDK\bin home:
    sign_webutil.bat DeveloperHome\forms\java\frmwebutil.jar
    sign_webutil.bat DeveloperHome\forms\java\jacob.jar
    2-13 : And now create user may be "webutilowner" or as u like to name it
    create user webutilowner identified by webutilowner;
    conn webutilowner/webutilowner
    from folder "webutil_106" u will find this script "create_webutil_db.sql" run it on this user
    grant execute on WEBUTIL_DB to public;
    ----------- T H E E N D O F C O N F I G U R I N G ----------
    --------- H O W T O A T T A C H I T I N U R F O R M -------------
    3-1 : From "webutil_106" copy this liberary "webutil.pll" and "webutil.olb" in ur ofismain
    3-2 : Open ur module and at pl/sql liberraries open file then open "webutil.pll" from ur ofismain
    3-3 : Compile this liberrary.
    4-3 : Then attatch this liberrary to ur module .
    4-5 : At object liberraries open the "webutil.olb" from ur ofis main
    4-6 : THEN right click and choose object liberary
    4-7 : You will have a window restore it down and drag "webutil" from it to ur object group at ur module.
    4-8 : You wil have a window asking for copy,subclass or cancel choose copy, but for more dynamic coding u have to choose subclass
    4-9 : You will have a block called webutil move it to be last block.
    4-10 : then see some examples to use it we have example form called module2.fmb
    ---------- B y E n g R e d a E l M i t w a l l y ----------
    Regards
    Reda

  • Webutil forms runtime error

    Hi All,
    When I try to run the WEBUTIL demo form from the application server and use the OLE to write to a word file, I get the below error in the java console and the form ceases to function after that. Any ideas?
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkLink(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.jacob.com.Dispatch.<clinit>(Dispatch.java:537)
         at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:398)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:189)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(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.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    hi
    read the following instructions properly i hope u r problem will be solved.
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) 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.
    2) Copy or move jacob.jar and jacob.dll
    [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
    cd [JacobStage]
    copy jacob.jar [OraHome]\forms\java\.
    copy jacob.dll [OraHome]\forms\webutil\.
    The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add [OraHome]\jdk\bin to the PATH:
    set PATH=[OraHome]\jdk\bin;%PATH%
    Sign the files, and check the output for success:
    [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
    [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
    you may skip this step. Otherwise,
    Create a schema to hold the WebUtil stored code, and privileges needed to
    connect and create a stored package. Schema name "WEBUTIL" is recommended
    for no reason other than consistency over the user base.
    Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
    out the EXIT statement, to be able to see whether the objects were created witout
    errors.
    Start SQL*Plus as SYSTEM, and issue:
    CREATE USER webutil IDENTIFIED BY [password]
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
    CONNECT webutil/[password]@[connectstring]
    @[OraHome]\forms\create_webutil_db.sql
    -- Inspect SQL*Plus output for errors, and then
    CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    Reconnect as SYSTEM, and issue:
    grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.
    6) Start the OC4J instance
    7) 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).
    It is important to generate the PLX, to avoid the FRM-40039 discussed in
    Note 303682.1
    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.
    8) Create a new FMB.
    Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
    There is no need to Subclass the WebutilConfig object.
    Attach the Webutil.pll Library, and remove the path.
    Add an ON-LOGON trigger with the code
    NULL;
    to avoid having to connect to an RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a WHEN-BUTTON-PRESSED trigger.
    Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
    the "Application Server URL" is empty.
    Then append "?config=webutil" at the end, so you end up with a URL of the form
    http://server:port/forms/frmservlet?config=webutil
    10) Run your form.If its Correct/Helpful mark it thanks.
    Sarah
    Edited by: S@R@h on Nov 24, 2009 10:10 AM

  • Exception occurred during event dispatching:java.lang.NoSuchMethodError

    Hello,
    We have upgraded to the latest Oracle Application Server version 10.1.2.3.0 and the webutil version is 1.0.6.
    But we face the following error while accessing the web link. Following message captured from Java Console.
    Please suggest if you have any solutions/idea about this error. Thanks !
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    Maximum size: 50 MB
    Compression level: 0----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Downloading http://si02938.in.irt.com:7778/forms/java/frmall_jinit.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/frmwebutil.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/jacob.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/FileInformation.jar to JAR cacheDownloading cacheproxyHost=nullproxyPort=0connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Exception occurred during event dispatching:java.lang.NoSuchMethodError     at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281)     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.processEventEnd(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)
    Edited by: user12233243 on Nov 16, 2009 10:28 PM
    Edited by: user12233243 on Nov 16, 2009 10:29 PM

    hi
    read the following configuration i hope it will help u.
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) 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.
    2) Copy or move jacob.jar and jacob.dll
    [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
    cd [JacobStage]
    copy jacob.jar [OraHome]\forms\java\.
    copy jacob.dll [OraHome]\forms\webutil\.
    The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add [OraHome]\jdk\bin to the PATH:
    set PATH=[OraHome]\jdk\bin;%PATH%
    Sign the files, and check the output for success:
    [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
    [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
    you may skip this step. Otherwise,
    Create a schema to hold the WebUtil stored code, and privileges needed to
    connect and create a stored package. Schema name "WEBUTIL" is recommended
    for no reason other than consistency over the user base.
    Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
    out the EXIT statement, to be able to see whether the objects were created witout
    errors.
    Start SQL*Plus as SYSTEM, and issue:
    CREATE USER webutil IDENTIFIED BY [password]
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
    CONNECT webutil/[password]@[connectstring]
    @[OraHome]\forms\create_webutil_db.sql
    -- Inspect SQL*Plus output for errors, and then
    CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    Reconnect as SYSTEM, and issue:
    grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.
    6) Start the OC4J instance
    7) 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).
    It is important to generate the PLX, to avoid the FRM-40039 discussed in
    Note 303682.1
    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.
    8) Create a new FMB.
    Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
    There is no need to Subclass the WebutilConfig object.
    Attach the Webutil.pll Library, and remove the path.
    Add an ON-LOGON trigger with the code
    NULL;
    to avoid having to connect to an RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a WHEN-BUTTON-PRESSED trigger.
    Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
    the "Application Server URL" is empty.
    Then append "?config=webutil" at the end, so you end up with a URL of the form
    http://server:port/forms/frmservlet?config=webutil
    10) Run your form.
    If its Correct/Helpful please mark it thanks.
    Sarah

  • Webutil demo not working ?

    Hello experts,
    recently i install and configure according to steps:
    1. Run create_webutil_db.sql
    a. CREATE USER webutil IDENTIFIED BY webutil
    b. Grant connect, resource to webutil
    c. Connect webutil/webutil
    d. @[ORACLE_HOME]/forms/create_webutil_db.sql
    e. Create public synonym webutil_db for webutil.webutil_db;
    f. Connect sys as sysdba
    g. Grant execute on webutil_db to public;
    2. Copy and download Jacob from
    http://sourceforge.net/projects/jacob-project/files/jacob-project/1.14.3/jacob-1.14.3.zip/download
    a. Unzip the jacob download and place jacob.jar in the
    ORACLE_HOME/forms/java directory
    b. backup sign_webuitl.bat script in [ORACLE_INSTANCE]/bin/sign_webutil.sh
    c. search for <Your KEYSTORE password> and replace it with welcome1 (or
    something like this)
    d. search for <Your private key password> and replace it with welcome1 (or
    something like this)
    e. Save the script and use it to sign jacob.jar as below
    f. [ORACLE_INSTANCE]/bin/sign_webutil.sh
    [ORACLE_HOME]/forms/java/jacob.jar
    3. Place jacob.dll in the ORACLE_HOME/forms/webutil/ directory
    4. Jacob.dll in r2 – file names must be verified against webutil.cfg file
    a. Place jacob-1.14.3-x86.dll in the ORACLE_HOME/forms/webutil/win32
    directory.
    b. Place jacob-1.14.3-x64.dll in the ORACLE_HOME/forms/webutil/win64
    directory
    5. Using weblogic EM console, Add ORACLE_HOME/forms/java/frmall.jar to the
    CLASSPATH in the default.env
    6. Update formsweb.cfg webutil section with the following if not already
    done:
    a. Add frmwebutil.jar and jacob.jar to the WebutilArchive parameter in the
    [webutil] configuration section. For some versions of 11g, this is already
    added.
    b. Specify webutil_demo as the form to be run in the [webutil]
    configuration section
    7. Download webutil demo from link below, extract and put the contents in
    a folder
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/196249.zip
    8. Copy ffisamp.dll to the <ORACLE_HOME>\forms\webutil directory.
    9. Open your webutil.cfg file and add the following line
    install.syslib.0.user.1=ffisamp.dll|40960|1.0|true
    10. If not already done do the following in webutil.cfg
    a. transfer.appsrv.workAreaRoot=c:\temp
    b. transfer.appsrv.accessControl=TRUE
    c. transfer.database.enabled=TRUE
    d. transfer.appsrv.enabled=TRUE
    11. Add the folder in FORMS_PATH in enterprise manager
    12. Replace db and run the following command:
    a. frmcmp.sh module=webutil_demo.fmb module_type=form
    userid=webutil/webutil@<db> compile_all=yes
    b. FORMS_PATH variable and make sure webutil.pll folder is available in the
    path or run the above command from command shell in the folder where webutil.pll
    is available
    13. Restart opmnctl and wls_forms weblogic instance
    14. Run the webutil
    running the url:
    http://server:port/forms/frmservlet?form=webutil_demo&config=webutil
    logon window appear, after login following mess comes:
    frm-40735: when-custom-item-event trigger raised
    unhendled exception ora: 06502
    thanks
    yash
    Edited by: yash_08031983 on Mar 8, 2013 12:12 AM

    There are a few things you did not mention or were unclear about.
    1. Exactly which Forms version are you using? In order to do what you described, you should be using 11.1.2.x. Forms 11.1.1 or older will not work using the instructions you referred to.
    2. I assume you just copied and pasted the instructions in your post because you included steps like this: "+ 3. Place jacob.dll in the ORACLE_HOME/forms/webutil/ directory+ ". If you downloaded the correct Jacob, you won't have a jacob.dll file.
    3. You said, " +b. FORMS_PATH variable and make sure webutil.pll folder is available + ". At runtime, FORMS_PATH will need access to webutil.plx and webutil_demo.fmx. The pll and fmb are for design time only. In the past, we permitted the use of ungenerated libraries (pll) at runtime, but this is no longer the case. You should always use the "X" file.
    4. You did not mention any of the client information. OS, browser and version, JRE and version, etc. If the client OS is 64bit and you are running Forms 11.1.2, you have the option of using either the 32bit or 64bit Internet Explorer versions. However, you must have a matching JRE. In other words, if you are using 32bit IE, you must also use the 32bit JRE. For 64bit IE you must use the 64bit JRE.
    5. If you are attempting to use Java 7 on the client, you must be running Forms 11.1.2.1.
    6. Someone asked if you compiled webutil.plx. Did you do this before or after you generated the form (webutil_demo.fmx)? If you generated the form before the library, I would recommend regenerating the form. Again, be sure to include the compile_all=yes option.

  • Errors with 10g Migration: WUC-24 and FileFunctions bean

    I'm experiencing a couple issues with my Migration to 10g (9.0.4) from 6i Forms. Through much searching to find resolutions, I have been unsuccessful.
    I have two errors that I am unable to get rid of.
    1) oracle.forms.webutil.file.FileFunctions bean not found. CLIENT_TEXT_IO.fopen will not work
    - I wondered if there was a DB permissions issue with the WEBUTIL_DB package related to this perhaps? I included the package to my DB but perhaps something is incorrect w/ that causing the error.
    2) WUC-24: Error reading URL
    http://myserver.com:7777/forms90/webutil/jacob.dll
    /JNIsharedstubs.dll
    /d2kwut60.dll
    - problem loading from forms90/webutil perhaps? I tried to download a test.html page from this location but was unsuccessful.
    Another thought I had was that maybe I have an issue w/ my formsweb.cfg configuration. The webutil configuration is as follows:
    [webutil]
    form=myform.fmx
    webUtilArchive=f90webutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=f90all_jinit.jar
    archive=f90all.jar
    lookAndFeel=oracle
    Also, what about this parm?
    webUtilConfig=/forms90/server/webutil.cfg
    Do I need it included as well? Got the same result w/ it.
    Thanks, Phil

    You said:
    ...problem when i open form on client side then i get following errors, but when i work on local machine where my forms server is installed ... However, the error shows that you are using port 8889. This suggests you are using Developer Suite and not application server (unless you've changed the ports). Developer Suite is not intended for remote access, nor is it intended for multiple user access. Although it can be made to work in this manner, it is not supported. Deployment should be configured using Application Server
    So, if the above is not true and you are in fact using Application Server, the consider the following:
    1. Can you access the libraries if you attempt to locate them manually using your browser. Open a browser from a client machine and enter a url such as:
    http://domainname:8889/forms/webutil/ffisamp.dll
    You should be presented with a "Save" / "Open" file dialog box. If not, then the issue is related to the fact that either the client cannot communicate with the server (e.g. firewall, incorrect address, etc) or the server is not responding or the file requested is not found on the server.
    2. If the client machine is Vista, Win7, or Win2008, by default, Windows will not permit the files to be written into the "Program Files" directory. In this case, refer to MyOracleSupport Note 783937.1 ; This note will explain how to change the destination directory of where the libraries will be stored on the client.

  • How to create a button to open directory

    Dear all,
    is it possible to create a button can open directory
    like My Documents
    i test this in CMD command prompte it's work but in
    in forms they are not work
    "explorer.exe" & @MyDocumentsDir
    or
    cmd /c "explorer.exe" & @MyDocumentsDir
    in forms :
    i create a button with trigger When-button-pressed
    in trigger :
    host('"explorer.exe" & @MyDocumentsDir');
    host ('cmd /c "explorer.exe" & @MyDocumentsDir'); ----> i think this should work
    but it's not work
    can you help please
    thanks
    regard

    hi Ammad
    sorry Ammad, but in the first step i get this errors
    Compilation errors on WEBUTIL_DB_LOCAL:
    PL/SQL ERROR 201 at line 9, column 12
    identifier 'WEBUTIL_DB.OPENBLOB' must be declared
    PL/SQL ERROR 0 at line 9, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 18, column 12
    identifier 'WEBUTIL_DB.CLOSEBLOB' must be declared
    PL/SQL ERROR 0 at line 18, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 24, column 5
    identifier 'WEBUTIL_DB.WRITEDATA' must be declared
    PL/SQL ERROR 0 at line 24, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 29, column 12
    identifier 'WEBUTIL_DB.READDATA' must be declared
    PL/SQL ERROR 0 at line 29, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 35, column 12
    identifier 'WEBUTIL_DB.GETLASTERROR' must be declared
    PL/SQL ERROR 0 at line 35, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 40, column 12
    identifier 'WEBUTIL_DB.GETSOURCELENGTH' must be declared
    PL/SQL ERROR 0 at line 40, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 45, column 12
    identifier 'WEBUTIL_DB.GETSOURCECHUNKS' must be declared
    PL/SQL ERROR 0 at line 45, column 5
    Statement ignored
    Failed to generate library.more help plz
    thanks

Maybe you are looking for

  • Screen will start to pixelate and error message appears to restart

    I have a iMac G5 17". It will boot up, apple start up screen, Mac OS X screen, and then finally Desktop. but about 20 seconds the screen will start to pixelate and kinda "wig out" then it will tint a dark grey and a error message in multiple language

  • HEY MSI. READ THIS (regarding ICH5R and compatibility with WD Raptors)

    The following issue has not been resolved.  Seems like several people have given up and are just using the onboard Promise controller.   Thread on issues regarding WD Raptors configured in RAID via ICH5R Does it not suprise you that nobody is using R

  • Flash File Decompiling

    Good Day, I have in the past developed two commercial applications with Director 8.5. We would compile to DCR or DCX, and the Lingo code could not be reverse engineered - which was a drop-dead critical feature. I know that versions of flash files pri

  • Microsoft SQL 2008

    I'm trying to connect to Microsoft SQL 2008. I'm using "sqljdbc_1.2 driver". I'm having trouble getting the right "jdbc driver" and "jdbc url". For jdbc url, I tried: "jdbc:sqlserver://localhost" but there was errors. run-single: java.lang.ClassNotFo

  • Online Restoration using SQL Server

    Hi Friends, Can anyone help me regarding Online Restoration using MS SQL Server, We are Using ECC 6.0, Windows 2003 server , SQL Server 2005 Can you please tell me the complete procedure am new to SQL Server U can Mail me on [email protected] PLZZZZZ