XSQL Setup

Hello,
Can anyone please let me know how to do the setup of Apache/Tomcat server to run XSQL pages against Oracle 8i server? More specifically, I need to know if I need to download any software component from Oracle or elsewhere. I have Oracle 8i running on Windows 2000 server and I have used Apache/Tomcat combination to host Java Servlets and JSP pages. Any input will be appreciated. Thanks,
.......abhijit
email:[email protected]

The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the XML-General forum. The URL is:
General XML
You might also be interested in OTN's XML Center.
The URL is:
http://otn.oracle.com/tech/xml/

Similar Messages

  • Xsql setup problem. 'Cannot acquire a database connection to process page.'

    This is probably a really basic problem, but I am getting the following error when I try to use the xsql demos.
    Oracle XDK Java 9.2.0.2.0 Production
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    I really don't know what I am doing wrong, so any help would be appreciated.
    My jserv.properties file:
    wrapper.classpath=s:\xdk_java\lib\xsu12.jar
    wrapper.classpath=s:\xdk_java\lib\oraclexsql.jar
    wrapper.classpath=s:\orant\jdbc\lib\classes12.zip
    wrapper.classpath=s:\xdk_java\lib\xmlparserv2.jar
    wrapper.classpath=s:\orant\xdk\admin
    Thankyou
    Adrian

    hehehhe
    I had the connection wrong in the XSQLConfig.xml file.
    It's all working nicely now.
    Ade

  • XSQL setup woes continued

    I finally persuaded Apache/Tomcat to pass my xsql page to the servlet, & now get the following:
    Oracle XSQL Servlet Page Processor 9.0.1.0.0 (Production)
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: oracle/xml/sql/query/OracleXMLQuery
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:154)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:132)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:134)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
    at org.apache.tomcat.core.Handler.service(Handler.java)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
    at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
    at java.lang.Thread.run(Thread.java)
    I am attempting to access an 8.1.6 db on an NT 4.0 machine from my Apache/Tomcat on my linux box, using xsu111_816.jar with the classes111.zip from the db - is the NT classes111.zip file OK in linux?

    Use xsu12.jar and classes12.zip if you are running Apache with a 1.2 JVM or later.
    Use xsu111.jar and classes111.zip if you are running Apache with a 1.1.8 JVM.
    The _816 version is for loading into the 8.1.6 database.

  • Unable to setup/mapping of XSQL Servlet

    We have installed Apache web server with Tomcat Servlet engine. We have downloaded XDK 9i for Java and we have done the setup of Classpath in tomcat.bat.
    When we try to run the XSQL file from the browser (IE5), it opens as a text file instead of running the query and converting into XML document.
    We are facing the problem in servlet mapping since the file WEB-INF/web.xml is not found in the distribution whereas it is mentioned in the installation document it should be available.
    Please help us on this.
    Thanks

    Hi!
    I think your problem happens because you haven't told Tomcat what to do when a xsql file is invoked.
    Respecting to this, I have the following lines in my web.xml file:
    <servlet>
    <servlet-name>
    xsql
    </servlet-name>
    <servlet-class>
    oracle.xml.xsql.XSQLServlet
    </servlet-class>
    <load-on-startup>
    -2147483646
    </load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    xsql
    </servlet-name>
    <url-pattern>
    /home/user/*.xsql
    </url-pattern>
    </servlet-mapping>
    I hope this helps!
    Best Regards,
    Andri Rocha
    PT Inovagco
    Porto - Portugal
    null

  • Error while running a sample XSQL from XML bible book from Steve Muench

    I am running the sample XSQL code from Chapter 03, which deals with exporting XML and transform into SQL statements. I'm using JDeveloper and I believe I've setup libraries and HTML root directory etc. I'm getting the following error:
    XSQL-011 Error processing XSLT stylesheet.
    XSL-1009 Attribute xsl:version not found in xsl:stylesheet.
    Can I get some help in fixing this error?
    Thanks a lot,
    Murali
    null

    Hi,
    This is the example I took from Steve Muench's book.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    </xsl:template1>
    </xsl:stylesheet>
    As you can see, I do have the version=1.0 attribute. Why is it complaining still?

  • Can not make XSQL servlet running under Jrun 3.1! need help

    Hi,
    I tried to run Oracle XSQL servlet under JRun 3.1,I did servlet mapping, such as
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I set classpath for XSQL related library such as oraclexsql.jar, xmlparserv2.jar,etc, I believe everything is setup correctly, however when I invoke .xsql page, I did not get data instead of getting sql text!, here is my xsql file content:
    <?xml version="1.0"?>
    <!-- reports.xsql: List of reports by user id -->
    <?xml-stylesheet type="text/xsl" href="Filter.xsl"?>
    <page connection="reports_8i" xmlns:xsql="urn:oracle-xsql">
         <dataform target="reportFilter.jsp" submit="Go">
    <xsql:set-session-param name="userid" value="{@userid}" ignore-empty-value="no"/>
         <xsql:include-param name="userid"/>
         <xsql:set-session-param name="bu_id" value="{@bu_id}" ignore-empty-value="no"/>
         <xsql:include-param name="bu_id"/>
         <xsql:set-session-param name="client_id" value="{@client_id}" ignore-empty-value="no"/>
         <xsql:include-param name="client_id"/>
         <item type="list" name="targetPage" label="Available Reports">
         <xsql:ref-cursor-function bind-params="userid">
                   reports_generation.getReportList(?)
              </xsql:ref-cursor-function>
              </item>
         </dataform>
    </page>
    What I got when I invoked this page is reports_generation.getReportList(?)!!
    It seems that JRun 3.1 did not understand xsql syntax, it means it can not find XSQL servlet related libraries, come on, I did set classpath.
    Does anyone has this experience to help me out? Highly appreicate you in advance.
    Thanks.

    i think i solved this problem by specifying the full path to javac...
    what must i do to avoid this?

  • XSQL Servlet Version 1.0.0.0 with ServletExec 3.0 on Windows2000 IIS 5

    I am attempting to establish an XML connection to Oracle 8i in a Windows2000 IIS 5 environment. The .xsql/index.htm loads perfectly, but when i try to run helloworld, I recieve the following error.
    "The XML page cannot be displayed
    Reference to undeclared namespace prefix: :'xsql'. Line 2 position 13
    <xsql:query>"
    The other examples load up the HTML but do not load any of the active XSQL information.
    Configuration:
    I have installed Suns JDK 1.2.2 and JRE 2, ServletExec 3.0 on a windows2000 box running IIS 5. ServletExec seems to be functioning perfectly. I installed the Oracle Servlet 1.0.0.0 by configuring ServletExec's ClassPath, Alias, and Servlet Configuration, mapped the .xsql extension to the servlet, and setup the XSQL virtual directory according to the documentation. I am trying to connect to to an external Oracle 8i database, and have adjusted the parameters in the XSQLConfig.xml accordingly.
    null

    The helloworld example doesn't work in XSQL 102. Tested using xsql command with http url. See below. If I put xsql: in front of connection in helloworld.xsql, the error moves from column 13 to 36, so now the trouble lies with xmlns:xsql="urn:oracle-xsql". What has changed? How do we solve this?
    C:\xsql\bin>dir c:\xsql\demo\helloworld\helloworld.xsql
    Volume in drive C has no label.
    Volume Serial Number is 24CD-3B6C
    Directory of c:\xsql\demo\helloworld
    08/03/2000 03:20p 306 helloworld.xsql
    1 File(s) 306 bytes
    0 Dir(s) 4,499,296,256 bytes free
    C:\xsql\bin>xsql file:///c:/xsql/demo/helloworld/helloworld.xsql
    <?xml version = '1.0'?>
    <!--
    | $Author: smuench $
    | $Date: 2000/03/08 23:20:17 $
    | $Source: C:\\cvsroot/xsql/src/demo/helloworld/helloworld.xsql,v $
    | $Revision: 1.1 $
    +-->
    <ROWSET>
    <ROW num="1">
    <GREETING>Hello World</GREETING>
    </ROW>
    </ROWSET>
    C:\xsql\bin>xsql http://aetius/xsql/demo/helloworld/helloworld.xsql
    Oracle XSQL Command Line Page Processor 1.0.2.0 (Production)
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 2, char 13
    Namespace prefix 'xsql' used but not declared.
    C:\xsql\bin>

  • XSQL: How to embed the XML document(s) instead of posting?

    Dear all.
    I'm trying to use XSQL for a self-contained database schema setup. This setup should be able to handle DML (INSERT/UPDATE/DELETE), PL/SQL calls etc and I thought XSQL looks perfect for the job. As such, I wouldn't be using XSQL as a publishing framework but as kind of an ETL tool. The only output I would be interested in would be the xsql-status in order to check that the number of rows processed matches my expectations. I would prefer XSQL to run entirely within the database and not depend on any servlet container.
    However, it seems that XSQL's only way of obtaining the canonical XML (ROWSET/ROW) that is used by xsql:insert-request/xsql:update-request/xsql:delete-request is through HTTP POST/GET. It doesn't seem that it's possible to embed the XML directly in the page, nor does it seem possible to handle more than one XML.
    I'm trying to achieve something like this:
    <?xml version="1.0"?>
    <page connection="scott" xmlns:xsql="urn:oracle-xsq">
    <xsql:insert-request table="DEPT">
    <ROWSET>
    <ROW>
    <DEPTNO>-10</DEPTNO>
    <DNAME>NEW DEPT 1</DNAME>
    <LOC>COPENHAGEN</LOC>
    </ROW>
    <ROW>
    <DEPTNO>-20</DEPTNO>
    <DNAME>NEW DEPT 2</DNAME>
    <LOC>LONDON</LOC>
    </ROW>
    </ROWSET>
    </xsql:insert-request>
    <xsql:insert-request table="EMP">
    <ROWSET>
    <ROW>
    <EMPNO>-10</EMPNO>
    <ENAME>NEW EMP 1</ENAME>
    </ROW>
    <ROW>
    <EMPNO>-20</EMPNO>
    <ENAME>NEW EMP 2</ENAME>
    </ROW>
    </ROWSET>
    </xsql:insert-request>
    </page>
    or perhaps
    <?xml version="1.0"?>
    <page connection="scott" xmlns:xsql="urn:oracle-xsq">
    <request>
    <parameters>
    <dept>
    <ROWSET>
    <ROW>
    <DEPTNO>-10</DEPTNO>
    <DNAME>NEW DEPT 1</DNAME>
    <LOC>COPENHAGEN</LOC>
    </ROW>
    <ROW>
    <DEPTNO>-20</DEPTNO>
    <DNAME>NEW DEPT 2</DNAME>
    <LOC>LONDON</LOC>
    </ROW>
    </ROWSET>
    </dept>
    </parameters>
    </request>
    <xsql:insert-request table="DEPT" param="dept"/>
    <xsql:insert-request table="EMP" param="emp"/>
    </page>
    I need both INSERT/UPDATE/DELETE so xsql:insert-param isn't enough, would also need an xsql:update-param and xsql:delete-param.
    A way of referring to the canonical XML through an URI or XPath expression (referring to a registered XML document in the database) would also be cool.
    Perhaps implementing custom action handlers would work but not sure whether they'll be able to refer to any child XML elements within them? Furthermore, the syntax for these would also be slightly inconvenient:
    <xsql:action handler=com.ellebaek-consulting.xsql.InsertActionHandler" table="DEPT">
    My alternative would be to re-implement an extended version of XSQL (XSQLX :-)?) but I'm trying to avoid that.
    Any pointers and ideas are very much appreciated.
    Thanks in advance.
    Best regards
    Finn Ellebaek Nielsen

    Hi.
    Thanks for your reply but the article only talks about how to query data with XSQL and I need to INSERT/UPDATE/DELETE data embedded in XSQL pages into the database so I'm afraid that the article doesn't apply.
    Cheers
    Finn

  • Problem with xsql:query

    Hi,
    I'm having a problem with the following simple XSQL document:
    <?xml version="1.0"?>
    <xsql:query connection="xsqltest" xmlns:xsql="urn:oracle-xsql">
    SELECT concat(concat(forename, ' '), surname) AS Name
    , d.name AS Department
    FROM emp, dept d
    WHERE emp.dept_no = d.id
    ORDER BY surname
    </xsql:query>When I transform this using the command line xsql, it produces the following (as expected):
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <Name>Cindy Delight</Name>
    <Department>Accounting</Department>
    </ROW>
    <ROW num="2">
    <Name>Adrian Rue</Name>
    <Department>Product Development</Department>
    </ROW>
    <ROW num="3">
    <Name>Dwight Dweeb</Name>
    <Department>Accounting</Department>
    </ROW>
    </ROWSET>However, when I access the same page through my browser, the output is:
    <?xml version = '1.0'?>
    <xsql:query>
    SELECT concat(concat(forename, ' '), surname) AS Name
    , d.name AS Department
    FROM emp, dept d
    WHERE emp.dept_no = d.id
    ORDER BY surname
    </xsql:query>(this is the same as the input document, except the namespace declaration has been stripped out, making the XML invalid).
    I've tried including other xsql tags in the same document (e.g. xsql:include-xsql), these seem to work fine. Also, if I change the connect details, XSQL fails as expected, so it would appear xsql is being invoked by Tomcat (.xsql is mapped to the servlet), and XSQL successfully connecting to the database.
    My setup is slightly unusual: I'm trying to use XSQL 1.0.4.1 with MySQL 3.23.32 using the mm.mysql 2.0.4 JDBC drivers. This is running on Tomcat 3.2.1 with JDK 1.3 (OJVM 1.2.330). But, since it works with the command line xsql, I'm at a loss as to why it's misbehaving through the servlet engine only... any ideas?
    Steve

    Hmm,
    Even more confusing - the same .xsql document works fine with WebToGo - so I guess this is a Tomcat problem, somehow... Just can't understand why xsql:include-xsql works and xsql:query doesn't.
    Steve

  • Using the XSQL Page Processor Programmatically Issue

    HI,
    I am using the oracle class "oracle.xml.xsql.XSQLRequest " to make use of the XSQL Page Processor from within a Java program and generate a diffenent format files (i.e. HTML, PDF). Everything works fine from the jdeveloper ,but when i deploy the code to Tomcat, I am getting the following error when I click on a submit button(The calls to Java code):
    java.lang.RuntimeException: java.lang.RuntimeException: Fatal error. Cannot create connection manager factory: oracle.xml.xsql.XSQLConnectionManagerFactoryImpl
    Here is the java code for rerfernce:
    // Construct the URL of the XSQL Page
    URL pageUrl = new URL("file://"+ContextPath+"invoice_html.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    // Setup a Hashtable of named parameters to pass to the request
    Hashtable params = new Hashtable(1);
    // pass the invoice value
    params.put("Invoice",rs.getString(3)); //Invoice Id
    // Create a invoice file
    File invoiceFile = new File(rs.getString(7)+rs.getString(3)+rs.getString(5));
    // Create an Output Stream
    FileOutputStream outStream = new FileOutputStream(invoiceFile);
    // Filter bytes to ASCII
    PrintWriter out = new PrintWriter(outStream);
    // Generate a HTML invoice for each account
    req.process(params, out, new PrintWriter (System.err));
    // Close the PrintWriter
    out.close();
    Any Solution or comments will be really appricated.
    Thanks
    Mohammad

    I have fixed the problem.

  • XSQL-003 Error with jakarta-tomcat-4.0.3

    I am trying to set up the XSQLServlet on JBuilder7 using jakarta-tomcat-4.0.3 as the development server.
    I downloaded and carefully follwed the installation instructions for Tomcat 3.1 and 3.2 although the bat files have changed considerably. Set classpath in setclasses.bat and prescribed in instructions. Setup a context in server.xml for /xsql and setup a web.xml file to map oracle-xsql-servlet to *.xsql. Also tried mapping to *.xsql in web.xml for my application, but I continue to get the XSQL-003 error; "failed to find XSQLConfig.xml in the server classpath". I checked the discussion forums and tried jarring the XSQLConfig.xml file and set that in the server CLASSPATH. Still no luck.
    My question: Are there any installation instructions for installing the XSQLServlet on Jakarta Tomcat 4.0.3?
    Tomcat can't find the XSQLConfig.xml file or there is some other problem that is throwing this exception.

    Hey man, i have the same problem, what should I do?
    I can`t define the classpath when I run the server as service, but it works when i run manually starup.bat, because there i have defined the classpath.
    Please, give me an advice
    Thanks...

  • Can not run helloworld.xsql on Netscape. Enterprise Server 4.0 SP4?

    We are running //...//oracle.xml.xsql.XSQLServlet/helloworld.xsql on Netscape. Enterprise Server 4.0 SP4 on UNIX and getting the following message
    XSQL-003: Failed to find 'XSQLConnections.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: demo
    XSQL-007: Cannot acquire a database connection to process page.
    We have tried to put XSQLConfig.xml in every where that the Server suppose to find, but returned with the same error message. We don't know what we can do next. Can any of you give us some suggestion? Besides, we also have following questions:
    1. How do you treat XSQLConfig.xml inside of your source code? Which path does it search?
    2. Is the file XSQLConfig.xml all lower case or case mixed inside of your code? Because when we extract downloaded file on UNIX machine, it returns with xsqlconfig.xml, but on WINNT, it was XSQLConfig.xml. Which one is right? However, in UNIX even we chang it to XSQLConfig.xml, it still does work.
    We are really in dead-end, please help.
    Julie Zhu

    How did you setup the *.xsql mapping to the
    oracle.xml.xsql.XSQLServlet servlet ?
    I don4t know how to do this with Netscape
    Enterprise Server.
    Thanks for your help!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Julie Zhu ([email protected]):
    We are running //...//oracle.xml.xsql.XSQLServlet/helloworld.xsql on Netscape. Enterprise Server 4.0 SP4 on UNIX and getting the following message
    XSQL-003: Failed to find 'XSQLConnections.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: demo
    XSQL-007: Cannot acquire a database connection to process page.
    We have tried to put XSQLConfig.xml in every where that the Server suppose to find, but returned with the same error message. We don't know what we can do next. Can any of you give us some suggestion? Besides, we also have following questions:
    1. How do you treat XSQLConfig.xml inside of your source code? Which path does it search?
    2. Is the file XSQLConfig.xml all lower case or case mixed inside of your code? Because when we extract downloaded file on UNIX machine, it returns with xsqlconfig.xml, but on WINNT, it was XSQLConfig.xml. Which one is right? However, in UNIX even we chang it to XSQLConfig.xml, it still does work.
    We are really in dead-end, please help.
    Julie Zhu<HR></BLOCKQUOTE>
    null

  • XSQL-022 error on using FOP - serializer class not found; urgent!

    Hi all,
    currently using XDK 9.2.0.1.0. On trying to invoke Apache FOP serializer I just get the following error message:
    XSQL-022: Cannot load serializer class oracle.xml.xsql.serializers.fopserializer
    and I really don't know why....
    Running XSQL Servlet within Tomcat 4 Engine, but error pops up using both, Tomcat way and/or just the commandline invoker xsql.bat.
    Generally XSQL Servlet is working correctly.
    My classpath setting contains:
    xmlparserv2.jar; batik.jar; classes12.jar; fop.jar; fopserializer.jar; oraclexsql.jar; sax2.jar; xalan-2.0.0.jar; xalanj1compat.jar; xerces-1.2.3.jar; xschema.jar; XSQLConfig.jar; xsu12.jar
    The serializer being redefined in XSQLConfig is just:
    <serializer>
    <name>FOP203</name>
    <class>oracle.xml.xsql.serializers.fopserializer</class>
    </serializer>
    This is because of using FOP 0.20.3, so having my own serializer class due to API change in FOP 0.20.x; my fopserializer is looking like that:
    package oracle.xml.xsql.serializers;
    import org.w3c.dom.Document;
    import java.io.PrintWriter;
    import oracle.xml.xsql.*;
    import org.apache.fop.messaging.MessageHandler;
    import org.apache.fop.apps.*;
    import java.io.*;
    // FOP 0.20.3 Serializer implementation for XSQL
    public class fopserializer implements XSQLDocumentSerializer
    private static final String PDFMIME="application/pdf";
    public void serialize(Document doc, XSQLPageRequest req) throws Throwable
    try
    Driver FOPDriver = new Driver();
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    MessageHandler.setOutputMethod(MessageHandler.NONE);
    FOPDriver.setupDefaultMappings();
    req.setContentType(PDFMIME);
    FOPDriver.setOutputStream(req.getOutputStream());
    FOPDriver.render(doc);
    catch (Exception e)
    e.printStackTrace(System.err);
    In my XSQL file I'm using the following PI:
    <?xml-stylesheet type="text/xsl" href="listemps.fo" serializer="FOP203"?>
    Any suggestions what is wrong in here ?
    Can't use the original xsqlserializer.jar either - same error.
    Thanks in advance
    Jochen

    Hi Jochen,
    I'm working with Tomcat 4.0.3, FOP 20.0.3 and XDK 9.2.0.1.0, too.
    I've copied all the jar-files into tomcat/common/lib. I think that you can't use the MessageHandler in fop20.0.3. I'm using the following serializer:
    package diva.xml.xsql.serializers;
    import org.w3c.dom.Document;
    import java.io.PrintWriter;
    import oracle.xml.xsql.*;
    import org.apache.fop.apps.*;
    import org.apache.log.*;
    import org.apache.log.format.*;
    import org.apache.log.output.io.*;
    import org.apache.avalon.*;
    import java.io.*;
    public class XSQLFOP203Serializer implements XSQLDocumentSerializer {
    private static final String PDFMIME = "application/pdf";
    private static final String CONFPATH = "/usr/local/fop/conf/userconfig.xml";
    public void serialize(Document doc, XSQLPageRequest env) throws Throwable {
    try {
    // Open user config file
    File userConfigFile = new File(CONFPATH);
    Options options = new Options(userConfigFile);
    // First make sure we can load the driver
    Driver FOPDriver = new Driver();
    // Setup logging
    Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
    PatternFormatter formatter = new PatternFormatter("[%{priority}]: %{message}\n%{throwable}" );
    LogTarget target = null;
    target = new StreamTarget(System.out, formatter);
    hierarchy.setDefaultLogTarget(target);
    Logger log = hierarchy.getLoggerFor("fop");
    log.setPriority(Priority.INFO);
    FOPDriver.setLogger(log);
    // Then set the content type before getting the reader/
    env.setContentType(PDFMIME);
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    FOPDriver.setOutputStream(env.getOutputStream());
    FOPDriver.render(doc);
    catch (Exception e) {
    // Cannot write PDF output for the error anyway.
    // So maybe this stack trace will be useful info
    e.printStackTrace(System.err);
    Hope this helps
    Uwe

  • XSQL and MS Access

    I am attempting to connect to an Access database using XSQL. I believe I have everything set correctly.
    <connection name="test">
         <username>test</username>
         <password>test</password>
         <dburl>jdbc:odbc:mytest
    </dburl>
                   <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
         <autocommit>true</autocommit>
    </connection>
    <xsql:query connection="protech" xmlns:xsql="urn:oracle-xsql">
    SELECT * FROM tblTest
    </xsql:query>
    However, I get a resulting,
    <<Oracle XSQL Servlet Page Processor 1.0.4.3 (Production)
    <<XSQL-007: Cannot acquire a database connection to <<process page.
    <<[Microsoft][ODBC Driver Manager] Data source name not <<found and no default driver specified
    The message is a little confusing because it says there is no dataset with that name and there is not driver. I know there is an odbc-connection setup on the machine with the name "mytest". As for the driver. Do I need to set it in my classpath somewhere? If so where? In Catalina.bat?

    Kevin,
    Assuming I have an ODBC datasource on my local machine called ecdcmusic, the following works for me:
    <connection name="test-access">
    <username>admin</username>
    <password></password>
    <dburl>jdbc:odbc:ecdcmusic</dburl>
    <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    Good Luck,
    Charlie

  • How to Run XSQL on the web

    I am having problems running my .xsql file on the web using JRUN. I have set the classpath and was able to run the xsql file from the command line and also was able to get the xml output. But here is the error that i get when i try to execute the same file on the web using the below URL.
    http://someserver.com/servlet/xsql/demo/helloworld/helloworld.xsql
    500 Internal Server Error
    xsql:
    Could not load servlet
    Could any one give some pointers about how to set up environment in JRUN on Solaris5.7 to run the xsql.

    Hi Steven,
    I read the installation / configuration documentation at http://technet.oracle.com/tech/xml/xsql_servlet/htdocs/relnotes.html#ID175 . It is very helpful. I ahev a question about how to map .xsql in JRUN as i dont have admin permissions on JRUN. Is there way i can setup in my environment or in the code itself. Please let me know.
    Thanks,
    Shivaji.

Maybe you are looking for

  • Excel save as pdf hangs when launched through a watch folder

    Hi there, I've configured a watch folder to launch a batch file which launch a .exe file I've written in C++ In this application I launch Excel which open a .XLS document which contains macros. At the end of the computations there is a macro which sa

  • Where can I obtain the AHT on disk for my Mac Pro 4.1?

    Where can I obtain a disk (iso) of the AHT for my Mac Pro 4.1 (latest OS X Yosemite) that I am busy upgrading?

  • Computer died, need to get sync on different computer

    my piece of crap laptop finally died and it had all my music on it. The other computers we have both are synced with other ipods. How do I get my music on another itunes without giving an ipod their music, getting theirs, or completly erasing my own?

  • N96 firmware problems

    hi all, sorry if this has been asked over and over, but any help with this will be great! I recently got my 2nd n96 (lol dont ask) and decided to try upgrade the firmware before i fill it with contacts and such, I am currently using v 11.018, and hav

  • Editing an Outbound Idoc and resending

    Hello all, I have looked but can't find the answer to my questions. I have an outbound idoc (invoice) - I have used BD87 to edit the idoc.  the idoc is now in a status of 32. How do I resend this idoc? when I hit process I am taken to a screen showin