Viewing XSQL pages from Apache httpd server.

Hi ,
I have a Redhat 9 machine on which have installed the Apache 2.0.5 web server. I also have Oracle 9i installed.
I am trying to write XSQL pages in order to acces the database and to retrieve the data.
When I open my XSQL sheets with my web browser I get code instead of the retrieved, formatted records.
I have set up the XSQLConfig.xml file inside the xdk directory but I have a feeling that the Apache web browser does not really know about it. How do I configure apache in order to get the required results.
Thanks.
-- Maya.

in addition to the Apache http server you will need a servlet runner, like Apache Jserv or Tomcat. The Xsql-servlet will run on this servlet runner.
The http server wil redirect a request for a *.xsql document to the servlet and returns the result.
With Jserv you will need to modify jserv.properties and include the jars from the xdk installation to the classpath. Also include the XSQLconfig.xml to the classpath.
I don't know the details for installation on Tomcat, but i think these can be found in the xdk documentation.
succes, Bart

Similar Messages

  • Migrating to Web Server 7.0 from Apache HTTPd document

    We've [made available|http://wikis.sun.com/display/WebServer/Migration+from+Apache+HTTP+Server] a work-in-progress document on our Wiki page discussing some of the common problems people have when they migrate from Apache HTTPd server to Sun Java System Web Server 7.0.
    We'd love to get your feedback. What are we missing? Have some information you'd like to add? The comments section is open to all feedback.
    Thanks!

    can this be made as a topic rather than a post in the forum ?

  • Apache 1.1, call XSQL page from ojsp

    I had it working before but now I lost it.
    I was able to call xsql page from jsp page
    using #include command. I am getting the following error.
    Include /xsql/demo/emp.xsql failed: can only include a JSP page.
    javax.servlet.ServletException: Include /xsql/demo/emp.xsql failed: can only include a JSP page.
    void oracle.jsp.runtime.OracleJspWriter.clear()
    void xsql.demo.IncludeXsql._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void oracle.jsp.app.JspApplication.dispatchRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.JspServlet.doDispatch(oracle.jsp.app.JspRequestContext)
    void oracle.jsp.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void org.apache.jserv.JServConnection.processRequest()
    void org.apache.jserv.JServConnection.run()
    void java.lang.Thread.run()
    any ideas ?
    null

    please check your dbc file, there is something wrong with it, get the dbc file from your unix machine and try.
    Thanks
    Tapash

  • How to start my Apache httpd server on TREX, post installation

    Dear Gurus,
    I have successfully installed TREX 7.0 SR3 on my Suse Linux 10 SP2 system and i have choosen it for ABAP and HTTP services, i have done all the post-install activities according to the standard document from SAP.
    All seems to be fine so far, and below are the services that are running on my TREX server..
    ======================================================================================================
    trexdev:/usr/sap/TRX/TRX00/trexdev/Apache # ps -fu trxadm
    UID        PID  PPID  C STIME TTY          TIME CMD
    trxadm    6039     1  0 Oct30 ?        00:01:21 /usr/sap/TRX/SYS/exe/run/saposcol
    trxadm    6055     1  0 Oct30 ?        00:00:00 /usr/sap/TRX/TRX00/exe/sapstartsrv pf=/usr/sap/TRX/SYS/profile/START_TRX00_trexdev -D
    trxadm   21304     1  0 Oct31 ?        00:00:00 sapstart pf=/usr/sap/TRX/SYS/profile/START_TRX00_trexdev
    trxadm   21316 21304  0 Oct31 ?        00:00:00 trx.sapTRX_TRX00 -d -f /usr/sap/TRX/TRX00/trexdev/TREXDaemon.ini pf=/usr/sap/TRX/SYS/profile/TRX_TRX00_trexde
    trxadm   21319 21304  0 Oct31 ?        00:00:06 /usr/sap/TRX/TRX00/exe/sapccmsr pf=/usr/sap/TRX/SYS/profile/TRX_TRX00_trexdev -j2ee -standalone -nodaemon -DC
    trxadm   21321 21316  0 Oct31 ?        00:00:22 TREXNameServer.x
    trxadm   21341 21316  0 Oct31 ?        00:00:01 TREXPreprocessor.x -port 30002
    trxadm   21345 21316  0 Oct31 ?        00:00:07 TREXIndexServer.x -port 30003
    trxadm   21352 21316  0 Oct31 ?        00:00:03 TREXQueueServer.x -port 30004
    trxadm   21367 21316  0 Oct31 ?        00:01:58 python alertserver.py
    trxadm   24710 21316  0 Oct31 ?        00:00:26 TREXRfcServer2.x
    ======================================================================================================
    I have no problems on my server as to what so ever, but the only thing is that I want to know how to start my apache httpd server so that i can starting using my Web services from Portal.
    According to SAP standard document it clearly says that Apache is installed by SAPinst tool, but i also verified that the http://localhost does not give any web page opened, probably no http service is running on my machine.
    I request all gurus to help me on this and start my httpd service.
    Thanks in advance
    Regards
    BasoKing

    Did you ever get a solution for this?? If so, can you please post it here?
    Thanks in advance

  • BSP Authorisation error when trying to view BSP page from workitem

    Hi All,
    I developed a bsp application that initiates a workflow.
    The application generated successfully and the workflow was activated and no errors appear in the workflow log.
    When I try to view the bsp from the workitem, I get an error message
    u2018You are not authorized to view this pageu2019
    If I was to view the page from bsp application, I would have to login again to the bsp application.
    Is this what is stopping me viewing the bsp page directly from the workitem?
    How can I create this login to the bsp server from my workflow?
    Can I remove this login to the bsp server?
    thanks

    Hi Brendan Gibbons,
    The authorization for viewing the bsp application through se80 is different from viewing the bsp application from the workitem.
    For example
    I am abap developer, i have authorization for se38 and i have authorization to view/change the program what i have created, but i can view the program what some one has created but i dont have authorization for changing it. The same apply's here too.
    Kindly check with the basic consultant.
    Thanks and Regards
    Balaji E.

  • Viewing HTML page saved  on the server from the browser

    Hi all
    In my application i am having some HTML pages saved on the server. I had given an option to the user to view the HTML page from my application. behind the scene what i am doing is that the view request will get handled by a servlet and from that servlet iam locating the HTML page on the server directory and sending the HTML page to browser by using the Servlet OutputStream. The HTML page is shown on the browser but the attached images are not shown. The images are also there in the server directory and are refered in the HTML file correctly. When i directly open the HTML file then the images are shown correctly.
    Can anyone suggest wat's wrong there.
    The code i m using is
    ServletOutputStream out=response.getOutputStream();
                        if(format.equalsIgnoreCase("pdf"))
                             logger.info("Seleted format is pdf..\n");
                             response.setContentType("application/pdf");
                        else
                             logger.info("Seleted format is html..\n");
                             response.setContentType("text/html");
    String file = ReportingConstants.URL_GENERATEDREPORTS+reportPath+itemName;
    // file : HTML file absolute path as string.
                        URL url=new URL(file);                    
                        BufferedInputStream bis=new BufferedInputStream(url.openStream());
                        BufferedOutputStream bos=new BufferedOutputStream(out);
                        byte[] buff = new byte[2048];
                        int bytesRead;
                        while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                             bos.write(buff, 0, bytesRead);
                             bos.flush();
                        }

    You have to undertsand how the browser handles images and other resources in a HTML page. In the HTML there is an image tag that has a url to an image which can be a reletive url or an absolute url (starts with a "/").
    If the url is a relative url the browser interprets the url as being relative to the url currently displayed in the address field discarding the last element of the url . So if the url in the address bar is http://www.myserver.com/myapp/mypage.html and the relative url is images/myimage.jpg, the browser will submit a request to the server for http://www.myserver.com/myapp/images/myimage.jpg
    Now let's say that you are call mypage.html from a servlet that has the url http://www.myserver.com/myapp/servlets/myservlet. Then when the browser tries to retrieve myimage.jpg it will use the url http://www.myserver.com/myapp/servlets/myservlet/images/myimage.jpg and since this is incorrect it will not be able to display the images.
    One solution to this is to change all of the image urls to absolute urls. That is the start with a slash where the slash represents the start of the url after the application domain name. For example you used an absolute url for myimage.jpg it would look like /images.myimage.jpg and when accessing the page through the servlet url (http://www.myserver.com/myapp/servlets/myservlet) the browser will discard everything after http://www.myserver.com/myapp and look for the image at http://www.myserver.com/myapp/images/myimage.jpg which is the correct url.
    A second solution is to use the HTML BASE tag which tells the browser not to interpret the image tag urls (and other resourses) using the current url in the address bar but to use the url supplied in the HTML BASE tag. The browser will still perform the same process for relative urls but now relative to the BASE tag url. Since the BASE tag url will be the same every time the page is accesssed the images should be correctly accessed no matter how the page is accessed (eg directly, using RequestDistpatcher or via your servlet)

  • Problem connecting oracle database to jsp pages using Apache Tomcat server 8.0

    Well...I tried too many things..googled so many times..but still could not find solution to my problem.
    I use windows 8 Enterprise Edition(if this has to do something with the problem)
    Oracle 11.2.0
    Apache Tomcat server 8.0
    JDK 1.7
    My oracle is installed in the D: drive and tomcat in c:. i copied the ojdbc6.jar file from oracle to lib directory of tomcat server.
    Then i set  CLASSPATH in environment variables as "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" in system variables
    My path variable is set as "C:\Program Files\Java\jdk1.7.0_02\bin".
    My program is as follows in notepad:
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection conn;
    Statement st;
    ResultSet rs;
    try{
    new oracle.jdbc.driver.OracleDriver();
    String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
    String userId="system";
    String pwd="moon";
    conn=DriverManager.getConnection(dbURL,userId,pwd);
    st=conn.createStatement();
    rs= st.executeQuery("SELECT * FROM login");
    while(rs.next())
    System.out.println(rs.getString(1)+""+rs.getString(2));
    catch(Exception e){}
    %>
    </body>
    </html>
    I get too many errors then
    eroors
    org.apache.jasper.JasperException: An exception occurred processing JSP page /page2.jsp at line 14
    11: String userId="system";
    12: String pwd="moon";
    13:
    14: conn=DriverManager.getConnection(dbURL,userId,pwd);
    15: st=conn.createStatement();
    16:
    17: rs= st.executeQuery("SELECT * FROM login");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
         org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    Nothing solved this problem.

    >> Nothing solved this problem.
    Can't fix a problem 'till an actual problem is identified.
    >> ODBC Driver Manager ... Data source name not found
    That appears to be ODBC drivers looking for a DSN (Data Set Name). If it wants a DSN, the DSN has to be specified in the code, and the DSN has to be configured in the windows host ODBC applet. So that is at least two squirrels to get in the right tree before moving forward. A ...host:...[port:]SID|service name are some of the bits needed in a jdbc connect string, and that is in no way related to DSNs. A Whole Different Animal. If it wants a DSN that might be what needs to go in the URL bit.
    And ODBC setups can be confusing, especially if an x64 OS is in the mix- if that is the case there are two different ODBC configuration applets, one for x64 the other for x86, and if one gets as far as talking to an actual database it might toss an architecture error. Only way to fix that "problem" is *delete* the ODBC DSN and then run the correct (maybe the x86) ODBC config utility, and set up the DSN. Again.

  • After upgrading to FF 3.6.12 I can no longer view PHP pages from my hard drive.

    After upgrading to version 3.6.12 I can no longer open PHP web pages from my hard drive. When I create or edit web pages I view them from my hard drive first before uploading, as many webmasters do to look for errors before taking them live.
    I can view PHP pages online, but from my hard drive it just spawns endless empty tabs. Instead of just opening the page it asked me what to open it with, thinking the PHP web page is a script.
    It was working fine before the upgrade. I had a page open that I wanted to edit, which it reopened when my browser restarted.
    Then I edited the page. All I did was add a link to it. Then I hit the refresh button to see the change and instead of reloading the page, FF asked me what to do with the PHP script, prompting me to save it or choose what program to open it with.
    I selected to view it with FF and it just spawned endless tabs. They wouldn't stop. Had to shut down FF and it probably had 40 tabs opened with nothing on them. I tried other PHP pages from my hard drive that opened fine before, but it did the same thing with them.
    I tried finding help online and I see others have had the same problem, but no solution was offered that worked. I tried rebooting, same story, it wants to know what to do with the PHP script.
    I'm being forced to use another browser, so I'm going to go download Chrome now. If this probably isn't fixed soon I'll simply give up on FF. It's not worth the aggravation. I can't tell you how much TIME I've wasted today -- HOURS.
    Very disappointed.

    Thanks for the reply. It doesn't have to process the php, it just has to show the HTML content. It did that just fine before the last upgrade but won't now.
    I've seen that page you referenced: http://kb.mozillazine.org/File_types_and_download_actions.
    It doesn't help. The things it says to look for aren't there for me, specifically:
    browser.download.pluginOverrideTypes
    plugin.disable_full_page_plugin_for_types
    I followed the rest of the instructions but it didn't help.
    I did get it to quit opening tabs, instead it prompts me what it should do with the file every time now. What it should do, and used to do, is open the php page and display the HTML content.
    Any other ideas?

  • Can I view another page from a different application in the same workspace?

    I'm a newbie and I've searched through the threads and can not find exactly what I'm looking for.
    I do not wish to copy a page from a different APP. What I want to do is create an application where on tab is actually a tab from a different App.
    Like this, I have SCHEDULED_TASKS application that has a calander that is updated weekly. I have another appliction that is used for our Database Testers to track testing on the database.
    I have a Tab in CAS_TESTING named TESTING_SCHEDULE. It is this tab that I want to have referance the SCHEDULED_TASKS Calender so testers can view the schedule for service packs.
    Is there a way that I can do this?
    Thanks,
    Mike Long
    Message was edited by:
    mikedlong

    Mike,
    In terms of the UI and tabs, you can use parent tabs (use a two-level tab page template). Or you could just put links in on app's pages that go to the other app using Lists, for example. In any of these links from one app to the other, you must include the session ID (&APP_SESSION.).
    If the application's are both public (no authentication required), you're done.
    If the apps require authentication, edit each app's authentication scheme and put some name in for cookie name (anything you like), using the same name in both apps. Depending on the authentication method, you then have to figure out who owns the login page, etc.
    That should do it.
    Scott

  • Unable to view IDS logs from cisco VMS server

    Hi,
    Pls help me out for viewing IDS logs from my cisco vms server (4th edition with SP2,java 1_4_1.02)
    Configured IDS sensor with IDS MC (2.0.1) and updated signatures with latest sig files,
    Configured Security monitor to view my IDS sensor and showing TLS was connected and cisco IDS REDP/SDEE,when viewing logs error was server codes need to be update., unreconiged last saved IDS alarms.
    Pls give me the solution
    Regards
    Ajay

    Hi Ajay,
    when you upgrade to sec mon 2.0.1, the database is the same, but the formats are different.. you need to do somethings for converting these formats, which might take hours together, if ur database has too many events...
    for information to convert the file format, refer to this URL:
    http://www.cisco.com/en/US/products/sw/cscowork/ps3990/prod_release_note09186a0080386f72.html#wp1087204
    see the section "Using the ConvertAndImport.pl Script after Upgrading from Security Monitor 1.2.3 to Security Monitor 2.0.1 "
    do this and see.. let us know
    Raj

  • Can print test pages from embedded web server., put not from windows

    Hello,
    I have a P1102w that worked perfectly through the last 5 month.
    Two days ago it stopped printing anything for some reason. What happen is, when I print something, it spools, but then I get Error-Printing under the status when I double click the printer icon in the "devices and printers" manager of windows 7.
    Right now I can see the printer in Ad Hoc. I can load the embedded web server,. And I can print test pages from the embedded web server.
    However, if I tried to print test pages using the printer icon in "devices and printers" manager".. it doesnt print!
    If I go to Devices and Printers -> Properties -> Advanced -> "Print directly to printer" -> Apply
    I got an error box: "Printer settings could not be saved. Operation could not be completed (error 0x0000070c)."
     The printer works fine when connected to other laptops (with exactly the same driver/setting)..
    This problem is driving me crazy !
    Thank you in advance for your help

    Hi m-rasheed, 
    An ad-hoc connections is much more unstable than an infrustructure network using a router. At this point i would suggest getting a wireless router, and then connect the printer to your network through the router. 
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02847467&tmp_task=useCategory&cc=us&dlc=en&lang...
    Routers:
    http://www.shopping.hp.com/webapp/shopping/can.do?storeName=accessories&landing=computer&category=ca...
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • HT4059 Using my iPad 1, viewing a page from a book purchased through iBooks, want to print a page.  Does anyone know how??

    I'm using my iPad 1 and wanting to print a page from a book that I purchased from iBooks.  I can't figure out how to print.  Any suqqetions? Thanks.

    Sorry, but you can't.
    Regards.

  • SetAttribute in JSP page and Apache tomcat server

    Hello all gurus: I have created a JSP using JDeveloper. It works fine within the web server installed with JDeveloper, but when I upload the application to apache tomocat server, it does not seem to work correctly.
    I am using setAttribute property of the session object, to save data. Listed below is a section of the code. Not sure if it is a cookie issue or what.
    <%
    int i_count = 0;
    if(session.getAttribute("create_user_first_time") == "") {
    session.setAttribute("create_user_first_time","FIRSTTIME");
    else {
    System.out.println("SECOND TIME DUDE.");
    System.out.println(request.getParameter("username").toString().trim());
    i_count = createuser (
    request.getParameter("username").toString().trim(),
    request.getParameter("password").toString().trim(),
    request.getParameter("Email").toString().trim(),
    request.getParameter("DOB").toString().trim(),
    request.getParameter("securityQ").toString().trim(),
    request.getParameter("securityA").toString().trim(),
    request.getParameter("Phone").toString().trim()
    System.out.println("after create user");
    System.out.println("i_count="+i_count);
    if (i_count == 3) {
    session.setAttribute("err_msg_create_user", "USER ALREADY EXISTS!");
    System.out.println("err_msg_create_user: USER ALREADY EXISTS!");
    else {
    session.setAttribute("err_msg_create_user", "Congratulations " + request.getParameter("username").toString().trim() + "!!Please proceed to login at the following URL: <a href=Login.jsp target='_blank'> Login </a>");
    System.out.println("CONGRATULATIONS!");
    %>

    Abder-Rahman wrote:
    I noticed the problem.The "Hello.jsp" file was still in "Notepad" format.Huh? What is it, the "Notepad" format?
    Do you mean that it is saved as hello.jsp.txt? Just rename the file then.
    It might be helpful to disable the setting "hide extensions for known file types" in the Windows Explorer options.

  • Can I able to view ASP pages in iplanet web server

    can iplanet web server handle the ASP pages in Windows NT server. i tried but i might be wrong configuring it in content manager, anybodys help will be appreciated.

    There is a plug-in for iWS that allows iWS to process ASP pages.You can read about this plug-in at the URL below.
    http://www.chilisoft.com/

  • JMX implementation In Apache HTTPD server

    I need help in configuring a httpd server for JMX. Specifically, I would like to monitor app and system statics the same way one can use JMX Attributes in Weblogic.
    Also, does JMX expose system stats such as CPU, Memory Utilzation?
    Thanks.

    Hi,
    JMX itself doesn't expose any stat, but the JVM Monitoring & Management MBeans do.
    (Java SE 5.0 and higher)
    See:
    http://java.sun.com/javase/6/docs/api/java/lang/management/package-summary.html
    http://java.sun.com/javase/6/docs/api/java/lang/management/ManagementFactory.html
    http://java.sun.com/javase/6/docs/jre/api/management/extension
    and
    http://blogs.sun.com/jmxetc/entry/a_small_program_that_prints
    Hope this helps,
    -- daniel
    JMX, SNMP, Java, etc...
    http://blogs.sun.com/jmxetc

Maybe you are looking for

  • PO Deletion indicator cannot be unset

    Hi, We want to change a material based Unit of measure from PC to EA, but the material has an open PO. 1. We delete the PO item first with tcode ME22N then change the Material master (tcode MM02), change the based uom from PC to EA. done. 2. Then go

  • Problem with Getting Started

    Alright I'm having a problem with the Mac instructions for Getting Started with Alchemy (http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started) Basically step 13 when I type : gcc stringecho.c -O3 -Wall -swc -o stringecho.swc giv

  • CS4 on an Imac?

    We're being forced to switch to Indesign 4 to keep a client happy and I understand this won't run on our G4. So.... we're looking at a 24-inch Imac, probably 2.66GHZ, 4 GB ram.  Is anyone else running Indesign 4 on this configuration? Any problems? T

  • To activate Analysis - Shipment stages ( T-Code MCUE )

    Hi, Nothing comes up when I run T code u2013 MCUE but it seems the closest to what we are looking for. I guess the corresponding info structures might not been active. Please provide the details how to activate and run the T-code: MCUE. Thanks, Victo

  • Count the Pass/ Fail in a DAQ reading testing ?

    I want to write the while loop to read the DAQ signal. Each time, the DAQ input signal is compared with the spec. limit. The signal that is within the limit will be recorded as " Pass " while the signal out of spec. will be recorded as " Fail ". At t