Oraclexmlsql.jar

I've posted the first part off the message once before but I added a bit at the end.
Hi,
I'm trying to deploy a java class that I wrote. It simply gets some data out of my oracle database as xml using the oraclexmlsql package. It works fine when I compile it within JDeveloper.
When I try to deploy it JDeveloper gives out the following error:
Errors in xmlquerydb:
ORA-29521: refferenced name oracle/xml/sql/query/OracleXMLQuery could not be found
loadjava: 1 errors
I can't figure out why that happens. I have used other classes and deployed them as Java stored Procedure and they work fine.
I tried to load the oraclexmlsql.jar into the shema where I put my class. The classes from this jar were loaded but can not be compiled( apart from 3 ). I also tried loading my class into sys but I still can't compile it or the oraclexmlsql.jar classes.
Is the xsu12.jar a collection of all the classes that are allready in Sys after the database install?
I have noticed that on expanding the oraclexmlsql.jar file has a strange format and two classes classes are in the directory from which I expanded the jar. These two classes do not get a synonym on loading into the db. Could that have anything to do with it?
Thanks for your help again
Andre

Sorted!!! After having loaded not only xsu12, oraclexmlsql but also the other jar's used it finally works.
null

Similar Messages

  • Deploying java class that uses oraclexmlsql.jar

    Hi,
    I'm trying to deploy a java class that I wrote. It simply gets some data out of my oracle database as xml using the oraclexmlsql package. It works fine when I compile it within JDeveloper.
    When I try to deploy it JDeveloper gives out the following error:
    Errors in xmlquerydb:
    ORA-29521: refferenced name oracle/xml/sql/query/OracleXMLQuery could not be found
    loadjava: 1 errors
    I can't figure out why that happens. I have used other classes and deployed them as Java stored Procedure and they work fine.
    Thanks for help
    Andre

    I tried to load the oraclexmlsql.jar into the shema where I put my class. The classes from this jar were loaded but can not be compiled( apart from 3 ). I also tried loading my class into sys but I still can't compile it or the oraclexmlsql.jar classes.
    Is the xsu12.jar a collection of all the classes that are allready in Sys after the database install?
    I have noticed that on expanding the oraclexmlsql.jar file has a strange format and two classes classes are in the directory from which I expanded the jar. These two classes do not get a synonym on loading into the db. Could that have anything to do with it?
    Thanks for more help
    Andre

  • Problem to load XML SQL Utility into other user

    Hi,
    I need help to load XML Utility into other user than
    "scott"tiger".
    I loaded both xmlparser.jar and oraclexmlsql.jar into
    "scott/tiger", it works and creating functions and testing work
    fine. But when change USER_PASSWORD to another user, it gave me
    some errors like
    creating : org/xml/sax/helpers/AttributeListImpl
    Error while creating class org/xml/sax/helpers/AttributeListImpl
    ORA-29506: invalid query derived from USING clause
    ORA-00942: table or view does not exist
    Error while accessing MD5 table
    ORA-00942: table or view does not exist
    Do I need create any table or view for my another oracle account?
    Or did I missed any thing. From the installation instruction, I
    cano not find any about creating table or view before I load the
    two jar files.
    Thanks
    Yuping
    null

    Hi Yuping,
    Great to hear that! Thx for posting the solution to the
    problem! Let us know if you have any problems with the utility
    or if u need any enhancements!
    Thx
    Murali
    Yuping Zhu (guest) wrote:
    : Hi,Murali,
    : The problem is fixed now. When load xmlparser into the user, it
    : creates two tables automatically, my mistake is I did not grant
    : "create table" privilege to the user. After I granted the
    : privilege to it, it works fine.
    : Thanks!
    : Yuping
    : Murali K (guest) wrote:
    : : Hi,
    : : I will check this out with the Java folks and let u know
    : : Thx
    : : Murali K
    : : Yuping Zhu (guest) wrote:
    : : : Hi, Murali
    : : : I'm using Oracle8i on Solaris 2.6. When I load xmlparser
    : using
    : : : loadjava -resolve -verbose -user $USER_PASSWORD
    xmlparser.jar
    : : : I get error message and I catch part of erros
    : : : PS, I can load it into scott/tiger.
    : : : Thanks!
    : : : Yuping
    : : : loading : org/w3c/dom/html/HTMLLegendElement
    : : : Error while loading org/w3c/dom/html/HTMLLegendElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLLegendElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLLegendElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : org/w3c/dom/html/HTMLImageElement
    : : : Error while loading org/w3c/dom/html/HTMLImageElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLImageElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLImageElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : oracle/xml/parser/v2/XSLException
    : : : Error while loading oracle/xml/parser/v2/XSLException
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : Murali K (guest) wrote:
    : : : : Hi Yuping,
    : : : : I tried the same on a 8i database and it seems to be
    : : working
    : : : : fine. (loading into two schemas). In fact I just created
    : the
    : : : : other user and it doesnt have any tables or anything in
    it.
    : : : : You do not need to create anything (table/view) extra
    for
    : : : these
    : : : : to work.
    : : : : Which database (Oracle8 or 8i) are u using?
    : : : : Thanks
    : : : : Murali
    : : : : Yuping Zhu (guest) wrote:
    : : : : : Hi,
    : : : : : I need help to load XML Utility into other user than
    : : : : : "scott"tiger".
    : : : : : I loaded both xmlparser.jar and oraclexmlsql.jar into
    : : : : : "scott/tiger", it works and creating functions and
    : testing
    : : : work
    : : : : : fine. But when change USER_PASSWORD to another user,
    it
    : : gave
    : : : me
    : : : : : some errors like
    : : : : : creating : org/xml/sax/helpers/AttributeListImpl
    : : : : : Error while creating class
    : : : : org/xml/sax/helpers/AttributeListImpl
    : : : : : ORA-29506: invalid query derived from USING clause
    : : : : : ORA-00942: table or view does not exist
    : : : : : Error while accessing MD5 table
    : : : : : ORA-00942: table or view does not exist
    : : : : : Do I need create any table or view for my another
    oracle
    : : : : account?
    : : : : : Or did I missed any thing. From the installation
    : : instruction,
    : : : I
    : : : : : cano not find any about creating table or view before
    I
    : : load
    : : : : the
    : : : : : two jar files.
    : : : : : Thanks
    : : : : : Yuping
    null

  • 1.2 JVM crashes using XML SQL Utility 1.1.10 (NT 8.1.5)

    I am trying to use the XML SQL Utility for Java (Oracle 8.1.5) to obtain a DTD or XML schema for tables in our database.
    I have installed the XSU111.ZIP archive,
    set the CLASSPATH and stuff, loaded the JAR
    files (xmlparserv2.jar, oraclexmlsql.jar)
    processed the xmlgenpkg.sql script (following the installation instructions)
    When I execute the samples in Java, the JVM (JDK 1.2.2) crashes in javai.dll.
    The same error occurs when I run java OracleXML getXML ....
    The installation file (env.bat) lists the JDBC driver ZIP as CLASSES12.ZIP, which is of course, not available for 8.1.5, which is what the download instructions indicated is appropriate for XSU 1.1.1.
    Any ideas? Do I need to upgrade to 8.1.6?
    Can I patch the JDBC with classes12.ZIP.
    By the way, when I execute the commands in PL/SQL using xmlgen package, everything is fine.
    Regards and Much thanks

    Set JDK_HOME to the directory where you install your JDK (Java Development Kit).
    So instance, I've install JDK1.1.8 on my
    C drive so
    set JDK_HOME=c:\jdk1.1.8;c:\jdk1.1.8\bin

  • Problem in XML-Application to Application

    Hi
    I am trying to run the XML-Application to Application available on the Oracle site.
    I am using JavaWebServer2.0 and am able to compile all the files successfully,but
    On running the command:
    java xmla2a.tphs.TPHotelSystem
    the following error is encountered:
    java.lang.NoSuchMethodError: oracle.jdbc.driver.OracleConnection: method setTypeMap(Ljava/util/Dictionary;)V not found
    at oracle.AQ.AQOracleSession.<init>(AQOracleSession.java:69)
    at oracle.AQ.AQOracleDriver.createAQSession(AQOracleDriver.java:65)
    at oracle.AQ.AQDriverManager.createAQSession(AQDriverManager.java, Compiled Code)
    at xmla2a.utilities.AQHandler.createSession(AQHandler.java:144)
    at xmla2a.utilities.AQHandler.initializeQueues(AQHandler.java:62)
    at xmla2a.utilities.AQHandler.<init>(AQHandler.java:51)
    at xmla2a.tphs.TPHotelSystem.<init>(TPHotelSystem.java:55)
    at xmla2a.tphs.TPHotelSystem.main(TPHotelSystem.java:64)
    Exception in thread "main"
    Can someone help me in solving this problem.
    warm regards
    Siddharth

    Rajesh
    i have followed the steps given in the index.html carefully.i face no problems in compiling the files.
    here is the brief of the steps i have followed:
    java_home=c:\jdk1.2.2
    jws_home=c:\javawebserver2.0
    added the following packages to the classpath:classes.zip,serlet.jar,classes111.zip,xmlparserv2.jar,classgen.jar,mail.jar,oraclexmlsql.jar,aqapi.jar,jndi.jar
    <xmla2adir> = c:\B2B\xmla2a
    copied the XMLAPPDIR\xmla2a\a2a files to JWS_Home\public_html
    was able to successfully complie the application in the order given in index.html
    added the servlets to the java web server successfully
    But while running the application i got the above stated problem.
    I hope these steps will help u track down my line of action and help me out.
    thanks
    Siddharth
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rajesh Sundararaghavan (Oracle):
    HI,
    One more addition. In case of problems, it would be great if you could let us know the sequence of steps that you followed so that tracking down will be easier.
    Thanks
    Rajesh<HR></BLOCKQUOTE>
    null

  • Oracle.xml.xsql.XSQLServlet in Java Web Server 2.0

    Does anyone know how to add the oracle.xml.xsql.XSQLServlet in the Java Web Srever 2.0? When running the helloworld.xsql I am now getting the following error message.
    "500 Internal Server Error
    The servlet named oracle.xml.xsql.XSQLServlet at the requested URL
    http://nw601250:8080/xsql/demo/helloworld.xsql
    reported this exception: java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaWebServer2.0\public_html\xsql\demo\helloworld.xsql read). Please report this to the administrator of the web server.
    java.lang.RuntimeException: java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaWebServer2.0\public_html\xsql\demo\helloworld.xsql read) at oracle.xml.xsql.XSQLPageManager.getPage(XSQLPageManager.java:122) at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code) at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java, Compiled Code) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:166) at com.sun.server.HandlerThread.run(HandlerThread.java:162)"
    I have the alias *.xsql set to map to the servlet named oracle.xml.xsql.XSQLServlet under the Servlet Aliases section, but I'm not sure how to add the servlet under the Servlet section, as I'm guessing that this is the problem I'm now experiencing. I tried adding oracle.xml.xsql.XSQLServlet as both the servlet name and class, but this is not working.
    Any help would be greatly appreciated. Thanks!

    Rani,
    The following is part of a message that was posted back on Nov. 7 of '99 from Steve Muench. I just followed this exactly with the Java Web Server 1.0.1 and it worked fine (including adding the classpath settings and xsql servlet mappings as it says below). Thanks,Dan
    Here's the steps I just followed to run all the XSQL Demos under JSWDK 1.0.1
    (1) Downloaded jswdk1_0_1-win.zip from Sun
    (2) Installed in D:\jswdk-1.0.1
    (3) Edited "startserver.bat" to add the
    classpath entries needed by XSQL Servlet:
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\classes111.zip
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\oraclexsql.jar
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\oraclexmlsql.jar
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\xmlparserv2.jar
    (4)Edited d:/jswdk-1.0.1/webpages/WEB-INF/servlets.properties and added the line:
    xsql.code=oracle.xml.xsql.XSQLServlet
    (5) Edited d:/jswdk-1.0.1/webpages/WEB-INF/mappings.properties
    and added the line:
    .xsql=xsql
    (6) Copied D:\xsql\demo to D:/jswdk-1.0.1/webpages/xsql/demo
    (7) Started the Webserver with "startserver.bat"
    (8) Browsed http://localhost:8080/xsql/demo/index.html
    (9) Exercised all the demos.
    Hope this helps.
    Steve Muench
    Oracle XML Team

  • For Oracle XML Team:please help

    hi,
    I have been trying to run my java code using XSQLRequest from inside the stored procedure for past couple of days and i have had a couple of queries which were answered successfully.Thanks for that.
    But so far i have not been able to execute the code from inside the stored procedure which works fine if executed from commandline or thro a normal java application.
    It is always some problem or other and since there is no one except for this forum I end up submitting my queries in here.
    IS there any way i can get in touch with someone from ur side and may be figure out if i can do the way i 'm doing right now or i'm just wasting my time for nothing.I'm already done with the project schedule so i have to answer my PL.
    I have loaded the oraclexsql.jar file and the corresponding parserv2.jar and oraclexmlsql.jar file in my database.
    and i did load the XSQLConfig.xml file in the database file as well n which i'm using oracle:jdbc:thin:@10.0.0.70:1521:xdp as my <dburl>.
    now when i try to call the stored procedure i get the following error:
    Oracle XSQL Programmatic Page Processor 0.9.8.6 (Technology Preview)
    XSQL-007: Cannot acquire a database connection to process page.
    No suitable driver.
    I did find that inorder to make the database connection from inside the stored procedure we have to use jdbc.oracle.kprb driver
    and that thin and oci are not supported.
    Does this mean i have to specify the same in my <dburl> for the config file.
    I infact did try to use this but it wont work and i got the same error.
    Can u please help me with this.
    This is extremely important for me that i come to a conclusion.
    Thanks a lot
    Aman
    (if it is possible that i can talk to someone frm ur side it 'll be reallly great.)
    null

    Try using Oracle XML SQL Utility from
    inside the DB. XSQL is just calling that
    utility.

  • Can't get demo to work

    After installing the XSQL servlet I cannot get the demos to work properly. This is the message I get in the "Airportcode validation":
    Response from HTTP Request for airport.xsql?airport=got
    - <xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo" airport="SFO" rowset-element="Ok" max-rows="1" row-element="Airport" >
    SELECT tla "Code", description "Description" FROM AIRPORT WHERE tla = UPPER('{@airport}')
    <xsql:no-rows-query max-rows="10" rowset-element="Error" row-element="Airport" >SELECT tla "Code", description "Description" FROM AIRPORT WHERE UPPER(description) LIKE UPPER('%{@airport}%') ORDER BY tla</xsql:no-rows-query>
    </xsql:query>
    Is there something wrong with the database connection? I have tried the demos on oracles homepage and get this response to the same request in the same demo:
    Response from HTTP Request for airport.xsql?airport=got
    - <Ok>
    - <Airport num="1" >
    <Code>GOT</Code>
    <Description>Gothenburg, Sweden-Landvetter</Description>
    </Airport>
    </Ok>
    Thanks for the help!
    null

    Here is some additional information about how the XSQL Servlet was installed:
    Installing the XSQL Servlet:
    OS:
    Windows NT server 4.0
    Software:
    IIS 4
    JRUN 2.3.3
    ORACLE DB, Release 8.1.5
    Installation procedure in detail:
    1) download xqslservlet_0_9_8_6.zip OK
    2) extract to dir c:\java\servlets\xsql OK
    3) copy all the content of the dir xsql\lib to c:\java\myclasses\xsql OK
    4) adjust CLASSPATH in JRUN
    c:/java/myclasses/xsql/classes111.zip;
    c:/java/myclasses/xsql/oraclexmlsql.jar;
    c:/java/myclasses/xsql/oraclexsql.jar;
    c:/java/myclasses/xsql/xmlparserv2.jar;
    c:/java/myclasses/xsql; OK
    5) Register extension .xsql
    Add the following mapping in JRUN
    jseweb->service config->mappings
    *.xsql oracle.xml.xsql.XSQLServlet OK
    6) Move dir demo under /xsqml/demo to /home/demo (web server, virtual home)
    for easy access. OK
    7) Edit file XSQLConfig.xml:
    <connectiondefs dumpallowed="no">
    <connection name="demo">
    <username>system</username>
    <password>manager</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:ORCL</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    <connection name="lite">
    <username>system</username>
    <password>manager</password>
    <dburl>jdbc:Polite:POlite</dburl>
    <driver>oracle.lite.poljdbc.POLJDBCDriver</driver>
    </connection>
    </connectiondefs> OK
    8) Restart webserver.... and test
    home/demo/helloworld.xsql
    => http://xmlweb1.it.volvo.se/demo/helloworld.xsql
    and the result:
    <?xml version="1.0" ?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">SELECT 'Hello World' AS greeting FROM DUAL</xsql:query>
    - <!--
    | $Author: smuench $
    | $Date: 1999/11/28 07:51:08 $
    | $Source: C:\\cvsroot/xsql/src/demo/helloworld.xsql,v $
    | $Revision: 1.3 $
    +
    -->
    Is there something wrong with the installation?
    Thanks for the help!

  • Oracle 8i Lite and XML SQL Utility

    Can I use XML SQL Utility with Oracle 8i Lite
    using the Oracle 8i Lite Driver
    null

    There will be an version of the XML SQL Utility appearing here shortly. In the meantime you can download the current version of the XSQL Servlet which has the new v2 compatible oraclexmlsql.jar.
    Oracle XML Team

  • MSSQL datatypes that return NullPointerException

    Using XSQLServlet with BEA Systems type 4 jDriver for SQL Server 7.0 Version: 5.1.0, I get the following error:
    oracle.xml.sql.OracleXMLSQLException: java.lang.NullPointerException
    while trying to access the following MSSQL Server datatypes which have non null values:
    1. binary
    2. image
    3. sql_variant
    4. timestamp
    5. uniqueidentifier
    6. varbinary
    The problem is NOT with the jDriver for SQL Server because I've built a class that returns non null data for all datatypes. The problem must lie with XSQL Servlet.
    To test, I use the following:
    xsql file:
    <xsql:query null-indicator="yes"
    connection="{@connection}"
    max-rows="{@max-rows}"
    xmlns:xsql="urn:oracle-xsql"> {@sql}
    </xsql:query>
    url:
    http://aetius/xsql/demo/query.xsql?connection=bea&sql=select+a,c,d,e+from+TYPES
    I'll delete column names, eg column b which is a binary data type, from the above URL to eliminate the java.lang.NullPointerException error.
    I've created the TYPES table to contain every MSSQL datatype.
    CREATE TABLE [dbo].[TYPES] (
    [a] [bigint] NULL ,
    [binary] (10) NULL ,
    [c] [bit] NULL ,
    [d] [char] (10) NULL ,
    [e] [datetime] NULL ,
    [f] [decimal](18, 0) NULL ,
    [g] [float] NULL ,
    [h] [image] NULL ,
    [int] NULL ,
    [j] [money] NULL ,
    [k] [nchar] (10) NULL ,
    [l] [ntext] NULL ,
    [m] [numeric](18, 0) NULL ,
    [n] [nvarchar] (10) NULL ,
    [o] [real] NULL ,
    [p] [smalldatetime] NULL ,
    [q] [smallint] NULL ,
    [r] [smallmoney] NULL ,
    [s] [sql_variant] NULL ,
    [t] [text] NULL ,
    [timestamp] NULL ,
    [v] [tinyint] NULL ,
    [w] [uniqueidentifier] NULL ,
    [x] [varbinary] (50) NULL ,
    [y] [varchar] (50) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    BTW the MSSQL Server datatypes that DO work with XSQL Servlet:
    1. bigint
    2. bit
    3. char
    4. datetime
    5. decimal
    6. float
    7. int
    8. money
    9. nchar
    10. ntext
    11. numeric
    12. varchar
    13. real
    14. smalldatetime
    15. smallint
    16. smallmoney
    17. text
    18. tinyint
    19. varchar
    Steve.

    Thanks for the quick response.
    The problem does NOT seem to be in the XML SQL Utility. In other words using an instance of OracleXMLQuery in my data type test Java program, I have a successful output including the data types in question.
    Here is the Java program:
    package examples.jdbc.mssqlserver4;
    import java.io.*;
    import java.sql.*;
    import java.util.Properties;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Steve
    public static void main(String [] args)
    Properties props = new Properties();
    props.put("user", "lemkau");
    props.put("password", "lemkau");
    props.put("server", "Northwind@Aetius:1433");
    Driver myDriver = null;
    try
    String driverName = "weblogic.jdbc.mssqlserver4.Driver";
    String url = "jdbc:weblogic:mssqlserver4";
    // String driverName = "com.inet.tds.TdsDriver";
    // String url = "jdbc:inetdae7:aetius:1433";
    myDriver = (Driver) Class.forName(driverName).newInstance();
    Connection conn = myDriver.connect(url, props);
    try
    Statement stmt = conn.createStatement();
    stmt.execute("select * from TYPES");
    ResultSet rs = stmt.getResultSet();
    if(rs!=null)
    OracleXMLQuery qry = new OracleXMLQuery(conn, rs);
    String xmlString = qry.getXMLString();
    System.out.println(" OUPUT IS:\n"+xmlString);
    while (rs.next()) {
    System.out.println("bigint" + " - " + rs.getString("a"));
    System.out.println("binary" + " - " + rs.getString("b"));
    System.out.println("bit" + " - " + rs.getString("c"));
    System.out.println("char" + " - " + rs.getString("d"));
    System.out.println("datetime" + " - " + rs.getString("e"));
    System.out.println("decimal" + " - " + rs.getString("f"));
    System.out.println("float" + " - " + rs.getString("g"));
    System.out.println("image" + " - " + rs.getString("h"));
    System.out.println("int" + " - " + rs.getString("i"));
    System.out.println("money" + " - " + rs.getString("j"));
    System.out.println("nchar" + " - " + rs.getString("k"));
    System.out.println("ntext" + " - " + rs.getString("l"));
    System.out.println("numeric" + " - " + rs.getString("m"));
    System.out.println("nvarchar" + " - " + rs.getString("n"));
    System.out.println("real" + " - " + rs.getString("o"));
    System.out.println("smalldatetime" + " - " + rs.getString("p"));
    System.out.println("smallint" + " - " + rs.getString("q"));
    System.out.println("smallmoney" + " - " + rs.getString("r"));
    System.out.println("sql_variant" + " - " + rs.getString("s"));
    System.out.println("text" + " - " + rs.getString("t"));
    System.out.println("timestamp" + " - " + rs.getString("u"));
    System.out.println("tinyint" + " - " + rs.getString("v"));
    System.out.println("uniqueidentifier" + " - " + rs.getString("w"));
    System.out.println("varbinary" + " - " + rs.getString("x"));
    System.out.println("varchar" + " - " + rs.getString("y"));
    ResultSetMetaData md = rs.getMetaData();
    // System.out.println("Number of columns: " + md.getColumnCount());
    for (int i = 1; i <= md.getColumnCount(); i++) {
    String name = md.getColumnName(i);
    // System.out.println("Column Name: " + name);
    // System.out.println("Column Length: " + md.getColumnDisplaySize(i));
    stmt.close();
    conn.close();
    catch(SQLException se)
    System.out.println("An exception was raised " + se);
    catch(Exception e)
    System.out.println("An exception was raised " + e);
    Here is the result:
    "C:\Program Files\Oracle\JDeveloper 3.1.1.2\java1.2\jre\bin\java" -XXdebug -mx50m -classpath "C:\Program Files\Oracle\JDeveloper 3.1.1.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.1.1.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.1.1.2\lib\connectionmanager.zip;C:\weblogic\mssqlserver4v70\classes;C:\weblogic\mssqlserver4v70\license;C:\xsql\lib\Sprinta2000.jar;C:\xsql\lib\oraclexsql.jar;C:\xsql\lib;C:\xsql \lib\xsu12.jar;C:\xsql\lib\oraclexmlsql.jar;C:\xsql\lib\classes12.zip;C:\xsql\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.1.1.2\java1.2\jre\lib\rt.jar" examples.jdbc.mssqlserver4.Steve
    System Output: OUPUT IS:
    System Output: <?xml versi on = '1.0'?>
    System Output: <ROWSET>
    System Output: <ROW num="1">
    System Output: <a>1234567890</a>
    System Output: <b>0904D000340000000000</b>
    System Output: <c>true</c>
    System Output: <d>abc </d>
    System Output: <e>2000-10-25 09:41:20.34</e>
    System Output: <f>9</f>
    System Output: <g>9.2</g>
    System Output: <h>0904D000340000000000</h>
    System Output: <i>9</i>
    System Output: <j>18.50000000</j>
    System Output: <k>ALFKI </k>
    System Output: <l>Soft drinks, coffees, teas, beers, and ales</l>
    System Output: <m>9</m>
    System Output: <n>hello</n>
    System Output: <o>9.199999809265137</o>
    System Output: <p>2000-10-25 09:41:00.0</p>
    System Output: <q>9</q>
    System Output: <r>9.20000000</r>
    System Output: <t>Soft drinks, coffees, teas, beers, and ales</t>
    System Output: <u>00000000000002B1</u>
    System Output: <v>1</v>
    System Output: <w>1AFFD361F32ED04996AA62054E954531</w>
    System Output: <x>0904D000340000000000</x>
    System Output: <y>abc</y>
    System Output: </ROW>
    System Output: </ROWSET>
    System Output:
    All previously questionable data types listed below using an URL in a browser are now OK using OracleXMLQuery in a Java program.
    data type column name
    1. binary b
    2. image h
    3. sql_variant s
    4. timestamp u
    5. uniqueidentifier w
    6. varbinary x
    Does this help pinpoint the problem?
    null

  • Java.lang.NoClassDefFoundError: oracle/sql/Datum

    Greetings -
    When using the Oracle XML SQL Utilities is there some sort of restriction as to where the two jar files (oraclexmlsql.jar xmlparser.jar) are referenced from.
    The reason I ask is that when I deployed my servlet based application under WebSphere - I received the above class not found error and had to change my setup to specify the two jar files as part of the command line options for the WebSphere program itself.
    Now I am using JRun and have the same error - unfortunately JRun doesn't like me overriding the classpath on the command line - so I have been unable to come up with a workaround.
    I would appreciate any comments or suggestions.
    Gary Bartlett
    Emory Healthcare
    null

    Thanks - I realize that App Servers have places to specify classpaths, and JRUN uses the standard JSDK 2.2 Web Application setup with the WEB-INF directory structure. All of my other jar files are there and work fine - the problem is with the xml/sql and xmlparser jar files from Oracle - they only seem to be found when I specify them as a -cp arg to the JRun executable. Which is causing problems for JRUN. I was wondering if there was any other solution to this problem.
    Thanks - Gary

  • XSQL-014 on Solaris

    I'm getting an XSQL-014 when executing helloworld.xsql from browser.
    When I run command line xsql ../demo/helloworld.xsql I get back xml.
    Any ideas???
    System is configured:
    ES10000 Solaris 2.6
    Oracle 8.1.6
    Sun Java Web Server 2.0
    Here is java info from snoop servlet:
    Java version: 1.2.2
    Java home: /usr/jdk1.2.2/jre
    Java vendor: Sun Microsystems Inc.
    Java class version: 46.0
    Java class path:
    /d001/app/oracle/product/xml/servlet/xsql/lib/oraclexsql.jar
    /d001/app/oracle/product/xml/servlet/xsql/lib/xmlparserv2.jar
    /d001/app/oracle/product/xml/servlet/xsql/lib/oraclexmlsql.jar
    /d001/app/oracle/product/xml/servlet/xsql/lib
    /d001/app/oracle/product/8.1.6/jdbc/lib/classes12.zip
    /usr/JavaWebServer2.0/classes
    /usr/JavaWebServer2.0/lib/jsp.jar
    /usr/JavaWebServer2.0/lib/pjbean.jar
    /usr/JavaWebServer2.0/lib/servlet.jar
    /usr/JavaWebServer2.0/lib/jst.jar
    /usr/JavaWebServer2.0/lib/x509v1.jar
    /usr/JavaWebServer2.0/lib/ssl.jar
    null

    Steven,
    Has a fix for this problem been released?
    Thanks,
    Mike
    I debugged this problem last night.>The problem is that Java Web Server 2.0>returns null for the Servlet API
    call:>request.getRealPath(request.getServletPath())>It appears
    one must diverge from>the expected Servlet API call above>and
    instead use the deprecated:> request.getPathTranslated()>instead
    when running against JWS 2.0>A future release of XSQL may add>a
    config-file switch to turn on>the use of this deprecated
    behavior,>but the 0.9.9.1 and 1.0.0.0 releases>do not have this
    switch.>Are you able to use any of the servlet engines listed in
    the XSQL Servlet release notes that we've tested it against?>null

  • Nested Queries in SQL Utility/Prod versions

    Can you tell which XML product versions are in production....
    we are implementing a custom XML solution for a B2B client, and are using
    the 8i and the tools from oracle with quite a bit of custom code...
    I have a couple of questions.
    1. as suggested , i was able to get the oraclexmlsql.jar from the servlet zip and loading
    it solved the problem of the jdbc string being printed int he cursor
    syntax . it works from the xmlgen utility withing pl/sql. but when using OracleXML in a java prog the
    results still printout the jdbc string..
    any ideas...
    2. Is there anyway to supress the rownum attribute tag in the subquery (cursor) results...that is the setRowIdAttrName .... w/o using xslt
    3. We are implementing a solution using these tools.... we wanted to know which were the production versions.
    thanks.
    jayant

    | 1. as suggested , i was able to get the oraclexmlsql.jar
    | from the servlet zip and loading it solved the problem of
    | the jdbc string being printed int he cursor syntax . it
    | works from the xmlgen utility withing pl/sql. but when
    | using OracleXML in a java prog the results still printout
    | the jdbc string.. any ideas...
    Could only be a CLASSPATH problem difference in your two
    tests.
    | 2. Is there anyway to supress the rownum attribute tag in
    | the subquery (cursor) results...that is the
    | setRowIdAttrName .... w/o using xslt
    Not at this time. Rownum supression on the subquery should
    probably follow your settings on the main query. I'll
    suggest to the devs.
    | 3. We are implementing a solution using these tools.... we
    | wanted to know which were the production versions.
    XDK Components for XML and XSLT are production.
    XML SQL Utility and XSQL Servlet are still Technical
    Previews and as such are not yet production.
    null

  • Loading Datagrams with XML SQL Ulitility

    I am trying to exercise the following command from Steve's book Chapter 12.
    java OracleXML putXML -user xmlbook/xmlbook -filename out.xml newsstory
    I get a class not found error.
    Can you tell me where I can find the OracleXML in the PATH assuming I have installed everything correctly ?

    Hi Frank,
    Frank, make sure that the two "select xmlgen....." are
    returning a valid XML document. If these aren't working let me
    know, otherwise add a:
    set serveroutput on
    after the commit.
    Also, before you do this, restore oraclexmlsqltest.sql to its
    original state ... the exception section was masking exceptions
    which we are aware we generate. If you look closely you will see
    that we do a very rough job outputing the lob containing the XML
    document (we print out past the length of the LOB, which raises
    an exception).
    Let me know what happens.
    Frank Hubeny (guest) wrote:
    : I have been unable to get the sample code to run successfully
    : after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
    : Windows NT4 Service Pack 4.
    : To make sure I was doing nothing wrong, I reinstalled Oracle 8i
    : and loaded all the java into scott/tiger. Also the PLXMLPARSER
    : codes does appear to run correctly. At least the samples seem
    to
    : work.
    : I tried to use the oraclexmlsqlload.bat script, but the script
    : stopped after after loading oraclexmlsql.jar. So I ran each of
    : the loadjava scripts on the command line. They exited without
    : errors. Even the xmlgen package installed without errors. But
    : when I ran oraclexmlsqltest.sql, I got a message that said the
    : procedure completed successfully, but there was not output.
    : I put a dbms_output.put_line(SQLCODE) with each of the two
    : exceptions and got the following error. The procedure actually
    : failed on "when others" with error -29531. According to the
    : Error Manual this is
    : ORA-29531 no method string in class string
    : Cause: An attempt was made to execute a non-existent method in
    a
    : Java class.
    : Action: Adjust the call or create the specified method.
    : At this point I am not sure what to do.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Error when running XSQL Page

    I've just installed JDeveloper and when I try to run any XSQL Page (i've tried about 10 different ones) I get this same trace with the same File Not Found error at the end. I'm sure it's some kind of configuration problem, but I don't where to fix this. Please help. Here's the trace:
    "C:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\bin\javaw.exe" -mx50m -classpath
    "C:\Program Files\Oracle\JDeveloper 3.1\myprojects\WebProvis_working\output\_pages;
    C:\Program Files\Oracle\JDeveloper 3.1\myprojects\WebProvis_working\output;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\ojsp.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\ojc.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\jswdk-1.0.1\lib\servlet.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\webtogo.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\xmlparser.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\jbcl2.0.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes12.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\connectionmanager.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib;
    C:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes111.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\oraclexsql.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\oraclexmlsql.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\xmlparserv2_2027.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\xmlparserv2.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\jswdk-1.0.1\lib\servlet.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\lib\rt.jar" oracle.jdeveloper.debugger.ServletMain WebProvis_working\xsqltest.xsql
    "C:\Program Files\Oracle\JDeveloper 3.1\myprojects\"
    "C:\Program Files\Oracle\JDeveloper 3.1\lib"
    log3: java.io.FileNotFoundException: C:\Program Files\Oracle\JDeveloper 3.1\myprojects" C:\Program\WebAppRunner.html
    (The filename, directory name, or volume label syntax is incorrect.)
    void java.io.FileOutputStream.open(java.lang.String)log3:
    void java.io.FileOutputStream.<init>(java.lang.String, boolean)log3:
    void java.io.FileOutputStream.<init>(java.lang.String)log3:
    void oracle.jdeveloper.debugger.ServletDebugger.showErrorPage(java.lang.Exception)log3:
    void oracle.jdeveloper.debugger.ServletDebugger.startListening()log3:
    void oracle.jdeveloper.debugger.WebServerThread.run()log3:
    null

    To use XSQLServlet with Microsoft Personal Web Server, you'll need to install a servlet engine that works with PWS. One with which XSQL Servlet has been tested is the ServletExec 2.2 and ServletExec 3.0 from New Atlanta (http://www.servletexec.com/). Others are available, too. Perhaps "Resin" from Caucho technologies as well (http://www.caucho.com).
    This means the XSQL Pages XML/XSLT publishing framework, along with a JDBC driver, will be running on your NT box, connecting to the database on your Unix box.
    For JDeveloper, it sounds like you haven't properly configured the name of your database machine, its SID, or the port on which its connection listener listens on.

Maybe you are looking for