ClassNotFoundException:oracle.sqlj.runtime.Oracle

Sub: Error
message "ClassNotFoundException:oracle.sqlj.runtime.Oracle"
Hi,
I am trying to run an applet whose source is compiled by sqlj
with no errors. Applications hit the database and run fine from
the Sun Unix command prompt, but when I write as an applet and
try to run through the web I get the above error message. I am
running webserver 3.0 and Oracle 8 version on Sun E10K with ver
5.6, JDK 1.2.
Thanks in advance for your reply.
Ravi Nitta
null

Ravi Nitta (guest) wrote:
: Sub: Error
: message "ClassNotFoundException:oracle.sqlj.runtime.Oracle"
: Hi,
: I am trying to run an applet whose source is compiled by sqlj
: with no errors. Applications hit the database and run fine from
: the Sun Unix command prompt, but when I write as an applet and
: try to run through the web I get the above error message. I am
: running webserver 3.0 and Oracle 8 version on Sun E10K with ver
: 5.6, JDK 1.2.
: Thanks in advance for your reply.
: Ravi Nitta
Ravi --
I think there was a problem with the 8.0.5 distribution, in
that the oracle.sqlj.runtime classes did not make it into
the runtime.zip file.
Just add the oracle.sqlj.runtime.* packages to the zip
(compression must be set to none).
Additionally, you can remove the packages sqlj.runtime.util
and oracle.sqlj.runtime.util - these only get used at
translate time, not at runtime.
(Alternatively, if you can say: sqlj -profile=false ...
and your program still runs, you can do that, and your
applet will not use the Oracle-specific SQLJ runtime.)
Of course, the runtime.zip and your JDBC driver's zip must be
distributed with the applet.
If you get a SecurityException, then the SQLJ runtime you are
using utilizes reflection, and you have the options outlined
in my other reply to your query.
Hope this helps.
-- Ekkehard
null

