Bookmark Topic Watch Topic
  • New Topic

cannot activate a web application with database

 
Cathy Valdez
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Report post to moderator
The topic is Integrating a Web Application With a Database
Below are softwares installed in my PC:
OS=Windows98
Tomcat v. 4.1.27.exe
J2SE/JDK v. 1.3.1
mysql
mysql-connector-java

Below is the content of Autoexec.bat:

Compilation of servlet files below were successful.
InitializeConnectionPool.java
ScrambleGameServlet.java
NamingService.java
ScrambleGameService.java
Word.java
WordCategory.java
WordCategoryDAO.java
WordCategoryService.java
WordDAO.java

Below is the content of the deployment descriptor -web.xml:

The database wordgames above is located at the directory below:

Below are files inside the directory above:
wordcategory.frm
wordcategory.MYI
wordcategory.MYD
word.frm
word.MYI
word.MYD
wordhint.frm
wordhint.MYI
wordhint.MYD

To activate the Scramble Game Servlet, using a Web Browser, I entered the URL below:

Below is the displayed page form for the URL above:
Duke's Arcade
Select from one of the following games:

Word Scramble
When I clicked the Word Scramble above, errors below occured:

What do errors above mean? What should I do to correct those errors so to run this Web application with database in my PC? Can anybody there help?
Any suggestions would greatly be appreciated.
Thanks in advance.
Regards,
Cathy
[ November 26, 2003: Message edited by: Cathy Valdez ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator

This is the place to start. You need to debug the method to see exactly where you are getting the null pointer exception. Is it when getting the connection, executing the statement or getting the result set?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Cathy, you've cross-posted this to 4 forums.

The one in JDBC will remain open.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Report post to moderator
You can continue this discussion at http://www.coderanch.com/t/299608/JDBC/java/cannot-activate-web-application-database
This topic is now closed. Thank you
 
    Bookmark Topic Watch Topic
  • New Topic