|

List Home > Programming / Scripting > [ Post New Problem ]
Welcome back !
| TrackingID : | 2102 |
| Posted : | Thursday, June 16th, 2005 03:13:18 PM |
| By : | nikhil311 |
| about => orb\classes\yoj.jar & share.zip | Configuration: |
Namskar sir,
I am final year B.E.student .My project is 'Online test'which is in java requires oracle 8i as back end,configured in tomcat3.2,jsdk2.0,& editing in kawa4.1,editplus .I got this project from my friend.the classpath & path related to oracle is
CLASSPATH:
C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip
PATH: c:\oracle\Ora81\orb\bin;C:\Oracle\Ora81\jdbc\lib\classes12.zip
When I installed oracle 8i enterprise edition, the orb folder is not
present there.
If u have any info about installing\downloading orb\yoj.jar,share.zip
then kindly send me ,becoz my final demo is on 20th june & project is not working.
_________________________________________________________________
_________________________________________________________________
project details:
My project is 'Online Test'
______________________________________________________________________
PROJECT REQUIREMENT:
• Hardware:
Pentium System, 64MB RAM, 3GB HDD.
• Software:
Windows 2000 Advance Server, Tomcat 3.4 (or above), Internet
Explore 5.0 (or above), Jdk (Java Development Kit) 1.3, Jsdk (Java Servlet Development Kit) 2.0
• Front End:
HTML (HyperText Markup Language) with JSP (Java Server Pages) Script.
• Back End:
Oracle 8i as a database.
_________________________________________________________________
Steps to run project:
Considering that you run Windows NT
A) Installation of ORCALE 8i
1) First install the oracle8i
2) Choose default options while installation.
3) When asked for the GLOBAL DATABASE NAME give 'orcl' continue
4) All this installation will take at least one hour.
5) In my case the installation was aborted for the first time. Then I
formatted the PC and installed all things again and then installed the oracle first
6) My brother was having p4 so it was a nightmare for him to install oracle on it. If you are also having the P4 then this oracle version will not help you much if its so then let me know so that I can ask him what he did in his case.
7) After installation if you want to check whether the oracle is rightly installed or not then compile the JdbcCheckup.java and then run that file using java cmd. This should be done successfully. This file is in the same directory.
B) Installation of Java Development Kit and Java Servlet Development Kit.
1 Install the JDK choose default options
2 Install the JSDK choose the default options
C) Installation Of Tomcat Webserver.
1) Extract the tomcat.zip to the c drive.
2) Add the system variable as:-
JAVA_HOME=C:\jdk1.3
TOMCAT_HOME=C:\tomcat
3) As I am zipping the working version of the tomcat it’s already
configured. if you are interested in how this project context is configured then refer the server.xml of the path. Following block in the same file specifies the context of the OLTC application.
D) Setting up of the class path
1) refer the class path below. Its from my system.
CLASSPATH
C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip;C:\jdk1.3\bin;C:\Tomcat\OLTC\WEB-INF\classes;C:\Oracle\Ora81\jdbc\lib\classes12.zip;C:\jdk1.3\lib\tools.jar;C:\jdk1.3\lib\dt.jar;C:\JSDK2.0\lib\js.jar;
PATH
C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;C:\Oracle\Ora81\orb\bin;C:\Oracle\Ora81 \jdbc\lib\classes12.zip;c:\jdk1.3;C:\jdk1.3\bin;c:\jsdk2.0;c:\jsdk2.0\bin;C:\Tomcat\bin;
2) Add the class path related to the oracle, tomcat, and jdk and jsdk ,if its not present already in the system class path of your system.
E) Installation of Java IDE
1) This is for editing the Java files and compiling the java files if you are going to change it.
2) Now install the Java IDE Kawa. choose all default options.
3) Once installed you can use the key and pwd to register it to you.
4) Then through the project options choose open project and navigate to the following directory.C:\Tomcat\OLTC\OLTC.kpx
5) This will open the source code in the Java IDE>
6) You need to provide the JDK installation directory while installation.
7) For compilation of the classes you need to put the servlet-2_3-fcs-classfiles.jar file into the class path of the Kawa project. to modify the existing path right click on the OLTC project in Kawa and click on the class path and then choose the servlet-2_3-fcs-classfiles.jar and then modify to point it to the appropriate location. This file is available in the same directory. Also
C:\Tomcat\OLTC\WEB-INF\classes should be in the class path of the Kawa project. Its already there.
8) For editing the JSPs you need to install the EditPlus.Dont use MS
FrontPage it inserts unnecessary code into the JSP while saving. You can find both the installation software in the JavaIDE folder with Keys for registration.
F) Configuring the OLTC Application
1) Now all things are set.
2) You need to create the Database
3) open Oracle SQL and login as username='scott' pwd='tiger'.
4) From Database Queries folder open ‘Tables Creation.sql’ and select all copy it and then paste it on the SQL prompt. You can also directly run this through SQL prompt use @ followed by complete path of this file including the file name.
5) This will create the Empty database of the system. If you see the last line of this file you will notice one user with admin rights is created. You can use userid=admin pwd=admin to login into the application.
6) Create two shortcuts of the following files.
C:\Tomcat\bin\startup.bat
C:\Tomcat\bin\shutdown.bat
7) Put those the desktop for easy start and stop of the server.
8) If you want then you can restart the system.
9) Now click on the ‘startup.bat’ shortcut. This will start the tomcat server then open the internet explorer and hit the following URL .
"http://localhost:8080/OLTC/servlet/com.oltc.servlets.OLTCServletrestartApp=true"
10) This will open the login page of the application enter userid as admin password as admin (Case sensitive) choose the domain as Administrator. As its having admin rights you can login as anyone.
11) Read Project Synopsis.doc from the documentation folder. Its being created by my cousin. Also read all the documents in that folder so that you can get an idea what is this all about.
12) Now this is the raw system you need to add the questions say 5-10 to start with and then you can test the rest of the functionalities.
______________________________________________________________________
I done all things as per 'steps to run project'.Tomcat webserver also start sucussesfully.database also created sucussfully.But then it gives following error
error: 500
Location: /OLTC/servlet/com.oltc.servlets.OLTCServlet
Internal Servlet Error:
java.lang.NullPointerException
at com.oltc.db.connectionpool.ConnectionPool.releaseConnection(ConnectionPool.java:176)
at com.oltc.db.persistence.GenericTransaction.releaseConnection(GenericTransaction.java:121)
at com.oltc.db.persistence.UserTransaction.selectUsers(UserTransaction.java:74)
at com.oltc.servlets.OLTCServlet.doPost(OLTCServlet.java:109)
at com.oltc.servlets.OLTCServlet.doGet(OLTCServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
atorg.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
______________________________________________________________________
I think this is due to one of the following reasons:
1) I installed oracle8i enterprise edition on Win XP.The classpath related to oracle is not there
i.e. orb folder is not present in ora81 directory .& classes12.zip also not present(c:\oracle\ora81\jdbc\lib\classes12.zip)
2) I am using WIN XP instead of Win NT.
______________________________________________________________________
What will be the solution for above problems?????
| Operating System : Microsoft Windows XP
|
Related Problems :
List Home > Programming / Scripting > [ Post New Problem ] |
|