This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes cannot activate a web application with database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "cannot activate a web application with database " Watch "cannot activate a web application with database " New topic

cannot activate a web application with database

Cathy Valdez

Joined: Oct 22, 2003
Posts: 23
The topic is Integrating a Web Application With a Database
Below are softwares installed in my PC:
Tomcat v. 4.1.27.exe
J2SE/JDK v. 1.3.1

Below is the content of Autoexec.bat:

Compilation of servlet files below were successful.

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:

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.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63053

Please do not cross-post the same question in multiple forums.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

Originally posted by Bear Bibeault:
Please do not cross-post the same question in multiple forums.
This is probably best suited for the servlet forum, but this is what I can make of it:
- looks like a problem at line 54 of the showCategories method in your SCrambleGameServlet class.
root cause java.lang.NullPointerException
- looks like you used an object without initializing it.

To fix: go to line 54 in the affected object, and find out where it missed being initialized. When you find where it should have been initialized, initialize it!
Nothing to do with JDBC though
I agree. Here's the link:
subject: cannot activate a web application with database
It's not a secret anymore!