Similar Messages

  • SQLJ runtime exception in 9.2.0.4

    Hi,
    I work on a software using oracle, java and SQLJ technology. Since we pass from oracle 8.1.6 to Oracle 9.2.0.4 we have some sqlj runtime exception. These exceptions are randoms, amazing as the same request with SQL*plus is working, and occurrs randomly in time so it works all the same ...
    examples (in bold the oracle exception text) :
    1/ Unable to define propagation alert iterator (this exception is an SQL one and catched within the program) : Invalid column name
    the sqlj command corresponding => #sql ppgAlertIter = { SELECT USER_LOGIN FROM ALERT WHERE SAFETY_EVENT_ID = :incId AND OCCURRENCE_ID = :occId AND USER_LOGIN IN ( SELECT USER_LOGIN FROM USERS WHERE ROLE_NAME <> :roleName) };
    all the column names are rights !!!!
    2/java.lang.NullPointerException at sqlj.runtime.ExecutionContext$OracleContext.oracleExecuteQuery(ExecutionContext.java:1585) at asmtdb.DBUser.getComponentUpdateTime(DBUser.java:882)
    here is a runtime exception (not catched) (this exception correpsonds to the SQLJ commqnd in example 3/)
    3/exception when getting component's update time : Unable to retrieve component's update time : expected 1 columns in select list but found 11
    the SQLJ command corresponding => #sql { SELECT TO_CHAR(UPDATE_TIME, 'DD/MM/YYYY HH24:MI:SS') INTO :updateTime FROM COMPONENT WHERE COMPONENT_NAME = :componentName };
    with SQL*plus no problems to have a result, more is that we have only 3 distinct columns, so why 11 ????
    Is anyone had already these kinds of troubleshootings ???
    Here is my environment :
    - HP-UX B.11.00 U 9000/785 (64 bits)
    - Oracle SQLJ Release 9.2.0.3.0 Production
    Copyright © 1997, 2003, Oracle Corporation. All Rights Reserved.
    Build version: 2.3.0.0 - Built on Feb 15, 2002
    IDE interface version: 9.2.0.3.0/2.3.0.0
    JDBC version: Oracle JDBC driver version 9.2 (9.2.0.3.0)
    SQLJ runtime: Oracle 9.2.0 for JDBC 8.1.7 or later/JDK 1.2.x - Built on Jul 21, 2003
    Java version: 1.4 (1.4.2.00)
    Chris

    Chris,
    The error messages are misleading. I'm only guessing, but from what you have posted, it looks like the problem is in the values you are supplying for your bind variables. It could be that the SQL parser thinks that a bind variable is a column name -- and, of-course, there is no such column name, hence the "Invalid column name" error. Do you know about P6Spy ? It captures the SQL with the bind variable values, so you see the exact SQL that is getting sent to Oracle.
    Good Luck,
    Avi.

  • Sqlj.runtime package missing

    Two questions:
    1) JDeveloper 3.1 is not able to locate sqlj.runtime and it's there, it was working properly a 15 minutes ago. Any suggestion?
    2) what does the following warning message mean?
    Warning: (33) Type driverTest.Driver of host item #1 is not permitted in JDBC. This will not be portable..
    Thanks in advance!!
    The whole error message I got from JDev:
    D:\Program Files\Oracle\JDeveloper 3.1\myprojects\driverTest\mydriver.sqlj
    Warning: (33) Type driverTest.Driver of host item #1 is not permitted in JDBC. This will not be portable..
    Error: (4) identifier sqlj.runtime.ref.DefaultContext not found.
    Error: (5) identifier sqlj.runtime.ConnectionContext not found.
    Error: (20) class ConnectionContext not found in class driverTest.mydriver.
    Error: (11) identifier sqlj.runtime.ref.ConnectionContextImpl not found.
    Error: (11) identifier sqlj.runtime.ConnectionContext not found.
    Error: (0) identifier sqlj.runtime.profile.Loader not found.
    Error: (17) variable DefaultContext not found in class driverTest.mydriver.
    Error: (17) constructor mydriver$_Ctx(<any>) not found in class driverTest.mydriver._Ctx.
    Error: (22) constructor mydriver$_Ctx(<any>) not found in class driverTest.mydriver._Ctx.
    Error: (26) constructor mydriver$_Ctx(java.sql.Connection) not found in class driverTest.mydriver._Ctx.
    Error: (33) identifier sqlj.runtime.ConnectionContext not found.
    Error: (33) identifier sqlj.runtime.error.RuntimeRefErrors not found.
    Error: (33) identifier sqlj.runtime.ExecutionContext not found.
    Error: (33) identifier sqlj.runtime.error.RuntimeRefErrors not found.
    Error: (33) identifier sqlj.runtime.profile.RTStatement not found.
    Error: (0) identifier sqlj.runtime.RuntimeContext not found.
    Error: (0) method getProfileKey(<any>, java.lang.String) not found in class driverTest.mydriver._Ctx.
    D:\Program Files\Oracle\JDeveloper 3.1\myprojects\driverTest\Driver.sqlj
    Error: (11) identifier sqlj.runtime.ref.DefaultContext not found.
    Error: (12) identifier sqlj.runtime.ConnectionContext not found.
    Error: (52) class ConnectionContext not found in class driverTest.Driver.
    Error: (20) identifier sqlj.runtime.ref.ConnectionContextImpl not found.
    Error: (20) identifier sqlj.runtime.ConnectionContext not found.
    Error: (44) variable DefaultContext not found in class driverTest.Driver.
    Error: (44) constructor Driver$_Ctx(<any>) not found in class driverTest.Driver._Ctx.
    Error: (55) variable DefaultContext not found in class driverTest.Driver.
    Error: (55) constructor Driver$_Ctx(<any>) not found in class driverTest.Driver._Ctx.
    Error: (61) constructor Driver$_Ctx(java.sql.Connection) not found in class driverTest.Driver._Ctx.
    Error: (67) constructor Driver$_Ctx(oracle.jdbc.driver.OracleConnection) not found in class driverTest.Driver._Ctx.
    Error: (77) constructor Driver$_Ctx(oracle.jdbc.driver.OracleConnection) not found in class driverTest.Driver._Ctx.
    D:\Program Files\Oracle\JDeveloper 3.1\myhtml\driverTest_html\view.jsp
    Error: (27) incompatible types; found: void, required: driverTest.Driver.
    null

    1) JDeveloper 3.1 is not able to locate sqlj.runtime Ensure that the SQLJ runtime.zip and/or translator.zip file is in the project's CLASSPATH.
    2) Warning: (33) Type driverTest.Driver of host item #1 is not permitted in JDBC. This warning is issued if you use Java types that are supported by Oracle's JDBC driver (and thus in the Oracle SQLJ runtime), but that are not JDBC types. You'd only care about this warning if you want to write fully portable code. You can turn of portability warnings in JDeveloper under project properties on the SQLJ tab. On the SQLJ command line you could say: -warn=noportable.

  • Sqlj runtime error with oracle 10G in Websphere6 or 5.1

    We are trying to migrate from oracle 9i to 10G and we are compiled all our sqlj code with codegen = -oracle option.(previously we used to use codegen=-jdbc which for some reason doesnot work).it compiles fine with out any erros.. But when we try to run then get this exception.
    java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso. java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso.
    at sqlj.runtime.ref.ConnectionContextImpl.getOracleConnection(ConnectionContextImpl.java:167)
    at sqlj.runtime.ExecutionContext$OracleContext.prepareOracleStatement(ExecutionContext.java:1397)
    We are using ojdbc14.jar that came with oracle 10G.
    Hope any one can give any pointers.

    I'm having same issue - but I'm having it when I try to invoke a method that contains a database Object type from a Tibco Business Works Process called a Java Method.
    How exactly do you do the codegen=iso configuration?
    I've tried:
    1. Project Properties / Compiler SQLJ and then select from Code Generation drop down iso.
    2. From Connections / Database / Navigate to package / right-click / Generate Java / Browse to my custom jpub.properties file where I have tried multiple entries such as (by themselves and in some combination.:
    - jpub.codegen=jdbc
    - jpub.codegen=iso
    - jpub.compatible=9i
    - jpub.compatible=8i
    - compatible=both8i
    - jpub.usertypes=oracle
    - jpub.compatible=customdatum
    - jpub.compatible=sqlj
    I've also played with changing from the default some of the Mapping Options in Connections / Database / Navigate to package / right-click / Generate Java / Mapping Options.
    This doc here, says that code should change (section 6 JPublisher Input Files - based on configuration of Input files)
    Oracle® Database
    JPublisher User's Guide
    10g Release 2 (10.2)
    B14188-01
    No matter what I do, the code that gets generate is the same.
    Also, the documentation talks about running things from the command line but how exactly do you do that? Do I need to be in specific directory? I tried the c:\ C:\jdev\system and c\jdev\ and c:jdev\bin and always get error message: 'jpub' is not recognized as an internal or external command, operable program or batch file.
    I've built a java client in JDeveloper to successfully call the same method and I don't see the error.
    Edited by: disaak on Mar 9, 2010 11:51 AM

  • Oracle SQLJ not working in WebLogic

    Mybe its a little off topic here, but the JDBC and SQLJ runtime comes with JDeveloper.
    I try to deploy my application to WebLogic 7.0.0.1 and cannot get SQLJ code running.
    I loaded all jars (JDBC: classes12.jar, nls_charset12.jar; SQLJ: runtime12.jar) to the server. The driver of the connection reports version "Oracle JDBC driver 9.0.1.4".
    Here is the exception stack:
    java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso or with -codegen=jdbc.      at sqlj.runtime.ref.ConnectionContextImpl.getOracleConnection(ConnectionContextImpl.java:146)      at sqlj.runtime.ExecutionContext$OracleContext.prepareOracleCall(ExecutionContext.java:1517)
    Next I`m going to try translating with codegen=jdbc as workaround. But then I cannot use any Oracle specific enhancements.
    Thanks for any help,
    Robert

    I'm not sure off-hand what the solution is. You may want to try the SQLJ/JDBC forum if you haven't already.
    -- Brian

  • Oracle/wh/runtime/server/Util does not exist - while creating runtime repos

    While running OWB Runtime Assistant, at about 60% completed, getting an error.
    Here is the last few lines from the log file:
    oracle.wh.util.DebugUtility: [processSPAWN]: wholeLine =..\..\..\jdk\jre\bin\javaw -classpath ../../lib/int/rtpplatform.jar;../../lib/int/rtpcommon.jar;../../../jdbc/lib/ojdbc14.jar;../../../lib/xmlparserv2.jar;../../../sqlj/lib/runtime12.jar;../../../jdk/jre/lib/rt.jar oracle.wh.runtime.platform.service.install.ServiceInstaller %host %port %serviceName %user %password
    Mon Feb 06 11:58:00 CST 2006
    oracle.wh.util.DebugUtility: after executing the output
    Mon Feb 06 11:58:00 CST 2006
    oracle.wh.util.DebugUtility: Runtime Platform Property Load Beginning...
    Mon Feb 06 11:58:00 CST 2006
    oracle.wh.util.DebugUtility: java.sql.SQLException: ORA-29540: class oracle/wh/runtime/server/Util does not exist
    Mon Feb 06 11:58:00 CST 2006
    oracle.wh.util.DebugUtility: [processSPAWN]: A spawned program error. Exception = java.lang.Exception: Error : java.sql.SQLException: ORA-29540: class oracle/wh/runtime/server/Util does not exist
    Mon Feb 06 11:58:00 CST 2006
    oracle.wh.util.DebugUtility: [processSPAWN]: Get the error, stop processing...
    Mon Feb 06 11:59:47 CST 2006
    oracle.wh.util.DebugUtility: Assistant operation is unsuccessful ...
    =========================================
    The database version is 9.2.0.4 on XP
    OWB version is 10.1.0.2 on the same XP host.
    I'd prefer NOT to change (upgrade or degrade) the versions of db and owb, as the same version combination works just fine in production, and I'm trying to create the same environment on my local PC.
    Thanks for your help.
    vr

    I did that and my output is all good:
    All PL/SQL packages and functions are valid
    Platform properties have been loaded correctly
    Platform location has been seeded correctly
    NLS messages have been loaded correctly
    The platform service is available
    PL/SQL procedure successfully completed.

  • Class oracle/jpub/runtime/dbws/DbwsProxy does not exists on 10g Rel2

    I trying using UTL_DBWS with samle from url http://www.freelists.org/archives/oracle-l/03-2005/msg00670.html in 10g Rel2 but I take error: class oracle/jpub/runtime/dbws/DbwsProxy does not exists .What I do incorrect?
    However, using web service in Oracle rdms very hard...May be exists simply example for dummies?

    Not really for dummies, but it may be a good way to get started:
    Oracle Database Programming Using Java and Web Services, by Kuassi Mensah.
    You have also the following resouces on OTN: Database Web Services.
    -- Eric

  • Status bar of Oracle from runtime applet is not displaying all of a sudden

    Hello,
    The status bar of Oracle form runtime applet is not displaying all of a sudden..It was displaying before but now its not......It helps me to see errors......how can I restore it?

    My console was set to a specific window name..it was not null at all....but the status bar wont show...
    But I solved it ...by changing the applet size...
    Applet container size is controlled by the HEIGHT and WIDTH parameters in the formsweb.cfg. To maximize the applet area to the size of the browser, do the following:
    HEIGHT=100%
    WIDTH=100%
    Thank you all for your help and support...
    Edited by: user10746194 on Feb 11, 2010 6:33 AM

  • ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist

    Hi ,
    We are getting below error while executing webservice from PL/SQL block. Please help what would be wrong in below code. Thanks in advance.
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 318
    ORA-06512: at "FUSION.ADD_NUMBERS", line 21
    29540. 00000 - "class %s does not exist"
    *Cause:    Java method execution failed to find a class with the indicated name.
    *Action:   Correct the name or add the missing Java class.
    PL/SQL Code
    CREATE OR REPLACE FUNCTION add_numbers (username IN VARCHAR, password IN VARCHAR)
    RETURN NUMBER
    AS
    l_service SYS.UTL_DBWS.service;
    l_call SYS.UTL_DBWS.call;
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname SYS.UTL_DBWS.qname;
    l_port_qname SYS.UTL_DBWS.qname;
    l_operation_qname SYS.UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return NUMBER;
    returnVal BOOLEAN;
    boolean_type_qname sys.utl_dbws.QNAME;
    string_type_qname sys.utl_dbws.QNAME;
    BEGIN
    sys.UTL_DBWS.SET_PROPERTY(l_call,'USERNAME','fusion');
    sys.UTL_DBWS.SET_PROPERTY(l_call,'PASSWORD','fusion');
    l_wsdl_url := 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService?wsdl';
    l_namespace := 'http://xmlns.oracle.com/oxp/service/PublicReportService/';
    l_service_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSServiceService');
    l_port_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSService');
    l_operation_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'validateLogin');
    l_service := SYS.UTL_DBWS.create_service (URIFACTORY.getURI(l_wsdl_url),l_service_qname);
    l_call := SYS.UTL_DBWS.create_call (l_service,l_port_qname,l_operation_qname);
    sys.utl_dbws.set_target_endpoint_address(l_call, 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService');
    boolean_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'boolean');
    string_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'string');
    sys.utl_dbws.add_parameter(l_call, 'BI_Admin', string_type_qname, 'ParameterMode.IN');
    sys.utl_dbws.add_parameter(l_call, 'Welcome1', string_type_qname, 'ParameterMode.IN');
    -- sys.utl_dbws.add_parameter (l_call,returnVal,boolean_type_qname,'ParameterMode.OUT');
    sys.utl_dbws.set_return_type (l_call, string_type_qname);
    -- utl_dbws.add_parameter(l_call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
    --sys.utl_dbws.add_parameter(l_call, 'TEST', string_type_qname, 'ParameterMode.IN');
    --l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
    --<validateLogin xmlns="' || l_namespace || '">
    --<validateLoginInput>' || p_int_1 || '</validateLoginInput>
    --</validateLogin>');
    l_xmltype_out := SYS.UTL_DBWS.invoke(call_Handle => l_call, request => l_xmltype_in);
    SYS.UTL_DBWS.release_call (call_handle => l_call);
    SYS.UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line('WS Executed successfully...');
    -- l_return := l_xmltype_out.extract('//return/text()').getNumberVal();
    RETURN 11;
    END;
    /

    Check if this helps:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist

  • Oracle Reports Runtime as DLL

    Oracle reports runtime is available as an executable
    R30RUN32.EXE. Is it available as a DLL so that other
    applications can call using API of R30RUN32.DLL?
    null

    Hai,
    Yes Oracle Reports does have OCX control ( ActiveX Control)
    that you can use in VB, VC++.I don't know the exact name. But if
    you right-click on the Tool Box in VB 5/6 go to components you
    can see all Oracle OCX's starting with Oracle, OR you can check
    the hard way looking in system32/ directory !!!
    Have FUN !!
    T. Veera Reddy (guest) wrote:
    : Oracle reports runtime is available as an executable
    : R30RUN32.EXE. Is it available as a DLL so that other
    : applications can call using API of R30RUN32.DLL?
    null

  • Install Oracle ADF Runtime on WebSphere Application Server 7.x

    Hi everyone,
    I am trying to install ADF on a WAS server, but i don't find much information about it... I intall WAS 7 and upgrade to 7.0.0.19 with no problem, but i don't now how to install the ADF libraries in the server, i want to install the ADF libraries and deploy de "Tag Guide Demo" on the WAS...
    Can anyone help me ?
    Ty
    Alberto Tapia

    Hi,
    I am trying to install Oracle ADF runtime for Websphere. I downloaded the installer from this link http://download.oracle.com/otn/nt/middleware/11g/ofm_appdev_generic_11.1.1.2.0_disk1_1of1.zip
    When I extract and run the installer, I do not see the option for "Application Server Screen" where I am supposed to be able to select websphere option.
    Am I using the right installer? Is there any other way to enable the websphere option?
    Thanks,
    Neha

  • NullPointerException at oracle.jsp.runtime.OracleJspRuntime.encodeQueryStri

    Hi,
    I need to make a webservice call from remote https webservice in Jdeveloper 10.1.3 with JDK 1.4.2_13. Webservices Wrapper classes use JAx-RPC.
    I run my JSP to call webservice and got the following error:
    java.lang.NullPointerException     at oracle.jsp.runtime.OracleJspRuntime.encodeQueryStringName(OracleJspRuntime.java:1228)     at oracle.jsp.runtime.OracleJspRuntime.genPageUrl(OracleJspRuntime.java:1167)     at oracle.jsp.runtime.OracleJspRuntime.genPageUrl(OracleJspRuntime.java:1132)     at mrc.jspService(_mrc.java:73)     [mrc.jsp]
    Anybody know what this error is and how to fix it?
    Thank you.

    hi jfu
    Would you be able to find the source file, "_mrc.java", for your jsp "mrc.jsp"?
    From this "_mrc.java", could you post some code from around line 73?
    If possible post the part of the code in "mrc.jsp" that results in the code from around line 73 in "_mrc.java"?
    regards
    Jan Vervecken

  • Loading class oracle/jpub/runtime/dbws/DbwsProxy into the database

    I am trying to create a Database Web Services call-out in PL/SQL, however, encountered error "ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist". I followed some steps to load utl_dbws.jar, utl_dbws_jserver.jar and dbwsclient.jar into the database, but still getting the same error saying DbwsProxy class does not exist. This is very frustrating and I do not know how to fix this. I tried to just load DbwsProxy.class into the database and it executed successfully, however, the database is still complaining that oracle/jpub/runtime/dbws/DbwsProxy does not exist. Does anyone has any idea what's going on? Thanks much. I am cracking my brain out here.

    This is the error message I received when loading:
    The following operations failed
    class java/lang/NumberFormatException: creation (createFailed)
    class java/lang/Number: creation (createFailed)
    class java/lang/Object: creation (createFailed)
    class java/lang/String: creation (createFailed)
    class java/lang/Long: creation (createFailed)
    exiting : Failures occurred during processing
    This is the error message I received in the database after loading dbwsclient.jar:
    ERROR at line 1:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 135
    ORA-06512: at "SYS.UTL_DBWS", line 132
    ORA-06512: at "MICHELLE.MICH", line 8
    ORA-06512: at line 1
    So that class is still missing. You were suspecting that this class is not loaded successfully into the database? Is it possible for me to just load that particular class into the database?
    Thanks.

  • ORA-29540:class oracle/pub/runtime/dbws/DbwsProxy does not exist

    Hi we are getting below error while calling UTl_DBWS package.
    Database version 11.2.0.2
    package definition
    create or replace function xxpvn_ws_test
    return varchar2
    is
      service_           sys.utl_dbws.SERVICE;
      call_              sys.utl_dbws.CALL;
      service_qname      sys.utl_dbws.QNAME;
      port_qname         sys.utl_dbws.QNAME;
      xoperation_qname   sys.utl_dbws.QNAME;
      xstring_type_qname sys.utl_dbws.QNAME;
      response           sys.xmltype;
      request            sys.xmltype;
    begin
      service_qname := sys.utl_dbws.to_qname(null, 'getJoke');
      service_ := sys.utl_dbws.create_service(service_qname);
      call_ := sys.utl_dbws.create_call(service_);
      sys.utl_dbws.set_target_endpoint_address(call_, 'http://interpressfact.net/webservices/getjoke.asmx');
      sys.utl_dbws.set_property( call_, 'SOAPACTION_USE', 'TRUE');
      sys.utl_dbws.set_property( call_, 'SOAPACTION_URI', 'http://interpressfact.net/webservices/getJoke');
      sys.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'document');
      request := sys.xmltype(
           '<getJoke xmlns="http://interpressfact.net/webservices/">'
        || '<Category>Excuses-10</Category>'
        || '</getJoke>');
      response :=sys. utl_dbws.invoke(call_, request);
      return response.extract('//getJokeResult/child::text()',
        'xmlns="http://interpressfact.net/webservices/"').getstringval();
    end ;error message
    SQL> select xxpvn_ws_test from dual;
    select xxpvn_ws_test from dual
    ERROR at line 1:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 144
    ORA-06512: at "SYS.XXPVN_WS_TEST", line 14
    Thanks
    Jitendra

    This error related to jave since its not installed in database user schema
    Logout of sqlplus and run:
    loadjava -u / -r -v -f -s -grant public -genmissing dbwsclientws.jar dbwsclientdb102.jar
    Check this
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2264325

  • Root cause for  class oracle/jpub/runtime/dbws/DbwsProxy does not exist

    Hi,
    I am trying to use UTL_DBWS to call a webservice, adn getting a error " ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist "
    its going back and forth between me and operations , I aske them to load the package but still the script fails. Is there any way to confirm whether the package is loaded , like the below script
    as sys:
    select status from all_objects where
    dbms_java.longname(object_name)='oracle/jpub/runtime/dbws/DbwsProxy';
    Please help to find the root cause

    Please check if you have the grants on UTL_DBWS.

Maybe you are looking for

  • How to display the source code for this friggin' file.

    Below is a rather lengthy bit of code that provides the behavior and attributes of a web server for OpenCyc. I need to know if I can enter some java to have the HTML source code displayed in a separate text file whenever this class returns some resul

  • Problem with a description in a LOV

    Hi, I have a problem with a Lov. I have a LOV with a id and a description link with this id. When this field is blank I need to search and i push the lov. But when i save and i go back then i can't show the description. If a put this Field as a dropD

  • The specified website does not appear to be created in Adobe Muse CC 2014 or later

    I re-saved a website and FTP'd all files to a site hosted on GoDaddy. When I try to use in-browser editing on inbrowserediting.adobe.com, I get the message in the title. What am I missing?

  • Slideshow works on desktop viewer, but not on iPad

    I have an MSO slideshow that works great on the desktop viewer, but when previewed on the iPad it just shows the first state and doesn't transition to the next state. We have made slideshows before that work on both the desktop and iPad content viewe

  • Is my library too big or my folder hierarchy inefficient

    Just reread the bagelturf article on lib size. My library has 2500 images (masters are referenced) and it is 3.78GB. This works out at 1.5MB per image which seems to be three times the suggested size in bagelturf. I wonder if my use of blue folders i