Having trouble interpretting a javabean error in a jsp

I have used servlets before and now i am learning jsps. The hard part is comprehending the errors. the line numbesr to don't match up to what is in my files.
how do i read this? I don't even have any code on line eleven of my JSP?
what is myscript6_jsp.java:61? that looks like a line number. line number to what? Is this an error in the generated servlet?
I'm using tomcat 4.1.30
this is how i called the bean:
<jsp:useBean id="AddressBook" class="iAddressBook" />
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /rgaffurihw6.jsp
Generated servlet error:
    [javac] Compiling 1 source file
C:\Tomcat_new\work\Standalone\localhost\myJSPApp\myscript6_jsp.java:61: cannot resolve symbol
symbol  : class AddressBook
location: class org.apache.jsp.hw6_jsp
      AddressBook AddressBook = null;
      ^
An error occurred at line: 11 in the jsp file: /rgaffurihw6.jsp
Generated servlet error:
C:\Tomcat_new\work\Standalone\localhost\myJSPApp\rgaffurihw6_jsp.java:63: cannot resolve symbol
symbol  : class AddressBook
location: class org.apache.jsp.rgaffurihw6_jsp
        AddressBook = (AddressBook) pageContext.getAttribute("AddressBook", PageContext.PAGE_SCOPE);
                               ^

i worked a little more and now i'm getting the following error when i run the jsp:
javax.servlet.ServletException: class myPackage.AddressBook : java.lang.InstantiationException: myPackage.AddressBookI also tried compiling the generated servlet and got this:
C:\Tomcat_new\work\Standalone\localhost\myJSPApp\hw6_jsp.java:6: package org.apache.jasper.runtime does not exist
import org.apache.jasper.runtime.*;
^
C:\Tomcat_new\work\Standalone\localhost\myJSPApp\hw6_jsp.java:18: cannot resolve symbol
symbol  : class HttpJspBase
location: class org.apache.jsp.hw6_jsp
public class hw6_jsp extends HttpJspBase {
                                     ^
C:\Tomcat_new\work\Standalone\localhost\myJSPApp\hw6_jsp.java:66: cannot resolve symbol
symbol  : method getClass ()
location: class org.apache.jsp.hw6_jsp
            myAddressBook = (myPackage.AddressBook) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "myPackage.AddressBook");
                                                                                         ^
3 errors
Tool completed with exit code 1

Similar Messages

  • Having trouble burning discs, sometimes error 4280 comes up, anyone know?

    Having trouble burning discs, sometimes error 4280 comes up, anyone know?
    sometimes it will say checking media, then it will do nothing!

    Look around for more posts about this. There are TONS. I'm guessing you have upgraded to the newest Itunes. Which apparently makes you CD burning fail! Itunes needs to fix this problem but so far they haven't. I think there are little things that you can do to maybe fix it but I'm not sure so look around for other posts about this same kind of thing, anything along the lines of CD's not burning and error 4280. I wasted 5 CD's trying to get past this error thinking it was my CD's fault.

  • I'm having trouble updating Creative Cloud (Error Code: U44M1P7).  Any ideas?

    I'm having trouble updating Creative Cloud (Error Code: U44M1P7).  Any ideas?

    U44M1P7 - Updates : http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html
    U44M1P7, U44M2P7 - Creative Cloud Help / Can't apply Extension Manager update 6.0.2 | Mac OS : http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manager-update.html

  • Having trouble updating Creative Cloud (Error Code: 85)

    Having trouble updating Creative Cloud (Error Code: 85)
    Installation keeps stopping at 43%

    Please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Having trouble installing Creative Cloud, Error Code: A12E4

    Hello, I am having trouble installing Creative Cloud Installer and I am getting an error code A12E4.
    I am a Mac OS X User running 10.5.8 version.
    I have enabled root options, disabled firewall, downloaded manually Application Manager 7 (which also gives error A12E4), renamed OOBE folder to OOBE.old and eventually unistalled and deleted everything but still getting this error.
    Is there anything else I can do? I am really frustrated.
    Thank you in advance.
    Margaret

    I have already seen this topic. I do not see any AAM Updates Notifier on Activity Monitor. I could not install Creative Cloud in the first place so it is not an option for me to reinstall it.
    I have also used AdobeCreativeCloudCleaner Tool and removed Adobe Application Manager but still nothing.
    What else could it be? Do I need to format my computer?
    Thank you.

  • "Hmm we're having trouble finding that page" error message

    Hi all,
    There is a known issue where many pages are returning a "Hmm we're having trouble finding that page" 
    Our team is working on this issue right now. When we know, I will update this thread.
    Sorry for the inconvenience,
    Joe

    I've been catching up on The Office online through my xfinity streampicks subscription, but now I get an error message saying "Hmmm, we're having trouble watching that page." I just watched an episode yesterday, and the last season JUST ended at the beginning of the summer. Is it really gone from streampicks??

  • Having Trouble Installing Adobe Reader, Error Messages

    Hi,
    I've tried the direct Adobe Reader for Unix from Adobe, both the tar and slackware. I've also tried several packages from my distros' repo. None are working.
    Most attempts seem to install and give a confirmation, but when I call from the menu, nothing happens. When I call from a terminal I get this innocuous error message: terminate called after throwing an instance of 'ASErrException' I have no idea what this is.
    I use both LightHouse64 514b and Fatdog64 521f. I've installed the 32bit compatibility stuff from my distro in both (Puppy Linux).
    I know some of whatever is wrong could be on my distro end, and I am seeking help there too.
    Can anyone explain what this error message is, and what calls it?
    Also, I would really like to see a tree of Adobe Reader files so that I could make sure that everything is where it's supposed to be. Could anyone point me somewhere?
    Any input welcome. Thanks in advance.
    Eathray

    What kind of trouble? What platform and version of OS? Any error messages? How are you trying to install Reader? Any previous versions of Reader and/or Acrobat installed?

  • Having trouble downloading purchased music(Error Code -50)

    I just got my i-pod up and running on this new computer. When I purchased an album to download to the computer it seems to act like it is downloading and then gives me an (Error Code -50) telling me to check the advanced button to try and download later. I have tried this ten time and keep getting (error code -50). Anybody have an idea to fix this problem?

    A -50 usually indicate that something is blocking the connection to the store. You need to make sure that all firewalls, pop-up blockers, etc. have iTunes as an allowed site. If by chance you use a router, you will need to make sure that iTunes is authorized through the router.

  • How to solve "We are having trouble verifying your membership" error?

    Hi,
    Recently, I just uninstall Creative Cloud which the trial period going to expire soon, then I re-install CS6 back which we have 3 licenses in total. Now, only one user meet with this problem, which once open Dreamweaver or Indesign software, the above error message pop up. As it's counting down the days remaining, so wonder if the days remained ends, what will affected?

    Hi ,
    You can try this step . Go to C Drive > Program Data ( You need to un-hide this by going to Organize and then view and then show hidden folders ) > Move SL Store to the desktop. And then launch the program and then try the above steps. Else give permissions to the adobe folder( C Drive > Program file X 86 > Right Click on Adobe Folder > Properties > Security > Edit > Select Every Username and Select full control and Check allow ). And Apply and OK.

  • Having trouble fixing my jum error 545 and i have already updated it

    Hi I am getting really frustrated with the updating software on my phone. I have tried to update it using the cooprate e-mail process, personal e-mail process, download the new verison off the blackberry desktop, downloaded the verizon access manger, uninstalled the old verzion from my computer, taken the battery out, rest it several times, clicked update on the verizon site itself and just about anything to update this phone. But no matter what it still says jum error 545. I have a blackberry strom 9530 and i have almost had this for a year. I despertly need help!!! If you got any ideas I would greatly appreciate them.

    Hi,
    From what I understand from your post, you have a Storm 1 and you are trying to update the software.  I also understand from your post you are on a corporate system, a BES system.  To update you phone, you have to get all of the permissions in the software granted by your tech department.  They should be able to update the phone for you.
    Doc

  • Having trouble burning a dvd - error message.

    I recently bought a 2009 macbook on ebay, and when I tried to burn a dvd, it didn't work and would scratch up my discs.  I informed the person I bought it from, and they were nice enough to replace the drive.  I just got it back in the mail and have been trying to burn dvds, but I keep getting an error message when using Toast version 10 and also trying on Toast 8 that says: 
    The Drive reported an error;
    Sense Key = Medium Error
    Sense Code = 0x02
    NO SEEK COMPLETE
    It will start burning on and then when writing the lead out on toast 10, it gives me an error, and that was the error message I caught when I tried to burn using toast 8.  With toast 8 it barely started before that message came up.  I have been trying with Sony DVD-R discs that I am able to use on my mom's iMac from 2008.  I'm confused; should I try a different kind of disc? 

    Welcome to discussions.
    Be certain to use good DVD media.
    You may want to try using Verbatim or Maxell DVD-R 4X.
    Also, save the project as a disk image and burn it as slowly as possible with either the disk utility or Toast™.
    Sue

  • Having trouble with rounding and if/else

    I am trying to write a program that reads 2 floating-point numbers and test if they're the same when rounded to 2 decimal places and whether they diff by less than 0.01. I'm having trouble compiling it, with errors such as
    "C:\Documents and Settings\John\My Documents\Test2.java:24: 'else' without 'if' else"
    C:\Documents and Settings\John\My Documents\Test2.java:18: cannot find symbol
    symbol  : method round(double,int)
    location: class java.lang.Math
         double round1 = Math.round(firstinput,2);
                             ^
    C:\Documents and Settings\John\My Documents\Test2.java:19: cannot find symbol
    symbol  : method round(double,int)
    location: class java.lang.Math
         double round2 = Math.round(secondinput,2);Here is the code:
    import java.util.Scanner;
    import java.text.NumberFormat;
    import java.math.*;
    import java.lang.Math;
    public class Test2
         public static void main( String args[] )
         Scanner sc = new Scanner( System.in);
         System.out.println("Enter your first floating-point number: ");
         double firstinput = sc.nextDouble();
         System.out.println("Enter your second floating-point number: ");
         double secondinput = sc.nextDouble();
         double round1 = Math.round(firstinput,2);
         double round2 = Math.round(secondinput,2);
         double total = round1 - round2;
        if(round1 == round2);
        System.out.print("They are the same when rounded to two decimal places. \n");
        else
        System.out.print("They are not the same when rounded to two decimal places. \n");
         if(total<1.01 && total>0.99)
         System.out.print("They differ by less than 0.01. \n");
         else
         System.out.print("They do not differ by less than 0.01. \n");
    }

    Are you restricted to Math.round()? Try reading about DecimalFormat:
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html
    Your code with DecimalFormat:
    import java.text.DecimalFormat;
    import java.util.Scanner;
    public class Test2 {
        public static void main(String[] args) {
            DecimalFormat df = new DecimalFormat("#.##");
            Scanner sc = new Scanner( System.in);
            System.out.println("Enter your first floating-point number: ");
            double firstinput = sc.nextDouble();
            System.out.println("Enter your second floating-point number: ");
            double secondinput = sc.nextDouble();
            double round1 = Double.parseDouble(df.format(firstinput));
            double round2 = Double.parseDouble(df.format(secondinput));
            double total = round1 - round2;
            if(round1 == round2)
                System.out.print("They are the same when rounded to two decimal places. \n");
            else {
                System.out.print("They are not the same when rounded to two decimal places. \n");
                if(total<1.01 && total>0.99) //<== Rather redundant, why not just use total == 1
                    System.out.print("They differ by less than 0.01. \n"); //<== From the above if statement, it seems if you are looking to see if the 2 numbers differ by less than 1.00, and not 0.01. The same goes for the else statement below
                else
                    System.out.print("They do not differ by less than 0.01. \n");
    }Also, when I ran your program with the latter code and entered two same floating point numbers, it also printed out "They do not differ by less than 0.01." I've added curly brackets around the outer else statement to ensure that it does not happen. It's best to use curly brackets in structured statements if their function exceeds more than one line; for stability and legibility.
    Also, read my comments.

  • I'm having trouble loading photos on my I phone 4s and I pod.  I don't see the photos tab in Itunes?? Prob user error but wanted to get some help.

    I'm having trouble loading photos on my I phone 4s and I pod.  I don't see the photos tab in I-tunes? I'm sure its user error but wanted to get some help.

    What's the origin of this external drive? It sounds very much like it's a Windows-formatted (NTFS) drive which Macs can't write to. If you can, copy the files off the drive, reformat it as Mac format (using Disk Utility) and copy the files back. If you need to continue writing to it from a Windows PC, you should format it ExFAT in Disk Utility.
    Matt

  • HI there, I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep gettin this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.

    I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep getting this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.
    Any help will be highly appreciated.
    Thanks a lot in advance.
    Sincerely,
    Uvaldocj@@
    Here is a list of the products I am troubled with:
      Adobe After Effects CS5 10.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Bridge CS5 4.0.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Extension Manager CS5 5.0 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Illustrator CS5 15.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Pixel Bender Toolkit 2.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe® InDesign® CS5 7.0.4 update
    There was an error downloading this update. Please quit and try again later.
      Dreamweaver CS5 11.0.4 Updater
    There was an error downloading this update. Please quit and try again later.
      Fireworks CS5 11.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Photoshop 12.0.4 update for Photoshop CS5
    There was an error downloading this update. Please quit and try again later.
      Photoshop Camera Raw 6.7 Update
    There was an error downloading this update. Please quit and try again later.

    I'm having the same issue. And Dreamweaver now crashes after just a few seconds.

  • I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens, but I get the error next time it opens, and this is going on and on where I can not use LR, any suggestions?

    I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens. LR closes on it's own, I reopen it and get that same message next time it opens, and this is going on and on where I can not use LR, any suggestions? If I click on a different set of photos in the libary before I get that message I might or might not get the message next time it oipens, but I still can not get to those photos, and it is not just one or two but most of my photos. HELP!!!!
    Thanks
    Carol

    The first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.

Maybe you are looking for