How To Install XSQL Servlet
I am an ORACLE DBA for Schlumberger/GeoQuest. I am trying to evaluate the the use of XML with ORACLE functionality for our department.
When installing the product following the instruction, it fails, which is understandable. Because the xsql-wtg.bat file has the following two params hardcoded:
set JAVA=J:\java1.2\jre\bin\java.exe
set XSQL_HOME=C:\xsql
I know that I do not have such path on my machine at all. The document claims that the Web-to-go is bundled with software download. I assume that the file "java.exe" is some where under the downloaded area. Or do I miss something? What should I do to get it going? Do I have to install a web server like OAS or Apache or Web-to-go? Or do I have to install Jre1.2 somewhere?
Thanks for your help,
Yue Wang
null
The xsql-wtg.bat file has the comments:
REM ----------------------------------------------
REM Set the 'JAVA' variable equal to the full path
REM of your Java executable.
REM ----------------------------------------------
So you'll need to set the 'JAVA' variable
equal to the full path of your Java executable.
you'll need a Java JDK 1.1.8 or 1.2.2
installed to run it.
Similar Messages
-
Help Install XSQL servlet on OAS 4.0.8.1
We are having difficulties installing XSQL Servlet on our Oracle Application Server (4.0.8.1). Is there any documentation on how to complete this installation?
Thanks in advanceBugs in 4.0.8.1 make running the XSQL Servlet unreliable with that release.
I'd suggest trying the 4.0.8.2 release or using a combination of Apache + JServ to work with XSQL Servlet.
Thanks. -
How to configure XSQL-Servlet with Weblogic 6.0
Hi,
what are the steps to configure the xsql-servlet? I downloaded ora xdk 9.2 and getting the following error when requesting demo via url= http://localhost:7001/xsql/home.xsql:
Oracle XDK Java 9.2.0.6.0 Production
XSQL-001: Cannot locate requested XSQL file. Check the name.
In general, I can't run either demo that came with XDK... please help!
Vipul,
Can you try adding them as the first entry in the classpath in the
startWebLogic.smd file.
Raj Alagumalai -
How to Install XSQL On Apache 1.3.12 Tomcat 3.1 ?
We are trying to install the XSQL 1.0.0 Servlet to the Apache 1.3.12 With Tomcat 3.1 (production verion) on Solaris 2.6 platform. We followed the instructions on the XSQL Release Note. However, it does not work. More specifically, we modified the tomcat.sh file under the <APACHE_HOME>/ext_app/apache_1_3_12_tc_3_1/bin directory, to add the correct CLASSPATH for the XSQL Java classes. Then we edited the "sever.xml" file under the ../conf directory to add the Context for xsql. When we re-started the Web Server, we could see that the path for the XSQL were set in the CLASSPATH. However, the Web Server did not pick up the *.xsql files at all. What kind of problems could it be?
One observation we had on the "server.xml" file was, there is no "Context" entry at all, not like in the examples given by the Release Note, where you might (by default) have already got /example. /test. /admin, context in the file.
Our experience with the XSQL product is very frustrating at the moment, please help.
Thanks,
nullI am going to have to look into this and get back to you. I will do so and get back to you ASAP.
Thanks for your patience,
-Kishore -
How to install a servlet on weblogic ??
Hi : (I have Weblogic Server 6.0 on Redhat 6.2)
I have a simple servlet from bea tutorials :
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HelloWorldServlet extends HttpServlet {
public void service(HttpServletRequest req,
HttpServletResponse res)
throws IOException
// Must set the content type first
res.setContentType("text/html");
// Now obtain a PrintWriter to insert HTML into
PrintWriter out = res.getWriter();
out.println("<html><head><title>" +
"Hello World!</title></head>");
out.println("<body><h1>Hello World!</h1></body></html>");
where i put the compiled class ¿?¿?
can i do this on live ¿?¿?
how can i do to "execute" my simple servlet ¿?¿?¿?
i'm very new to WL .
A simple HelloWorld does not work ¿?¿?
I'm impressed for the difficulty of WL , i am looking for
change all to Tomcat or JRUN or so ...
Thanks
This is a very basic servlet and deploying it to WL is actually pretty
straightforward. Before you abandon WL, go to:
http://e-docs.bea.com/wls/docs61/servlet/introprog.html#134557
This example will take you step-by-step through the process...
email me directly if I can help!
Rob
"Victor" <[email protected]> wrote in message
news:[email protected]...
> Hi : (I have Weblogic Server 6.0 on Redhat 6.2)
> I have a simple servlet from bea tutorials :
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
>
> public class HelloWorldServlet extends HttpServlet {
> public void service(HttpServletRequest req,
> HttpServletResponse res)
> throws IOException
> {
> // Must set the content type first
> res.setContentType("text/html");
> // Now obtain a PrintWriter to insert HTML into
> PrintWriter out = res.getWriter();
>
> out.println("<html><head><title>" +
> "Hello World!</title></head>");
> out.println("<body><h1>Hello World!</h1></body></html>");
> }
> }
>
>
> where i put the compiled class ¿?¿?
> can i do this on live ¿?¿?
> how can i do to "execute" my simple servlet ¿?¿?¿?
> i'm very new to WL .
> A simple HelloWorld does not work ¿?¿?
>
> I'm impressed for the difficulty of WL , i am looking for
> change all to Tomcat or JRUN or so ...
>
> Thanks
-
How do I get XSQL Servlet to work with OCI 9i
I'm using the most recent jdbc driver (ojdbc14.jar) that works with jdk 1.4. I'm using a 9.0.1 db, and I'm using xdk for java 9.2.0.3. If I specify an oci driver in the XSQLConfig.xml file, I get the following error with a xsql:query request:
Oracle XDK Java 9.2.0.3.0 Production
XSQL-017: Unexpected Error Occurred
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
Now why does XDK insist to look for ocijdbc8 if I only have ocijdbc9.dll installed on my client? The config file only allows oci8 in the dburl specification, which is probably why XDK insists to look for ocijdbc8, but I CANNOT specify oci9, which would make sense to me, although it's most likely not a valid specification.
<connection name="9ic">
<username>scott</username>
<password>tiger</password>
<dburl>jdbc:oracle:oci8:@</dburl>
<driver>oracle.jdbc.OracleDriver</driver>
<autocommit>true</autocommit>
</connection>
So how do get XSQL Servlet to work with OCI 9i?If you are using the latest Oracle9i JDBC driver, which you should be able to get from OTN, it should look for the DLL with 9 in the name.
Perhaps you have a "stale" JDBC driver somewhere earlier on the classpath?
Steve Muench
JDeveloper/BC4J Development Team
Author, Building Oracle XML Applications -
Problems installing latest XSQL Servlet
After following the instructions for installing XSQL servlet for Apache with Jserv, I get the following error with a simple sql query.
Oracle XSQL Servlet Page Processor 9.0.1.0.0 (Production)
XSQL-017: Unexpected Error Occurred
java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getStatement
at oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc.(OracleXMLDataSetExtJdbc.java:117)
at oracle.xml.sql.core.OracleXMLConvert.initObject(OracleXMLConvert.java:345)
at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:823)
at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:364)
at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:312)
at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:240)
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:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:475)
Can anyone helpI have included the following libs as described in the installation notes
ie in the jserv.properties file I have
# Oracle XSQL
# Oracle XML SQL Utility (XSU)
wrapper.classpath=C:\xsql\lib\sax2.jar
wrapper.classpath=/usr/local/src/xdk/lib/xsu12.jar
# Oracle XSQL Servlet
wrapper.classpath=/usr/local/src/xdk/lib/oraclexsql.jar
# Oracle JDBC (8.1.6) -- JDBC 2.0 driver
wrapper.classpath=/usr/local/src/xdk/lib/classes12.zip
# Oracle XML Parser V2 (with XSLT Engine)
wrapper.classpath=/usr/local/src/xdk/lib/xmlparserv2.jar
# XSQLConfig.xml File location
wrapper.classpath=/usr/local/src/xdk/xdk/admin
# FOR Apache FOP Generation, Add
# wrapper.classpath=C:\xsql\lib\xsqlserializers.jar
# wrapper.classpath=FOPHOME/fop_bin_0_14_0.jar
# wrapper.classpath=FOPHOME/lib/w3c.jar
And in the httpd.conf file I have
Alias /xsql/ "/usr/local/src/xdk/xdk/"
Also in the xml config file
<connection name="promptl">
<username>******</username>
<password>******</password>
<dburl>jdbc:oracle:thin:@192.****:1521:8C</dburl>
<driver>oracle.jdbc.driver.OracleDriver</driver>
</connection>
I think the problem may be with my jdbc file???
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
Have include all the libs like:
# Oracle XSQL Servlet
wrapper.classpath=/private/orahome/lib/oraclexsql.jar
# Oracle JDBC
wrapper.classpath=/private/orahome/jdbc/lib/classes12.zip
# Oracle XML Parser V2 (with XSLT Engine)
wrapper.classpath=/private/orahome/lib/xmlparserv2.jar
# Oracle XML SQL Components for Java
wrapper.classpath=/private/orahome/rdbms/jlib/xsu12.jar
Especially xsu12.jar?<HR></BLOCKQUOTE>
null -
How to install oracle xsql servlet on bea weblogic 5.1
Hi there,
I tried to install oracles xsql servlet (1.0.4.1) on bea weblogic 5.1 without
any success.
in weblogic.properties I started with:
weblogic.httpd.webApp.xsql=c:\\weblogic\\myserver\\servletclasses\\xsql
And in this dir I have WEB-INF with the following web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<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>
</web-app>
So the xsql extension is mapped to the named servlet which is found in a jar file
contained in subdirectory lib.
The problem is that the general mapping of *.xsql extension to specified class
does not work at all. And there are no errors...
Application server just presents me with the content of the xsql file instead
of executing servlet whith the xsql file as input.
Any ideas??
Thanx in advance.
JK
What kind of problem do you have?
If it's not connected with JDBC, you'd better post your question
in webservices newsgroup.
Regards,
Slava Imeshev
"leopld goess" <[email protected]> wrote in message
news:[email protected]..
hy out there.
i've been working with apache soap on wl 5.1 for a while now, and
everything seems to be working allright- as long as i don't try to
install a servicepack, namely sp8 or sp10. if i do that, the entire
soap service fails to deploy.
any ideas...
thanx
leopold -
How to install a new XDK-Java for using XSQL in my Oracle8i?
Hello,
I'am trying to install a new version of XDK Java on my computer to run new features of the XSQL-servlet
(for example the FOP-serializer). Can you please tell me how to insall this XDK, and what files I have to change to run the XDK and XSQL-servlet with my Apache-Server?
Thanks in advance.
MartijnDid you check this out:
http://odiexperts.com/manual-entry-in-odi-driver-list -
How to Create an XML document from XSQL servlet which follows a particular DTD struct
how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.
You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
For example, given an XSQL page like:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
<xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
from site_entry
order by id desc
</xsql:query>and an "rss.xsl" stylesheet that looks like this:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
<xsl:template match="/">
<xsl:for-each select="ROWSET/ROW">
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
<xsl:for-each select="ITEM">
<item>
<title><xsl:value-of select="TITLE"/></title>
<link><xsl:value-of select="URL"/></link>
<description><xsl:value-of select="DESCRIPTION"/></description>
</item>
</xsl:for-each>
</channel>
</rss>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE rss SYSTEM "rss-0.91.dtd">
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss>
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss>
<rss version="0.91">
<channel>
<title>Do You XML?</title>
<link>http://xml.us.oracle.com</link>
<description>Oracle XML Website Demo</description>
<language>en-us</language>
</channel>
</rss> -
How to invke the XSQL Servlet directly
What I am really trying to achieve is the ability to forward an xml document to the XSQL servlet for further processing.
How can I invoke the servlet rather than go via an xsql page and what parameters do I need to pass in order for it to work.
I'm wondering out loud if the new filter capabilities of servlet 2.3 will achieve the desired effect.
Any ideas?You can get the RequestDispatcher and call forward() on it
to forward to an XSQL page. From another one of your posts
it seems you might have already figured this out. :-) -
How to install servlet-2_3-fcs-classfiles.zip???
Hi!
I am using jdk1.3.1_02 and I try to compile a servlet source code. But I got error message
C:\tomcat\webapps\examples\WEB-INF\classes\HelloWorldExample.java:8: package javax.servlet does not exist
import javax.servlet.*;
^
I already unzip the contents of servlet-2_3-fcs-classfiles.zip in my jdk1.3.1_02 directory, but still it doesn't work. Anyone any ideas how to install it properly?When you unzip the servlet, there should be a folder named javax, you can either move that folder to C:\jdk1.3.1_02 and compile the program normally (assuming that you have already defined a ckasspath that contains C:\jdk1.3.1_02). Or, you can add the path to your javax folder to the CLASSPATH environment variable.
V.V. -
How to use ODBC with XSQL servlet??
I want to use VB6.0 to get result from XSQL Servlet. What can I do with it?
Any help will be grateful.
Regards,
Kelly ChenHi,
Perhaps you can create your own trust manager. I've found this example in another newsgroup: (please note that this example trusts everyone, but you can modify the trust manager as you wish)
if (putUrl.startsWith("https"))
//set up to handle SSL if necessary
System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
//use our own trust manager so we can always trust
//the URL entered in the configuration.
X509TrustManager tm = new MyX509TrustManager();
KeyManager []km = null;
TrustManager []tma = {tm};
SSLContext sc = SSLContext.getInstance("ssl");
sc.init(km,tma,new java.security.SecureRandom());
SSLSocketFactory sf1 = sc.getSocketFactory();
HttpsURLConnection.setDefaultSSLSocketFactory (sf1);
m_url = new URL (putUrl);
class MyX509TrustManager implements X509TrustManager {
public boolean isClientTrusted(X509Certificate[] chain) {
return true;
public boolean isServerTrusted(X509Certificate[] chain) {
return true;
public X509Certificate[] getAcceptedIssuers() {
return null;
}Hope this helps,
Kurt. -
ANN: XSQL Servlet 0.9.8.6 Release Available
Oracle is excited to announce the 0.9.8.6 technology preview
release of Oracle XSQL Pages and the XSQL Servlet with major
new functionality.
-----------------[ Download Info ]-------------------
http://technet.oracle.com/tech/xml/xsql_servlet/
Click on "Software" to Download
Click on "Release Notes" for Full Documentation
XSQL Pages are server-side XML templates that make it easy
to exploit the powerful combination of SQL, XML and XSLT to
prototype and deploy dynamic, data-powered sites and web
services.
The XSQL Servlet installs into your favorite Java Servlet
environment and works with your favorite relational database,
making it dead easy to:
-> Assemble XML "DataPages" from multiple SQL Query
Results (including full support for Oracle8i's
richly-structured XML Objects Views), local or remote
XML resources, Stored Procedure Calls, etc.
-> Transform the "DataPages" in the server using XSLT,
optionally using stylesheets that are appropriate to
the requesting client, including the ability to
let the client to the stylesheet processing for IE5
or other clients in the future that support this.
Our online support forum for XML is at:
http://technet.oracle.com/support/bboard/discussions.htm
The XSQL Servlet demos (included in the release) are
installed on Oracle's OTN site and can be tested from the
comfort of your browser before you download if you choose:
http://technet.oracle.com/tech/xml/demo/demo1.htm
This new 0.9.8.6 release includes...
More Documentation
==================
More extensive documentation and new tutorial material.
New Demos
=========
New and enhanced demos with additional notes describing key
points each demo is trying to illustrate.
New API's and JavaDoc
=====================
Programmatically process XSQL Pages from your own Java
programs using a new XSQLRequest object, as well as write
custom page "action handlers" with new JavaDoc and
example code.
New Features
============
<xsql:query>
The <query> element from previous releases is now part of
the xsql namespace and is referred to using the new
<xsql:query> syntax in your XSQL Page. A new section details
how to use <xsql:query> to produce XML query results with
nested structure.
<xsql:dml>
Do DML and call stored procedures anywhere you need to in
your XSQL Pages.
<xsql:stylesheet-param>
Use parametrized XSLT Stylesheets and set the stylesheet
parameter values from your XSQL Page.
<xsql:insert-request>
Automatically insert posted XML or HTML Form parameters into
the database.
<xsql:include-xml>
Include arbitrary XML resources at any point in your page by
relative or absolute URL.
<xsql:include-request-params>
Include key information like HTTP Parameters, Session
Variable values and Cookies into your XSQL Page for
addressing them in your stylesheet.
<xsql:include-xsql>
Include the results of one XSQL Page at any point inside
another. This allows sophisticated combinations of multiple
XML data sources and multiple XSLT transformations.
<xsql:include-owa>
Include the results of executing a stored procedure that
makes use of the Oracle Web Agent (OWA) packages inside the
database to generate XML.
<xsql:action>
Invoke a user-defined action handler, implemented in Java,
for executing custom logic and including custom XML
information into your XSQL Page.
nullThat error message is outdated and should read:
Cannot find XSQLConfig.xml in your server-side classpath. The error is definitely that it's not finding XSQLConfig.xml on your classpath. The likely cause is that you did not add the directory:
./xsql/lib
to your CLASSPATH in the JRun Servlet Engine Java environment. -
## NEW XSQL Servlet 0.9.9.1 OUT TODAY ##
The new release of XSQL Pages and the XSQL Servlet is out today here on OTN. For complete information on what's new, and a much-improved "how to install" section, see:
http://technet.oracle.com/tech/xml/xsql_servlet/htdocs/relnotes.htm
The brand-new, unified demo, on-line help system is also staged on the live server at:
http://technet.oracle.com/tech/xml/demo/demo1.htm
and is included in the release. It's all built using XSQL Pages and XSLT stylesheets.
Lot's of new features and enhancements based squarely on all of YOUR feedback, here on the OTN XML Forum.
Keep the questions and suggestions coming.Richard,
I have just applied patch to upgrade from Portal 3.0.9 to 3.0.9.8.1 (Patch applied to loginserver and portal schema) and the External Applications that were previously set up have gone from the portlet.
Does this relate to your note at the bottom:
"Minor issues with Bulk action. 1840420 CUSTOM WRITTEN EXTERNAL AUTH MODULE NEED TO BE UPDATED AFTER 3.0.9 UPGRADE SSOXOID.PKB DOESN'T LOAD.
External authentication modules that were written before 3.0.9 need to be updated after upgrading to 3.0.9. ssoauthx.pks is updated in 3.0.9 and contains additional routines that need to be implemented." ??
If I go to the "Login Server Administration" portlet and select the link "Administer External Applications" I get a list of 5 External Applications that have previously been set up.
If I go back to the Home Page and select "customize" on the "External Applications" portlet I get the message "Your Login Server administrator has not registered any external applications".
Does that mean I should just run 'ssoauthx.pks' & 'ssoxoid.pkb' or do I need to do something else ??
Thanks
Simo
Maybe you are looking for
-
Anything available to connect itunes with home stereo?
i would like to be able to play itunes in one room while my home stereo plays the same track in a different room... is there anything out there that would allow me to do this?? i already have a dock for my ipod... but looking for something that allow
-
Post Incoming Payments - Transaction F-28
Hello all, I need to post Incoming payments from a certain flat file. Is there any standard BAPI or FM which does post the Incoming payments in F-28. Thanks in advance. Regards, Arun
-
Human task's payload saved in which table
Hi, All, Every human task have a record in table wftask, but where the payload saved to ? Thanks.
-
Sad day, I have to go back to my BlackBerry Torch 9810
Help needed. I have a BlackBerry Z10 but have to switch back to my TORCH 9810. I'm trying to find a way to switch back but BB Link won't work, Desktop Manager either. Does anyone know how I could proceed, I kinow I'll lose a few things but I would li
-
Tuxedo 9.1 install errors with InnovationTargetException Java Error
Hi Everyone, I have weblogic 9.2, tuxedo 9.1 and tools 8.49 installed on my Vista machine with no problems. Now another guy at the office is trying to install and when he trys to install tuxedo it pretty much closes immediately with the innovationtar