(Answer) (Category) FAQ-O-Matic : (Category) JBuilder 3.5 General :
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.
2001-Jun-15 8:32am gyles19@visi.com

Learn about JPathReport here:

  (Xref) Are there any tools available to help diagnose classpath problems?

2001-Jun-19 6:32pm gyles19@visi.com
[Append to This Answer]
2001-Jun-19 6:32pm
Previous: (Answer) How can I improve the performance of JBuilder 3.5?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=204
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

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
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]