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?)
Similar Messages
-
Servlet output correct in ie and netscape, but not in portal
I have a servlet that retrieves and xml document, applies a
stylesheet, and uses PrintWriter to output the html.
When I run the servlet, the output is correct in ie and netscape.
So, I set the servlet up as a web portlet and have put it on a
portal page.
My problem: When I run the portal page, the mdashes and
rsquotes, etc. show up in portal as question marks.
I went into the provider.xml and added some information
(contentType,charset), but that had no effect.
Ideas appreciated.
Thanks.I have been doing some research, and this appears to be some
sort of character encoding/unicode problem.
I have specified UTF-8 in my servlet. Does portal not work with
UTF-8?
Is there a setting somewhere that I can check in portal to
verify what character encoding it is using? (ISO-8859-1, US-
ASCII, etc?)
This is a sample of my servlet code:
public void DoGet(HttpServletRequest request, HttpServlet
Response,response)
throws ServletException, IOException
DOMParser parser;
XMLDocument xml,xsldoc;
URL xslURL,xmlURL;
String xmld = "";
String xsld = "";
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try
parser = new DOMParser();
parser.setPreserveWhitespace(true);
xslURL = createURL(xsld);
parser.parse(xslURL);
xsldoc = parser.getDocument();
xmlURL = createURL(xmld);
parser.parse(xmlURL);
xml = parser.getDocument();
XSLStylesheet xsl = new XSLStylesheet(xsldoc,xslURL);
XSLProcessor processor = new XSLProcessor();
processor.processXSL(xsl,xml,out);
Any advice appreciated. -
Servlet to portlet. can see test page but not my servlet
Hello all.
-I'm trying to register a very basic servlet (it just write a message in get or post methods) named mpi_servlet.class
-I followed the instructions of "Packaging and Deploying Your Provider" and made the changes to the files.
-Copy mpi_servlet.class at <war working directory>\WEB-INF\classes.
-Write the following to <war working directory>\WEB-INF\providers\mpi\provider.xml.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<session>false</session>
<useOldStyleHeaders>false</useOldStyleHeaders>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>1</id>
<name>MPI</name>
<title>MPI Portlet</title>
<description>MPI Portlet.</description>
<timeout>10000</timeout>
<timeoutMessage>MPI Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<contentType>text/html</contentType>
<showPage>/mpi_servlet</showPage>
</renderer>
</portlet>
</provider>
-Write the following to <war working directory>\WEB-INF\deployment\mpi.properties
serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
showTestPage=true
definition=providers/mpi/provider.xml
autoReload=true
-Zip and rename to mpi.war
-Copy mpi.war to <ear working directory>
-Write the following to <ear working directory>\META-INF\application.xml
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>Template Application</display-name>
<description>This is a template application</description>
<module>
<web>
<web-uri>mpi.war</web-uri>
<context-root>/mpi</context-root>
</web>
</module>
</application>
- Zip and rename to mpi.ear
-After deploy it at OEM Console and try "http://myhost:7777/mpi/providers/" I got the test page
Congratulations! You have successfully reached your Provider's Test Page.
Checking for components:
Portlets are:
MPI
Recognizing initialization parameters.
invalidation_caching : true
- The problem is that I cannot access my servlet at "http://myhost:7777/mpi/mpi_servlet/"Hi Marko,
You need to update the web.xml file in WEB-INF folder
Add the following lines to it,
<servlet>
<servlet-name>mpilogin</servlet-name>
<servlet-class>add the fully qualified class file name here</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>mpilogin</servlet-name>
<url-pattern>/mpi_servlet</url-pattern>
</servlet-mapping>
- Abhinav -
Following is whart this page looks like when I print it. How do I fix this?
s k i p t o n a v i g a t i o n s w i t c h l a n g u a g e
F i r e f o x
v i s i t m o z i l l a . o r g
F e a t u r e s
F e a t u r e s
S e c u r i t y
P e r f o r m a n c e
C u s t o m i z a t i o n
V i d e o s
T o u r
M o b i l e
M o b i l e O v e r v i e w
D o w n l o a d
F e a t u r e s
C u s t o m i z e
S y n c
D e v e l o p
G e t I n v o l v e d
F A Q
B l o g
A d d - o n s
F i r e f o x A d d - o n s
F e a t u r e d A d d - o n s
E x t e n s i o n s
T h e m e s
P e r s o n a s
S e a r c h T o o l s
L a n g u a g e S u p p o r t
C o l l e c t i o n s
M o b i l e A d d - o n s
D e v e l o p e r H u b
S u p p o r t
F i r e f o x S u p p o r t
M o b i l e S u p p o r t
T h u n d e r b i r d S u p p o r t
A b o u t
A b o u t F i r e f o x
P a r t i c i p a t e
C o m m u n i c a t i o n s
C a r e e r s
P a r t n e r s h i p s
L e g a l
C o n t a c t U s
B l o g
F i r e f o x H e l p
A s k a Q u e s t i o n | F i r e f o x H e l p h t t p s : / / s u p p o r t . m o z i l l a . c o m / e n - . . .
1 o f 4 3 / 7 / 2 0 1 1 7 : 4 5 P M
W e l c o m e , D i c k S 5 7 .
P r o f i l e | S i g n O u t
1 . F i r e f o x H e l p
2 . F o r u m
3 . A s k a N e w Q u e s t i o n
A s k a N e w Q u e s t i o n
P r o d u c t : F i r e f o x 4 B e t a s c h a n g e
C a t e g o r y : I h a v e a n o t h e r k i n d o f p r o b l e m w i t h F i r e f o x
c h a n g e
F i l l i n t h e d e t a i l s o f y o u r q u e s t i o n .
T h e m o r e i n f o r m a t i o n y o u c a n p r o v i d e , t h e
b e t t e r t h e c h a n c e y o u r q u e s t i o n w i l l b e
a n s w e r e d .
Q u e s t i o n
P r i n t i n g i s n o t c o r r e c t . I c a n p r i n t t o e i t h e r m y H P
P h o t o s m a r t p r i n t e r o r a p d f p r i n t e r a n d I g e t t h e s a m e
t h i n g . S t r a n g e l o o k i n g l e t t e r s a n d s p a c i n g b u t n o t
n o r m a l r e a d i n g p r i n t . I s t h e r e a w a y t o s e t u p m y
p r i n t i n g i n v e r s i o n 4 b e t a ? e d i t
1 .
D e t a i l s
T h e m o r e i n f o r m a t i o n y o u c a n p r o v i d e t h e b e t t e r
c h a n c e y o u r q u e s t i o n w i l l b e a n s w e r e d .
2 .
3 . T h i s h a p p e n e d
4 . T h i s s t a r t e d w h e n . . .
5 . T r o u b l e s h o o t i n g I n f o r m a t i o n
A s k a Q u e s t i o n | F i r e f o x H e l p h t t p s : / / s u p p o r t . m o z i l l a . c o m / e n - . . .
2 o f 4 3 / 7 / 2 0 1 1 7 : 4 5 P M
C o p y a n d p a s t e t h e i n f o r m a t i o n f r o m H e l p >
T r o u b l e s h o o t i n g I n f o r m a t i o n .
W e ' v e m a d e s o m e e d u c a t e d g u e s s e s a b o u t y o u r
c u r r e n t b r o w s e r a n d o p e r a t i n g s y s t e m . S h o w d e t a i l s
» H i d e d e t a i l s »
6 .
7 . F i r e f o x v e r s i o n
8 . O p e r a t i n g s y s t e m
9 . I n s t a l l e d p l u g i n s
1 0 .
O t h e r L a n g u a g e s
F i r e f o x
F e a t u r e s
F e a t u r e s
S e c u r i t y
P e r f o r m a n c e
C u s t o m i z a t i o n
V i d e o s
T o u r
M o b i l e
M o b i l e O v e r v i e w
D o w n l o a d
F e a t u r e s
C u s t o m i z e
S y n c
D e v e l o p
G e t I n v o l v e d
F A Q
B l o g
A d d - o n s
F i r e f o x A d d - o n s
A s k a Q u e s t i o n | F i r e f o x H e l p h t t p s : / / s u p p o r t . m o z i l l a . c o m / e n - . . .
3 o f 4 3 / 7 / 2 0 1 1 7 : 4 5 P M
F e a t u r e d A d d - o n s
E x t e n s i o n s
T h e m e s
P e r s o n a s
S e a r c h T o o l s
L a n g u a g e S u p p o r t
C o l l e c t i o n s
M o b i l e A d d - o n s
D e v e l o p e r H u b
S u p p o r t
F i r e f o x S u p p o r t
M o b i l e S u p p o r t
T h u n d e r b i r d S u p p o r t
A b o u t
A b o u t F i r e f o x
P a r t i c i p a t e
C o m m u n i c a t i o n s
C a r e e r s
P a r t n e r s h i p s
L e g a l
C o n t a c t U s
B l o g
P r i v a c y P o l i c y | L e g a l N o t i c e s | R e p o r t T r a d e m a r k
A b u s e
E x c e p t w h e r e o t h e r w i s e n o t e d , c o n t e n t o n t h i s s i t e i s
l i c e n s e d u n d e r t h e
C r e a t i v e C o m m o n s A t t r i b u t i o n S h a r e - A l i k e L i c e n s e
v 3 . 0 o r a n y l a t e r v e r s i o n .
A s k a Q u e s t i o n | F i r e f o x H e l p h t t p s : / / s u p p o r t . m o z i l l a . c o m / e n - . . .
4 o f 4 3 / 7 / 2 0 1 1 7 : 4 5 P MHi , Welcome to the HP Forums! I understand that you cannot print wirelessly with your HP Photosmart Premium c310 on Mac OS X 10.9. I am happy to look into this connection issue for you! I am not sure which support pages you have been to, but here are some that I would suggest going through: 'Printer Offline' or 'Printer Not Responding' Message (OS X).Printer Does Not Maintain Wireless Connection. Tips for troubleshooting wireless connection issues
The following tips can help you troubleshoot and avoid wireless connectivity issues. You can try these tips separately or in combination to get a successful wireless signal. Move the printer and the computer closer to the router, but no closer than 6 ft (1.8 m). Wireless signals can be weaker at greater distances between the printer and the router.If you are experiencing an intermittent wireless connection, try restarting your router. Consult your router manufacturer, Internet service provider, or network administrator for instructions on how to restart the router.Remove any metal objects between the printer, the computer, and the router. Objects such as refrigerators, microwaves, or metal bookcases can interfere with wireless transmission.Move any device that emits radio signals, such as microwaves and cordless telephones, farther away from the printer. Such devices can interfere with wireless signals. Are you able to print to the printer with any other wireless devices? Hope this information is helpful, and hope to hear from you soon! “Please click the Thumbs up icon below to thank me for responding.” -
''duplicate of https://support.mozilla.com/en-US/questions/904640''
Focus function not populating mouse cursor on radtextbox on page_load in mozila but workinfg fine in IE and Chrome.Do you have that problem when running in the Firefox SafeMode? <br />
[http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
''Don't select anything right now, just use "Continue in SafeMode."''
If not, see this: <br />
[http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes] -
A strange one-can recieve email, but not send
Okay, I have a powerbook G4 with an airport (graphite) and a siemens wireless gateway/modem provided by T**us
my mom's ISP. She can get on the internet okay (providing the signal doesn't get dropped, which it does) and downloads are fine, and she can recieve email, but not send. I have tried changing the smtp port to 587 from 25. Nothing from the activity monitor and no "whoosh". I have also tried setting up a new account (pop3) which the connection
doctor says is okay for sending and recieving. Any suggestions before I spend an hour or so with T**us' tech support
which for Macs isn't that good--frankly, I think the airport needs to be out of the picture---maybe it's fighting with the gateway??? :confused:
John BHi John: Did you get the "Send" issue figured out with your computer? If not, here are some things to check out. It sounds like you are using Telus. If so the settings for incoming and outgoing servers is as follows: Incoming > "pop.telus.net" Outgoing > "smtp.telus.net". Server port is 25, with no SSL enabled.
Good Luck
Stedman -
Lumia 800 strange charges thru Laptop-USB but not ...
Hi
A peculiar problem is driving me nuts
My Lumia 800 is charging thru Laptop-USB but not thru a charger (Tried with 5 different chargers of different makes)
any clues what could be wrong
Regards
SanjayWhere the chargers compatible? Have you tried a factory reset on your device?
If i have helped at all a click on the white star below would be nice thanks.
Now using the Lumia 1520 -
- http://technet.oracle.com
- xsqlservlet.zip
- anytime
- Internet Explorer 6.0
- Window XP Professional
I have been trying to download the XSQL Servlets for oracle 9i by going to the site as follows:
http://technet.oracle.com/tech/xml
I cannot find the file like "xsqlservlet.zip" to download. All I can find is the XDK distribution. After I download the XDK, it does not have the xsql\lib\ directory to configure for the servlets engine.
Can someone point me on how to download the XSQL Servlets on technet ?
Thank you !Have not heard of this.
Try the tar.gz file. WinZip knows how
to open that, too. -
After waking from sleep bluetooth mouse behaves strangely
Hello
I have this issue . First of all i have Allow bluetooth to wake from sleep but it doesn't happen but i don't really care about that.
Most important thing is that after waking up from sleep my mouse has lag when moving , the mouse behaves strangely and movement of mouse is not natural .Restarting or shutting down doesn't fix it .
Anyone knows why this happens?Try resetting the PRAM and SMC.
Barry -
I understand that this is the more appropriate Forum for my question.
I am struggling with this one:
My test XML is well formed:
<?xml version="1.0"?>
<SC_ESP>
<ResultSet>
<ApplicationID>App0001</ApplicationID>
<Reason>Sucess</Reason>
</ResultSet>
</SC_ESP>
Whan I try to POST this XML data via the XSQL Servlet
I get the following error:
"Character '$' is not allowed in a XML tag name."
Anyone know what it means ?
Thanks
MartinOops sorry folks, I see that the Java Forum has lots to do with the xsql stuff.
-
Session mechanism behaves strangely
hi;
i am developing a site for a foundatiion, there exists some services which is based on log-in, when the user logs in i create a session object and assign a string attribute named "memberId"
when i request a page by GET method my session is checked and a form is returned if successfull else it is forwarded to a warning page, however after i got the form and submit it (form is handled by same servlet's doPost method) the code below
HttpSession session = request.getSession(false);
String memberIdStr = (String) session.getAttribute("memberId");
causes the session to be null ! and raises nullpointerexception,
as a conclusion the session works well for GET requests, but behaves strangely if the request method is POST
can anyone help me...
thanx in advance...no i am ussign cookies for transferring sessionid, let me send the servlet class
public class PlantGiftController
extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
//the user has already registered
//get his id from session
RequestDispatcher dispatcher;
HttpSession session = request.getSession(false); //a session really exists
String memberIdStr = (String) session.getAttribute("memberId");
if (memberIdStr == null) { //the user has not registered
String warningMsg = "not loged in";
request.setAttribute("warningMsg", warningMsg);
dispatcher = application.getRequestDispatcher(
"/common/warning.jsp");
dispatcher.forward(request, response);
else {
int id = Integer.parseInt( (String) session.getAttribute("memberId"));
try {
MemberBean member = db.getMemberById(id);
request.setAttribute("member", member);
catch (Exception ex) {
throw new ServletException(ex);
dispatcher = application.getRequestDispatcher(
"/plantGift/plantGiftForm.jsp");
dispatcher.forward(request, response);
//Process the HTTP Post request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
RequestDispatcher dispatcher;
HttpSession session = request.getSession(false); //session is set to null
MemberBean member = null;
if (session == null) { //the user has not registered
String warningMsg = "please log in
request.setAttribute("warningMsg", warningMsg);
dispatcher = application.getRequestDispatcher(
"/common/warning.jsp");
dispatcher.forward(request, response);
else {
int id = Integer.parseInt( (String) session.getAttribute("memberId"));
try {
member = db.getMemberById(id);
request.setAttribute("member", member);
catch (Exception ex) {
throw new ServletException(ex); -
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.
nullThe 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> -
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 -
Just done a replacement of the pata DVD drive (its new and is working ok), and a fresh clean install of Snow Leopard with all updates, iMac 5.1 behaves strange, sometimes I start Google Chrome and look at youtube videos the computer freezes and shuts down immediately,
I believe its related to overheating ?
iStat Pro shows GPU diode temp at 66 C, CPU at 48 C, Fan rpms is around 1000
Any ideas somebody ?
The hard disk has been previously checked with state of the art techniques that have confirmed that the hard disk drive is in perfect condition.1.5-3 minute boot up as opposed to 15-20 seconds
And
why it takes a long time to load a lot of things.
I have restored this
from a time machine partition.
TimeMachine is only a backup and restore, it won't fix issues in software and according to your information, doesn't even optimize the restore for best performance on boot hard drives.
What you need to do to regain your speed is to understand how your machine works
Why is my computer slow?
Fix any and all issues in software following this list of fixes
..Step by Step to fix your Mac
Then follow this defrag method I've outlined
How to safely defrag a Mac's hard drive
Most commonly used backup methods
There shouldn't be need to reinstall OS X fresh unless your having file structure issues which if they are should appear when in the Steps, which then a zero erase and install will cure as well as any bad sector issues, the defrag step wouldn't be necessarry on a freshly installed system obviously as the files are written all together, not in portions all over the drive.
Hope this assists.
Maybe you are looking for
-
Set file name with XSLT - receiver channel - elements from XML?
Dear experts, I have an XSLT mapping for a message that is sent via a receiver channel to a customer. The customer wants a certain file name which is put toghether by elements from the XML message. I have looked at: Re: Java Map for writing the file
-
I have an HP computer and Windows y, Pro. I have HP 4360 Deskjet Printer. I The usual default that I have set for printing is in grayscale. However, no matter what I do, pictures are printed in grayscale, even though I have changed the default to
-
Export MXF with multiple audio channels for broadcast
Hi, I work at a broadcast company as an editor. We always used FCP with the free sony xdcam plugin to export. This plugin seems to be one of the rare ways to export an MXF with 4 audio channels. I don't know exactly why we need to export it for broad
-
Fast Color Corrector Edit Effects to a Video Clip --- need help, please
I am editing a single video clip. The clip is too dark, even though I used a video light. Classroom in a Book, page 298 recommends to apply the Fast Color Corrector. I tried...BUT as book reads, the color corrector wheel should pop up and allows c
-
How can I view both the layers panel & effects panel in PSE 11?
I have PSE11 and purchased Paint the Moon effects. How can I view both the Layers panel and the Effects panel at the same time? Was this an option in older versions of PSE that are used in the Paint the Moon tutorials?