Bhoot Sahai

Greenhorn
+ Follow
since May 05, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bhoot Sahai

Change the Initial Environment setting to at least 2816K. Keep increasing this (or set to max) if need be.
B Sahai
You might run into problems by using J2SDKEE1.3 with something other than JDK1.3.
B Sahai
Also, change:
path=c:\tomcat\bin;
path=c:\jdk1.3;
set classpath=c:\jdk1.3\jre\lib\rt.jar;
set classpath=c:\tomcat\common\lib\servlet.jar;c:\jdk1.3\src.jar;c:\jdk1.3\lib\tools.jar;
to:
path=c:\tomcat\bin;
path=%path%;c:\jdk1.3;
set classpath=c:\jdk1.3\jre\lib\rt.jar;
set classpath=%classpath%;c:\tomcat\common\lib\servlet.jar;c:\jdk1.3\src.jar;c:\jdk1.3\lib\tools.jar;

B Sahai
22 years ago
Rahul, Bill: Thanks for the pointers.
Turns out that I had changed the name of the web context of the deployed web component mid-development, but completely missed updating this in the HTML file calling the servlet! (i.e., in the <FORM ACTION="http : //localhost:8000/mdRoot/GetCalcs" METHOD="post"> tag, I didn't update "mdRoot" to reflect the changed context.
It works now.
Bill: Thanks also for the debugging chapter. I've downloaded it and will prob'ly get around to using the UtilSnoop soon enough.
B Sahai
22 years ago
Versions are mismatched I think; use J2SDKEE1.3 with J2SDK1.3
Hi,
Just found this forum while searching for a solution to my problem. Please bear with the newbie question. I've just started to learn servlets and have been trying to run my first using J2EE server.
I have installed on my Win 98 platform: Sun's JDK1.3 and J2SDKEE1.3. The server runs without any apparant errors. I am learning the basics of this technology by trying to create an HTML page that should communicate, via the HTTP POST method, with a servlet. The HTML page and the (http) servlet are the only components to be developed. There is no EJB component. I wrote the servlet code and also the HTML page and was able to use deploytool to package the required war file and the web.xml file. I can access the web page through the server but when I submit the POST request to the servlet I get a blank page instead of the test message text that the servlet should return. As happened with the poster of this message, no errors/"something wrong" messages are being logged.
When viewed, the source of the blank page has a generic code with nothing between the <BODY></BODY> tags. When I change the POST request to a GET request, recompile and redeploy, I get the HTTP 404 file not found error page.
Have searched fairly exhausitvely for leads on this but even the documentation seems to be silent on this one (though I'm sure the solution must be quite basic!)
Would greatly appreciate any input from you. I can post code snippets if that would be useful, although the servlet is pretty basic receiving a parameter name-value combination and returning a message text through the PrintWriter response.
Thanks,
B Sahai
22 years ago