|
|
I am receiving errors when I try and make a JBuilder 3.5 project when calling HttpSession object methods getAttribute() and setAttribute(). I am using JDK 1.3.1-rc2. The compiler reports the error: "Error #: 300 : method setAttribute(java.lang.string, java.lang.string) not found in interface javax.servlet.http.HttpSession at line ...." I can use the command line JDK compiler to compile this same code just fine. How do I correct this? |
| Todd Kofford writes:
I was able to fix this problem. The solution was to do as you suggested in checking the required libraries. I had initially included the JSWDK 1.0 library which included the "c:/JBuilder/lib/servlet.jar" class. I was also building on the command line using the "c:/tomcat/lib/servlet.jar" class using the classpath switch. Apparently, the tomcat version of this class is newer than the JBuilder3.5 version and the tomcat version implements the newer HttpSession specification (i.e., getAttribute(), setAttribute(), etc).
To fix the problem that I was having, I had to edit the required library
JSWDK 1.0 and add the "c:/tomcat/lib/servlet.jar" class. I also moved it
up so that it was listed above the "c:/JBuilder/lib/servlet.jar" class.
That's all there was to it.
| |
| Learn about JPathReport here:
2001-Jun-19 6:32pm gyles19@visi.com | |
| [Append to This Answer] | |
| 2001-Jun-19 6:32pm |
| Previous: |
|
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||