Unable to setup/mapping of XSQL Servlet

We have installed Apache web server with Tomcat Servlet engine. We have downloaded XDK 9i for Java and we have done the setup of Classpath in tomcat.bat.
When we try to run the XSQL file from the browser (IE5), it opens as a text file instead of running the query and converting into XML document.
We are facing the problem in servlet mapping since the file WEB-INF/web.xml is not found in the distribution whereas it is mentioned in the installation document it should be available.
Please help us on this.
Thanks

Hi!
I think your problem happens because you haven't told Tomcat what to do when a xsql file is invoked.
Respecting to this, I have the following lines in my web.xml file:
<servlet>
<servlet-name>
xsql
</servlet-name>
<servlet-class>
oracle.xml.xsql.XSQLServlet
</servlet-class>
<load-on-startup>
-2147483646
</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>
xsql
</servlet-name>
<url-pattern>
/home/user/*.xsql
</url-pattern>
</servlet-mapping>
I hope this helps!
Best Regards,
Andri Rocha
PT Inovagco
Porto - Portugal
null

Similar Messages

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

    The 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>

  • Trying to make oracle-xsql-servlet to work under tomcat

    I am trying setup Setup "oracle-xsql-servlet" to work under tomcat.
    #1. I have installed the xdk from orcale at "C:\xdk_nt_10_1_0_2_0_production"
    #2. I have installed "Apache Tomcat Version 6.0.14"
    #3.
    I have made the following changes to "catalina.bat"
    REM Added for Oracle XSQL Servlet
    REM -----------------------------
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\xsu12.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\oraclexsql.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\xmlparserv2.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\classes111.zip
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\xdk\admin
    echo %CLASSPATH%
    #4 created a new folder under "C:\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps" xdk
    and created a web.xml in it. Following are the entries is the web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
         <description>
    XDK Examples.
    </description>
         <display-name>XDK Examples</display-name>
         <servlet>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <url-pattern> *.xsql </url-pattern>
         </servlet-mapping>
    </web-app>
    PROBLEM. When I start up tomcat, I keep getting the following errors.
    SEVERE: Error deploying web application directory xdk
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)     
    OTHER APPLICATIONS such as Examples (provided by apache) work fine.
    Any ideas ?

    XSQL may be used with Tomcat 3.1 and 3.2.
    Refer to section Jakarta Tomcat 3.1 or 3.2
    http://www.oracle.com/technology/tech/xml/xdk/doc/production10g/doc/java/xsql/xsql_userguide.html#ID3386

  • XSQL Servlet and Dynamic SQL

    Does the XSQL servlet support dynamic SQL? Take a stock screening page as an example. In this example you want to dynamically build the where clause based on user input. Thus if a Minimum PE Ratio of 3 was entered, the where clause of "where PE_Ratio >= 3" would be appended to the query. In this case there may be up to 20 different parameters or more to be mapped dynamically, so it wouldn't be feasible to nest all of the different combinations.

    XSQL Supports lexical substitution parameters
    so any and every part of any query can be parameterized.
    The extreme case is:
    <query> {@sql} </query>
    where the entire query is passed in
    in a parameter (named "sql").
    But any combination of parameters
    and substitutions is legal and can
    be used to do what you want.
    Since the variables are not BIND
    variabled, but instead lexical
    substitution variables, you can
    do things like:
    <query>
    select {@collist}
    from {@table}
    where {@where}
    order by {@orderby}
    </query>
    You can provide default parameter values
    using XML attributes on the <query>
    element which then can be overridden
    if a value is passed in in the request...
    <query collist="ename, sal"
    orderby="sal desc"
    where="1=1"
    from="dept">
    select {@collist}
    from {@table}
    where {@where}
    order by {@orderby}
    </query>
    And then a request to the page
    can pass in a orderby=decode(comm,null,1,0)
    or something to override the defaults.
    null

  • How to 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

  • Forms and reports 10g :  enable xsql servlet

    Please, how can I enable a XSQL Servlet on "Forms and reports AS 10g : 9.0.4"?
    I have added xsql <servlet> and <servlet-mapping> info to global-web-application.xml.
    I have copied XSQLConfig.xml file to $ORACLE_HOME/j2ee/home/default-web-app/WEB-INF/classes.
    But if I run any xsql script from xsql demos, I will get some result as xml : (<?xml version="1.0" ?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">SELECT name, origin FROM location loc WHERE loc.origin.x = {@x-coord}</xsql:query> )
    => xsql servlet doesn't work !
    Help me?

    Certification information is pulished on metalink.oracle.com
    Regards
    Grant Ronald
    Forms Product Management

  • XDL & XSQL servlet, where is it?

    I downloaded the XDK (Java) for windows and cannot find the XSQL servlet that the HTML doc's talk about. Has anyone else ran into this problem?
    Any help is appreciated...thanks!

    Ok I found the Servlet now it seems like there are a lot of discrepencies between the Oracle HTML documentation and the XDK. For instance it tells me:
    "The XSQL Pages distribution includes a ......along with the xsql-wtg.bat script to start the server with all XSQL Servlet settings setup properly."
    Yet I cannot find that Batch file anywhere?
    Any ideas?
    Thanks!
    null

  • Posting XML to XSQL servlet

    Hi
    I use Java to post an XMLDocument to the XSQL servlet
    my java program :
    public void envoie() throws java.lang.Exception {
    try{
    Hashtable params = new Hashtable(1);
    URL pageUrl = new URL("http://k2sun2/xsql/insert_crpersonnes_cr.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    org.w3c.dom.Document converted= (org.w3c.dom.Document)xmldoc;
    req.setPostedDocument(converted);
    req.process(params, new PrintWriter(System.out), new PrintWriter(System.err));
    }catch(Exception e){
    System.out.println(e);
    the program returns this error :
    <?xml version = '1.0'?><xsql-status action="xsql:insert-request" result="No posted document to process"/>
    null

    The http get is a "red herring". I wanted to see what was being fired at the xsql page and I thing the "get" referred to the retrieval of the xsql page. Anyway, here's exactly what I've got:
    Receiving Table:
    create table newsstory
    (id number
    ,title varchar2(2000)
    ,url varchar2(2000)
    ,source varchar2(2000)
    XSQL Page:
    <?xml version="1.0"?>
    <testpage connection="demo" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-param name="param1"/>
    <xsql:include-param name="param2"/>
    <xsql:insert-request table="newsstory"/>
    </testpage>
    Java Program:
    import oracle.xml.xsql.XSQLRequest;
    import java.util.Hashtable;
    import java.io.*;
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    import java.net.URL;
    import com.db.atg.util.XMLUtil;
    import org.apache.xerces.parsers.DOMParser;
    public class XSQLRequestSample {
    public static void main( String[] args) throws Exception {
    // Construct the URL of the XSQL Page
    URL pageUrl = new URL("http://cbitwebd1.dev.lon.deuba.com:9091/tramp_dev/jmw1.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    // Setup a Hashtable of named parameters to pass to the request
    Hashtable params = new Hashtable(3);
    params.put("param1","value1");
    params.put("param2","value2");
    // Prepare an XML Document to post
    String xmldocstring = "<ROWSET><ROW><ID>55</ID><TITLE>Test Title</TITLE><URL>Test URL</URL><SOURCE>Test Source</SOURCE></ROW></ROWSET>";
    oracle.xml.parser.v2.DOMParser d = new oracle.xml.parser.v2.DOMParser();
    d.parse(new StringReader(xmldocstring));
    Document doc2Post = d.getDocument();
    // Print out the contents of do2Post to check there is something to post.
    System.out.println("value is " + XMLUtil.dom2XmlString(doc2Post));
    req.setPostedDocument(doc2Post);
    // Process the page, passing the parameters and writing the output
    // to standard out.
    req.process(params,new PrintWriter(System.out)
    ,new PrintWriter(System.err));
    Output:
    value is <ROWSET><ROW><ID>55</ID><TITLE>Test Title</TITLE><URL>Test
    URL</URL><SOURCE>Test Source</SOURCE></ROW></ROWSET>
    <?xml version = '1.0'?>
    <testpage>
    <param1/>
    <param2/>
    <xsql-status action="xsql:insert-request" result="No posted document to process"/>
    </testpage>
    null

  • Troubleshooting XSQL Servlet

    Hi.
    I need some assistance troubleshooting
    a simple .xsql.
    I'm running Oracle 8.1.7 and JRUN 3.X as
    my servlet engine.
    I've mapped .xsql files to the XSQL servlet
    as specified in the installation guide.
    The servlet engine is running and I'm able
    to establish a connection w/ the database via
    that servlet.
    My xsql file is as follows:
    <xsql:query connection="gdsadmin" xmlns:xsql="urn:oracle-xsql">
    select gds_entity_id,
    entity_symbol,
    native_id
    from entity_xref_tab
    </xsql:query>
    In my browser, I see the following:
    <?xml version="1.0" ?>
    <xsql:query connection="gdsadmin" xmlns:xsql="urn:oracle-xsql">select gds_entity_id, entity_symbol, native_id from entity_xref_tab</xsql:query>
    Any ideas on what could be going wrong?
    XML generation via OracleXML getXML with
    the same connect string as in XSQLConfig.xml
    is successful.
    Thanks for your help,
    Tara
    null

    This symptom is the result of not having the servlet engine properly associate the *.xsql with the oracle.xml.xsql.XSQLServlet servlet. It's simply returning the raw template as a text file, rather than returning the result of having the servlet process the template server-side.

  • Mapping paths to servlets doesn't work anymore in SP5 ??

    Hello,
              see subject.
              I have a small web application which is contained in a WAR-file named
              "httpdump.war". Its deployment descriptor (web.xml) maps the servlet
              httpdump.HttpDumpServlet to the path /servletpath/* with the following
              XML statements:
              <servlet>
              <servlet-name>HttpDumpServlet</servlet-name>
              <display-name>The HTTP Dump Servlet</display-name>
              <servlet-class>httpdump.HttpDumpServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>HttpDumpServlet</servlet-name>
              <url-pattern>/servletpath/*</url-pattern>
              </servlet-mapping>
              In weblogic.properties, I have:
              weblogic.httpd.webApp.httpdump=httpdump.war
              The WAR-file is structured as follows:
              $ jar tf httpdump.war
              META-INF/
              META-INF/MANIFEST.MF
              WEB-INF/classes/httpdump/HttpDumpServlet.class
              WEB-INF/web.xml
              dummy.jsp
              $
              Now a request like http://host:port/httpdump/servletpath/xyz should be
              directed to my servlet, right?
              This works flawlessly in WLS 5.1 SP 3. With SP 5, I get the following:
              Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump> Error loading servlet: httpdump.HttpDumpServlet
              java.lang.ClassNotFoundException: httpdump.HttpDumpServlet
                   at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:355)
                   at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
                   at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
                   at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(GenericClassLoader.java:503)
                   at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassLoader.java:366)
                   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:182)
                   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:156)
                   at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:371)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump> Servlet failed with ServletException
              javax.servlet.ServletException: Servlet class: httpdump.HttpDumpServlet could not be loaded - the requested class wasn't found in the classpath
                   at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:379)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              So, it seems the WLS has interpreted the <servlet-mapping> tag in the
              DD correctly, but is then looking for the servlet class in the wrong
              places..?
              My system configuration:
              $ java weblogic.Admin t3://localhost:7001 VERSION
              WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895
              $ uname -a
              Linux localhost.localdomain 2.2.14 #1 Wed Aug 16 01:57:42 CEST 2000 i686 unknown
              $ java -version
              java version "1.2.2"
              Classic VM (build 1.2.2-L, green threads, nojit)
              $
              Any hints?
              Thanks,
              Olaf
              Olaf Klischat | TU Berlin computer science
              Oberfeldstrasse 132 |
              12683 Berlin, Germany |
              phone: +49 30 54986231 | eMail: [email protected]
              

    Hi,
              we jared our servlets up and placed them in /WEB-INF/lib/....jar. The
              mapping is working without any problems.
              Daniel Hoppe
              -----Original Message-----
              From: Kumar Allamraju [mailto:[email protected]]
              Posted At: Saturday, August 26, 2000 7:57 PM
              Posted To: servlet
              Conversation: mapping paths to servlets doesn't work anymore in SP5 ??
              Subject: Re: mapping paths to servlets doesn't work anymore in SP5 ??
              Yes, this is already a known problem in SP5.
              Fix will be available in the upcoming service packs.
              I guess the workaround is to put servlet classes in servlet classpath.
              Sorry about the regression.
              Kumar
              Olaf Klischat wrote:
              > Hello,
              >
              > see subject.
              >
              > I have a small web application which is contained in a WAR-file named
              > "httpdump.war". Its deployment descriptor (web.xml) maps the servlet
              > httpdump.HttpDumpServlet to the path /servletpath/* with the following
              > XML statements:
              >
              > <servlet>
              > <servlet-name>HttpDumpServlet</servlet-name>
              > <display-name>The HTTP Dump Servlet</display-name>
              > <servlet-class>httpdump.HttpDumpServlet</servlet-class>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>HttpDumpServlet</servlet-name>
              > <url-pattern>/servletpath/*</url-pattern>
              > </servlet-mapping>
              >
              > In weblogic.properties, I have:
              >
              > weblogic.httpd.webApp.httpdump=httpdump.war
              >
              > The WAR-file is structured as follows:
              >
              > $ jar tf httpdump.war
              > META-INF/
              > META-INF/MANIFEST.MF
              > WEB-INF/classes/httpdump/HttpDumpServlet.class
              > WEB-INF/web.xml
              > dummy.jsp
              > $
              >
              > Now a request like http://host:port/httpdump/servletpath/xyz should be
              > directed to my servlet, right?
              >
              > This works flawlessly in WLS 5.1 SP 3. With SP 5, I get the following:
              >
              > Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump>
              Error loading servlet: httpdump.HttpDumpServlet
              > java.lang.ClassNotFoundException: httpdump.HttpDumpServlet
              > at
              weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:35
              5)
              > at
              weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
              > at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
              > at
              weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(GenericCl
              assLoader.java:503)
              > at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericCl
              assLoader.java:366)
              > at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
              der.java:182)
              > at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
              der.java:156)
              > at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
              .java:371)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
              a:187)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
              java:118)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:760)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:707)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletCon
              textManager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:3
              69)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              >
              > Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump>
              Servlet failed with ServletException
              > javax.servlet.ServletException: Servlet class:
              httpdump.HttpDumpServlet could not be loaded - the requested class
              wasn't found in the classpath
              >
              > at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
              .java:379)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
              a:187)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
              java:118)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:760)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:707)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletCon
              textManager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:3
              69)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              >
              > So, it seems the WLS has interpreted the <servlet-mapping> tag in the
              > DD correctly, but is then looking for the servlet class in the wrong
              > places..?
              >
              > My system configuration:
              >
              > $ java weblogic.Admin t3://localhost:7001 VERSION
              > WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895
              >
              > $ uname -a
              > Linux localhost.localdomain 2.2.14 #1 Wed Aug 16 01:57:42 CEST 2000
              i686 unknown
              >
              > $ java -version
              > java version "1.2.2"
              > Classic VM (build 1.2.2-L, green threads, nojit)
              > $
              >
              > Any hints?
              >
              > Thanks,
              > Olaf
              > --
              > Olaf Klischat | TU Berlin computer science
              > Oberfeldstrasse 132 |
              > 12683 Berlin, Germany |
              > phone: +49 30 54986231 | eMail: [email protected]
              

  • Error :Unable to retrieve data from iHTML servlet for Request2 request

    I open bqyfile to use HTML in workspace.
    When I export report to excel in IR report.
    Then I press "back" button I get error"Unable to retrieve data from iHTML servlet for Request2 request "
    And I can not open any bqyfiles in workspace.
    Anybody gat the same question? Thanks~

    Hi,
    This link will be helpful, the changes is made in the TCP/IP parameter in the registry editor of Windwos machine. I tried the 32 bit setting for my 64 bit machine (DWORD..) and it worked fine for me..
    http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html
    Hope this helps..

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

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

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

Maybe you are looking for

  • Poor result using Compressor

    I need help. I use a Sony camera (HDR CX560) bought in US with NTSC as standard. I live in Europe and would like to burn a DVD for my Blue-Ray player showing it on my PAL TV. The footage is 1080i, 1920x1080, 29,97 fps. I have tried several different

  • Problem in COHV with mass processing function Release.

    Hello,Guru's I have problem in COHV with mass processing function Release. even after execution of COHV the status of Orders remains unchanged.i.e. remain Created instead of Release   My user require all Orders should release in mass process with mat

  • PP CS5 Effects

    Some effects seem to be gone in CS5, like radial blur. Where can I see a comparison of all old and new effects? Are there any new effects for Premiere CS5? I am very underwhelmed by CS5 and the whole 64 bit Mercury revolution. Seems high performance

  • CX_SY_CREATE_DATA_ERROR  in SOLMAN 7.1

    Hi All, We are getting the "CREATE_DATA_UNKNOWN_TYPE" dump regularly in our solman7.1 system after the inital configration is completed. Attaching the log for your reference. Can someone please help to fix the issue ASAP. Category               ABAP

  • Contact List Question

    Hi, If I recall correctly, prior to the recent update my contact list was arranged by last name or first name. After the update, it was arranged differently (visually speaking). The contact list was seperated alphabetically instead of all the names j