ITunes 7.6.1 serious problem- MP3s refuse to play!

I'm having a problem with iTunes I have never seen before, it seems that random albums of MP3s just refuse to play. Double click them right click them they will NEVER play. The only solution is to delete them and re-rip them from CD. This is annoying but far from something on my end.
I've listened to a new album I purchased 2-3 times, after a while I go back to iTunes to play it again it will refuse to play. Song will not even start to play, you can double click all you want it just sits there. I load the mp3 in Windows Media Player or WinAmp and it plays fine. Regardless iTunes requires me to delete the file and re-copy them back into iTunes for it to work.
This has to be a major bug with 7.6.1 as it is too wierd and keeps happening randomly. Anyone else experiencing this?

Bumping - No one else has seen this?

Similar Messages

  • HT5070 i just downloaded/purchased game of thrones s1 #1 and can't see a thing on itunes.  what's the problem?  I hit Play now, and screen goes black as if ready to play and nothing.

    i just downloaded/purchased "game of thrones? s1 #1 and when i hit "play" nothing happens.  the screen goes blank, the counter is there, but nothing starts.  help please!

    Go to the Music section of your Library (very top-left corner) and see if your songs are there. The "Purchased" playlist may have been deleted or gotten corrupted, but if that happens it's not a big deal because your music should still be in your main Music Library.
    If your music is NOT in the Music section of your Library, then go to the iTunes Store homepage and find the Quick Links list on the right side. At the top of that list, click Purchased and you can redownload all of your previous content that you might have lost.

  • ITunes authenticates/authorizes new coputer, but still refuses to play

    I recently had to back up my music library on external HD, then reformatted my computer back to factory specs. I reinstall iTunes and sign in. try to play purchased music, it prompts me for ID and password. It authenticates and authorizes the computer and even plays a purchased song or two. But then stops! I try to start a purchased song and it prompts me to sign back in. It authenticates and authorizes the computer just fine but Still Rufuses to play the song despite that!
    Any clue??
    thanks

    Well since you reformatted make sure you have installed all the updates from microsofts windows update site first for windows.
    THen make sure you goto the PC makers site and install updates for your model
    In iTUnes goto Store>Deauthorize computer over and over til you get the message "THis PC has not been authorized"
    Antivirus MIGHT be interfering with itunes writting to its hidden files authorizing your PC, so disable it then click a song to play it and authorize the PC.
    After that turn your antivirus back on

  • Serious problem with my iPod Classic/iTunes

    I have a 6th Generation iPod classic (80 GB), and recently, I have been having some serious problems with it.
    When I connect it to iTunes, there is usually no problem, it shows up, plays and displays the music correctly, etc. However, if I try to ADD any music to it, iTunes will freeze, then close, and within 5 minutes, my entire computer will freeze completely, and be shut off. For whatever reason, happen when my iPod finally disconnects because my computer turned off, all of my music is missing from the library (This doesn't happen every time it freezes, because I try to disconnect my iPod manually before everything freezes). The music is still on the iPod, (it says that I have XX.X GB of "other" instead of music/videos), but it doesn't show up. When I plug in my iPod, iTunes says that there was a problem and I need to restore it. The first time this happened, I lost over 5,800 songs, but I forgave Apple, because these things do occasionally happen, plus I had no idea what exactly went on. The SECOND time happened within the same week, after I had put 800 songs back on the restored iPod. The first time happened when I was using iTunes 10 (which is seriously buggy on my computer, and freezes often), so I switched to iTunes 9 (still buggy, but doesn't freeze quite as much), and the same thing happened. So now I'm thinking it's my iPod's fault. My iPod does a whole host of minor problems over time such as making certain songs cut off at a certain specific point for no reason (Always the same song, always the same cut off point, and I can't fast forward past it, I also can't delete the songs because if I highlight them on iTunes, iTunes will freeze, and if I find them under the music folder in iPod control, my computer will freeze), freezing the entire iPod for seemingly no reason, and somehow messing up my album artwork (it will appear as "Colourful Static"), along with alot more.
    I know this is a troublesome problem, but if anyone could somehow shine some light on this problem, it would be tremendously appreciated.
    Thank you
    -Eric Luna

    Unfortunately, when a hard drive starts clicking that means it's going bad. The mechanism is having trouble reading the drive. Since the iPod is mostly just a harddrive and a battery I have a feeling that this is your problem.
    watch this video. http://www.youtube.com/watch?v=wMm6c3fr-fU
    about 25ss in is where the clicking starts. If it sounds like that, but softer and more muffled since it is a smaller drive that is being enclosed then I think you might be SOL. Maybe if you're iPod is still under warranty you can get a credit and go for a touch and avoid moving parts all together?

  • Serious problem with AppStore/iTunes WiFi Store. Cannot connect

    Hi
    I has a serious problem with my iPod Touch: When I tries to open App Store on my iTouch, I usually gets this message: *"Cannot connect to iTunes Store"*, often followed by *"Cannot retrieve download information. Please connect with iTunes."*. iTunes on my MacBook seems to work just fine.
    I might also be able to use the AppStore for a minute or so, and then the problems are coming back. All other internet-enabled apps is working fine, except the iTunes WiFi Store who's having the same problems as AppStore.
    What should I do?

    That would be a wonderful suggestion if my computer could connect to iTunes. Since about July my computer keeps giving me error 11222. I've tried everything on the support discussion board, but they haven't solved the problem either, and my software is up to date. Today instead of giving me the error, it's just been sitting for hours saying "Accessing iTunes Store". I was really hoping that I could just use the wifi on the iPod to access the iTunes and AppStore. Any other suggestions until iTunes gets fixed on my computer? Thanks for your help - Lex

  • HT204291 All of a sudden, my Apple TV requires HDCP for playback. It is directly connected to my HDTV and I never had any problems so far. Apple TV  also refuses to play movies rented from iTunes. What's going on?

    Why does Apple TV suddenly requite HDCP for playback?
    No mirroring possible, it even refuses to play films rented from iTunes.
    Apple TV linked directly to HDTV via hdmi cable?

    Hi Seraphiel07.
    I have a very similar issue. Hardware involved:
    Apple MacMini (Mid 2011) - OSX 10.8.2. iTunes 10.7. Home Sharing enabled.
    Apple TV (3rd Generation). Home Sharing (access) enabled.
    Apple MacBook Pro (15" Mid-2009). OSX 10.8.2. iTunes 10.7. Home Sharing enabled.
    Apple iPad 2 (Wifi only). iOS 6
    Apple iPhone 4S. iOS 6
    All connected through:
    Apple Time Capsule 8.0211n (4th Gen)
    I have an iTunes library on the MacBook Pro, shared over "Home Sharing" and another (duplicate content, different library name) iTunes library on my MacMini, which is also accessed through the Apple TV.
    All software is current (as of Sep 26th).
    All movies are iTunes purchases. 80 in total.
    All files are purchased (and home shared) under one account.
    My last two iTunes purchases both HD movies on 09/17/2012 and 09/05/2012 refuse to appear on any device accessing either of the two Libraries over Home Sharing. It should be noted that every other movie (the other 78) all show up and play correctly. I therefore know it is not an issue with connectivity, otherwise I would see zero movies available.
    I have:
    1. Removed all content from each Library and re-added
    2. Upgraded the OS on the MacMini 10.8.2
    3. Tested viewing the two missing movies on other Apple devices and no luck.
    4. Turn home sharing on and off within iTunes and also on each device.
    It would appear to me that the issue is with the files themselves, rather than the devices as different devices and different versions have been tested.
    All comments welcome.

  • ITunes refuses to play shared .ogg files

    I have the xiph codec thing installed for playing ogg files. Ogg files play fine if the files are stored locally on the mac. However, if I try to play the same files when they are stored on another computer on the network, it refuses to play them. Why?
    Nearly all my music files are ogg vorbis. I have only one imac running OS X 10.4.
    All my other computers are linux based and share their music through Rhythmbox's DAAP music sharing function.
    itunes has no problem playing regular mp3 files from shared sources. Only has a problem playing shared ogg files.

    I have ogg files stored locally (on a PC) and iTunes won't play them, no idea why.

  • ITunes refuses to play certain songs?

    I've had some songs in my iTunes library for quite some time but all of a sudden, several tracks (usually in the same album) refuses to play.
    When I delete those tracks from the library and try to re-add them, iTunes refuses to add those tracks but the tracks themselves remain playable by other programs (I tried with Windows Media Player).
    Does anyone know anything about this?

    Hello.
    I am having a similar problem. It's not exactly the same but maybe you can help me either way. I've looked through the forum & this is about as close as I could get.
    Okay, I recently purchased a 2nd gen. 16G iPod Touch as an upgrade from my 1st gen. 8G iPod Touch. When I synced it I noticed that certain songs won't play sound on my iPod. They look as if they're playing but no sound comes out. These songs are all authorized on my computer & play fine on my computer. Just not my iPod. These certain songs also played fine on my 1st gen. iPod Touch.
    I have tried deauthorizing & reauthorizing and syncing my iPod numerous times. Still nothing. I then completely restored my BRAND NEW iPod and tried re syncing it and it still won't play those songs. I'm not sure if I should try the MP3 Tag Validator as I am not having an issue with the songs playing in iTunes. Plus, I just recently was infected with a rogue software virus and am wary of downloading freeware.
    Any other suggestions? I would greatly appreciate it. (:

  • What do i do ? My i phone 4 has no option to reduce the motion picture. It is causing me a serious problem. Can anyone please help ?

    After several attempts to get some help from Apple, it has become clear to me that my i phone 4 has no options within accessibility to reduce the motion picture.
    I have a serious problem with the new software but unfortunatly i cannot go backwards with this update. Apple for obvious reasons will not advise any downgrading options. Can anyone please help me? Is there a third party option here. I do not want to pay for a new phone or replace the i phone as i run a mac,desktop and i pad... !! Thank you.

    Giansh2006 wrote:
    I don't quite understand why you have asked me about why I'm keeping my URL secret?
    It's only that I'm not clear why you are reluctant to post it. If you have a podcast in the iTunes Store then it's there for the world to see - they might search on its subject or title, for example, even if they don't actually know about it from you. If you look at other posts in this forum you will see that usually people post their URLs and then I can examine the feed and hopefully find out from that what the problem is. Without this information no-one can give you anything more than wild guesses.
    If you are still reluctant to post the details and want to have a bash at diagnosing the problem yourself you may find my web pages helpful:
    How do I make a podcast?
    how to diagnose a podcast feed
    Why don't my podcast episodes show the podcast image?

  • HT6154 Having SERIOUS problems with iOS 7.1 on my iPhone 4S!!!!

    I am having SERIOUS problems here. Let me give you a rundown:
    I have to reboot my phone (or turn it off and on again) to see the correct battery percentage (but I'll address that in a second), and once I reboot it or bring it back up again, it has to restart itself (in the middle of use) about 3 or 4 times before it stays on consistantly; all the while reading the percentage of battery it remembers from the last reboot. Now, about the battery percentage: I restarted it before I charged it last night and it read 16% -mind you, after it had to shut itself down and restart 3 times. I put it on the charger all night, and it still read 16%...but I decided to run a battery cycle (charge it all the way up, and drain it all the way down) to see if that would help. Sad to say, it did not help; infact it made things worse. It now flip-flops in between the Apple boot-up symbol and a black screen when plugged up to a charger or a computer. The computer cannot read the phone being plugged in so I cannot do a manual restore from iTunes.
    Best yet, I upgraded to 7.1, and had the SAME EXACT PROBLEMS I AM HAVING NOW. I did a complete restore of my phone, and even set it up as a brand new iPhone, not even a restore from the last iCloud backup, and just loaded all my content from my Mac...and the problems decided to follow -even after the fresh restore.
    I'm toying with the idea that it may be a hardware problem, but I would love to know if anyone is experiencing the same issue.
    I have no idea what to do... please help.
    I use my phone for business constantly, and almost cannot do my job without it.

    ok well seeing that your are having major issues with the battery and the loading screen it is a hardware issue. reseting it wont help that at all. what you need to do is take it to apple and let them look at it. They can tell you what is wrong with it and how much it would be to fix it ( if it is possible your situation is really bad) but if its not they might give you a discount if you give the iphone to them.

  • ITunes is SO confused: refuses to play 89 of my 1000+ songs

    I backed up my iTunes library to DVD-ROM and had to reformat and reload my entire computer (Windows XP). Reloaded entire computer and reinstalled iTunes 8ish. Restored iTunes library from backup.
    (It isn't smart enough to restore all of my artwork, only some; and it forgot which songs were checked and which weren't. Different problems, but poor functionality nevertheless.)
    Now, iTunes refuses to play 89 of my 1000+ songs, saying my computer isn't authorized to play them. Stupid, since it's apparently authorized to play all the rest of them. It says I have to authorize the computer with an old AOL ID I apparently used to purchase those songs. Although, many of them were not purchased from the iTunes store, but imported from CDs I own.
    So I go through the steps it's forcing me to take. I sign on to the old account, at which point it tells me I have to upgrade to an Apple ID or I can't go any further. Fine. I already have an Apple ID, and there's no way to inform iTunes of that. So I go through the motions to create yet another new Apple ID. Says the request cannot be completed. No explanation.
    So I'm stuck. It still refuses to play those tunes, which played fine before I reloaded and restored the computer and library. Now it thinks I have two computers authorized to play iTunes music, and I only have one. Yes, one. It may have been reloaded, but iTunes should be smart enough to figure out that it's the same one. Duh.
    So I'm stuck not being able to play music I own and am authorized to play, and it refuses to allow me to transfer or reorient my songs to my normal Apple ID.
    Is there anyone who can fix this? I hope I don't have to tell you how ridiculous this problem is, and how iTunes/Apple is forcing me to take steps it won't allow me to take.
    Thanks.

    You can Prevent automatic syncing one time, without changing settings:  Open iTunes. Then, as you connect iPhone to your computer, press and hold Command and Option keys (on a Mac) until you see iPhone appear in the iTunes sidebar.
    To load all the stuff from your phone, you'll need to use a 3rd-party uitility. Here are 2 that will work:
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php

  • IPod mini only plays MP3, no longer plays iTunes m4p files

    I connected my friends Windows formated iPod mini (4gig) to my Mac so we could transfer a song she purchased through iTunes 6. Initially there was a dialog box that wanted to update the software on the iPod. Since she had never updated her iPod we didn't choose to do that. The iPod showed up in iTunes fine, and we then authorized the Mac with her account.we transferred the song. The song would play fine from the iPod mini through iTunes, but the minute we disconnected from the computer and tried to play through the iPod, it would skip all the protected m4p files and only play the MP3 files and regular AAC unprotected files. All the protected iTunes songs will no longer play. She has since updated her iPod with the latest software from her windows, and we have deauthorized the Mac, but still the same issues. We then reauthorized the iPod on the Mac and still nothing. Any ideas?

    Upgrading to iTunes 6.0.1 fixes the problem. At least it did on my 3G Mac formated iPod. The mini is working as it should be we restored it to factory settings and got the basic functionality working again. iTunes 6.0.1 allows the 3G iPod to play my recently purchased music, previously puchased music and books, as well as all the other MP3 and non-purchased AAC encoded music. I'm glad I didn't have to restore the 3G 30 gig iPod since that would have been a lot of work.
    Thanks for the fix Apple!
    Earl

  • Serious problem with blackberry 9300 Curve handset and denial from BB to replace the same, under warranty.

    Dear Blackberry Authorities,
    It is really a horrible experience with the handset of blackberry for me. I have purchased blackberry Curve handset 9300 on 22nd April from a "Phone Store”, Shop No.78,79,community centre, New friends colony, New Delhi, The Invoice No. is 319,The details of the handset are as follows:
    Handset: Blackberry Curve 9300 1256-India Qwerty-Pink
    Name: Blackberry 9300: ETA-716/2010/WRLO
    Model: RDA71UW
    It has been more than just three months ,when i purchased this handset ,It worked fine for about only fifty days from the date of purchase and from the second month ,to my shock, serious problem started in the handset and some time it was getting hanged ,sometime some keys in the keypad did not work ,some time it was getting hanged the moment I receive incoming call., sometime sms sending problem, some time some other problem ..Every time I used to switch off the phone and start again, then it used to work but after some days again there were some other problem occurring in the handset.
    The phone was not getting connected to PC from the starting, and i have tried so many times but i fail to get success.
    Many a times when I used t send sms the entire alphabet typed on sms has gone separately as a single alphabet in a particular sms to the recipient, causing embarrassment for me in my organization. I would blame the black berry for this embarrassment as this has caused due to faulty phone they have sold me,
    I am service class person and i get occupied with my work at office in the day hours and doesn’t have time to go to the service centre of blackberry every time the problem occurs, as there are only one service centre available in Delhi at Lajpat Nagar.The service centre is about 20 Kilometers away from the area my office is situated, I managed to keep the phone running by switching off and switching on after one or two minutes, every time the problem occurs but in the first week of last month ,when the problem started continuing  after  switching off and switching on also ,I was bound to go to service centre at noida since it is close to my place (about 14 Km) in comparison of Lajpat nagar at new delhi,the service engineer at blackberry service centre saw my phone and said there is some software problem which can be rectified by reinstalling the software, and there are some hardware problem also (some keys on the keypad is not et. all working) ,for which i have to surrender my phone to them and they will send it to the Blackberry Office (they did not give address) and it would take 15 days  at least ,thus since I had no back up phone and my each and every contact no. was there in phone it was difficult for me to give them handset at that time ,so I requested them to rectify the software problem by re installing the same.
    I asked the service manager to get the backup of all the data and contact no saved into the phone, but they refused to do so and they asked me to go to some other shop nearby to get the data backup, I went to that shop and they asked 250 Rupees for data backup of my phone. I was bound to say yes to them for the amount the charge for backup .I gave them my handset and after 20-30 minutes they came back to me by saying, we cannot store your data backup as it is not connecting to PC. It was a highly disappointing reply for me.
    Then i again went to your service centre and written down some important contact no.(the number which was stored on phone book) on piece of paper  and taken out my SD card ,and gave them handset for re installing the same.
    They gave me my handset after one and half hour and said" now it would work fine except hardware problem.".I came back and to my utter shock again after two three days handset was into its old condition ,then also I tried to manage with handset and when i could spare sometime I went to your service centre again on 24th July at Noida,
    they took the phone and said it would take 12-15 days to return the handset after rectifying the problem,when i requested them to change the handset with a new handset which is at least in good working condition , they clarified that if the hardware problem is not manageable or repairable ,i would get new handset had no option except to give them handset for rectifying the problem.
    Now,It is the time for a biggest shock from blackberry people-Today on 3rd August ,i have received a call from noida blackberry service centre to inform me that my handset cannot get repaired under standard warranty conditions of blackberry as there are some moisture into the phone and there is no warranty if there is a moisture inside the phone.
    Thus now i wish to inform all the concerned ,Blackberry/Research in Motion ,managers/authorities ,that i have explained above ,all the things ,happened to me in last three months of my purchase of handset, in detail ,so i would again request to Blackberry/Research in Motion ,managers/authorities, to rectify the problem of my handset or change the entire handset so that I can use the same peacefully and should not roam around the service center of blackberry.
    Giving this lame excuse that "there is a moisture inside the handset and thus it can’t get repaired or changed under warranty " is a clear case of cheating and harassing the customer, I have bought the handset to use it for my communication purpose not to roam around the blackberry service center nor to put water or moisture inside the handset and play with the handset and fight with all of you.
    If there were some moisture inside the handset then that should have been seen by the noida service centre people also during my First visit itself by them and they would have refused taking the handset for repair. They did not refuse but accepted handset and reinstalled software also, If there was some moisture that would have been seen by them that time only.
    In my second visit also the took my phone and seen the inside condition also of handset in front of me ,they did not see any moisture, that time also ,and now after 10 odd days ,there are some moisture inside the phone??????.
    I have no idea how blackberry keeps its handset ,which has come to them for repairing ,but if there is any trace of moisture into my handset ,that would have come into the handset ,during these 10 days only when phone was with blackberry authorized service engineers for repair purpose. What I know is that My Blackberry handset is under warranty and it is not working properly thus it should be replaced by Blackberry.
    On the keypad if some key are not working that is a hardware problem which was there in the handset and it has no connection with the moisture.
    If this is the way blackberry is treating its customer, i would say it is harassing its customer, and does not want to rectify the problem .in this case, I would have no option left except to go to the consumer court in Indian judiciary system. And moreover i would inform my and other friends, organizational employee also not to use services/or buy blackberry handset if this is the way BB is treating its customer.
    I would request all the concerned persons/managers/authorities of Blackberry/Research in Motion, take action into my case urgently and rectify the core problem into my handset instead of giving lame excuses, and change the faulty handset of mine with a new properly working handset under warranty condition.
    Best Regards
    Asim
    Edit: Personal information removed. At no time should you provide any personal information to any other community member. Please review the Community Terms & Conditions and Support Community Guidelines for additional information.

    dubem747 wrote:
    It looks like your phone has a some virus, use your computer to scan and remove it.
    not possible for it to have a virus and a PC would not know how to scan the OS as its protected
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Serious problem of jdbc-mysql connectivity using tomcat

    hi everybody
    i m in serious problem since last 15-20 days. i m trying hard to make the connection jdbc-mysql using tomcat with the help of a jsp test page but every time i am facing almost the similar probems listed below in detail:
    to make sure that the jdrivers's .jar (mysql-connector-java-3.1.7-bin.jar) available for such connections working fine i have tried the above said connection without using tomcat....which is working fine...for this i have created a dummy database with a dummy table ..and written some queries in the .java file of my code which upon running inserts the specified values in the defined(dummy) database.
    this is the confirmation that the classpath etc..are ok in regard to the mysql-connector-java-3.1.7-bin.jar
    now i have placed a copy of this .jar file in to the commons/lib directory of the tomcat web server(which is suppossed to be the place for such external jars)
    after doing so i have followed 2 methods :
    method 1st:........
    i have made aone more jar file from the following .java file....
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class TestSQLLoad
    String user = "Not Connected";
    String pwd = "no pwd";
    int id = -1;
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null ) {
    throw new Exception("Boom - No Context");
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/TestDB");
    if (ds != null) {
    Connection conn = ds.getConnection();
    if(conn != null) {
    user = "Got Connection "+conn.toString();
    Statement stmt = conn.createStatement();
    String q = "select name, password, id from user";
    ResultSet rst = stmt.executeQuery(q);
    if(rst.next()) {
    user=rst.getString(1);
    pwd=rst.getString(2);
    id = rst.getInt(3);
    conn.close();
    }catch(Exception e) {
    e.printStackTrace();
    public String getUser() {
    return user;
    public String getPassword() {
    return pwd;
    public int getID()
    return id;
    after compiling it at the cmd prompt i made a .jar file from the .class of it and named it MySQLLoad.jar...then i placed it also in to the commons/lib directory where the mysql-connector-java-3.1.7-bin.jar was already placed.
    then i have changed the server.xml and web.xml files from the conf directory of the tomcat as given here:
    server.xml
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN">
    <!-- Comment these entries out to disable JMX MBeans support used for the
    administration web application -->
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
    port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to 0 -->
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    resourceName="UserDatabase"/>
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <Context path="/testdb" docBase="TOMCAT_HOME/webapps/tomcat-docs/testdb"
    debug="5" reloadable="true" crossContext="true" >
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/TestDB"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/TestDB">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>5</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- MySQL dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>root</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mysql</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost/testdb?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    </Context>
    </Host>
    </Engine>
    </Service>
    </Server>
    and the other xml file i.e
    web.xml is here:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <servlet>
    <servlet-name>default</servlet-name>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-cl ***>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>listings</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>invoker</servlet-name>
    <servlet-class>
    org.apache.catalina.servlets.InvokerServlet
    </servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>fork</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>xpoweredBy</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the JSP servlet -->
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>abs</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ai</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aif</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aifc</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aiff</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aim</extension>
    <mime-type>application/x-aim</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>art</extension>
    <mime-type>image/x-jg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>asf</extension>
    <mime-type>video/x-ms-asf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>asx</extension>
    <mime-type>video/x-ms-asf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>au</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>avi</extension>
    <mime-type>video/x-msvideo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>avx</extension>
    <mime-type>video/x-rad-screenplay</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bcpio</extension>
    <mime-type>application/x-bcpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bin</extension>
    <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bmp</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>body</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cdf</extension>
    <mime-type>application/x-cdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cer</extension>
    <mime-type>application/x-x509-ca-cert</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>class</extension>
    <mime-type>application/java</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cpio</extension>
    <mime-type>application/x-cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>csh</extension>
    <mime-type>application/x-csh</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>css</extension>
    <mime-type>text/css</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dib</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dtd</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dv</extension>
    <mime-type>video/x-dv</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dvi</extension>
    <mime-type>application/x-dvi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>eps</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>etx</extension>
    <mime-type>text/x-setext</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>exe</extension>
    <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gif</extension>
    <mime-type>image/gif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gtar</extension>
    <mime-type>application/x-gtar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gz</extension>
    <mime-type>application/x-gzip</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hdf</extension>
    <mime-type>application/x-hdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hqx</extension>
    <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htc</extension>
    <mime-type>text/x-component</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hqx</extension>
    <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ief</extension>
    <mime-type>image/ief</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jad</extension>
    <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>java</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpe</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpeg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>js</extension>
    <mime-type>text/javascript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jsf</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jspf</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>kar</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>latex</extension>
    <mime-type>application/x-latex</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>m3u</extension>
    <mime-type>audio/x-mpegurl</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mac</extension>
    <mime-type>image/x-macpaint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>man</extension>
    <mime-type>application/x-troff-man</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>me</extension>
    <mime-type>application/x-troff-me</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mid</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>midi</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mif</extension>
    <mime-type>application/x-mif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mov</extension>
    <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>movie</extension>
    <mime-type>video/x-sgi-movie</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp1</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp2</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp3</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpa</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpe</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpeg</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpega</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpg</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpv2</extension>
    <mime-type>video/mpeg2</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ms</extension>
    <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>nc</extension>
    <mime-type>application/x-netcdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>oda</extension>
    <mime-type>application/oda</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pbm</extension>
    <mime-type>image/x-portable-bitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pct</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pdf</extension>
    <mime-type>application/pdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pgm</extension>
    <mime-type>image/x-portable-graymap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pic</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pict</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pls</extension>
    <mime-type>audio/x-scpls</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>png</extension>
    <mime-type>image/png</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pnm</extension>
    <mime-type>image/x-portable-anymap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pnt</extension>
    <mime-type>image/x-macpaint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ppm</extension>
    <mime-type>image/x-portable-pixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ppt</extension>
    <mime-type>application/powerpoint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ps</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>psd</extension>
    <mime-type>image/x-photoshop</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qt</extension>
    <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qti</extension>
    <mime-type>image/x-quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qtif</extension>
    <mime-type>image/x-quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ras</extension>
    <mime-type>image/x-cmu-raster</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rgb</extension>
    <mime-type>image/x-rgb</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rm</extension>
    <mime-type>application/vnd.rn-realmedia</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>roff</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rtf</extension>
    <mime-type>application/rtf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rtx</extension>
    <mime-type>text/richtext</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sh</extension>
    <mime-type>application/x-sh</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>shar</extension>
    <mime-type>application/x-shar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>smf</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sit</extension>
    <mime-type>application/x-stuffit</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>snd</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>src</extension>
    <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sv4cpio</extension>
    <mime-type>application/x-sv4cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sv4crc</extension>
    <mime-type>application/x-sv4crc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>swf</extension>
    <mime-type>application/x-shockwave-flash</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>t</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tar</extension>
    <mime-type>application/x-tar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tcl</extension>
    <mime-type>application/x-tcl</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tex</extension>
    <mime-type>application/x-tex</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>texi</extension>
    <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>texinfo</extension>
    <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tif</extension>
    <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tiff</extension>
    <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tr</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tsv</extension>
    <mime-type>text/tab-separated-values</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ulw</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ustar</extension>
    <mime-type>application/x-ustar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xbm</extension>
    <mime-type>image/x-xbitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xht</extension>
    <mime-type>application/xhtml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xhtml</extension>
    <mime-type>application/xhtml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xml</extension>
    <mime-type>text/xml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xpm</extension>
    <mime-type>image/x-xpixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xsl</extension>
    <mime-type>text/xml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xwd</extension>
    <mime-type>image/x-xwindowdump</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>wav</extension>
    <mime-type>audio/x-wav</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>svg</extension>
    <mime-type>image/svg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>svgz</extension>
    <mime-type>image/svg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>vsd</extension>
    <mime-type>application/x-visio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <!-- Wireless Bitmap -->
    <extension>wbmp</extension>
    <mime-type>image/vnd.wap.wbmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <!-- WML Source -->
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <!-- Compiled WML -->
    <extension>wmlc</extension>
    <mime-type>application/vnd.wap.wmlc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <!-- WML Script Source -->
    <extension>wmls</extension>
    <mime-type>text/vnd.wap.wmlscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <!-- Compiled WML Script -->
    <extension>wmlscriptc</extension>
    <mime-type>application/vnd.wap.wmlscriptc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>wrl</extension>
    <mime-type>x-world/x-vrml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>Z</extension>
    <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>z</extension>
    <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>zip</extension>
    <mime-type>application/zip</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    after all this i have taken a jsp page whose code is here:
    (the mysql database used is named as "testdb" and the table name is "user" which is having fields name,password and id)
    <html>
    <head>
    <title>DB Test</title>
    </head>
    <body>
    <%
    TestSQLLoad tst = new TestSQLLoad ( );
    tst.init();
    %>
    <h2>Results</h2>
    User <%= tst.getUser() %>
    Pwd <%= tst.getPassword() %>
    Id <%= tst.getID() %>
    </body>
    </html>
    and placed it in to the Tomcat 5.5\webapps\tomcat-docs\testdb directory and saved as test-db.jsp
    when i run this page on the browser i get a lot may errors stating
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
    AND NOW WHEN just to get rid of such errords i try to include a statement
    <%@ page import="pkg.TestSQLLoad" %> in the jsp page code (and also place the MySQLLoad.class file in a folder called pkg and place it in the same directory where the jsp page is )and make it look like
    <html>
    <head>
    <%@ page import="pkg.TestSQLLoad" %>
    <title>DB Test</title>
    </head>
    <body>
    <%
    TestSQLLoad tst = new TestSQLLoad ( );
    tst.init();
    %>
    <h2>Results</h2>
    User <%= tst.getUser() %>
    Pwd <%= tst.getPassword() %>
    Id <%= tst.getID() %>
    </body>
    </html>
    now when i run it i get the following errors:
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. pkg.TestSQLLoad resolves to a package
    An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    in response to the above error i have even tried placing the MySQLLoad.class directly in the testdb folder along with the jsp page without keeping it in a package named pkg and then importing directly as <@page import="MySQLLoad" %>
    that too gave me the following errors
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    The import TestSQLLoad cannot be resolved
    An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    and if i do not use the statement <%@ page import="MySQLLoad"%> then also i get the errors like
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    An error occurred at line: 11 in the jsp file: /testdb/test-db.jsp
    Generated servlet error:
    TestSQLLoad cannot be resolved or is not a type
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    THE 2nd Method:
    in my second method i did the same changes in the web.xml and server.xml
    then i took a jsp page with the following code:
    <%@ page import="javax.sql.*,java.sql.*,javax.naming.*,com.mysql.jdbc.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> trial doc </TITLE>
    </HEAD>
    <BODY>
    <h1>Trial Document</h1>
    <% InitialContext context=new InitialContext( );
    DataSource dataSource=(DataSource) context.lookup("java:comp/env/jdbc/testdb");
    Connection conn=dataSource.getConnection();
    Statement stmt=conn.createStatement();
    ResultSet rset=stmt.executeQuery("select * from user");
    if (rset.next()){
    %>
    <table width="100%" border="1">
    <tr align="left">
    <th>name</th> <th>password</th><th>id</th>
    </tr>
    <%
    do {
    %>
    <tr><td> <%=rset.getString(1)%> </td>
    <td><%=rset.getString(2) %></td>
    <td><%=rset.getString(3) %></td></tr>
    <%
    } while (rset.next());
    %>
    </table>
    <%
    } else{
    %>
    No results from query
    <%
    rset.close();
    stmt.close();
    conn.close();
    context.close();
    %>
    </BODY>
    </HTML>
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 15 in the jsp file: /testdb/Big1.jsp
    Generated servlet error:
    The type Connection is ambiguous
    An error occurred at line: 15 in the jsp file: /testdb/Big1.jsp
    Generated servlet error:
    The type Statement is ambiguous
    An error occurred at line: 15 in the jsp file: /testdb/Big1.jsp
    Generated servlet error:
    The type ResultSet is ambiguous
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
    org.apache.jasper.compiler.Compiler.compile(C

    thanx for ur response
    as u said that the problem is more of a jsp page not getting compiled....
    me also pointed towards the similar situation providing all the surrounding situations
    which i have met and gone through
    i m still thinking that problem may b in the tomcat's server.xml and web.xml as well
    so better if u plz guide me in that regard
    regards,
    kuldeep

  • Just downloaded latest OS 10.4.6   iTunes refuses to play-

    Can't get my computer to produce any sound at all!!!! after 10.4.6 install.
    help !!

    Sound comes out through speakers alright . iTunes will play videos with sound normally, but refuses to play mp3's aac's or stuff from music store.
    pressing the play button is non responsive. I can't find anything amiss in the preferences. iTunes also seems to burn discs ok as well, just no PLAY.

Maybe you are looking for

  • Can I use a Macbook Pro extender (125V, 2.5A) to extend my 60W MagSafe adapter?

    I am in India and I have a 60W MagSafe Adapter which I run without any problems as adapter supports 100-240V (India runs on 230V - https://www.google.com/webhp?#q=india+voltage) I have a Volex extender that I'd love to use but I am not sure if I can

  • Monitor won't display after changing settings

    I changed the settings on my Mac Pro and apparently they are not correct for that monitor. The display is blank and now I can't get anything to display in order to reset display settings. How can I get it to display again?

  • ITunes not syning my calendar with my iPhone

    I try and sync as normal but keep getting this message at the end of my sync: iTunes could not sync calendars to the iPhone "iPhone name" because the sync server failed to sync the iPhone. I've tired resetting the history and everything but it won't

  • PSE11 Outlook Option is missing from Client Email Menu

    I have recently installed Photoshop Elements 11 on a new Windows 7 64 bit PC. When I try and send an attachment by email (Share - File Attachment) then my Outlook 2010 client is missing from the list of Email Client options. I only see the Adobe serv

  • What is layer_quantity in cst_quantity_layers

    Hi, I need to know is layer_quantity in cst_quantity_layers represent the current OH or Qty get costed (exists in MTA) or something else? Regards Emad