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
- NetBeans 5.5
- Tomcat 5.5 embedded in NetBeans
- Oracle10g Express Edition
- Java Server Pages (JSP)
- Java Beans
- CMail Server and JavaMail
- Apache's commons-fileupload library
The following are the steps to related to be taken to run the existing part of the application :
- 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;
- 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).
.
- Download ebooks.zip and unzip it into d:\ directory.
You can substitute d:\ with another path if you like.
- Start NetBeans 5.5.
- Open ebooks project in NetBeans using File->Open Project option and select directory ebooks. Project from ebooks
directory is opened.
- Add Oracle Library - ojdbc14.jar, Java Mail (mail.jar, activation.jar) library to ebooks project.
- 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.
- Add commons-fileupload-1.1.1.jar and commons-io-1.3.jar
to project.
- Build and deploy the project to embedded Tomcat of NetBeans.
- 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.
- 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.
- Copy ebooks.war from dist directory of ebooks
project into JBOSS_HOME\server\default\deploy directory.
- Run the application using the following url:
http://localhost:9999/ebooks
- You should see login page (index.jsp) of the application.