Weblogic and XSQL Servlet
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
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 -
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.
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 -
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 -
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 -
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 -
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 -
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 -
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. -
XSQL und BEA Weblogic ERROR:XSQL-013
We develop an web-application using XSQL to generate XML, which is further transformed via XSL to HTML or PDF.
As IDE we use JDeveloper 9.0.3.1.
Running and debugging in JDeveloper works fine.
We deploy the application as war-file on bea weblogic 7.2.
When starting the xsql-servlet / calling the xsql file we get the following error:
Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
XSQL-013: XSQL Page URI is null or has an invalid format.
XSQLConfig is located in:
WEB-INF\classes\XSQLConfig.xml</li>
XSQLConfig remains untouched and holds the right connection (OCI)
<connection name="KimOci">
<username>...</username>
<password>...</password>
<dburl>jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=...)(PORT=...)))(CONNECT_DATA=(SID=...)))</dburl>
<driver>oracle.jdbc.driver.OracleDriver</driver>
</connection>
XSQL-File starts with
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
<xsql:include-request-params/>
<xsql:include-param name="ImageUrl"/>
<xsql:include-param name="BaseUrl"/>
<xsql:include-param name="LocalUrl"/>
<xsql:query max-rows="-1" null-indicator="no" tag-case="lower" rowset-element="global" row-element="date">
select ...
Whats wrong or missing?
ThanksTrying to check whats going on within the XSQL-Prozessor we tried the programmatic approach.
First step is to call XSQL from within an action /jsp .
<%
String baseUrl = request.getScheme()
+ "://"
+ request.getServerName()
+ ":"
+ request.getServerPort()
//+ "/"
+ request.getContextPath()
+ "/"
URL pageUrl = new URL(baseUrl+"report/untitled2.xsql");
XSQLRequest req = new XSQLRequest(pageUrl);
PrintWriter of = new PrintWriter( new FileOutputStream("./report.xml"));
PrintWriter ef = new PrintWriter( response.getOutputStream());
Hashtable params = new Hashtable(0);
req.process(params, of, ef );
%>
But still there is an error.
This time we got:
Oracle XSQL Programmatic Page Processor 9.0.3.0.0 (Production) XSQL-005: XSQL page is not well-formed. XML parse error at line 2, char 1 Expected 'EOF'
The code of untitled2.xsql
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
<amen>leer</amen>
</page> -
Hi!
I have a question: I would like to use Oracle's XSQL servlet. I have a .xsql file
which calls a function and returns a data in XML format. Now how can I use this
in weblogic using webservices?
Anybody has an idea?
Thanks in advance
..MadhuriCurrently, WebLogic Web Services only use Stateless Session EJBs (for RPC-style)
and JMS destinations (for Message-style). You can, of course, deploy other Web
Service Platforms (i.e. Apache SOAP, GLUE, WASP, etc.) on WLS 6.1 and use them
;-) They usually support using POJOs (Plain Old Java Objects) as Web service implementations.
Is there some reason why you just aren't using the XSQL stuff by itself? It seems
to be designed specifically for making SQL queries over HTTP, using XML ;-) Why
do you need to create a Web service to "front-end" this capability? Seems like
extra overhead (i.e. SOAP message processing, etc.) with no real "value-added",
if you know what I mean ;-) Is it because you want (or need) to introduce a "layer"
or facade pattern for XSQL, or something?
Regards,
Mike Wooten
"Madhuri" <[email protected]> wrote:
>
Hi Mike!
Thanks for the help. Is there any other way, I mean without using EJBs
can I achieve
the task?
...Madhuri
"Michael Wooten" <[email protected]> wrote:
Hi Madhuri,
Unfortunately, it sounds like you will need more help than I can offer
at this
time. From your original post, I was under the impression that you knew
about
EJBs, Java XML parsers/XSLT processors, etc. I scoped out XSQL a bit
more, and
it looks like fairly powerful technology, but it requires knowledgeof
XML/XSLT.
Personally, I think you might need some "training" help to create aXSQLService
with a WebLogic Web Service ;-) If you don't have time for that, perhaps
you can
search the Web for example code, and start from there.
Regards,
Mike Wooten
"Madhuri" <[email protected]> wrote:
Hi Mike !
Do you have any sample code for the EJB where the method that accepts
an org.w3c.dom.Element
(or org.w3c.dom.Document) as a parameter, and returned the same, asI
am new for
the EJB or direct me the link where I can get info.. I really appresite
your help.
Thanks
..Madhuri
"Michael Wooten" <[email protected]> wrote:
Yeah, that's what I thought ;-)
If you want the party that submitted to wait while the XSQL file isbeing
processed,
you'll want to build a RPC-style WebLogic Web Service, using the Literal
XML encoding
style. For this, you would have the Stateless Session EJB that actsas
the entry-point
into your Web service "implementation", have a method that accepts
an
org.w3c.dom.Element
(or org.w3c.dom.Document) as a parameter, and returned the same. The
remote interface
for this SS would look something like this:
public interface XSQLService extends javax.ejb.EJBObject
public org.w3c.dom.Element process(org.w3c.dom.Element xsqlParameters)
throws
java.rmi.RemoteException, org.xml.sax.SAXException;
From the information posted on Oracle's OTN site, the .xsql file(s)will
live
on the "server side", so all you need the Web service client to send
is the parameters
for the .xsql, right? That's why I called the input argument "xsqlParameters"
in the method signature above ;-) Okay, so now we need a way for the
client to
tell us which .xsql file to use, right? If the client knows this,
it's
probably
simpler if they put that in the parameter file too! So using the flighFinder
example
on OTN, that leaves us with a parameter file that looks kind of like
this:
<query uri="fly.xsql" stylesheet="none">
<parameters>
<FROM>LAX</FROM>
<TO>SFO</TO>
</parameters>
</query>
The implementation for the process(org.w3c.dom.Element xsqlQuery)method,
is where
you want to create the java.net.URL and java.net.URLConnection toconnect
to the
actual XSQL Servlet, I think. You could them use the getOutputStream()
method
on URLConnection, to get the XML returned by the XSQL Servlet, andmake
it the
return value. Knowing Oracle, they have defined a MIME-type extension
for xsql,
which is how they can "automagically" route http://localhost:7070/fly.xsql
to
the XSQL Servlet. Anyway, I haven't worked with XSQL Servlet before,
but I would
hope it is just a J2EE Web Application (.war file) that can be deployed
into WLS.
If so, it should be relatively simple to do what you want to do.
Regards,
Mike Wooten
"Madhuri" <[email protected]> wrote:
Hi Mike, Thanks for your prompt reply. I would like to send the XSQL
file to a
Web Service, and have it send it to the Oracle XSQL Servlet for processing.
As
XSQL Servlet processes SQL queries and outputs the result set as
XML,and
servlet
takes an XML file containing embedded SQL queries (XSQL file), asits
input. It
returns the data in XML format and that's what exactly I would liketo
do.
Thanks ..Madhuri
"Michael Wooten" <[email protected]> wrote:
Hi Madhuri,
What kind of WebLogic Web Service do you want to use? Document-oriented
(i.e.
where you pass in an XML document/well-formed fragment), or RPC-style
(i.e. where
you pass in function arguments)? What does the client pass to the
Web
Service?
What, if anything, does it get back?
From what I know, the Oracle XSQL Servlet processes SQL queries
and
outputs
the
result set as XML. This servlet takes an XML file containing embedded
SQL queries
(XSQL file), as its input. Do you want to send the XSQL file to
a
Web
Service,
and have it send it to the Oracle XSQL Servlet for processing? Doyou
want the
Web Service to create the XSQL file, from arguments passed in theSOAP
Body element?
Sorry to ask so many questions, but the answers will help me answeryour
"original"
question ;-)
Regards,
Mike Wooten
"Madhuri" <[email protected]> wrote:
Hi!
I have a question: I would like to use Oracle's XSQL servlet. I
have
a .xsql file
which calls a function and returns a data in XML format. Now howcan
I use this
in weblogic using webservices?
Anybody has an idea?
Thanks in advance
...Madhuri -
Weblogic and Webspehere comparison
Hi All,
Has any one done comparison between weblogic and websphere ? Can I get
the details on how these products compare ?
Thanks
PrasadI'm trying XSQL Servlet version 1.0.0.0 with Weblogic 5.1.
In my weblogic.properties file I have
weblogic.httpd.register.*.xsql=oracle.xml.xsql.XSQLServlet
I also have
weblogic.httpd.servlet.classpath=d:/weblogic/myserver/servletclasses;d:/xsqlservlet_v1_0_
0_0/lib;d:/xsqlservlet_v1_0_0_0/lib/oraclexmlxsql.jar;d:/xsqlservlet_v1_0_0_0/lib/oraclex
sql.jar;d:/xsqlservlet_v1_0_0_0/lib/xmlparserv2.jar;d:/xsqlservlet_v1_0_0_0/lib/classes11
1.zip
I have been getting this error:
java.lang.NoClassDefError: oracle/xml/xsql/XSQLDocHandler ....
This might be caused by some incorrectly assigned classpath (i.e. does the XSQL Servlet classpath go to the weblogic.httpd.classpath or should it be defined in another path or classpath -- Weblogic seems to have several).
Also, some init args can be set for servlets. Which args need to be set for the XSQL Servlet?
In general, what is the configuration with Weblogic?
null -
Hi folks,
We are trying to send and receive DIME attachments via weblogic server.
In order to check, what format of the messages are being sent from the SOA Weblogic server to the third party server for sending and receiving dime documents, we are using a java tool "WebScarab". Webscarab can capture messages sent and received from any generic system. Now, we want to setup a proxy in the weblogic server so that requests and responses go through via this webscarab tool, which listens on 127.0.0.1 and port 8008.
This might sound too vague, but this is what it is.
Any help would greatly appreciated.
TIA.I'm trying XSQL Servlet version 1.0.0.0 with Weblogic 5.1.
In my weblogic.properties file I have
weblogic.httpd.register.*.xsql=oracle.xml.xsql.XSQLServlet
I also have
weblogic.httpd.servlet.classpath=d:/weblogic/myserver/servletclasses;d:/xsqlservlet_v1_0_
0_0/lib;d:/xsqlservlet_v1_0_0_0/lib/oraclexmlxsql.jar;d:/xsqlservlet_v1_0_0_0/lib/oraclex
sql.jar;d:/xsqlservlet_v1_0_0_0/lib/xmlparserv2.jar;d:/xsqlservlet_v1_0_0_0/lib/classes11
1.zip
I have been getting this error:
java.lang.NoClassDefError: oracle/xml/xsql/XSQLDocHandler ....
This might be caused by some incorrectly assigned classpath (i.e. does the XSQL Servlet classpath go to the weblogic.httpd.classpath or should it be defined in another path or classpath -- Weblogic seems to have several).
Also, some init args can be set for servlets. Which args need to be set for the XSQL Servlet?
In general, what is the configuration with Weblogic?
null -
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 -
Hi!
We need to implement authentication using our own methods, and the authentication
information is provided to the web service implementation in a basic authentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles web services
in
wls 7.0.sp2, always attempts to perform authentication, if the header is present.
Is there any way to circumvent this, because we want to implement authentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for our own
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet, which
would
remove the basic authentication header, and put the authentication info in custom
headers, such as x-auth: <user:password>, or smthng similar, and after successful
authentication, make a call to bea's servlet weblogic.webservice.server.servlet.WebServiceServlet.
But still, I'd like to know if there is any way to tell bea's servlet to ignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni NykanenCurrently there is no option to turn off security check.
I think you can use a servlet filter mapped to the URL
of your service, instead of a proxy servlet?
Regards,
-manoj
http://manojc.com
"Toni Nykanen" <[email protected]> wrote in message
news:3ef1577b$[email protected]..
>
Hi!
We need to implement authentication using our own methods, and theauthentication
information is provided to the web service implementation in a basicauthentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles webservices
in
wls 7.0.sp2, always attempts to perform authentication, if the header ispresent.
Is there any way to circumvent this, because we want to implementauthentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for ourown
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet,which
would
remove the basic authentication header, and put the authentication info incustom
headers, such as x-auth: <user:password>, or smthng similar, and aftersuccessful
authentication, make a call to bea's servletweblogic.webservice.server.servlet.WebServiceServlet.
>
But still, I'd like to know if there is any way to tell bea's servlet toignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni Nykanen
Maybe you are looking for
-
Lenovo G460 Windows 7 One Key Recovery with a Linux Partition
Hi All, I recently bought a Lenovo G460 Notebook and installed linux on it to dual boot with WIndows 7. There was a problem with sound which I got fixed and everything is working fine now. My question is: Will me linux partition be there as it is If
-
Cannot recognize any internal hard drives, hard drives good
Hi, My macbook pro 13" (bought in august 09) recently stopped being able to recognize its internal drive. I've run it through all sorts of diagnostic software, but none has been able to recognize it at all. I've tried swapping out the hard drive to o
-
Pulling e-mail body for variable in job
We currently are using the Email Event in TES to pull a single string from an e-mail trigger into a variable in a job. However, we are now looking to see if we can put multiple strings into an e-mail and use them for multiple variables in a single j
-
HI, I installed the UC320 for a customer and they have 19 users, we are using sip trunk for voice traffic it now encountered an annoying problem, The isp is doing the maintenance in recent period and their sip trunk is coming down and up occasional
-
Full screen mode and secondary display
I am using Aperture with two monitors. The primary viewer is set to 'multi', and the secondary viewer is set to 'alternate'. When I enter full-screen mode (F), the picture is displayed on the secondary viewer and the filmstrip is displayed on the pri