I have created a BulletinBoard servlet from "Inside Servlets"(Chapter 7).For this example,I have used servlet.properties file to initialize FilePath. # bulletinboard servlet.bulletinboard.code=BulletinBoard servlet.bulletinboard.initArgs=FilePath=c:\jsdk2.0\examples\ But when I run servlet ,FilePath is initialized to null.Why?Please help. My servletrunner settings are- servlet dir=.\examples servlet propfile=.\examples\servlet.properties I am using JSDK2.0 on win98.
I have not used JSDK in a while, but doesn't the property line: servlet.bulletinboard.initArgs=FilePath=c:\jsdk2.0\examples\ create a property named servlet.bulletinboard.initArgs NOT a property named FilePath? Also you might try escaping the backslash characters c:\jsdk2.0\examples\ would become c:\\jsdk2.0\\examples\\ Why are you using JSDK instead of Tomcat? Bill
Joined: Aug 26, 2000
Bill, I have downloaded Tomcat.But I don't have a clue how to set the classpath variables.I have Windows 98.I would appreciate if yu could help me out. I also have problem with classpath of JSWDK also.
set java_home=< your java directory..> set tomcat_home=< your tomcat directory..> create a batch file in ur tomcat bin as.. For Example.. set java_home=c:\jdk1.3.1_02 set tomcat_home=C:\jakarta-tomcat-3.3 set classpath=%classpath%<path 2 ur tools.jar in java lib dir>; startup
Author and all-around good cowpoke
Joined: Mar 22, 2000
In order to suceed with Tomcat you MUST remove all traces of older servlet development kits and XML parser libraries from your system. Changes in the servlet API and the XML parsers used to initialize the servlet engine through the web.xml file mean that you will get very confusing error messages about methods not found if you do not. I have wasted days tracking these problems down. Bill