Proxy login with xsql servlet

Has anyone written a Custom Connection Manager for the xsql servlet? It seems useful to support proxy/lightweight sessions with xsql servlet. Has anyone tried this?

It won't work because iPlanet 4.1 has a broken implementation of the Servlet API's getRealPath() method, the method that XSQL Servlet uses to resolve virtual paths into absolute paths.
I just debugged a complaint that it didn't work with iPlanet this week and this was the result I found.
Their path resolution works for their own JSP implementation, but not for any other servlet.

Similar Messages

  • 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.

  • Direction Needed to Get Started With XSQL Servlet

    Hi, I am an ORACLE DBA. However, I am brand new to XML world. I tried to experiment and and understand the use of XSQL Servlet. I downloaded the software 1.0.0.0, and installed it on my PC, with the included Web-to-go. The installation seems to be OK, as I followed the instructions and twisted a little bit based on the intuition.
    When I clicked on the Demo pages, it seemed to work.
    The problem is, I want to understand the working of the XSQL Servlet. The only document I have is the Release Note of the software. It is very terse and seems to be for the ones who either worked on the previous release of the product or who knows the XML very well. I got lost in the reading of the document.
    Is there some documents that will provide some Intro level tutorial or help? Where should I begin to the learning of the software?
    Thanks for the help.

    Hello,
    I am new to Java and had a few questions regarding
    development. Please, if the questions are 'stupid'
    or obvious in your eyes, keep in mind I am new to
    this and just need a little boost to get started.
    1) Can you make 3D objects in Java? Such as
    landscapes and people.
    Yes.
    2) Which programs are needed for development?
    Please list a few programs you feel are best for
    Java Development as a whole. Links here would also
    be wonderful.A compiler. An editor.
    >
    3) Are there any websites which go threw Java
    Development? I can't seem to find one which fits the
    needs or a beginner.There are several.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    >
    Sorry for the questions and thank you in advance for
    all the help. It's greatly apreciated.
    Cravepain

  • Using iPlanet with XSQL Servlet

    Anyone have any information on how to configure the XSQL Servlet to work with iPlanet?
    TIA

    It won't work because iPlanet 4.1 has a broken implementation of the Servlet API's getRealPath() method, the method that XSQL Servlet uses to resolve virtual paths into absolute paths.
    I just debugged a complaint that it didn't work with iPlanet this week and this was the result I found.
    Their path resolution works for their own JSP implementation, but not for any other servlet.

  • 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 + Oracle 8i

    I have 2 questions :
    ==> Is XSQL Servlet is compliant with Oracle 8.1.7 ?
    ==> Can I easily create an SVG with XSQL Servlet ?
    [email protected]

    Hi,
    I am sorry for posting this silly question. Anyhow I have figured it out, the problem was with the oracle driver.
    Thanks anyway,
    Dinesh

  • Help Install XSQL servlet on OAS 4.0.8.1

    We are having difficulties installing XSQL Servlet on our Oracle Application Server (4.0.8.1). Is there any documentation on how to complete this installation?
    Thanks in advance

    Bugs in 4.0.8.1 make running the XSQL Servlet unreliable with that release.
    I'd suggest trying the 4.0.8.2 release or using a combination of Apache + JServ to work with XSQL Servlet.
    Thanks.

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • How do I get XSQL Servlet to work with OCI 9i

    I'm using the most recent jdbc driver (ojdbc14.jar) that works with jdk 1.4. I'm using a 9.0.1 db, and I'm using xdk for java 9.2.0.3. If I specify an oci driver in the XSQLConfig.xml file, I get the following error with a xsql:query request:
    Oracle XDK Java 9.2.0.3.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    Now why does XDK insist to look for ocijdbc8 if I only have ocijdbc9.dll installed on my client? The config file only allows oci8 in the dburl specification, which is probably why XDK insists to look for ocijdbc8, but I CANNOT specify oci9, which would make sense to me, although it's most likely not a valid specification.
    <connection name="9ic">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:oci8:@</dburl>
    <driver>oracle.jdbc.OracleDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    So how do get XSQL Servlet to work with OCI 9i?

    If you are using the latest Oracle9i JDBC driver, which you should be able to get from OTN, it should look for the DLL with 9 in the name.
    Perhaps you have a "stale" JDBC driver somewhere earlier on the classpath?
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • 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

  • Proxy Login

    Urgent help needed.
    I am very confused with how my applets perform on my intranet. When the applets are loaded on a machine within the domain the server is held, there is no problem as to what the applets can do, but when they are loaded outside the domain, and have to go through a proxy server, access is denied. Another strange thing that happens, is that when a specific applet is loaded, the user is prompted for their username and password for the proxy, but this doesnt happen with any of the others. Also, if the user cancels the login, the applet is restricted, and the user is never asked to login in again. Any help would be greatfully appreciated, as I dont know whether this is a problem with the JSP or the Applet. I also need to try and fix this problem asap, because the current fix just doesnt make sense, i.e. to make the user login to the applet that prompts for the proxy login, and then use the other applets,
    Thanks in advance,
    Osian

    Plugin has nothing to do with servlet or JSP. In IE, applets using AWT will not need a plugin. The jre that comes with Netscape 6.x and Mozilla also gives the same problem. As a result, I have not been able to see applets from linux.
    Can someone help?

  • ## NEW XSQL Servlet 0.9.9.1 OUT TODAY ##

    The new release of XSQL Pages and the XSQL Servlet is out today here on OTN. For complete information on what's new, and a much-improved "how to install" section, see:
    http://technet.oracle.com/tech/xml/xsql_servlet/htdocs/relnotes.htm
    The brand-new, unified demo, on-line help system is also staged on the live server at:
    http://technet.oracle.com/tech/xml/demo/demo1.htm
    and is included in the release. It's all built using XSQL Pages and XSLT stylesheets.
    Lot's of new features and enhancements based squarely on all of YOUR feedback, here on the OTN XML Forum.
    Keep the questions and suggestions coming.

    Richard,
    I have just applied patch to upgrade from Portal 3.0.9 to 3.0.9.8.1 (Patch applied to loginserver and portal schema) and the External Applications that were previously set up have gone from the portlet.
    Does this relate to your note at the bottom:
    "Minor issues with Bulk action. 1840420 CUSTOM WRITTEN EXTERNAL AUTH MODULE NEED TO BE UPDATED AFTER 3.0.9 UPGRADE SSOXOID.PKB DOESN'T LOAD.
    External authentication modules that were written before 3.0.9 need to be updated after upgrading to 3.0.9. ssoauthx.pks is updated in 3.0.9 and contains additional routines that need to be implemented." ??
    If I go to the "Login Server Administration" portlet and select the link "Administer External Applications" I get a list of 5 External Applications that have previously been set up.
    If I go back to the Home Page and select "customize" on the "External Applications" portlet I get the message "Your Login Server administrator has not registered any external applications".
    Does that mean I should just run 'ssoauthx.pks' & 'ssoxoid.pkb' or do I need to do something else ??
    Thanks
    Simo

  • Web service proxy client with client cert cause SSLSessionNotFoundErr

    Hi,
    I tried to run web service proxy client with certification from JDeveloper 10.1.3.0.4 to call PKI enabled web service got folllowing error:
    WARNING: Unable to connect to URL: due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
    Web service deployed on OAS

    Hi,
    i am trying to invoke from JDeveloper (10.1.3) a CRM On Demand's Web Service and I hava the same problem:
    ADVERTENCIA: Unable to connect to URL: https://secure-ausomxgfa.crmondemand.com/Services/Integration due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
         at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:96)
         at testerlast.ContactClient.contactInsert(ContactClient.java:88)
         at testerlast.ContactClient.main(ContactClient.java:69)
    Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
         at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
         at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
         at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:80)
         ... 2 more
    To do the invocation I have done a proxy to consume this Web Service, with the follow main:
    public static void main(String[] args) {
    try {
    testerlast.ContactClient myPort = new testerlast.ContactClient();
    System.out.println("calling " + myPort.getEndpoint());
    myPort.setUsername(nameUser);
    myPort.setPassword(password);
    ListOfContactData llista = new ListOfContactData();
    ContactData[] contacts=new ContactData[2];
    ContactData contact=new ContactData();
    ContactInsert_Input input=new ContactInsert_Input();
    // Login WS HTTPS
    String idSesion=connexioWS_CRM.logon(URL,nameUser,password);
    // Add contact
    for (int i = 0; i < contacts.length; i++) {
    contact.setId("ProvaWSCRM"+i);
    contact.setContactFirstName("JDeveloper"+i);
    contact.setContactLastName("prove"+i);
    contact.setCellularPhone("77777777"+i);
    contact.setDescription("Add contact with Id:"+contact.getId());
    contacts=contact;
    System.out.println("Id:"+contacts[i].getId()+" firstName:"+contacts[i].getContactFirstName()+" lastName:"+contacts[i].getContactLastName());
    llista.setContact(contacts);
    input.setListOfContact(llista);
    input.setEcho("off");
    System.out.println("Pwd:"+myPort.getPassword()+" Port:"+myPort._port+" endpoint:"+myPort.getEndpoint()+" user:"+myPort.getUsername());
    myPort.contactInsert(llista,"LIC","Broadset","OFF");
    // Logout en WS (HTTPS)
    connexioWS_CRM.logoff(URL, idSesion);
    } catch (Exception ex) {
    ex.printStackTrace();
    What's wrong? Any idea?
    Thank you
    Edited by: user12085357 on 31-oct-2009 10:39

  • 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

Maybe you are looking for

  • Itunes no longer works on windows 7 pc

    I have uninstalled all apple products and reinstalled.  I lost outlook 2007 as well.  I have been able to upgrade to outlook 2010 to get out look back but still can not get itunes to work on this PC.  I have tried the removal of items from the regist

  • ReportServer intengration error - An attempt has been made to use a data extension 'ADS'

    For a moment I thought I had the perfect SharePoint 2010 installation going until I went and created an Access Database site added some data then went to reports. I am getting the following error. An error has occurred during report processing. (rsPr

  • Lync 2011 for Mac with iMessage on OSX inbound and outbound calls fail

    Running Office 14.4.9 updates and many before that.  If you activate or deactivate an iMessage account using the built-in Messages application, Lync can no longer make or receive calls.  Calls received will automatically go to voicemail.  Outbound ca

  • Edit Favourite list

    After I saved the favourite list for the first time, I now want to edit it. How do I edit the favourite list after the first save? If possible I would like several favourite lists. Is this possible with the BT Visiion control.  I thought it was, as I

  • Hi all, I'm new here and not sure how things work.

    I just wanted to know how do I install adope 10.1 on my iPad 4 for the use of ufilling. Your assistance will be appreciated. Thanks.