• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dukes Bank EJB Example Compile Error...help!

 
Don Richard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to get Duke's Bank (the tutorial) to compile to build my first J2EE application. I am getting the following error...
compile-web:
[javac] Compiling 4 source files to C:\inc\bank\build
[javac] C:\inc\bank\src\com\sun\ebank\web\template\DefinitionTag.java:59: inconvertible types
[javac] found : javax.servlet.jsp.JspContext
[javac] required: javax.servlet.jsp.PageContext
[javac] PageContext context = (PageContext)getJspContext();
[javac] ^
[javac] C:\inc\bank\src\com\sun\ebank\web\template\InsertTag.java:58: inconvertible types
[javac] found : javax.servlet.jsp.JspContext
[javac] required: javax.servlet.jsp.PageContext
[javac] javax.servlet.jsp.PageContext context = (PageContext)getJspContext();
[javac] ^
[javac] 2 errors
I haven't modified the files in question, they are straight from the tutorial. Everywhere I have checked the syntax appears to be correct. Any suggestions?
 
Don Richard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind. Got help in the JSP forum. My serlet container did not support JspContext class. I was using the j2ee1.4 example of Duke's bank. I wend back a rev to j2ee1.3 to be in sync with my version of Tomcat 4.1.29... All seams to be working.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!