Online Ebook Publishing

This website allows users to register as authors and publish ebooks. These books can be read by other users by downloading chapters of these books. An author can add titles, chapters to a title. Anonymous users (unregistered) can search, download and provide feedback regarding titles.

Technologies and Products used

The following are the steps to related to be taken to run the existing part of the application :

  1. Create ebooks account with password ebooks in Oracle10g Express Edition. This must be done after you log in as SYSTEM user.
     
         create user ebooks identified by ebooks;
         grant connect,resource to ebooks;   
  2. Create required tables in ebooks account by using commands in tables.txt file (you find it in your project when you go to Files view of NetBeans). .
  3. Download ebooks.zip and unzip it into d:\ directory. You can substitute d:\ with another path if you like.
  4. Start NetBeans 5.5.
  5. Open ebooks project in NetBeans using File->Open Project option and select directory ebooks. Project from ebooks directory is opened.
  6. Add Oracle Library - ojdbc14.jar, Java Mail (mail.jar, activation.jar) library to ebooks project.
  7. This project needs commons-fileupload and commons-io libraries from Apache. Download these libraries from http://jakarta.apache.org. Select .ZIP files for download. Then unzip these files.
  8. Add commons-fileupload-1.1.1.jar and commons-io-1.3.jar to project.
  9. Build and deploy the project to embedded Tomcat of NetBeans.
  10. Run this project - you must see index.jsp page.

Deploying Web Application In Tomcat of JBoss

The following procedure explains how to deploy a web application ebooks, developed with Tomcat that is embedded with NetBeans to Tomcat embedded in JBOSS application server.
  1. You better change port number at which Tomcat in JBoss is running using JBOSS_HOME\server\default\deploy\jbossweb-tomcat55.sar\server.xml file. Change port number of HTTP Container from 8080 to 9999 (or any other unique port number). This is required as Oracle10g also uses 8080.
  2. Copy ebooks.war from dist directory of ebooks project into JBOSS_HOME\server\default\deploy directory.
  3. Run the application using the following url:
       http://localhost:9999/ebooks
     
  4. You should see login page (index.jsp) of the application.