Tomcat and Jrun and get the same error.

Hello freinds,
iam facing problem with this.
It cant able to find Enumeration although it finds Vector which is in the same package as Enumeration. but i tried its running this on both tomcat and Jrun and get the same error.
<HTML>
<HEAD><TITLE> Example use of Vectors </TITLE></HEAD>
<BODY>
<%! String name = new String("Jonh Doe");
Integer ssn = new Integer(111223333);
Double salary = new Double(65432.10);
Vector employee = new Vector();
String[] infoTitles = {"Name", "SSN", "Salary"};
%>
<% employee.addElement(name);
employee.addElement(ssn);
employee.addElement(salary);
int i = 0;
Enumeration employeeInfo = employee.elements();
//while(employeeInfo.hasMoreElements()){ %>
<P> Employee <%//= infoTitles[i++] %>: <%//= (Object)employeeInfo.nextElement() %>
<% // } %>
</BODY>
</HTML>
org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\Binary\work\localhost_8080%2Fexamples\_0002fjsp_0002fmyJSPs_0002fhour_00037_0002fusingEnumerations_0002ejspusingEnumerations_jsp_18.java:75: Class
jsp.myJSPs.hour_00037.Enumeration not found.
Enumeration employeeInfo = employee.elements();
can any body help me
todd

Hi toddyj,
problem in the code is you havent imported the package
here iam giving below you my tested code..
<HTML>
<HEAD><TITLE> Example use of Vectors </TITLE></HEAD>
<BODY>
<%@ page language="java" import="packagename.*" %>
<%! String name = new String("Jonh Doe");
Integer ssn = new Integer(111223333);
Double salary = new Double(65432.10);
Vector employee = new Vector();
String[] infoTitles = {"Name", "SSN", "Salary"};
%>
<% employee.addElement(name);
employee.addElement(ssn);
employee.addElement(salary);
int i = 0;
Enumeration employeeInfo = employee.elements();
//while(employeeInfo.hasMoreElements()){ %>
<P> Employee <%//= infoTitles[i++] %>: <%//= (Object)employeeInfo.nextElement() %>
<% // } %>
</BODY>
</HTML>
I hope by this import reason your not able to find Enumeration
Regards,
TirumalaRao
Developer Technical support,
Sun MicroSystem, India.

Similar Messages

  • UpPgrading to 7.6 and get the same error message

    I'm trying to upgraqde to the lates version of iTunes, 7.5 and half way through the installation, I get an error message : Invalid Drive F:/
    and the installation quits.
    Has anybody experienced the same error? and if so, how do you correct it?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • HT201263 i am in recovery mode with my ipad, and a few seconds into the download, i get an error message 3259.  I have retried multiple times and get the same error.

    I am in recovery mode with my ipad, and a few seconds into the upload, i get an error message 3259.  What does this mean?

    see these for some suggestions.
    http://support.apple.com/kb/ts2799
    http://ipod.about.com/od/itunesproblems/qt/Fixing-Itunes-Error-3259.htm
    This is mosat likely firewall or security related - soething is blocking you connection.,

  • HT203176 i have a slow macbook, i ran live disk utilities and said I need to repair disk from a cd. did that, I got volume repaired from the external disk. when I reboot from hdd, then run disk utility, I get the same error message i did b4 repair

    i have a slow macbook, i ran live disk utilities (from hard drive), turned out I needed to repair disk from a installation disk. Did that, I got the volume (Hard drive) repaired from the installation disk disk. To this point, great!
    When I reboot from hdd, then run disk utility, I get the same error message i did b4 repair. I went thru two rounds of this.....
    Can anyone help? thanks

    Sorry guys, I don't see how to reply to you so I use reply to "me" basically.
    So the error I get is "volume header needs minor repair" and then you need to perform repair from the installation disk message.
    I did repair not verify from the disk twice. Every time ending in the "the volume had ha been successfully repaired". Then I reboot from the internal disk. Run disk utilities from it, do verify and get the same error message I got before repair. I hope this can shed some light fr you guys. Sorry I didn't include details in the original
    MEssage.

  • My iTunes will not start.  The box on the error message APSDaemon.exe,  And message says "This application failed to start because MSVC80.dll was not found.  Reinstalling may fix."  I did the reinstall and I get the same error.

    My iTunes will not start.  The box on the error message APSDaemon.exe,  And message says "This application failed to start because MSVC80.dll was not found.  Reinstalling may fix."  I did the reinstall and I get the same error.  The error first happened after I approved the an iTurns update.

    Same problem today. Took five times to reinstall without any error messages. Apple has posted a way to fix and you should follow their's first. I finally got to upldate correctly by doing their fix but with one difference. I did the following:
    1) Went to the C:\program files (x86)\iTunes and C:\program files\iTunes folders and moved every file ending in .dll to the desktop (even if two files in same location had the same name, just replace)
    2) Restarted computer and still got error message
    3) Uninstalled all apple programs possible in the following order......itunes, apples software update, apple mobile device support, bonjour, and apple application support.....all performed using the microsoft control panel
    4) put all the .dll files on the desktop in the trash and emptied (this is a step apple support did not specifically put in their fix but for a final try I wanted to delete everything apple).
    5) Restarted computer.
    6) Re-installed itunes from apple website
    No error messages during re-install and was able to open shortcut in one try. Even updated my ipad to make sure everything was working.

  • HT201328 after unlocking from ATT and resetting iphone 3gs I keep getting the same error message "could not activate phone" neither Apple Store Tech or ATT were able to fix this . Any ideas?? TKS Sandro

    after unlocking over the phone from ATT and resetting iphone 3gs I keep getting the same error message "could not activate phone" neither Apple Store Tech or ATT were able to fix this .
    Itunes displays a message saying "there is no SIM installed in the phone you're trying to activate" even if there is the same SIM that was working minutes before.
    The SIM works on a different phone I tested it.
    Any ideas?? TKS Sandro

    “Could Not Activate EDGE” error message Update ...
    Well it’s going on day 6 and still sporadic to no EDGE on my iPhone. At one time, it was thought to be a defective iPhone – since my partner’s iPhone works just fine.
    After over three hours on the land line with AT&T and Apple, I was sent to the local Apple store for a replacement. Of course, as soon as I walked into the Apple store my iPhone worked just fine. ;-( The local store replaced my iPhone and suggested I go home and activate the phone as a NEW iPhone, that way if there was a bug in my data it would not carry over to the new phone. Did that and well… still sporadic to no EDGE. By the way, I have the Big White “E” to the right of the 5 bars and AT&T .
    AT&T said last week they has “Software” issues in my area, but the CSR I talked to did not know what the issues were or if they were the cause of my problems. He did say they would call me back today to see how my iPhone was doing, but alas, no call back.
    When I’m next to my partner, trying to access the same feature, his iPhone is just so fast. Mine hangs up, draws out and finally I get the error message, “Could Not Activate EDGE”. I am updated to version “1.1.4(4A102)”. New (refurbished) iPhone direct from Apple.
    I remember reading a while back about some problems others had when they upgraded to from 1.1.3 to 1.1.4. I never had those problems, but it sure looks like they may have started. Does anyone remember what the problems with 1.1.4 were, what was done if anything to correct them, and best of all any suggestions?
    By the way, this is Seattle, not some small – out of the way place where connection and signal strength is expected to be second rate. Also, I had full function of my iPhone from the day I bought it in June 2007, all the way up to Thursday March 20, at 2120.
    Thanks
    Joe

  • I am trying to order a book, I keep getting the same error message," A network error occurred while processing your order, please check your network connection and try again"

    I am trying to order a book with iphoto, I keep getting the same error message.
    " A network error occurred while processing your order, please check your network connection and try again"
    I get the billing part up, it has even uploaded my jpegs but at the final process, I get the same message.
    I have ordered two books a few months ago without any problems.
    Now I keep getting the same message either half way into
    the order or at the final hurdle after the images have been uploaded.
    Any ideas?
    My shared Network has been fine and that does'nt seem an issue.
    Help.

    Try again in a couple of hours - sometimes it is a temp condition
    LN

  • Trying to sync my iPod with iTunes and I am getting this message:"This computer is no longer authorized to play purchased items that are on the ipod"...  I have deauthorized and reauthorized the account and still getting the same error.

    Trying to sync my iPod with iTunes and I am getting this message:"This computer is no longer authorized to play purchased items that are on the ipod"...  I have deauthorized and reauthorized the account and still getting the same error.  I have read and followed the instructions in the support article TS1389.  I do NOT have an SC info folder at /Users/Shared/ directory to delete.
    I just installed Lion yesterday, and am running iTunes 10.4.   First attempt to sync since upgrade.
    Thanks
    Dan

    Yup,
    Me too...this is stupid, stupid, stupid. Just purchased my 200 (ish) mac and now I am told that my new Mac Book pro is not "authorized".
    Which if my 200 macs are authorized. Can someone please tell me???
    I "deauthorized" my old MBP and still told I cannot use my iPhone with iTunes.
    Interesting that my old $2500 MBP, my new $3000 MBP and my $500 iPhone all cannot work cuz of some pinhead's decision to use this assorization process.
    Yes I am very, very, very mad.

  • I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work)

    I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work) since I use iCloud and I tunes match

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    Well... what IS the error message?
    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

  • When I invoke Itunes I get an "error 7 (Windows 193)" message. I have reinstalled twice and get the same message. I have Windows 7 64 bit machine. Can someone help?

    When I invoke Itunes I get an "error 7 (Windows 193)" message. I have reinstalled twice and get the same message. I have Windows 7 64 bit machine. Can someone help?

    Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
    http://www.apple.com/itunes/download/
    (The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
    Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
    If you still have the same error messages cropping up, then try the procedures from the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I cannot run itunes, I keep getting this error message" Quick Time failed to initialized (error02096) Quick time is required to run please unistall itunes then install itunes again, I have done this three time and I keep getting the same error message.

    On my PC, I cannot run itunes, I keep getting this error message" Quick Time failed to initialized (error02096) Quick time is required to run please unistall itunes then install itunes again, I have done this three times and I keep getting the same error message. I have had itunes for years, but up until 2 months ago the quick time will not initialize to run it.

    Try using the Windows Installer Cleanup Utility and delete the iTunes installer. Then try installing iTunes again
    http://majorgeeks.com/Windows_Installer_CleanUp_Utility_d4459.html

  • I am getting EXACTLY the same "you don't have the required permissions" message that I see all over the net.  64 bit windows 7 ultimate. Many uninstalls and reinstalls.  Yes, Itunes is in the program files x64 directory.  Yes I get the same error there.

    I'm getting the same error message as many other when I try to start Itunes.  It was working correctly until I got an ipad 3 and installed some of the associated tools.  Have uninstalled and reinstalled many times.  Yes it's in the program files x64 directory.  Yes I get the same error when I try to start direct from that folder instead of menus or desktop shortcuts.  Did some registry cleaning.  Nothing helps.  Windows 7 ultimate, 64 bit.  Please help.

    The install fails with the error: "installer has insufficient privileges to access the directory >c:\ProgramData\Microsoft\Windows\StartMenu\Programs\itunes. The installation cannot continue". My user account is an admin account. I then retried the install by right-clicking and running the install with Admin Privileges. Same error results.
    I don't have a Windows 7 box in front of me, so can you check something for me?
    Navigate to that location on the PC look at the itunes item you see there. Is it a shortcut to your iTunes program file?
    If it's just a shortcut, try dragging it out onto the desktop and doing another (64-bit) install. (With a 32-bit already in place, it may just offer to do a "repair install" instead of a full install.
    Do you still get the error message or does the install go through smoothly this time?

  • TS1717 I can't open Itunes, I have an error that says says MSVCR80.dll is not found. I have tried twice to uninstall and reinstall but keep getting the same error message. Can anyone help?

    I can't open ITunes, I have an error message that says MSVCR80.dll is not found. Is anyone able to help solve this issue for me. I have tried to unistall and reinstall ITunes twice but continue to get the same error message.

    A msi file is short for microsoft installer.  It normally is for installation, removal, and maintenance for a program. So iTunes.msi would be used for the updating of the program.  For some reason it isnt finding this so we can't update, install, or remove it.
    From what I have seen windows installer cleanup utility solved related problems before. 
    I found this forum about removing and installing a new iTunes.  It was about someone who was trying to isntall iTunes, and was looking for msi file and asked for help.   Using this should allow you to be able to install iTunes.  It won't give you the msi file but will allow you to isntall iTunes over again.
    This was what was said.
    Another option in case you can't get an msi. (Or even if you can ... the msi's mentioned in the messages may be damaged rather than missing.)
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Restart the PC, and try another iTunes install. Does it go through properly this time?

  • I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved.

    I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

Maybe you are looking for