Can't get Tag Library example to work

I'm doing the tutorial on this page
http://java.sun.com/products/jsp/tutorial/TagLibraries15.html
And downloaded the war files and have them correctly in my Tomcat Directory.
All I did was jar xvf iteration.war and jar xvf template.war
And now it seems like it's not picking up the locations to any of the tags.
When I do my http://localhost:8080/iteration
I get:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /index.jsp
Generated servlet error:
[javac] Warning: org/apache/jsp/index_jsp.java modified in the future.
[javac] Compiling 1 source file
/home/abcweb/tomcat/work/Catalina/localhost/iteration/org/apache/jsp/index_jsp.java:66: cannot resolve symbol
symbol : class Organization
location: class org.apache.jsp.index_jsp
Organization org = null;
^
An error occurred at line: 12 in the jsp file: /index.jsp
Generated servlet error:
/home/abcweb/tomcat/work/Catalina/localhost/iteration/org/apache/jsp/index_jsp.java:68: cannot resolve symbol
symbol : class Organization
location: class org.apache.jsp.index_jsp
org = (Organization) jspxpage_context.getAttribute("org", PageContext.PAGE_SCOPE);
^
An error occurred at line: 12 in the jsp file: /index.jsp
Generated servlet error:
/home/abcweb/tomcat/work/Catalina/localhost/iteration/org/apache/jsp/index_jsp.java:70: cannot resolve symbol
symbol : class Organization
location: class org.apache.jsp.index_jsp
org = new Organization();
^
An error occurred at line: 17 in the jsp file: /index.jsp
Generated servlet error:
/home/abcweb/tomcat/work/Catalina/localhost/iteration/org/apache/jsp/index_jsp.java:81: cannot resolve symbol
symbol : class IterationTag
location: class org.apache.jsp.index_jsp
IterationTag jspxth_tlt_iteration_0 = (IterationTag) jspxtagPool_tlt_iteration_type_name_group.get(IterationTag.class);
^
An error occurred at line: 17 in the jsp file: /index.jsp
Generated servlet error:
/home/abcweb/tomcat/work/Catalina/localhost/iteration/org/apache/jsp/index_jsp.java:81: cannot resolve symbol
symbol : class IterationTag
location: class org.apache.jsp.index_jsp
IterationTag jspxth_tlt_iteration_0 = (IterationTag) jspxtagPool_tlt_iteration_type_name_group.get(IterationTag.class);
^
An error occurred at line: 17 in the jsp file: /index.jsp
Generated servlet error:
/home/abcweb/tomcat/work/Catalina/localhost/iteration/org/apache/jsp/index_jsp.java:81: cannot resolve symbol
symbol : class IterationTag
location: class org.apache.jsp.index_jsp
IterationTag jspxth_tlt_iteration_0 = (IterationTag) jspxtagPool_tlt_iteration_type_name_group.get(IterationTag.class);
^
6 errors
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
     org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Has anyone else had problems with getting this example to work?

Ok, I've just taken a quick look at it, and its not going to work right out of the box.
The examples are kinda old now.
The thing which is stopping it from running is a change with Java 1.4
Tomcat can no longer access classes in the "unnamed" package.
Thats why it can't find the class Organization, or Iterator or any of the others.
All java classes must now be in a package for Tomcat to find them.
Also the IterationTag.class is sitting in the web-inf/lib directory which just seems wrong to me - only jar files should be there in my experience.
In short, I would go looking for a more up-to-date tutorial.
Try http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html for j2ee 1.3
and http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html for the latest stuff.
Cheers,
evnafets

