My Error for XSQL Servlets
My error is following..
=====================================================
(ERROR) ajp12: Servlet Error: java.lang.IllegalArgumentException: sun.io.CharToByteUTF-8: sun.io.CharToByteUTF-8
=====================================================
What's problem...
Please response to me the reason.. thanks..
Need to use JDK 1.1.8 or 1.2.2
This error tells me you're using
JDK 1.1.7 which has a bug in the
character set conversion area.
null
Similar Messages
-
License for XSQL Servlet - Production
Can this be deployed on a multi-server environment for commercial use, or is it still only a development - single user, single server system?
You can consult the license for XSQL Servlet 1.0.0.0 by visiting:
http://technet.oracle.com/tech/xml/xsql_servlet/index.htm
and clicking on the "Support" bar icon at the top of the page.
The license is at:
http://technet.oracle.com/software/htdocs/distlic.htm -
How to set weblogic 5 or 6 for XSQL servlet
how to set weblogic 5 or 6 for XSQL Servlet
DO you have servlets which print utf-8 data to the client?
If yes then you can just call response.setContentType("text/html;
charset=UTF-8");
and the response will look as expected.
for jsps :
<%@ page contentType="text/html; charset=UTF-8" %> should do the trick.
Nagesh
Michael wrote:
I have the same problem with 7.0. Did you fine a solution?
I'll be very interested to know how you fixed it.
"Danh Hoai" <[email protected]> wrote:
Hi all,
Does anybody know how to set up Weblogic 5.1 server in order to display
UTF8
characters such as Japanese characters?
I am able to display utf8 in Tomcat but not in Weblogic. All I did for
Tomcat is to change the content type of the servlets.
Thank you for your help.
Danh -
OAS4.0.8.1 + JSP Patch for XSQL Servlet
Hi,
In the release notes for the latest XSQL Servlet it mentions that the servlet will run on OAS 4.0.8.1 wiht the "JSP Patch".
Can you elaborate what the JSP patch ?
Is it the JSP download available from technet or is it something I need to download through the PATCHES link in Metalink.
ThanksHi,
In the release notes for the latest XSQL Servlet it mentions that the servlet will run on OAS 4.0.8.1 wiht the "JSP Patch".
Can you elaborate what the JSP patch ?
Is it the JSP download available from technet or is it something I need to download through the PATCHES link in Metalink.
Thanks -
Compilation error for First Servlet program
Hi,
I have go the following program from a book bu is giving me a long list of errors maybe I have no imported the proper package.
import java.servlet.*;
import java.io.*;
public class Brat extends GenericServlet
public void init (ServletConfig sc)
throws ServletException
System.out.println("I don wana wake up");
public void service (ServletRequest req, ServletResponse res)
throws ServletException
try{
ServletOutputStream sos=res.getOutputStream();
sos.println("I dont wanna do anyhing");
sos.close();
catch(IOException ioe) {ioe.printStackTrace();}
public void destroy()
System.out.println("I dont wana go to bed");
Its giving me symbol not resolve errors for the
following symbols
ServletException, ServletConfig, ServletResponse etc.
How can I get around with these errors?
Zulfi.Sorry, but i handled with Servlets some time ago.
Servlets are not contained in the standard SDK.
There has been a servlet development kit, but it seems not to exist any more. (I cant't find it)
But servlet technology is included in java server pages and other web applications, so you have to download i.g. J2EE SDK and to install it, to find the classes you need.
(It's included in other packages too, i think.)
http://java.sun.com/products/jsp/download.html
If you've installed the used packages, then include only the packages you need. (Doc's should help)
Make shure that the packages are included in your classpath.
(Have been the files server.jar and servlet.jar in "former" times.)
Sorry, but i can't give more advice, 'cause im not up to date with this subject.
Maybe someone else can help?
Good luck again. -
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. -
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.
-
Error:
java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
'http://www.xxxx.com//myServlet/anyfile.exml'
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:380)
The URL is correct.
When it fails, on IE browser, receive the following message,
· The RPC server is unavailable
· The remote procedure call failed.
Servlet receives xml and set it into session.
This class set or get session.
Servlet is called many times.
Using weblogic 8.1
Error:
java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
'http://www.xxxx.com//myServlet/anyfile.exml'
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:380)
The URL is correct.
When it fails, on IE browser, receive the following message,
· The RPC server is unavailable
· The remote procedure call failed.
Servlet receives xml and set it into session.
This class set or get session.
Servlet is called many times.
Using weblogic 8.1
-
I am using the XSQL servlet from the xdk_nt_10_1_0_2_0_production.zip package. When I run a example I always get the following error (NoSuchMethodError) I am using the xmlparserv2.jar from the xdk\lib dir. What could be wrong?
java.lang.NoSuchMethodError
at oracle.xml.util.QxName.<init>(QxName.java:65)
at oracle.xml.util.QxNameHash.add(QxNameHash.java:116)
at oracle.xml.util.QxNameHash.create(QxNameHash.java:72)
at oracle.xml.parser.v2.XMLEntity.<init>(XMLEntity.java:136)
at oracle.xml.parser.v2.XMLEntity.<init>(XMLEntity.java:156)
at oracle.xml.parser.v2.DTD.<clinit>(DTD.java:1031)
at oracle.xml.parser.v2.NonValidatingParser.<init>(NonValidatingParser.j
ava:155)
at oracle.xml.parser.v2.XMLParser.<init>(XMLParser.java:150)
at oracle.xml.parser.v2.DOMParser.<init>(DOMParser.java:84)
at oracle.xml.xsql.XSQLParserHelper.parse(XSQLParserHelper.java:104)
at oracle.xml.xsql.XSQLConfigManager.reloadConfigFile(XSQLConfigManager.java:315)I am also getting the same error with the following call;
OracleXMLSave xs2 = new OracleXMLSave(this.dbConnection,
LimitsWorkflowXDKObjectDAO.LIMITS_WF_O_TABLE);
if ( xs2 == null ) System.out.println("XML_SAVE IS NULL");
else
xs2.setKeyColumnList(pkArray);
xs2.setIgnoreCase(true);
xs2.setRowTag(LimitsWorkflowXDKObjectDAO.LIMITS_WF_O_ROW_TAG);
if (dateFormat != null)
xs2.setDateFormat(dateFormat);
rows = xs2.insertXML(xmlDoc);
javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at oracle.xml.util.QxName.(QxName.java:65)
at oracle.xml.util.QxNameHash.add(QxNameHash.java:116)
at oracle.xml.util.QxNameHash.create(QxNameHash.java:72)
at oracle.xml.parser.v2.XMLEntity.(XMLEntity.java:136)
at oracle.xml.parser.v2.XMLEntity.(XMLEntity.java:156)
at oracle.xml.parser.v2.DTD.(DTD.java:1031)
at oracle.xml.parser.v2.NonValidatingParser.(NonValidatingParser.java:155)
at oracle.xml.parser.v2.XMLParser.(XMLParser.java:150)
at oracle.xml.parser.v2.DOMParser.(DOMParser.java:84)
at oracle.xml.sql.dml.OracleXMLSave.initParser(OracleXMLSave.java:300)
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2370)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1352) -
Can I use XSQL pages & XSQL Servlet for oracle 7.3 ?
Can I use XSQL pages & XSQL Servlet
for oracle 7.3 or not?,if it is possible
please give me reply.
Thanks.
Ramesh Nallapu.Can I use XSQL pages & XSQL Servlet
for oracle 7.3 or not?,if it is possible
please give me reply.
Thanks.
Ramesh Nallapu.
null -
Error when running XSQL Servlet demo
Environment:
Sun Solaris5.7, Apache1.3.12, JRun2.3.3, Oracle8.1.5, IE5
When clicking "Hello World page", the link to helloworld.xsql, it said "The page cannot be displayed. HTTP500 - Internal server error". There is no entry in Apache error_log. In access_log, it is "Get /xsql/demo/helloworld.xsql HTTP/1.1 500 213".
When clicking other links, there was another error message "XSQL-011: Error processing XSLT stylesheet: newsstorylist.xsl
sun.io.CharToByteUTF-8".
Thank you very much.I am having the same problem, by any chance did you solve the problem..
If so can please let me know the solution ..
Thanks ..// Manohar //
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 -
Error in XSQL Sample code ?!
Hi,
I recently tried the XSQL sample code with the latest (1.0.0.0 ?) version of the XSQL sevlet. But there seems to be an error in the example:
In the hotels.xsql file (inside XSQLSample.jar, inside XMLUtilitySamples.zip)
the query tags are specified as
<query connection="xmlutil" rowset-element="Hotels" row-element="Hotel" >
But I only got the example working with :
<xsql:query xmlns:xsql="urn:oracle-xsql" .....>
(both in the apache-jserv environment, as well as in the web-to-go server.
Is the example indeed incorrect, or did I do sth wrong in trying to get the example to work ?
-- olaf
nullThe examples in that .zip file apparently were only tested by their author with a pre-0.9.8.6 version of XSQL Servlet.
XSQL version 0.9.8.6 and later required the "xsql" namespace prefix.
I'll find out who built the examples and get them corrected. Thanks for the tip. -
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.
Maybe you are looking for
-
How can i remove an unwanted store balance from my account
how can i remove an unwanted store balance from my account
-
AIX 5.2 : how to pass password value while creating a user on AIX server
Hi , Test connection is successful with AIX server , I can successfully create a user on AIX server, with defualt password. I am not passing the any password value still some default value is being populated for the user... In AIX while creating the
-
Sendmailjpkg.sendmail - 550 5.7.1 Unable to relay
Hi to all, Oracle 10g database. We have an application that sends emails (only with one email address), with sendmailjpkg.sendmail, We've recently installed an exchange 2010 server, and in doing so we've changed the relevant DNS/MX records to point t
-
How can I download a new text alert from i tunes?
I have an Iphone 4, How can I download a new text alert from I tunes? I can download a ringtone, but not a text alert?
-
How do i restore a frozen ipad3
My daughter's ipad3 is frozen. She was in the process of upgrading to IOS7 when it locked up with "ipad is disabled' msg. I have tried the normal procedure of shutting the ipad off - holding the sleep button until red bar appears then shutting it dow