OAS 4.0.8 and XSQL Servlet
Are there any instructions for configuring OAS 4.0.8 to work with
the XSQL Servlet ? I've been trying unsuccessfully for a week.
null
Jason Bennett (guest) wrote:
: Are there any instructions for configuring OAS 4.0.8 to work
with
: the XSQL Servlet ? I've been trying unsuccessfully for a week.
At the moment I feel there is no way to do that. Youe have to
use Apache and Jserv if you really need it now.
Karl
null
Similar Messages
-
Oracle's XML Publisher in JDeveloper and XSQL Servlet
A While ago, in this thread JDeveloper 10g, XSQL and FOP , was mentioned an ongoing effort for the "integration of Oracle's XML Publisher in JDeveloper and XSQL Servlet", Is this still happening ?, will this be something will be able to use without having to be an Oracle Apps shop? Any additional info would be appreciated.
Hi,
is there any progress about XML publisher integration with JDeveloper. I'm right now examining XML publisher but there is no explicit directions and explanations of using XML publisher with jdeveloper.
any news !?
best regards...
--barisk -
Has anyone configured the XSQL Servlet to run with Weblogic? Is so, could you explain the set-up?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Brent Gardner:
Has anyone configured the XSQL Servlet to run with Weblogic? Is so, could you explain the set-up?<HR></BLOCKQUOTE>
I4m still having problems with this, but maybe it4s not weblogic.
However, at least you need to modify the web.xml file for your web applicaition, as to register the servlet.
null -
XML SQL Utility or XSQL Servlet ?
Hi,
I am trying to generate a well formed XML file by querring from oracle8i database and also include different XSL files to render different output styles.
Should I use XML SQL Utility or XSQL Servlets ??
From the documentation I see that both XML SQL utility and XSQL servlets will do the job(am I right ?). But I am sure which one I should be using.
Can any one advice me on this ?
Thanks.
Kane"HI u have to use XML SQl utility to run ur SQL and ur sqlservelet to process and get the output in the browser"
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kane:
Hi,
I am trying to generate a well formed XML file by querring from oracle8i database and also include different XSL files to render different output styles.
Should I use XML SQL Utility or XSQL Servlets ??
From the documentation I see that both XML SQL utility and XSQL servlets will do the job(am I right ?). But I am sure which one I should be using.
Can any one advice me on this ?
Thanks.
Kane<HR></BLOCKQUOTE>
null -
Does the XSQL servlet support dynamic SQL? Take a stock screening page as an example. In this example you want to dynamically build the where clause based on user input. Thus if a Minimum PE Ratio of 3 was entered, the where clause of "where PE_Ratio >= 3" would be appended to the query. In this case there may be up to 20 different parameters or more to be mapped dynamically, so it wouldn't be feasible to nest all of the different combinations.
XSQL Supports lexical substitution parameters
so any and every part of any query can be parameterized.
The extreme case is:
<query> {@sql} </query>
where the entire query is passed in
in a parameter (named "sql").
But any combination of parameters
and substitutions is legal and can
be used to do what you want.
Since the variables are not BIND
variabled, but instead lexical
substitution variables, you can
do things like:
<query>
select {@collist}
from {@table}
where {@where}
order by {@orderby}
</query>
You can provide default parameter values
using XML attributes on the <query>
element which then can be overridden
if a value is passed in in the request...
<query collist="ename, sal"
orderby="sal desc"
where="1=1"
from="dept">
select {@collist}
from {@table}
where {@where}
order by {@orderby}
</query>
And then a request to the page
can pass in a orderby=decode(comm,null,1,0)
or something to override the defaults.
null -
Forms and reports 10g : enable xsql servlet
Please, how can I enable a XSQL Servlet on "Forms and reports AS 10g : 9.0.4"?
I have added xsql <servlet> and <servlet-mapping> info to global-web-application.xml.
I have copied XSQLConfig.xml file to $ORACLE_HOME/j2ee/home/default-web-app/WEB-INF/classes.
But if I run any xsql script from xsql demos, I will get some result as xml : (<?xml version="1.0" ?>
<xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">SELECT name, origin FROM location loc WHERE loc.origin.x = {@x-coord}</xsql:query> )
=> xsql servlet doesn't work !
Help me?Certification information is pulished on metalink.oracle.com
Regards
Grant Ronald
Forms Product Management -
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. -
Diferent querries and flow control in xsql servlets
My question is if i can make a flowcontrol in an xsql servlet.
For example I want to use different querries depending on an attribute which is delivered by an xsql querry.
For shemata example:
<query>
select a from table a
</query>
if a=abc
<query>
select b from table b
</query>
if a=def
<query>
select c from table b
</query>
Is such a thing possible or should i use a PL/SQL block in the xsql Servlet.
Thanks for your answers
AndreasFor a fully-worked example, illustrating how to use <xsql:ref-cursor-function> to programmatically determine a dynamic query, see Chapter 17 of my Building Oracle XML Applications book.
The basic technique is illustrated by the following procedure:
CREATE OR REPLACE PACKAGE App IS
TYPE ref_cursor IS REF CURSOR;
FUNCTION HotItems(userid VARCHAR2) RETURN ref_cursor;
END;
CREATE OR REPLACE PACKAGE BODY App IS
FUNCTION HotItems(userid VARCHAR2) RETURN ref_cursor IS
the_cursor ref_cursor;
my_sal NUMBER := 1;
query VARCHAR2(2000);
BEGIN
IF UPPER(userid) = 'STEVE' THEN
query := 'SELECT ename, sal FROM EMP WHERE ROWNUM < 4';
ELSE
query := 'SELECT dname, deptno FROM DEPT WHERE ROWNUM < 2';
END IF;
OPEN the_cursor FOR query; /* USING var, var, var */
RETURN the_cursor;
END;
END;
/Using <xsql:ref-cursor-function>, depending on the values that you pass to the App.HotItems() function, you'll either get back EMP data or DEPT data. -
OAS 4.0.8 and RDMBS 8.0.5 - would it work?
hi !
never heard of release 8.0.6 for linux, so
i'm really surprised to hear/read this one
is required for oas 4.0.8 as the DB engine.
did somebody try to run it with 8.0.5 ?
honestly, i don't feel like setting up 8.1.5,
i'd rather stick to my 8.0.5.1 EE running
quite OK.
cheers
max
nullJason Bennett (guest) wrote:
: Are there any instructions for configuring OAS 4.0.8 to work
with
: the XSQL Servlet ? I've been trying unsuccessfully for a week.
At the moment I feel there is no way to do that. Youe have to
use Apache and Jserv if you really need it now.
Karl
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 -
Query handled OK on Oracle server but XSQL Servlet raises OracleXMLSQLException
After dropping and recreating certain object types, and then using ALTER TYPE on an object dependent on those object types, XSQL Servlet raises exception for a query that is handled fine in the Oracle Server itself (ie, in SQL*Plus) as in the following test case:
create or replace type o_object_inner as object( char1 char(1) )
create or replace type n_nested_table as table of o_object_inner
create or replace type o_object_outer as object (nNestedTab n_nested_table)
For above, the following query encounters no problems on Oracle Server or in XSQL servlet:
Select o_object_outer(NULL) as "theOuterObj" from dual
But then if object types are modified as follows:
drop type o_object_inner force
create or replace type o_object_inner as object( char1 char(1) ) --same as above
drop type n_nested_table force
create or replace type n_nested_table as table of o_object_inner --same as above
alter type o_object_outer compile
The above query now encounters no problems in SQL*Plus but generates exception in XSQL servlet as follows:
oracle.xml.sql.OracleXMLSQLException: Internal Error: Unable to resolve name
More complex cases generated the above exception and/or the following exception:
oracle.xml.sql.OracleXMLSQLException: Internal Error: Invalid ADT attribute
Any insight or help would be greatly appreciated!
Other info:
Oracle Server 8.1.7.3 on HP-UX
XDK 9.2.0.1 (Production) for Java on NT
JDBC/OCI8 drivers for NT (latest for 8.1.7)Yes,
I changed most of the cursor functions to cast(multiset()). Sometimes i divided a big query into two or three queries (when there was cursor nested in a cursor). It was one day work for me. Don't forget to change the tags with ROW to ITEM in your xsl-stylesheets.
Uwe -
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. -
Oracle XSQL Servlet Parse Error when anchoring a link to an image
I have a database of document links that I wish to portray in a table as graphic images. In other words, each image is a hypertext link to the document.
From my HTML 101 I used to do this as follows:
<IMG SRC="image.gif">
Note, no </IMG> end tag, but this produces an image that I can click to access that document. Lousy form, but it works.
When I run my XSL with corresponding XSQL file to create the HTML file I get the following Servlet Parse Error:
Oracle XSQL Servlet Page Processor 1.0.1.0 (Production)
XSQL-006: XSLT stylesheet is not well-formed: ucmDatabase3.xsl
XML parse error at line 66, char 15
End tag does not match start tag 'img'
I then added the </IMG> end tag,
<IMG SRC="image.gif"> </IMG>
which satisfies the parser, but now I get my graphic image AND the underlined linked text together in the same table cell, which SUCKS...
Is there a way around this madness?
Thanks for your comments..
Jon Kotas
Boeing
Canoga Park, CARemember that an XSLT stylesheet is, in particular, a well-formed XML document. In a well-formed XML document, you
cannot have an unterminated element like:
<foo>
<bar> <!-- This elemenent is not closed correctly -->
</foo>So, in your example, you're running into the problem with
your <IMG> tag, since you have:
<A>
<IMG src="..."> <!-- This elt is not closed correctly -->
</A>You just need to close the IMG tag by changing the closing > to /> instead, like this:
<A>
<IMG src="..."/> <!-- This elt *IS* closed correctly -->
</A>When it's written out to the browser, you'll see that the
trailing slash will be removed, so the browser will be
happy, too. -
XSQL servlet behave strange in Websphere 5.1 but not in Jboss/tomcat
Hi, we have been using XSQL Servlet (come with 9i) in jboss for a few years without any problem.
(The oracle database is 10g, but I don't think this is related since the XSQL use jdbc connection.)
Recently we try to migrate the app server to websphere app server 5.1 and the majority of xsql scripts work fine (still using the original xdk/xsql jars)
But for a few with xsql script using:
<xsql:include-request-params xmlns:xsql="urn:oracle-xsql"/>
it works for simple test xsql script with just this line at the very begining.
Then I switch to a more complicated xsql with other lines such as: update-request, delete-request, it throws exceptions all the time, and after that the simple test script also breaks.
Here is the exception in the xml returned:
<request>java.lang.NullPointerException at oracle.xml.xsql.XSQLHttpUtil.HttpRequestAsXMLDocument(XSQLHttpUtil.java:116) at oracle.xml.xsql.XSQLServletPageRequest.getRequestParamsAsXMLDocument(XSQLServletPageRequest.java:382) at oracle.xml.xsql.actions.XSQLIncludeRequestHandler.handleAction(XSQLIncludeRequestHandler.java:39) at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:149) at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:140) 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 com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)</request>
Could this be a bug?
Did anyone have a clue?
I also tried to use the xdk for 10g, but the library doesn't work with WAS 5.1 somehow, it complains about:
javax.xml.namespace.QName: method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found
Really appreciate your help.
Kai.The fact that XSQL servlet works in other containers suggests that this is WS problem, not the servlet problem. Probably some misimplementation of a deprecated method or something. What is exact version of XSQL servlet? Have you tried with the latest 9.2.0.9 production that comes with 9.2.0.7 db patch set? If you did and the error persists, does the error stack match the one posted (line numbers are of particular interest?)
-
Setting up the XSQL Servlet engine
I am trying to set up the XSQL servlet component of 9iAS. From what I read all of the necessary components are included in 9iAS, there is no need to download the XSQL servlet from technet. Is this true? I try to run the demo's (e.g. hello world) but am always getting a connection refused error. I edited the XSQLConfig.xml file to include the host, port and sid but still no luck.
I am at a loss. I have 8.1.7 SE database installed with JDBC drivers, 9iAS 1.0.2. Is this all I need or do I have to download something else.Steven,
Thanks for responding. I am a DBA so I'm only 50% incompetent. The 9iAS version is 1.0.2.1.0 Solaris and the DB is 8i SE, right now on the same Solaris box. The Jserv and JSP demos on the initial install home page work fine and I was able to get Oracle Portal running etc. so I think the Server is working. When I check the installed products for the DB I see several JDBC drivers appear to be installed.
segmet from XSQLConfig.xml:
<connection name="demo">
<username>scott</username>
<password>tiger</password>
<dburl>jdbc:oracle:thin:@192.100.146.22:1521:NPGSDEV</dburl>
<driver>oracle.jdbc.driver.OracleDriver</driver>
</connection>
I can connect scott/tiger@npgsdev in sqlplus as well as tnsping npgsdev and the port is 1521 so the tnslistener is up and running.
I can call up the demo page at: http://192.100.146.22:7777/xsql/java/xsql/index.html
but any attempt to run them gives:
Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
XSQL-007: Cannot acquire a database connection to process page.
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Any help would be greatly appreciated. -quinn
Maybe you are looking for
-
Video is not displaying in the latest shockwave
After updating to the latest version of Shockwave, .flv videos are not displaying. The audio is there but no video. What is going on Adobe?
-
Moving completed iMovie projects to an external harddrive
I have imported some of our home videos to iMovie and edited them to consolidate. I now have a roughly 2 hour project that I would like to move to an external harddrive to free up space. I am also deleting the "events" (the converted home movies that
-
Is there any BAPI or FM to authorization object to user in ABAP program??
Hi guys. My requirment is to assign authorization object to user in ABAP program,is there any FM OR Bapi to do this?
-
Add Closed Captions to Podcast
How can I add closed captions to a video podcast? Is there an rss tag you use? How do you do it?
-
Can not access DTR via NetWeaver Developer Studio
Hi all, I'm able to access DTR in the browser with this URL : http://<servername>:50000/dtr That's good. Now ... I specified the same DTR server URL when creating a new DTR client in NWDS. When I tried to log on it says : Ping on server http://<serv