Similar Messages

  • How can I get iTUNES library to display renamed files and folders (renamed with Windows Explorer)?

    How can I get iTunes library to display the new names and organisation of tracks and albums (ie files and folders) that I have renamed and reorganised (using Windows Explorer) having previously imported them using iTunes?
    (Even when I relocate "lost" tracks in iTunes (using the drop down menu facility to view in Windows explorer), although iTunes will then play the track, and knows where to find it, it refuses to display the track with its correct (new) name, or show it the correct (new) album.  That means I have lots of things called "Untitled" and "Track 01" etc, all of which have actually been renamed, but iTunes does not seem to have the capability to recognise the changes and update its library listing.  Another example - a Tchaikovsky CD with 3 major works in 13 tracks insists on displaying in iTunes as 13 tracks in one album, despite the fact that I have reorganised the tracks into 3 albums - two being Swan Lake and The Nutcracker - and renamed the individual tracks to a more useable format.)

    Thanks for your replies ckuan
    I agree with Tgod that your first solution does not work.  It appears unpredictable whether the old or new file names are listed when you drag the folders into iTunes from Windows Explorer.  The folder structure is completely missing.  I reckon if you have to muck around spending days/weeks/months finding out how to fix links to a secret meta-file (obviously designed by some deep-cover microsoft worm working in the Apple!), then it's pretty obvious that almost any alternate way of doing this would be better.   Bye bye iTunes!!
    Incidentally, I tried several other things that (if the software was designed intuitively) should work, but give disastrous results:
    1) when deleting the library listing in iTunes, it gives you two options - one is to remove the listings to the Recycler.  Be aware that IF you select that option, it removes not only your library listing, but also your ACTUAL MUSIC FILES to the Recycler.  Moreover, it does NOT remove the insidious secret meta-file that is what apparently keeps rewriting old names over your carefully renamed file names, and keeps totally ignoring your carefully designed folder (album) structure.  OK - not a complete disaster, as I realised and went hunting through the chaos in the Recycler to recover all my files.  No thanks to the genius who designed this brilliant feature!
    2) after deleting the library listing in iTunes, I attempted to import just the folders that I wanted.  iTunes refused to allow me to do that, and proceeded to try to import every frigging music file it could find on my whole hard drive, in apparently random fashion into the library.  Whoever thought up that doozy either never ever tried to use or market test it, or has modified their mind rather too many times with artificial substances so their brain is like muesli chop suey.
    3) oh why go on, it's too depressing ...

  • How can I get an external microphone to work on an iphone?

    How can I get an external microphone to work on an iphone?

    Japib is correct.
    WHAT happens? Exactly.
    Also helpful would be to tell what event preceded this behavior - added App, update iOS, etc.
    Quoted from  Apple's "How to write a good question"
       To help other members answer your question, give as many details as you can.
    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "iPhoto 9.1.2".
    Describe the problem, and include any details about what seems to cause it.
    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.
    ÇÇÇ

  • I accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions???  plz help!!!

    i accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions??? plz help

    As already provided, if you don't have such in your iTunes library, on your computer, then there is no way to put it back on your phone. Apps are DRM protected, so even if you found a copy somewhere, you wouldn't be able to use it.

  • I have tried to reindex my messages but I still can not get the search function to work in email

    I have tried reindecing my messages by rebuilding the library but I still can't get my message function to work in mail.  Any proposed solutions much appreciated.

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock all your user files, reset their ownership, and remove their access-control lists. If you've set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Back up all data.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • I can't get the finger service to work in Messaging Server 3.01.

    I can't get the finger service to work in Messaging Server 3.01.
    <P>
    This is a known problem in 3.01. There is a patch which
    fixes this problem. It is available at:
    <P>
    ftp://[email protected]/messaging/m301ptch.exe
    <P>
    the password is: bet@NOW!

    Hi David
    Say you have term <foo> and definition <bar> pair. Here term (any text you want highlight) is used in document at many places and definition is defined once as complete paragraph anywhere (i.e. in table cell). if same term is define at multiple places first definition is taken.
    Use marker text same as your term text <foo> for tagging both term and definition.
    Use Glossary marker to tag definition
    Use GlossaryTerm marker to tag term
    We have taken feedback to update the FrameMaker help on this.
    For in place highlighting you may also try expanded text  http://help.adobe.com/en_US/FrameMaker/9.0/Using/WS9FDAD957-2A30-4251-B520-EC32E0A8097B.ht mlhttp://help.adobe.com/en_US/FrameMaker/9.0/Using/WS9FDAD957-2A30-4251-B520-EC32E0A8097B.ht ml   Now in FM 12 expanded text  is inside Special > Publish Options > …
    Hope it clarifies your doubts
    Thanks
    Amit 

  • I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone an i have internet and all other functions working on my computer

    I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone and i have internet and all other functions working on my computer

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents—the text, not a screenshot. I know the report is long. Please post all of it anyway.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • HT4623 Please help! I can not get my library back on my Itouch.  It says not connected to itunes on itouch

    I can not get my Library back on Itouch.  Itouch shows not connected to itunes on screen

    What do you mean by "Itouch shows not connected to itunes on screen"?

  • How can I get my web cam to work in Adobe Connect ?

    This is actually an end user's question that I am having trouble answering to...
    We use Adobe Connect to give online language classes, the end user is one of the students.
    I cannot find the right Support answer to give him.
    Problem:
    My camera does not work when I connect to Adobe's rooms but camera works fine with other software.
    Even though I suspected my old camera was working fine, yesterday I went ahead and bought a new camera. 
    I thought perhaps my webcam software may have been a problem, so I bought a different type camera with different software. 
    Even after removing all the old software, same result:  
    I surmised the problem might be caused by my firewall and security software, so once I tried changing the permissions for Adobe, and my Webcam, but that didn’t work.   
    Another time, I restarted my computer right before class and then turned off my firewall completely so there would be no interference but to no avail. I’m totally perplexed.  
    Isn’t there anyone else experiencing a similar problem?   Has anyone else found a solution? 
    I run Windows Vista with McAfee Internet Security Software.  I always reboot the computer before class and open no other programs other than Google Chrome. 
    I now have a brand new Microsoft LifeCam Cinema Camera with LifeCam 3.5 Webcam Software. 
    I test my camera before going online.  It always works fine.   Then I shut down the camera program and login into class.   
    When I “connect webcam” in the room, the light on my camera comes on (suggesting that it is ON), but only a black image is transmitted to the room.

    Check to see if you have Google Voice installed. If so, remove it and see
    if your problem vanishes. If not Google Voice, check to see if you have
    any other communications software which interacts with your cam and
    disable it. This was the problem I had with a similar problem on a Mac.
    MosesJOI <[email protected]>
    10/13/11 12:08 PM
    Please respond to
    [email protected]
    To
    jsb152 <[email protected]>
    cc
    Subject
    How can I get my web cam to work in Adobe Connect ?
    Re: How can I get my web cam to work in Adobe Connect ?
    created by MosesJOI in General Discussion - View the full discussion
    Thanks a lot Heyward for the swift reply !
    I sent the advice out to the end user, but unfortunately this wasn't the
    solution.
    His reply is below :-
    The default resolution of my new camera is already set at 640x360, but I
    went ahead and tried several lower resolutions (e.g. 424x240; 320x240; and
    160x120) but none worked in the room - camera still showed up as black
    blank screen.  Also, as far as I can tell, I don’t have the option of
    adjusting the frame rate.
    I started playing around with my Internet Security Settings to see if they
    might be playing a role. So far, all to no avail.
    Hmm...quite a tricky one - webcams always are - maybe if he can find a way
    to adjust the frame rate (?).
    He's going to fiddle about with the settings a bit more and see if
    something does the trick.
    If anyone has had a similar problem and found an ingenious solution,
    please jot on a note on this thread.
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3969561#3969561]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3969561#3969561]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in General Discussion by email or at Adobe Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • How can I get iCloud to accept my working Apple ID and password

    My Apple ID and password works for iTunes and App Store.  I'm trying to set up iCloud on my iPhone and iPad but i keep getting an error message that reads unsupported ID.  Apple ID must be in the form of email address (@me.com).  I don't have a MobileMe account. How can I get iCloud to accept my working Apple ID and password?

    I've also reset my password to my Apple ID. I still get the Unsupported ID and password.

  • How can I get my library to show on a different computer?

    My own laptop is broken. I can use another laptop to access my iTunes account. That laptop already has its own iTunes account, but that doesn't have all my songs on, so I'd like to access my own iTunes library. I can sign in to iTunes on this laptop, I have authorised this laptop for my account, but i still can't get my library to show up on here. I can get my library to show up on my iPad mini, but i can't sync to my daughter's iPod nano as there are enough songs in my library to fill an iPod Classic. I don't think i can sync from an iPad mini anyway? Is there any way that I can either check certain songs on my iPad mini, but not all of them, so that i can sync my daughter's iPod nano on my iPad mini, or that I can get my own library to show up on this laptop rather than the other, pre-existing library?

    Is the Laptop Mac or PC?
    What version of OS X(if Mac)/Windows(if PC) and iTunes do you have on your laptop?
    Do you have a iCloud acount?
    Have you enabled "Home Sharing" on iTunes?
    Do you use a USB cable to sync music on iPad?

  • Hello, so today I realized that my iPhone with iOS 6 is frozen on the music. I can get back to the home screen but I can't get the music player to work because its frozen on the w's and will not respond to touch. I would be grateful for any help on this.

    Hello, so today I realized that my iPhone with iOS 6 is frozen on the music. I can get back to the home screen but I can't get the music player to work because its frozen on the w's and will not respond to touch. I would be grateful for any help on this.

    Hi deamayfield,
    Thanks for visiting Apple Support Communities.
    If your Music app is unresponsive, try restarting/resetting your iPhone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Best,
    Jeremy

  • I just got a new itouch and i can't get imessage or facetime to work on my home network

    I just got a new itouch 4 and i can't get imessage and facetime to work on my home wifi network (Airport Express). I can't explain it. The itouch works fine otherwise uncluding the internet. Facetime and imessage work at the apple store so there must be something wrong with my home network. Please help if you can!
    iPod touch, iOS 5.0.1

    I changed the DNS to 8.8.8.8 as you suggested with no success, I even tried 8.8.8.8, 8.8.4.4 as suggested by others with no success either.  When I try and activate iMessage or Facetime, I still get the same message "could not sign in, please check your network connection".  The internet and Mail work perfectly fine on the iPod touch so the WiFi signal IS going through.  I am at a loss, any other suggestions would be more than welcome. Thanks!

  • How can I get my excel spreadsheet to work in numbers

    How can I get this budget sheet to work in numbers when it's from excel.

    I couldn't get the picture of the whole thing it wouldn't load but you see where it say like 700.00 then below that it say 175.00 well that part works telling me what I need to know but when it get to where it says the 850 it stops working? it won't sum it out or something I'm not great with excel and this was sent to me by a first and it's our budget plan and I really need to be able to use it

  • How can I get my iPhone 5s to work in my 2015 outback

    How can I get my iPhone 5s to work in my 2015 outback?

    I Tried that and I can get calls out and in but no messaging.
    AWindow opens and says this feature is not supported  on this device
    my iPhone 4 worked fine   is it my iOS?

Maybe you are looking for

  • How do I allow a single symbol in numeric-only field?

    Good morning all, I could use a little help with this one. I am using Acrobat 10 today working with form-fields in a document. Currently I have several fields where I have limited input to numbers only (max three digits) using the folowing script: fu

  • Help :  JDev 11 [TP4] Saved Data as a Rubbish    ??????????

    Hi all I use a non Latin letters Language and I do not have any problems with the interface but my problem is with data; after I insert or update data and Press Commit the data displays and Saved as a Rubbish . Note : my O/S windows XP and I use Jdev

  • Iphoto slide show

    after you create your album and view it on the slide show is it possible to email the slide show?

  • Can i reregister my iphone 4 on someone else???

    Hi People! I bought one Brand new iphone 4 and it brake in a few months. So when i took it back they swap my phone with a used one refubrished from Apple. The problem is that the phone is already registered to someone else. Can i reregister it to my

  • My ipod 5 won't connect to wifi

    my 5th generation ipod touch will not connect to my home wifi. it connects to other hotspots, but not at my home. i can see my home network, but when i select it, it just does the little loading circle, but it won't even connect after an hour or more