File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes cannot activate servlet in the Web browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "cannot activate servlet in the Web browser" Watch "cannot activate servlet in the Web browser" New topic

cannot activate servlet in the Web browser

Cathy Valdez

Joined: Oct 22, 2003
Posts: 23
OS=Windows98, Tomcat v. 4.1.27.exe, J2SE/JDK v. 1.3.1
contents of AUTOEXEC.BAT:
set PATH=c:\jdk1.3.1\bin;%PATH%
set CLASSPATH=%CLASSPATH%;.; c:\ServletDevel\database;c:\ServletDevel\database\lib\conn_pool.jar;c:\Tomcat\common\lib\servlet.jar
set JAVA_HOME=c:\jdk1.3.1

Compilation of servlet files that are included in this web application is successful.

Below is the content of Tomcat\webapps\database\WEB-INF\web.xml

I want this example web application with database activate the Scramble Game Servlet and run in the Web browser.
When I entered the URL http://localhost:8080/database/ for the message form in the Address field of Internet Explorer, the page for http://localhost:8080/database/index.html
below is displayed:

Duke's Arcade
Select from one of the following games:
�Word Scramble
When I clicked the Word Scramble above, the page for http://localhost:8080/database/wordScramble displayed the errors below:

What do errors above mean? What should I do to correct those errors so to activate the servlet in the Web browser?
The topic is integrating web application with database, I�ve done nothing with the connection to the database management system, and I don�t know how will I do it. What DBMS should I have installed in my PC so to use for this?
Can anybody there help?
Any suggestions regarding this would be greatly appreciated.
Thanks in advance.
[ October 30, 2003: Message edited by: Gregg Bolinger ]
G Raghavan

Joined: Aug 21, 2000
Posts: 15
Hi Cathy
if you post the code for it will be helpful. It appears to be a error in that java code.

G Raghavan
Cathy Valdez

Joined: Oct 22, 2003
Posts: 23
G Raghavan,
Thank you for suggestion.
Below is the code for

Any help from anybody would be greatly appreciated.
[ October 30, 2003: Message edited by: Gregg Bolinger ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Cathy, a couple of things...
1. We have a Naming Policy here at Javaranch. We tend not to allow initials as last names. However, you can use initials for first names. Please change your display name to conform to our policies.
2. I have edited your posts to include UBB Code Tags. Using these tags makes reading your posted code and errors much more pleasant as it keeps the formatting of your code instead of left justifying everything.
Thanks for the cooporation. We will continue to try and help you as much as possible with your problem.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: cannot activate servlet in the Web browser
jQuery in Action, 3rd edition