aspose file tools*
The moose likes JDBC 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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "cannot activate servlet in the Web browser" Watch "cannot activate servlet in the Web browser" New topic
Author

cannot activate servlet in the Web browser

Cathy Valdez
Greenhorn

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.
Regards,
Cathy
[ October 30, 2003: Message edited by: Gregg Bolinger ]
G Raghavan
Greenhorn

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


G Raghavan
Cathy Valdez
Greenhorn

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

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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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: http://aspose.com/file-tools
 
subject: cannot activate servlet in the Web browser