Error using XSQL 10 servlet

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)

Similar Messages

  • ParseTDS error using XSQL demos

    I recently installed the Oracle XSQL servlet engine. When I try one of the demos that make use of object views, I get the following error message:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Fout bij ontleden typedescriptor: parseTDS</ERROR>
    There is some Dutch in this, which is a bit odd, but the text "Fout bij ontleden typedescriptor" means "Error parsing type descriptor". What could be wrong?

    I am using an Oracle 8.1.6 server. On the machine that runs the XSQL servlet, I have an 8.0.5 Net8 connection, but I assume that this is not important, since this should not be used by the Oracle JDBC driver. All examples work as long as the objecty views are not used.
    I don't know how this parser works internally, but I think it might have something to do with the absence of some of the field names in the query result.
    Here's what I mean: when I try the insurance demo, and select example three, I get the correct result. When I execute the associated query in SQL*Plus, I get the following result:
    SQL> select c.claimpolicy.primaryinsured as Customer
    2 from insurance_claim_view c
    3 where c.claimpolicy.primaryinsured.homeaddress.state = 'CA'
    4 ;
    CUSTOMER(CUSTOMERID, FIRSTNAME, LASTNAME, HOMEADDRESS(STREET, CITY, STATE, ZIP))
    POLICYHOLDER_T(1044, 'Paul', 'Astoria', ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132))
    POLICYHOLDER_T(1044, 'Paul', 'Astoria', ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132))
    POLICYHOLDER_T(1045, 'Martina', 'Boyle', ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102))
    POLICYHOLDER_T(1045, 'Martina', 'Boyle', ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102))
    As you can see, all field names, which serve as tags in the XML result, are present. From this result, you can derive that there is a sub-object HOME_ADDRESS consisting of the fields STREET, CITY, STATE and ZIP.
    For insurance example four, the result in SQL*Plus looks like this:
    SQL> select v.claimpolicy.primaryinsured.homeaddress as address,
    2 v.settlements
    3 from insurance_claim_view v
    4 ;
    ADDRESS(STREET, CITY, STATE, ZIP)
    SETTLEMENTS(PAYDATE, AMOUNT, APPROVER)
    ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132)
    SETTLEMENTS_T(PAYMENT('05-JAN-99', 7600, 'JCOX'))
    ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132)
    SETTLEMENTS_T(PAYMENT('15-MAR-98', 1800, 'MFOX'), PAYMENT('23-MAR-98', 7800, 'ULOWE'))
    ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102)
    SETTLEMENTS_T(PAYMENT('01-JUL-97', 1500, 'JCOX'))
    ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102)
    SETTLEMENTS_T(PAYMENT('05-JAN-99', 7600, 'JCOX'))
    The result contains a reference to the object PAYMENT, but the definition of this object cannot be derived from the column names.
    If the parser indeed uses these column names to derive an object structure, this may be the cause, but the question is: what went wrong during the installation that caused this problem?

  • 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

  • Error using XSQL to generate RSS feeds on Unix

    I`m using an XSQL file used with a stylesheet to render an RSS 2.0 feed.
    RSS readers can pick the feed up successfully when I used a Windows based Oracle Application server installation but not when it was migrated to a Unix based server.
    Both servers do successfuly render the RSS feed into Internet Explorer as raw XML which looks identical.
    Any ideas?

    Check the content type of the response comming from your Unix server. There may be a different content type value for one of the HTTP header, which have some impact on your RSS reader.
    Using FireFox is another way to see if there are subtille differences in the responses that IE does not detect.
    Hope this helps,
    Eric

  • XSLT Error using XSQL:

    I am getting this error:
    Oracle XML Developers Kit 10.1.0.4.2 - Production
    XML-25011: Error processing XSLT stylesheet:
    file:///C:/Products/jboss-5.0.1.GA/server/default/deploy/ontrack.ear/ontrack.war/reports/manifest/container_lbl.xsl
    file:/C:/Products/jboss-5.0.1.GA/server/default/deploy/ontrack.ear/ontrack.war/reports/manifest/container_lbl.xsl:
    XML-22043: (Error) Extension function error: Method not found 'generate'
    Any ideas ?
    Thanks,

    After some shuffling of jar files, I now get:
    Oracle XML Developers Kit 10.1.0.4.2 - Production
    XML-25018: Unexpected Error Occurred processing stylesheet container_lbl.xsl
    java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl cannot be cast to oracle.xml.parser.v2.XMLNode
    at oracle.xml.parser.v2.XSLExprValue.setExtensionValue(XSLExprValue.java:658)
    at oracle.xml.parser.v2.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:122)
    at oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:298)
    at oracle.xml.parser.v2.XPathExtFunction.evaluate(XPathExtFunction.java:225)
    at oracle.xml.parser.v2.XSLCopyOf.processAction(XSLCopyOf.java:103)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLForEach.processAction(XSLForEach.java:142)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
    etc...
    Any help would be most welcome,
    Thanks,
    Craig.

  • 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, CA

    Remember 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?)

  • Size xmltype in xsql servlet

    we have a table:
    nr number,
    text_a xmltype
    we use xsql-servlet for searching:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsql:query xmlns:xsql="urn:oracle-xsql" connection="xxx">
    SELECT text_a from texte txt where nr=2
    </xsql:query>
    everything works fine until the size of the xml-type grows over 17K; then we get error messages: XML-0201, XML-
    0122, XML-0125
    the select statement works in sqlplus and we see that the xmltype is o.k.
    It seems to be a problem of size in xsql ?????

    XSQL is just a shell to send SQL request. You'll still need to write a logic to convert HTML to request to SQL. I'll probably use the NAME attribute in INPUT tag to differentiate selections and use it in the WHERE clause.

  • Simple questions about XSQL Servlet

    I want to make available to a small LAN a small number of
    my schema's tables. I want them to be in XML format so that
    someone can see them with IE5.
    Is it possible to do this with XSQL Servlet?
    My server is MS Personal Webserver on NT Workstation and I use
    Oracle 8.0.5. Can I still use XSQL Servlet?
    George.
    null

    Hi Bertold, thanks for your answer!
    Hi Anton,
    1) The answer is yes. How do you know that the user
    is created without password in AD? Do you have any
    log files available?I solve my problem with synchronization of password - Time on domain controller and Sun ONE Directory Server was different (~10 hours). Now, i fix it, and all work perfectly.
    Thanks for your time, and be happy!

  • XSQL Servlet IIS Windows 2000 Oracle 8i

    I would like to use XSQL Servlet to get XML data from an Oracle 8i database. The Web server is running Windows 2000 IIS. Will this work? How about Windows 2003?
    If not, what are other Oracle options I could use to get query results formatted as XML?
    Thanks for any help!
    Dyan

    The XSQL Servlet has not been tested on Windows 2000 IIS, or Windows server 2003.
    Generate an XML document with a XSQL query in JDeveloper 10g.

  • Using XSQL to insert rows in more then one table

    I tried to insert rows in one table and it works fine but does anyone know is it possiblle to insert row in two tables using one XML file.

    Alem,
    Could u please let me know how u achieved this ? I am using xsql servlet too and would be interested in the same. If u have been able to insert/update into more than one table using insert-request let me too know how u did it.
    Thanks in advance,
    Shanthi

  • Getting an error while trying to use AJAX servlet in EP

    Hi All,
      This is my first time trying to develop a PAR file using AJAX. I have a project called NonEmployee and in it there is a class called NonEmployeeHiring which extends AbstractPortalComponent. I am trying to use AJAX, so that when users select a position from a drop down on the JSP, it send the request to a servlet called PositionDetailServlet, which does the processing and sens response back. However, I am getting a very weird error back in the response from servlet. Seems like it does not make upto the servlet and a part of the error that i am getting says,
    No security zone - access is denied
    com.sap.portal.system/applications/NonEmployee/components/PositionDetailServlet
    This is only a part of the big page of error. My servlet is in src.core folder. Here is my portalapp.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
      <application-config>
        <property name="startup" value="true"/>
        <property name="ServicesReference" value="com.sap.portal.ivs.iviewservice,com.sap.portal.ivs.connectorservice,com.sap.portal.runtime.system.inqmy,com.sap.portal.pcd.glservice,com.sap.portal.ivs.systemlandscapeservice,com.sap.portal.pcmbuilderservice,usermanagement,com.sap.portal.ivs.logger,com.sap.portal.usermapping,landscape,jcoclient"/>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <application-config>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <components>
        <component name="NonEmployeeHiring">
          <component-config>
            <property name="ClassName" value="NonEmployeeHiring"/>
            <property name="SecurityZone" value="low_safety"/>
          </component-config>
          <component-profile>       
            <property name="SystemIdentifier" value="SAP_R3_HumanResources"/>
            <property name="groupSubGroupForSalTypeValidation" value="A,01,AS,A,02,AS,A,03,HR,A,04,AS,A,05,HR,A,06,HR,A,07,HR,B,03,HR,B,04,AS,B,05,HR,B,06,HR,B,07,HR"/>
          </component-profile>
        </component>
        <component name="PositionDetailServlet">
             <component-config>
                 <property name="ClassName" value="com.grainger.portal.servlets.PositionDetailServlet"/>
                 <property name="ComponentType" value="servlet"/>
               </component-config>
        </component>  </components>
      <services/>
    </application>
    Any help will be greatly appreciated.
    Thanks in advance,
    Preet

    Thanks a lot for replying and trying to help me guys. Here is what my new portalapp.xml looks like
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
      <application-config>
        <property name="startup" value="true"/>
        <property name="ServicesReference" value="com.sap.portal.ivs.iviewservice,com.sap.portal.ivs.connectorservice,com.sap.portal.runtime.system.inqmy,com.sap.portal.pcd.glservice,com.sap.portal.ivs.systemlandscapeservice,com.sap.portal.pcmbuilderservice,usermanagement,com.sap.portal.ivs.logger,com.sap.portal.usermapping,landscape,jcoclient"/>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <application-config>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <components>
        <component name="NonEmployeeHiring">
          <component-config>
            <property name="ClassName" value="NonEmployeeHiring"/>
            <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
          </component-config>
          <component-profile>       
            <property name="SystemIdentifier" value="SAP_R3_HumanResources"/>
            <property name="groupSubGroupForSalTypeValidation" value="A,01,AS,A,02,AS,A,03,HR,A,04,AS,A,05,HR,A,06,HR,A,07,HR,B,03,HR,B,04,AS,B,05,HR,B,06,HR,B,07,HR"/>
          </component-profile>
        </component>
        <component name="PositionDetailServlet">
             <component-config>
                 <property name="ClassName" value="com.grainger.portal.servlets.PositionDetailServlet"/>
                 <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
                 <property name="ComponentType" value="servlet"/>
               </component-config>
        </component>
        <component name="PositionDetailServlet1">
             <component-config>
                 <property name="ClassName" value="com.grainger.portal.servlets.PositionDetailServlet1"/>
                 <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
                 <property name="ComponentType" value="servlet"/>
               </component-config>
        </component>
      </components>
      <services/>
    </application>
    I created a new servlet called PositionDetailServlet1 and put it in src.api folder, thinking that that might help. But no luck at all. I am wondering if tehre is a global setting on the server for it to allow servlets to run. Just my guess.
    Any help will be greatly appreciated. That is no issue.
    Thanks,
    Preet

  • [svn:bz-trunk] 8910: Bug: LCDS-936 - Should have better error message in servlet log if server in services-config .xml is configured to use wrong class.

    Revision: 8910
    Author:   [email protected]
    Date:     2009-07-29 14:22:26 -0700 (Wed, 29 Jul 2009)
    Log Message:
    Bug: LCDS-936 - Should have better error message in servlet log if server in services-config.xml is configured to use wrong class.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/LCDS-936
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageBrokerServlet.java

    After many hard working days.i finally found the error cause,i needed to make weblogic datasource also ADF doesnt work on internet explorer browser,it works on safary.hope it helps somebody

  • How to use ODBC with XSQL servlet??

    I want to use VB6.0 to get result from XSQL Servlet. What can I do with it?
    Any help will be grateful.
    Regards,
    Kelly Chen

    Hi,
    Perhaps you can create your own trust manager. I've found this example in another newsgroup: (please note that this example trusts everyone, but you can modify the trust manager as you wish)
    if (putUrl.startsWith("https"))
      //set up to handle SSL if necessary
      System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
      System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");
      Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
      //use our own trust manager so we can always trust
      //the URL entered in the configuration.
      X509TrustManager tm = new MyX509TrustManager();
      KeyManager []km = null;
      TrustManager []tma = {tm};
      SSLContext sc = SSLContext.getInstance("ssl");
      sc.init(km,tma,new java.security.SecureRandom());
      SSLSocketFactory sf1 = sc.getSocketFactory();
      HttpsURLConnection.setDefaultSSLSocketFactory (sf1);
    m_url = new URL (putUrl);
    class MyX509TrustManager implements X509TrustManager {
    public boolean isClientTrusted(X509Certificate[] chain) {
      return true;
    public boolean isServerTrusted(X509Certificate[] chain) {
      return true;
    public X509Certificate[] getAcceptedIssuers() {
      return null;
    }Hope this helps,
    Kurt.

  • 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

Maybe you are looking for