Monday, January 9, 2012

Java Online Exam System

I have posted a new open source project on sourceforge.net

Overview:
Online examination system using JEE where system can be customized to work in universities , schools and companies (interview tool).

URL:
http://sourceforge.net/projects/online-exam4j/

Features:
- Online Customizable Examination System.
- Auto-submit when time ends up.
- Support single selection and multiple selection.
- Easy navigation.
- Support text and Image-based questions.
- Configurable (even question per page, email sending, ...)
- Send emails to examine and examiner according to configurations.
- Auto-submit when time ends up.
- Work well with IE and FF and other browsers.
- Work well with page reload/refresh (no answers/timer lost)
- Used Ajax for better efficiency.
- Voucher based system (can be renewed after expired)
- Audit user actions.
- No admin interface currently and uses Query Browser of MySQL instead.
- Support pauses for 5 min.
- Support UTF8 for all languages.

How To Run:
1-Import DB schema into MySQL DB.
2-Open the DB "Exam" schema, do few changes in Config table per your custom data.
3-Deploy the WAR file into Glassfish V3 server (you may need to create the DataSource but mostly you won't need this step).
4.Test the application using : valid vouchers: 123456 or 123455
Application URL would looks like:

http://localhost:8080/ExamSystem/

-localhost and port could differ according to your server IP and port.


Future Work:
-Add admin interface.
-Support Voucher Types (each voucher for a dedicated exam).
-Support report and print certificate/report/exam.
-Statistical analysis of the exam data.


Screen shots:

Main Exam Screen :



Text Based Questions :




Image-Based Questions :



Navigation :



Pause Screen :



Help Screen :

61 comments:

  1. Hi

    Can you please help to make it work. When i deployed the war and enter the voucher number and hit start.... i get the following error..

    HTTP Status 404 - /ExamSystem1/ExamServlet

    type Status report

    message /ExamSystem1/ExamServlet

    description The requested resource (/ExamSystem1/ExamServlet) is not available.

    when i check the war folder there are only two jsp files

    ReplyDelete
    Replies
    1. Is your DB is working ? Can you check the server logs it will point you to the issue.

      Delete
    2. There is not error in the log file. evrything is fine. when i deployed the war there are only two jsps, index and help it thats it or any files missing?

      and where do i configure the db details.. I need to inpout mysql username and password... right?

      Delete
    3. Yea, the application have 2 jsps only and every thing is done by Ajax.
      The DB details is configured in web.xml

      Delete
    4. I have encountered the same issue and i can't find web.xml to configure db details.

      Delete
    5. Open the war file as any zip file and you will find the DB details in web.xml.

      Delete
    6. I understand your problem. Your problem will be sotr out just by replacing table names in small which are in caps in MySqlQueries.java

      Delete
  2. hello sir, can you help me out in speech to text in java online exam kind of thing

    ReplyDelete
  3. can you help me out in speech to text in java online exam please sir..

    ReplyDelete
  4. The project works fine on the glassfish3 server. You need to appropriately adjust the settings for the application to work. The .war file does not work in Tomcat.

    ReplyDelete
  5. it didn't accept the voucher number....

    ReplyDelete
    Replies
    1. Add yours to DB or activate the voucher number from DB.

      Delete
    2. Yes Mr. Raghu Raj ,what kind of settings have to be executed

      Delete
    3. Sir how to activate voucher from mysql database

      Delete
    4. Change voucher_status to 0 in the exam_taker table for that voucher

      Delete
  6. Where is the source code please?

    Thanks

    ReplyDelete
    Replies
    1. http://sourceforge.net/projects/online-exam4j/files/?source=navbar

      Delete
  7. how to download it please give the proper lin to download it ADMIN~~~~

    ReplyDelete

  8. i have small issue in online exam project. how to update questions with respect answer in dynamically in database.

    ReplyDelete
  9. i have small issue in online exam project, how to update questions with respect answer in dynamically in database.

    ReplyDelete
    Replies
    1. In this version you need to update/add them in the DB direct, or you can create your own interface for that.

      Delete
  10. hello sir .please prove the step by step inastallation procedure for the Java Online Exam System project

    ReplyDelete
  11. i cant able to run the project sir .iam getting error code "descriptionThe requested resource () is not available.

    ReplyDelete
    Replies
    1. You can do the following in sequence:
      1. Check server log for any exception?
      2. Check DB port ?
      3. Check server port in the requested URL
      4. Check the server admin console

      Delete
  12. sir i am using netbeansd IDE. Do i have to use any database and if yes which database.

    ReplyDelete
    Replies
    1. The system is using MySQL database (you can also migrate to any other database and modify the schema according to that).

      Delete
    2. sir i need to know the link to download the database software as there are many options showing online.
      ThankYou

      Delete
    3. Download any MySQL database version.

      Delete
  13. sir can u please explain how to Import DB schema into MySQL DB

    ReplyDelete
    Replies
    1. Just create the user, then execute the script file.

      Delete
  14. it is going on next screen after entering voucher number to http://localhost:8080/ExamSystem/ExamServlet
    but does not display anything , the screen goes blank. please help

    ReplyDelete
  15. My project is running. Is there any method to add new voucher in web interface during running of the project.

    ReplyDelete
    Replies
    1. You need to develop Admin interface for that, or add them temporary in the database directly.

      Delete
  16. hello Osama,saw your work and liked it a lot.
    i too saw your text to speech blog..
    i am developing an online audio examination ,in which student(test taker) can hear question as well as its option on a click of button..
    can u help me plz..

    ReplyDelete
  17. First of all,thank u for reply..
    Can you just tell me where should i write the code of freetts ,that of reading the question,,and how can i call this code on a click of button from my HTML or Jsp page..

    ReplyDelete
    Replies
    1. Here is the detailed steps:
      http://osama-oransa.blogspot.com/2012/06/text-to-speech-in-jsp-page-or-html.html

      Delete
  18. Sir, I get this message all the time : HTTP 404 not found.
    1. What should I do?
    2. And where to configure the db, in mysql or in netbeans?

    ReplyDelete
    Replies
    1. This means the application is not configured properly.
      DB need to be imported inside my SQL and define the datasource in NetBeans in web.xml.

      Delete
    2. Thanks for the help Sir, but still after configuring the datasource and all, I am having the same problem (after entering voucher number). Please refer the link below, I have attached some screenshots :

      https://www.dropbox.com/sh/wwlr6mbfdjwfx38/AACCchF8cxDPyf7zrshqrnlTa?dl=0

      I think the problem is with that nullpointerexception in the glass fish logs.
      also, browser log says "failed to load resource".
      Thanks

      Delete
    3. The issue here is the data source configurations is still not working, you can create the datasource in Glassfish admin console directly and you only need to use JNDI name: "jdbc/ExamSys".
      You can also add username and password to the configurations.

      Delete
  19. Hi Osama

    Can you please tell me if this project can be deployed and executed in Tomcat server?

    ReplyDelete
    Replies
    1. Yes, but you need to define the data-source using tomcat way i.e. configurations.

      Delete
  20. Hi Osama,

    I would like to send as exam result report(image from stream) attached in email, can you please tell me how to configure project.


    ReplyDelete
    Replies
    1. You can see this in sending email with attachement using Gmail in my blog, please check it.
      Also you can find the source code in Monitor App in this blog.

      Delete
  21. Thanks you so much for your help!!!

    ReplyDelete
  22. Please how to connect databse with the application

    ReplyDelete
    Replies
    1. Configure the datasource properly, it is in the web.xml

      Delete
  23. thanks for the Online Exam project. Please can i get the complete project even if it means me paying for it. including all the admin and examiner

    ReplyDelete
  24. Help me out,
    After filling exam voucher, when i click the start button.. it shows an error on the top of the page and clock rotates infinity.. error 404

    ReplyDelete
    Replies
    1. Can you share the log errors with me ? because it seems you didn't deploy the servlet code ...

      Delete
  25. hi sir how can i get the complete project including documentation if any?..email me mosesmuchemi@yahoo.com

    ReplyDelete
  26. Sir how to configure it properly.. This exam system is not running properly while running.. Can you give me the hints to run it to configure it properly

    ReplyDelete
  27. Can you give me technical details about it as I have interview and I have mentioned online Examination system as projects

    ReplyDelete
    Replies
    1. Which details do you need ? it is build on Java jsp and servlet, Ajax, all questions are stored inside the DB and all timer and answers are persisted on the server to avoid any client side issues. It uses MySql DB as DBMS.

      Delete