+ Post New Thread
Results 1 to 8 of 8
*nix Thread, CentOS & KS3 ICT Tests in Technical; So the Head of ICT wants to run the KS3 ICT tests and since last year when the tests were ...
  1. #1
    mortstar's Avatar
    Join Date
    Jan 2007
    Location
    Oxford
    Posts
    341
    Thank Post
    12
    Thanked 29 Times in 18 Posts
    Rep Power
    21

    Thumbs down CentOS & KS3 ICT Tests

    So the Head of ICT wants to run the KS3 ICT tests and since last year when the tests were canned - our network has changed drastically and the original install no longer exists.

    I got a new install CD from RM and followed the detailed instructions for install onto Linux server. As they require Red Hat Enterprise, I substituted that request for CentOS 5.1

    Installation seems to go swimmingly with no errors, all users created, postgres setup properly, tomcat installed etc. etc.

    The problem I have is when trying to access the https://server:8443/qca site - which throws up a 404 error "The requested resource (/qca/) is not available". I've checked /usr/local/aps/tomcat/webapps and there is a 'qca' folder that contains properly configured WEB-INF folder and web.xml files.

    I can browse to the root (https://server:8443) and get the Tomcat generic homepage.

    All help gratefully received!

    Cheers

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    I can confirm the aps server works on Centos, although I've not looked at it for a while since the tests were dropped.

    Can you confirm the tomcat_aps service is running, any errors on starting it/

    Code:
    /etc/init.d/aps_tomcat status
    and that postgres is running.

  3. #3
    mortstar's Avatar
    Join Date
    Jan 2007
    Location
    Oxford
    Posts
    341
    Thank Post
    12
    Thanked 29 Times in 18 Posts
    Rep Power
    21
    Hi

    [root@VM-KS3 qca]# service aps_tomcat status
    Tomcat is running.
    [root@VM-KS3 qca]# service postgresql status
    postmaster (pid 2237 2236 2235 2233 2230) is running...
    Both services startup on boot and start/stop without error

    Just to expand a little - CentOS is running on VMware Server on a Windows 2003 r2 host. Ethernet is bridged
    Last edited by mortstar; 17th March 2008 at 02:27 PM.

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    've checked /usr/local/aps/tomcat/webapps and there is a 'qca' folder that contains properly configured WEB-INF folder and web.xml files.
    I'm not sure if its relevant, mine is here /usr/local/aps/tomcat/apache-tomcat-5.5.12/webapps/qca
    but this may be a very old version, we stopped using it but I kept it on the server.
    I guess you have the correct perms on the qca directory (mine is rwx tomcat).
    now I think about it, I recall that I had some confusion with the tomcat user (the service runs as root anyway). I'm not sure exactly what it was as it was so long ago. I do remember that, as usual RM were as useless as tits on a hedgehog.

  5. #5
    mortstar's Avatar
    Join Date
    Jan 2007
    Location
    Oxford
    Posts
    341
    Thank Post
    12
    Thanked 29 Times in 18 Posts
    Rep Power
    21
    Sorry

    I missed out that dir, but it is the same structure on mine

    /usr/local/aps/tomcat/apache-tomcat-5.5.12/webapps/qca
    I'll check the permissions now

  6. #6

    Join Date
    Jan 2008
    Posts
    48
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    14

    KS3

    Did you ever fix this as I'm getting the same on RH 5.2

    Ta

    M

  7. #7

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    Just in case anyone has the same trouble and finds this thread, for me this was down to missing libraries required by libJCryptoUtils.so:

    The tomcat log output (/usr/local/aps/tomcat/apache-tomcat-5.5.12/logs/catalina.out) was as follows:
    java.lang.UnsatisfiedLinkError: /usr/local/aps/tomcat/apache-tomcat-5.5.12/webapps/qca/WEB-INF/classes/qca/aps/resources/Dll/libJCryptoUtils.so: libcrypto.so.4: cannot open shared object file: No such file or directory
    The issue seemed to be that it required alot of older libs, standard on Fedora 7 but not on the newer stuff - I was using Fedora 9, expect CentOS 5.1 falls into the same category.

    I've made a little package of the required libs if anyone wants to save trawling through rpmfind: http://jim.geezas.com/stuff/linux/ks...atlibs.tar.bz2

    To use to navigate to /usr/local/aps and extract it:
    [root@ks3-tests aps]# pwd
    /usr/local/aps
    [root@ks3-tests aps]# tar -xvjf /tmp/ks3-aps-compatlibs.tar.bz2
    tomcat/apache-tomcat-5.5.12/webapps/qca/WEB-INF/classes/qca/aps/resources/Dll/compat_lib/
    etc
    etc
    It creates a new directory in the aps directory structure, you'll also need to modify the aps init script at /etc/init.d/aps_tomcat to look for the new libs, you can modify the LD_LIBRARY_PATH as follows:
    LD_LIBRARY_PATH=/usr/local/aps/tomcat/apache-tomcat-5.5.12/webapps/qca/WEB-INF/classes/qca/aps/resources/Dll/other/:/usr/local/aps/tomcat/apache-tomcat-5.5.12/webapps/qca/WEB-INF/classes/qca/aps/resources/Dll/compat_lib/:$LD_LIBRARY_PATH

  8. #8


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,628
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223
    To get it to work on 64-bit Centos 5.3, I also had to grab the 32-bit version of libgdbm.so.2, from gdbm.i386 0:1.8.0-26.2.1.

SHARE:
+ Post New Thread

Similar Threads

  1. Eye Tests
    By witch in forum General Chat
    Replies: 19
    Last Post: 8th February 2008, 03:42 PM
  2. Tests for a Job
    By monty in forum General Chat
    Replies: 0
    Last Post: 7th February 2008, 01:55 PM
  3. spelling tests
    By jimmy2007 in forum Educational Software
    Replies: 1
    Last Post: 15th October 2007, 04:00 PM
  4. 2007 - 08 tests
    By tomlin in forum ICT KS3 SATS Tests
    Replies: 1
    Last Post: 7th July 2007, 10:54 AM
  5. Interview Tests
    By nightowl in forum Educational IT Jobs
    Replies: 21
    Last Post: 10th March 2006, 10:30 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •