errors while compiling the java file for the example bank application in j2ee tutorial

Discussion in 'Java' started by Nachiketh, Feb 23, 2004.

  1. Nachiketh

    Nachiketh Guest

    hi,
    i downloaded the J2EE tutorial from java.sun.com and while trying to
    deploy the bank example, using ant build tool... the following 3
    errors, i encountered while compiling the java files in the example.

    [javac] D:\Tutorials\J2EE\j2eetutorial14\examples\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] D:\Tutorials\J2EE\j2eetutorial14\examples\bank\src\com\sun\ebank\web
    \template\InsertTag.java:54: cannot resolve symbol
    [javac] symbol : method getPageContext ()
    [javac] location: class com.sun.ebank.web.template.InsertTag
    [javac] PageContext context = (PageContext)getPageContext();
    [javac] ^
    [javac] D:\Tutorials\J2EE\j2eetutorial14\examples\bank\src\com\sun\ebank\web
    \template\InsertTag.java:79: cannot resolve symbol
    [javac] symbol : constructor JspTagException
    (java.lang.String,java.lang.Th
    rowable)
    [javac] location: class javax.servlet.jsp.JspTagException
    [javac] throw new
    JspTagException(ex.getMessage(
    ), rootCause);
    [javac] ^
    [javac] 3 errors

    i tried debugging the code but in vain.... if anyone can please help
    me with this... it will help me a lot. this is my first experience
    with J2EE so kindly help me,
    waiting for ur reply.. bye
    -nachiketh
     
    Nachiketh, Feb 23, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markanoid
    Replies:
    2
    Views:
    844
    Sudsy
    Oct 17, 2004
  2. Ryan
    Replies:
    0
    Views:
    478
  3. H. S.
    Replies:
    3
    Views:
    754
    H. S.
    Mar 20, 2005
  4. Michael Schmitt
    Replies:
    3
    Views:
    550
    Martin v. =?iso-8859-15?q?L=F6wis?=
    Sep 10, 2003
  5. rashmi
    Replies:
    2
    Views:
    612
    Lawrence Kirby
    Sep 20, 2005
  6. Replies:
    2
    Views:
    668
    Niklas Norrthon
    Dec 7, 2005
  7. W. Watson
    Replies:
    13
    Views:
    1,431
    W. Watson
    Sep 20, 2007
  8. Rajive Narain
    Replies:
    0
    Views:
    1,588
    Rajive Narain
    Sep 18, 2009
Loading...