• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cannot activate a web application with database

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do not cross-post the same question in multiple forums.
bear
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:
Please do not cross-post the same question in multiple forums.
bear

This is probably best suited for the servlet forum, but this is what I can make of it:
sl314.web.ScrambleGameServlet.showCategories(ScrambleGameServlet.java:54)
- 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
Jamie
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic