Apache not serving XSQL pages properly.

java 1.2
apache 1.3.12
tomcat 3.2.1 (w/ mod_jk)
Solaris 7
XSQL 1.0.4.3
The XSQL Servlet appears to be working fine through TOMCAT stand-alone. So for example, this
"http://192.168.0.2:8080/xsql/demo/helloworld/helloworld.xsql" works fine...
When I try to hit it through Apache (w/out the 8080 port) however I simply get the original XSQL query page instead of the query results. In other words, it appears Apache doesn't forward *.xsql requests to the XSQL Servlet...I think? Any ideas - thanks.

Thanks for your responses...I think I've figured it out for both mod_jserv and mod_jk.
The mapping of *.xsql to the oracle.xml.xsql.XSQLServlet is taken care of in the web.xml supplied in the XDK. This tells Tomcat to handle all *.xsql files with the XSQLServlet and that was working all along (Tomcat stand-alone).
What's missing is that Apache needs to direct all *.xsql files to Tomcat. This is taken care of by adding the following lines to the httpd.conf:
(for mod_jserv add)
AddType text/xsql .xsql
AddHandler jserv-servlet .xsql
(for mod_jk add)
JkMount /xsql/*.xsql ajp12
In general, I simply mimiced the configuration of *.jsp files.
I noticed a posting a few weeks back where someone was getting "rubbish" when they tried to access http://localhost/xsql/ - my guess is that apache was serving up the xsql pages "as is", without passing them onto Tomcat. This should hopefully do the trick...
Comments?

Similar Messages

  • WCS is initialized, but is not serving web pages.

    The WCS version 5.0 failed to start, I tried stop the services and then reload the server but the resut is same.
    The dadabase is running and Apache server is running but  WCS is initialized, but is not serving web pages.
    CISCO say this issue coul be for syncronization.

    Hi,
    Cisco says it could be synchornization with the database.
    The log file show:
    172.28.255.113 - - [14/Nov/2010:00:02:18 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:04:30 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:07:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:09:30 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:12:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:14:30 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:17:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:19:31 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:22:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:24:31 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:27:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:29:31 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:32:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:34:31 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.113 - - [14/Nov/2010:00:37:17 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 3368
    172.28.255.111 - - [14/Nov/2010:00:39:31 -0500] "GET /webacs/loginAction.do?requestUrl=/webacs/welcomeAction.do HTTP/1.1" 500 33
    Thanks for your help.

  • Safari Not Diplaying Web Pages Properly

    This has really been annoying me, and today I've tried everything to fix it...
    For some reason Safari will not display web pages properly. The problem occurs in different ways, sometimes varying between page loads. The one example that illistrates the nature of the problem best is Apple's iPhone page.
    I have a snapshot of what I see when I load the page in Safari.
    http://img.torgo.org/offsite/other/safari_iphone.jpg
    As you can see in this snapshot, the black background that is supposed to be part of the page is not displaying black. This is obvously indicating a bug as apposed to bad css/styling, as I would think Apple's most recently added web page would be the one page that should display properly.
    This problem is not limitd to missing backgrounds (though it's one of the more regular issues). My own blog is not displaying all the text in the right color (the color is supposed to be white, but between reloads some to all of the text displays in black).
    I've tried empting safari's cache, resetting safari, and deleting the com.apple.safari.plist file in my preferences folder, but none of these had any effect... Furthermore I've also tried using different user accounts, and as of now they ALL display this pattern...
    The only thing I cannot seem to try is to boot into 'safe mode' and see if it still occurs. This is because I just learned if I hold the shift key down to do so without fail every time my system shuts off at about the time it usually switches from the apple screen to the loading progress bar screen, but that is obvously unrelated to the Safari issue.
    I'm using Version 2.0.4 (419.3) on 10.4.8 intel core duo (origional MacBook)...
    2.0 GHz MacBook (Black) w/512 MB RAM   Mac OS X (10.4.8)  

    Bobby, sorry to hear of this.
    Good that you tried this in another user, and with the same thing happening there, this lets us know you have a system wide issue.
    Since safemode isn't working for you at the moment, try doing a PRAM reset and a PMU reset
    PRAM - http://docs.info.apple.com/article.html?artnum=2238
    PMU - http://docs.info.apple.com/article.html?artnum=303319
    then try safemode...
    if it's still doing the same thing, then I suggest you try an Archive/Install w/preserving users and network setting; this walks you through that - http://docs.info.apple.com/article.html?artnum=107120
    if it still doesn't work after that -
    • back up all you files to an externald HD, CD/DVD, etc..
    • boot to install disk 1
    • launch disk utility
    • partition the HD (you'll see it's ONE volume scheme) chnage it to like 4, partition it, then change it back to 1 and partition it then perform a clean install of OSX
    if it doesn't work after that, there is a hardware issue, contact Apple
    Macbook Pro 2.0ghz   Mac OS X (10.4.8)  

  • Safari not caching previous page properly

    After the last update I have had problems with going back to the previous page and it not being the last page I went to. As an example if I go the espn soccernet it will load the most recent page. If I click an article, read it and back click to the last page, it will load up a previous screen from another time I visited(ie one from another day). If I command-R, it will load the page properly. I have this problem with another service I use called chelsea sundayleague. If I set up tactics on a screen, and back click to the previous screen, it will load another dated screen. I have 2 "teams" and log in seperately for both, and sometimes back clicking loads a seperate team's page even though I have logged out.....It does this behaviour under private browsing and regular. I do use Safari Stand, if that matters... Any ideas as to what the heck is going on?? I am running safari 2.02 and Tiger 10.4.3. It does it on my imac G5 and my ibook g4...Wacky...

    Private browsing seems to be causing the problem...

  • Web-server not serve web pages from 2nd NIC

    My Scenario:
    Ethernet 0 is my internal NIC
    Ethernet 1 is my external NIC (Internet)
    Firewall is off right now for testing purposes.
    I can web serve all day long on the internal NIC
    I can not serve anything on the External NIC
    I can ping the External NIC
    I can setup a Windows Box with IIS with the same IP settings and I can serve all day long with the windows box.
    When I look at the access log it shows that there was a request and it tried to serve but the clients don't receive anything.
    I see nothing under the error logs.
    Thanks for any insight you can give me.

    If you want to wade into static routes and multi-NIC IP configurations and such, here's some related reading material of varying vintages: [messageID=6639826|http://discussions.apple.com/thread.jspa?messageID=6639826], [messageID=5642919|http://discussions.apple.com/thread.jspa?messageID=5642919], [threadID=1461434|http://discussions.apple.com/thread.jspa?threadID=1461434].
    With an out-board firewall, you can do what you want. (I happen to like this particular configuration for other reasons, too.)

  • HTTP error 0 testing not serving php pages please help

    Hello everyone,
    I am using DWCS3, the free version of MAMP on my MacBook Pro Leopard 10.5.6.
    I have built a customer registration form with a Transitional <!DOCTYPE>. I have been following the instructions from The Essential Guide to Dreamweaver CS3, using a wizard to build a registration form, in chapter 15.
    When I try to preview the form in the web browser, I get a white screen.
    When I click the live data button I get an; HTTP error 0 message occured while attempting to request the file http://localhost:8888/mywebsite/page_S9INUKZB.php from the testing server.
    possible reasons:
    1. Files in MacHD/Applications/MAMP/htdocs/mywebsite with .php extension are not being executed by the testing server.
    2. The MacHD/Applications/MAMP/htdocs/mywebsite does not map to http://localhost:8888/mywebsite URL on the testing server.
    I've gone over the site definitions several times and have configured MAMP differently twice, using ports 80 and 3306 and also 8888 and 8889. The same problem has happened in both instances here is my site definition info:
    Local info:
    Site name: mywebsite
    Local root folder: MacHD:Users:myname:Desktop:mywebsite
    links relative to document: http://localhost/
    Remote info:
    Access: Local/Network
    Remote folder: MacHD:Applications:MAMP:htdocs:mywebsite
    Testing server:
    Server model: PHP/MySQL
    Access: Local/Network
    Testing server folder: MacHD:Applications:MAMP:htdocs
    URL prefix: http://localhost:8888/mywebsite/
    Web sharing is turned off.
    Dreamweaver/Preferences/Preview in browser/preview using temporary files is turned off, yet in my HTTP error 0 message there is a string of characters after the page name, suggesting that dreamweaver is using temporary files.
    I have attached a compressed copy of the customer registration form maybe the problem is the page. I have gone round and round in circles with this and I can't seem to sort it out can somebody please help me.
    Thankyou.

    Hello David,
    Thanks for getting back to me, sorry for the late reply, I've been away for a few days.
    I have done what you suggested, and altered the links relative to document: http://localhost:8888/mywebsite/
    I have also restarted dreamweaver and mamp.
    Nothing has changed when I try to view the page through the browser I get a white screen and the HTTP error 0 is still displaying, With the same message as before.
    I have since created a new form, connected it to my user table, and populated the table with info, and that worked.
    I then added the php validating code as suggested in chapter 15, pages 481 through to 485. I've also checked the code against your example page register_user_03.php.
    However when I put the page on the testing server and try to view it, all I get is a white screen, and an HTTP error 0 the testing server is not executing pages with a .php extension. Or the URL prefix isn't mapped properly.
    I have also checked all my settings in MAMP and left a question on the forum but they haven't answered.
    Is there a setting or connection that I need to enable in Apache? I'm stumped.
    I'm hoping you might have some tricks up your sleeve.
    Thanks

  • Firefox not loading some pages properly?

    So I have recently bought a new laptop with Windows 8, and I installed Firefox. For the most part it works fine but I have noticed, for some reason, some webpages do not load properly. It looks as if only the HTML of the site has loaded.
    Now I can easily fix this by clearing the cache, but only for the same problem to occur a few hours later and this is really annoying me. The problem still happens in safe mode, and other browsers seem to work fine. I have also tried reinstalling but not a full reset.
    Here is a link to what Facebook looks like when this happens: http://oi40.tinypic.com/2gwcbxk.jpg
    Please could you help me solve this?

    This just started happening to me, on my desktop (Samsung software is not an issue), on '''most''' pages. Only a few, incl. Gmail and Mozilla Start page, load as normal pages, with graphics. One site I visited, from a link in an email, loaded All pages normally, but it's the only one so far.

  • Mozilla Firefox 7.0.1 is not loading web pages properly. It takes forever to load pages. Google Chrome and Internet Explorer load them rapidly. I have no spyware and disabled all addons. Nothing has worked. Any suggestions??

    Web pages are taking an extremely long time to load. Sometimes they don't load at all. This is especially true with video sites like YouTube. I scanned my entire computer with Ad-Aware, Malwarebytes, Iobit Malware Fighter, SuperAntiSpyware, Windows Defender, Malicious Software Remover Tool, and Emisoft Anti-Malware. I did an anti-virus scan with Avast. I also ran CCleaner and Advanced System Care to clean all junk. Nothing is working.

    --------------------------------------------------------------------------------
    Running about 7 tabs open at startup, this has always worked fine, here is the problem and the sequence of events leading up to hope. Any suggestions would be appreciated:
    Background:
    Mozilla updated me to 7.0 automatically a few days ago, no problems
    Yesterday they auto updated me to 7.0.1, now it won't connect
    Scaled back to 3 tabs at start now it connects but after a minute of so, the icon in the tabs just spinning and it isn't connected
    Scaled back to one tab the same thing
    Reinstalled Firefox, disabled the Norton firewall to test, same thing
    Checked the application setting on the firewall, it is set to allow or auto
    I downloaded Firefox 8 beta same issue
    Any suggestions would be appreciated, not sure it is foxfire or not but the upgrade to 7.0.1 started
    Anyway to go back to a pre 7 release?
    I disabled the add on and have the same problem.
    BTW IE 8 works fine.
    Thanks

  • FireFox opens two new tabs on one click then can not load the page properly

    http://windowslivehelp.com/thread.aspx?postid=D57057A2-59C8-4131-B6EC-42F7F4780E4F#D57057A2-59C8-4131-B6EC-42F7F4780E4F
    I am having trouble with the this site. It loads but keeps on trying to load. in the tab it flashes connecting ....emails and passwords not retained...connecting ...and so on.
    the functionality of the page does not allow scrolling through the page it just goes back to the opening position.
    this page and my hotmail page does not function as they should.
    Please can someone help me?

    This issue can be caused by the Facebook Toolbar extension
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • ITS does not display the page properly

    Hello all,
       I have installed ITS 6.1 and working with SRM 3.5 in the backend.
         When i call individual services thru the browser they work fine but when i run the 'START' service thru the browser(all other services can be called thru the 'START' service) and click on a hyperlink(some service), i get the error "The page you are looking for might have been removed, had its name changed, or is temporarily unavailable".Please help.
    regards,
    Deepti.

    Hi Deepti,
    Please provide the URL that you use to call the START service and also the URL that is executed when clicking on a hyperlink.
    Best regards,
    Henning.
    P.S.: Please grant reward points for helpful answers.

  • My HP2000 - 210, running under Mandriva 2011 Linux, will not print landscape pages properly

    If I try to print a landscape page, it works ok for the first 180 mm or so, then prints several copies of a narrow section of the remainder. Looks as though it tries to stay with Portrait

    I am having the same problem. I 've soaked the heads, I've put genuine ink in. I've tried everything but cannot get it to print in the Black XL.  Prints all other colors and the photo black, but no in text black. So irritated right now !!!
    HELP ! ! !
    I've even did a hard factory reset.

  • WAG200G not load configuration page

    Hi. I have a WIRELESS-G ADSL Home Gateway WAG200G. 
    When i try to access in the configuration page my router, the page isn't load correctly. I can connect with my username and password, but only half page is load. 
    If i access in the configuration page with smartphone, the page is load correctly. 
    The problem seems the Ehternet Cable, because if i access with Wriless connection i don't have problems. 
    I tried hard reset.
    I tried to search last firmware.
    I tried to disable antivirus and firewall.
    I tried to change browser (Chrome, Explorer and Firefox).
    I checked the IP from router and PC.
    I tried the configration with setup wizard, but the "Setup Wizard unable to locate the Gateway on you network". 
    I tried  http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=3676
    I tried http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=3997
    I tried http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=4008
    I contacted your supporter in the live chat. Case number: 04143326.

    Hi karftal. It's probably the computer that's not loading the page properly or the Ethernet cable. Change the cable and/or use another computer and try accessing the setup page again.

  • Apache web server and asp

    Hi everyone!
    I am new to macs and am trying to learn asp programming. I have been designing web pages for a while, but I haven't gotten into real programming. I usually use Dreamweaver to design with. I have an ibook and an intel imac.
    On either of these can I write asp scripts using vbsript and execute them? Also, if I write the asp scripts for the server where do they go? And then on the web page that is supposed to connect to the server, does it matter where I put it?
    I know I'm asking a lot. But can anyone help me?
    Thank you I really apprecite any help.

    ASP pages typically require that your web server be IIS running on Windows. Apache cannot serve ASP pages by default. There is some information in the Wikipedia article that can point you to ways you can set up Apache to serve ASP pages. Personally, I would stick to a Windows server if you're going to be doing ASP pages, and I would use Java (JSP, servlets, etc.) or Perl if you want to serve your pages on Apache on OS X or Unix/Linux.

  • Printer not printer all pages

    my printer will not print out all pages of a document.  It may leave 4 or 5 pages unprinted

    Hi , Welcome to the HP Forums! I understand that your HP Officejet 5740 is not printing web pages properly on Windows 7. I am happy to look into this printing issue for you!  What is the web browser that you are using to print with?  In the meantime, please try another browser such as Firefox or Google Chrome. In case the issue is with the current browser you are using.  I would also suggest our HP Print and Scan Doctor, in case of a possible driver conflict.  Hope to hear from you soon!  “Please click the Thumbs up icon below to thank me for responding.”

  • 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

Maybe you are looking for