Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: HTTP STATUS 404 error

  1. #1
    Join Date
    Sep 2007
    Posts
    15

    Default HTTP STATUS 404 error

    This is my first installation and I have also got this 404 error when I try to access http://myserver:8080/mondrian. I have been battling for days with this. I am running JDK 1.5.0_12, tomcat 5.5.20, mondrian 2.4.1.9779 on a 64-bit linux Fedora core 6. I can load the foodmart database, I can run tomcat homepage from http://myserver:8080/ , I can run the tomcat example servlets. So I presume I have the environment setup correctly. I have changed the web.xml, mondrian.properties, and the queries/jsp's to get the connection strings correct for mysql database. I have copied the relevant jars to the $TOMAT_HOME/common/endorsed. I have tried a few versions of JDK/tomcat and mondrian without success.

    BUT, I cannot for the life of me run a mondrain jsp !! http://myserver:8080/mondrian gives me the status 404 error.

    I would think there must be some reference to the index.jsp servlet in the mondrian/WEB-INF/web.xml file ?? There is nothing in there. I am sure it must be something to do with the xml file referencing the servlets, but the install docs say nothing about putting any servlets in these xml files ?

    Any help would be much appreciated.

  2. #2

    Default

    Hi!
    Hm... 404 indicates that the requested document was not found by the http-server. This has nothing to do with the mondrian configuration, jar files in classpath or your operating system.
    You wrote, you get a correct response if you request a document from tomcat's root context.

    1) Is there a directory TOMCAT_HOME/webapps/modrian ?
    2) For an experiment, try to put a html-file "test.html" to the webapps/mondrian-directory send a request for this document (http://localhost:8080/mondrian/test.html).
    3) Rename "test.html" to "test.jsp" and send a request for this jsp-document.

    What happens?

  3. #3
    Join Date
    Sep 2007
    Posts
    15

    Default

    Hi,

    Thanks for your reply.

    I do have a TOMCAT_HOME/webapps/modrian directory. I tried to explicity call http://myhost:8080/mondrian/index.jsp also tried testpage.jsp and index.html. No luck.

    I have read elsewhere that versions may be the problem , here :

    http://tinyurl.com/2apq8n

    I have tried those versions discussed and the later mondrian and jdk versions, as well as tomcat native to Fedora core 6. Seems like a crap shoot to get the mix of versions right. My 64 bit machine may also be a factor in the mix ? I have 64 bit Tomcat, and 64 bit MYSQL installed, but 32 bit JAVA. I don't believe 32 bit java is a problem ? I did try 64 bit JAVA to no avail.

    I am a complete newbie, so the chances are that I am doing something completely stupid.

    Checklist :

    1. foodmart loaded - mysql must be up and running and I can connect via java connect strings
    2. Tomcat testpages can be accessed from browser, so Tomcat must be configured.
    3. I have tried a helloworld class under Tomcat and accessed successfully through browser via http://myserver:8080/MyFirst/HelloWorld



  4. #4
    Join Date
    Sep 2007
    Posts
    15

    Default HTTP 404 error

    I may have seen the potential problem. The exploding of the mondrian.war file may have been incorrect. I created a directory $TOMCAT_HOME/mondrian and copied the mondrian.war file into that directory and then did jar -xvf mondrian.war to explode it. Perhaps there are permission/path problems by doing it this way?

    There is another way for TOMCAT to explode the war file and create the mondrian directory automatically ?

  5. #5
    Join Date
    Sep 2007
    Posts
    15

    Default 404 error

    My problem was solved by letting tomcat deply the war (by copying the war into $TOMCAT_HOME/webapps) and then stopping and starting tomcat again. Tomcat does some xml registering this way, I presume. Dumb error ! Not to be confused with jar -xvf fil.war (or unzip file.war) for those with similar problems.

    For a simple C programmer, it may have been more clear in the install doc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.