Tomcat problem finding MySQL driver when context used

Hi all.
I have a context set in tomcat3.3 which allows me to run JSPs saved in TOMCAT_HOME/webapps/examples/jsp from /luc.
Initially, I had problems using beans when I used the context (the whole thing works ok when I just enter the actual path in the URL).
I solved that by adding the ...WEB-INF/classes directories to my CLASSPATH. But now that the beans are found, Tomcat is giving errors regarding the mySQL driver I'm using, which is mm-mysql-2.0.11.
The error is:
Error: 500
Location: /luc/validateLogin.jsp
Internal Servlet Error:
javax.servlet.ServletException:
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
     at validateLogin_1._jspService(validateLogin_1.java:139)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
     at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
     at org.apache.tomcat.core.Handler.service(Handler.java:235)
     at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
     at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
     at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NullPointerException:
     at customerProfile.customerProfileBean.validateUser(customerProfileBean.java:135)
     at validateLogin_1._jspService(validateLogin_1.java:98)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
     at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
     at org.apache.tomcat.core.Handler.service(Handler.java:235)
     at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
     at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
     at java.lang.Thread.run(Thread.java:484)
And I've outputted the the following stuff:
Unable to load driver java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
java.sql.SQLException: No suitable driver
Remember, this all works fine when I don't use the context.
In my CLASSPATH, I point to the JAR file:
/usr/local/jdk1.3.1/lib/mm.mysql-2.0.11/mm.mysql-2.0.11-bin.jar
Any ideas?

try moving the mm.mysql-2.0.11-bin.jar file to %TOMCAT_HOME%/common/lib. This should make the classes available to all contexts.

Similar Messages

  • Connection didn't retrieve Driver when I use an Agent

    When I launch a scenario with ODI Scheduler one of my variable can't be Refreshed.
    I obtain an error message which says that there is "No suitable driver".
    When I refresh the same variable without any agent (no scheduling) there is no problem...
    Does someone have an idea ?
    I understand that comes from the use of an agent for scheduling but I don't know how to fix that.
    I'm working with ODI 10.1.3.4.1 and with DB2 Technology.
    Moreover when I'm using an Oracle connection with an agent there's no problem and my variable is well refreshed.
    Thanks in advance
    BM

    Hello Cezar Santos and thanks for your time.
    I feel good even if it's not yet the week end, I hope that you too.
    For your questions :
    1/ My Agent, which is a scheduler one, is in the same machine as my ODI client.
    2/ Even my agent is in the same machine, I have the drivers on my machine and without agent it works well.
    If I launch the scenario manually, without the scheduler, my variable is well refreshed.
    3/ Your right, the problem is only that ODI didn't find the driver when I use the agent.
    It occurs in the variable refresh cause this is the first call to DB2 in my scenario.
    A thing that I can't understand is when I use an Oracle connexion all work well.
    But no DB2 connexion works....
    I'm actually looking in the wrapper config...
    Maybe it comes from there.
    I also verify that I have the classpath of the driver define in ODIParams, and I have it.
    If you see something else...
    Thanks a lot
    BM

  • I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to easily, and when it does it can never connect?

    I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to find wifi, and when it does find a wifi network it can never connect?  You think apple would have a clue how to fix it!  Because turning the wifi on and off doesn't work, resorting network settings doesn't work, even restoring phone to factory default doesn't work...

    Did not work. I've selected iMessage to ON and left it. After a few hours I recieved a message "activation unsuccessful. Turn on iMessage to try again". This has been going on for the past 3 days.

  • I have a 17" Macbook pro with flickering red and cyan(blue) lines across the screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem.

    I purchased my Macbook (17") through a certified apple tecnition in August 2012, it was refurbished and the motherboard was completely replaced. I do a lot of photo editing, but I have been unable to do so because of the red vibrating lines that interrupt my screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem. I brought the computer back to the technition I purchased it from and he said that it was a problem with my fan, so I have two new fans but the issue is still occuring. He says he doesnt know whats wrong. Does anyone have any information on this issue?
    Here is an image of the issue
    http://www.flickr.com/photos/67839707@N08/8884847081/

    I recommend having your Mac serviced by someone competent. A force sufficient to "blow apart" the fans was clearly excessive and may have damaged the display cable, as well as any number of other problems.
    Dust is properly cleaned with a vacuum, preferably one designed for computer service, and they are not cheap.
    Compressed air should never be used. It just blows dust everywhere, often into places where it can no longer be removed.

  • Java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver when using RMI

    I am trying to connect to mysql Db through RMI but i am getting this exception.
    When trying to connect to db through a normal class implementation without RMI it is connected succesfully.
    What is causing the problem????
    Thanks in advace

    CLASSPATH, man. The RMI server needs to have the MySQL driver JAR in its CLASSPATH.
    That's usually what that exception means.
    %

  • I've a problem with QuickTime controlbar when I use transparent wmode

    Hello All,
    I've a problem with QuickTime controlbar. When I use this code :
    <object height="592" width="690" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">
    <param value="http://streamer.podcast.ulg.ac.be/reflexions/scienceensamusant/doccafe/D ocHorlogesBis.mov" name="src">
    <param value="true" name="autoplay">
    <param value="true" name="controller">
    <param value="true" name="kioskmode">
    <param value="true" name="loop">
    <param value="video/quicktime" name="type">
    <param value="transparent" name="wmode">
    <embed height="592" width="690" type="video/quicktime" loop="true" kioskmode="true" controller="true" autoplay="true" pluginspage="http://www.apple.com/quicktime/download/" src="http://streamer.podcast.ulg.ac.be/reflexions/scienceensamusant/doccafe/Doc HorlogesBis.mov">
    </object>
    with transparent wmode, the controlbar don't print correcty on IE7/IE8.
    If I use this code without wmode='transparent', It work but my css menu doesn't work.
    Anybody can help me ? Thank in advance.
    JP

    Hello,
    The suggestion made by Golubkov is correct. Make sure that you have configured the CAN objects to correspond to the Ports- for instance, Port1 to CAN0 and Port 2 to CAN1.
    If this dosen't fix the problem, let us know what the error message clearly states ( can be found out by clicking on the details tab).

  • I have an IPod touch 4 gen. And I'm having problems with the audio when I use other than Apple brand earphones

    I have an Ipod Touch 4 gen. and I'm having problems with audio when I use other than Apple brand earphones. I'm talking about music only so far, when I use apple earphones all is fine, but if I use other type of phones ( sony for exemple ) I can only hear the music and the background but not the lead singer voice, can anybody explain this to me? thank you.

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    - If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • Problem find printer driver Canon LBP 2900i

    Hi there,
    I just got myself my first Apple Macbook Pro.
    so far so good, except finding a driver for my (1 year old) Canon LBP 2900i laser printer.
    It simply is impossible to get the driver.
    Anybody has some suggestions?
    It is pretty horrible, as I need to use it for my study urgently
    Peter

    Looks like a problematic printer.
    Try this: http://www.macosxhints.com/article.php?story=20080113155618785
    Kind regards
    --greg

  • When I click on a link I get sent to a bunch of other sites and the problem doesn't occur when I use windows internet browser.

    When I click on a link, whether e-mail, yahoo or other search engines, E-bay, Amazon, etc. I get sent to another site. If I click back and then re-click on the original site I get sent to where I wanted to be. While I am browsing on a web page of any of the above, or other sites, I sometimes get a voice ad or possibly a video, but I can't locate it or turn it off. This does not happen when I use windows internet, or it's Google chrome internet, only with Firefox. I have used Ad aware, and Mal-bytes anti-virus but they come up blank.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • ITunes wont find my music on my external drive (when it used to!)

    I recently filled my PC's interntal harddrive with music to the point where it was so slow I had to to buy an external drive to keep it on. I tranferred all my music on to the hard drive and have had no problems with it until today.
    Today, I started iTunes BEFORE I turned on my external drive meaning that iTunes could not find any of the music in my library.
    This was OK at first, as I could just search within my My Music Folder to locate the odd tunes I wanted to export to my iPod.
    However, now whenever I select a song from my library (even with the external drive powered up) I have to go and search for each individual file. I get the little exclamation mark next to the track and the following message:
    "The song 'XXXXXX' could not be used because the orginal file could not be found. Would you like to locate it?"
    I then have to search My Music folder to find the tune. This is OK once or twice but I dont want to have to do this for 40Gb. HAs anyone else had this problem?
    Is there a faster/better way to find my music and get iTunes to locate it without me having to import all the folders again?
    BTW my I've just noticed that my I haven't changed my original iTunes folder location from my internal C drive to my external E drive. Will this make any differences?
    Cheers
    PC Windows XP SP2 AMD Athlon 2600 Sapphire Radeon x800 pro 256
    PC Windows XP SP2 AMD Athlon 2600 Sapphire Radeon x800 pro 256

    Hi I did try that as, in the past, that used to work. My harddrive was already powered up so I closed iTunes and then reopened it. But, I had no joy. I noticed that my default path for the itunes folder was for my old C drive so I have changed that to my E drive now. Thanks.
    However, I fear I may have made matters worse. I followed advice from elsewhere and have been tampering gulps My new situation is as follows:
    I have moved the default iTunes folder to my external (G) drive. I have placed all my music into my iTunes folder on my (G) drive <External HDrive (G:)/My Music/iTunes/>. If I browse these folders I can see all my music files.
    I then selected all the music in iTunes with an exclamation mark and cleared it (not to the Recycle Bin!). I was told by a friend that if I then went into iTunes/Edit/Preferences/General and then ticked "Keep iTunes folder organised" iTunes would then find all my music in the iTunes folder.
    However, this has not happened
    So, as it stands, I have 40gb of music in my iTunes folder and I would like to see it in iTunes but can't find a way to do this without importing every single folder via the File/Add folder to library option.
    If anyone cal tell me how to get my music back into iTunes I will be most appreciative. Thanks
    BTW - I am not going to do anything else to those folders until I hear from anyone else just in case I make an even bigger mess of things.

  • Problem with absolute path and context using Tomcat 4

    I added the following line to my server.xml:
    <Context path="/track" docBase="track" />Now I have used absolute paths(ex: /includes/css/style.css) throughout my code and it worked when I served my application from the ROOT context but when I moved it to the /track - the paths did not include the new root context.
    So instead of looking at http://localhost/track/includes/css/style.css it still looks at http://localhost/includes/css/style.css.
    Is there any kind of setting I am missing in the web.xml or server.xml? I really would like to be able to use absolute paths relative to the context root.
    Please help! Thanks in advance.
    -Chris

    Hi,
    I am not sure what exactly you are asking but here is my shot. If one tomcat is serving more than one application then the only way for tomcat to know which application to refer is by looking at the context path. Since you have the context path of /track then it should appear in all of your urls being directed to the server (for both servlet and jsp). Since you have used absolute path in all the cases either you will have to change the absolute path or you will have to define them relative (which is a better idea) to a base dir. Hope it helps.
    I added the following line to my server.xml:
    <Context path="/track" docBase="track"
    />Now I have used absolute paths(ex:
    /includes/css/style.css) throughout my code and it
    worked when I served my application from the ROOT
    context but when I moved it to the /track - the paths
    did not include the new root context.
    So instead of looking at
    http://localhost/track/includes/css/style.css it still
    looks at http://localhost/includes/css/style.css.
    Is there any kind of setting I am missing in the
    web.xml or server.xml? I really would like to be able
    to use absolute paths relative to the context root.
    Please help! Thanks in advance.
    -Chris

  • Problem getting MySQL driver loaded in ODI Studio (ODI 11g)

    Hello -
    I am trying to create a new data server in the physical architecture under the MySQL technology. Since there is no MySQL JDBC driver included as there was in ODI 10g, I looked into the documentation to find a similar drivers directory that I had used in ODI 10g for loading other JDBC drivers. I would like to be able to select the MySQL Connector/J driver from the drop-down list of usable drivers in the Driver dialog window. I found this link, that explains how to install drivers:
    http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    I followed the documents instructions, added the file "mysql-connector-java-5.1.13-bin.jar" to my directory "C:\Documents and Settings\<my username>\Application Data\odi\oracledi\userlib" and restarted ODI Studio. I still cannot get the app to recognize the new driver to use, am I missing a step or is there a known issue with this method? More importantly has anyone been able to get this to register with the Driver dialog box successfully?
    With ODI Studio open, I attempted to delete the mysql jar file from my userlib directory and there was an error that said the file was in use... so I assume that ODI Studio is using the file but not registering it within the Driver selection dialog.

    I think we found our own answer... apparently the ODI Studio interface does not dynamically load that drop-down list from registered drivers in the classpath. We can still use the driver name by manually typing it into the "JDBC Driver:" text box.

  • Problems finding if password has expired ( using ldap_simple_bind )

    since i want to find out if password has expired or not i am using asynchronous bind,but i am facing certain problems with ldap_parse_result. The problems are :
    1) it fails intermittently when i want to get password expiration controls and gives core dump. all the parameters are correct ...
    2) also i do not get password expiration warning control, I get password has expired before 5 hours or so.
    3) so i have used a workaround and check for "password expired" in the message returned by ldap_parse_result without retrieving controls. is it ok to do this ?

    since i want to find out if password has expired or not i am using asynchronous bind,but i am facing certain problems with ldap_parse_result. The problems are :
    1) it fails intermittently when i want to get password expiration controls and gives core dump. all the parameters are correct ...
    2) also i do not get password expiration warning control, I get password has expired before 5 hours or so.
    3) so i have used a workaround and check for "password expired" in the message returned by ldap_parse_result without retrieving controls. is it ok to do this ?

  • Problems with sound quality when ripping using apple lossless

    When ripping cd with apple lossless I have problems with parts of the songs falling out. It does not apply for all songs. I use a Mac Pro OS X 10.9.2  with iTunes 11.1.5. Does anyone know why this happens, and what I can do to prevent it from happening again?

    Hi Amy:
    Sorry that the Color Setting idea didn't do the trick. Since the occurrence is separate, that is, seeing one color view using Elements and a different color view using email view. I still suspect this area.
    Calibrating a monitor to me (as the saying goes), is easier said than done. You may want to do a web search using Calibrate Monitor, or similar search words. This will find some interesting websites on calibrating monitors you can read and try out. If you do change some settings, write down what your original settings are before hand, so if you make it worse, you can go back where you started.
    There are two areas to calibrate the monitor.
    1. Using the monitor controls on the monitor itself.
    or/and
    2. Using the graphics card (software) control. Which is normally found (Win XP) DISPLAY PROPERTIES>SETTINGS>ADVANCED> then the TAB with your graphics card name.
    3. Actually there is a third one, which uses a very expensive device that connects to the monitor. At the moment this method escapes me. Mainly used by professionals and serious photo editing people.
    Good Luck!
    Tony

  • I have problem with the GPS when i use the apps

    I try to use diffents apps like Runstatic, RunKeepr, Emondo and the record after any running activiti it shorw me a no correct distance and no correct way on the map. Always is more than i did. Is a problem with the GSP of my Iphone ? How I can solvet the problem ? Thanks so much

    Hello eamt,
    Thank you for the details of the issue you are experiencing when you are using apps that use GPS.  It sounds like you are seeing some inaccuracy when using these apps.  I recommend the following steps to improve GPS accuracy:
    Improve GPS accuracy2,4
    GPS accuracy varies depending on the number of visible GPS satellites. Locating all visible satellites can take several minutes, with accuracy gradually increasing over time. Use these tips to improve GPS accuracy:
    Ensure the date, time, and time zone are correctly set on the device in Settings > General > Date & Time. If possible, use Set Automatically.
    Important: Incorrect settings on your computer can sync to your device. Verify the date, time, and time zone on any computer that syncs with your device.
    Restart your device.
    Verify that you have a cellular or Wi-Fi network connection. This allows the Assisted GPS (A-GPS) on the device to locate visible GPS satellites faster, in addition to providing initial location information using the Wi-Fi or cellular networks.
    Note: Microcells (sometimes called Femtocells) aren't supported with Location Services.
    Maintain a clear view of the horizon in several directions. Keep in mind that walls, vehicle roofs, tall buildings, mountains, and other obstructions can block line of sight to GPS satellites. When this occurs, your device will automatically use Wi-Fi or cellular networks to determine your position until the GPS satellites are visible again.
    Find the full article here:
    iOS 7: Understanding Location Services
    http://support.apple.com/kb/HT5594
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • In Gmail I can setup other accounts to "send" email from- can I use these other addresses in Mac Mail

    In Gmail if you click the 'cog' button under your username you can choose "Settings" from the drop down menu. From Settings you choose the accounts and import tab and can enter other email addresses. This is useful to me because I have an email addre

  • Problem with gridbaglayout in JPanel

    Hello I am trying to display contact information in three serperate Jpanels on tabbbed panes.I would like to get help in configuring maybe just the pane of void showPane1().I need something like Searchlb | Combodropname1 firstnamelb | firstnametxt |

  • Macbook to TV via DVI-HDMI cable - video delay

    Hello All, I have my Macbook, on occasion, attached to my Samsung LCD via Apple's mini DVI to DVI adapter, plugged into a DVI to HDMI cable, which is attached to my TV. The audio is routed from the headphone jack on the Macbook to the associated Audi

  • Issue when erasing in the layer panel in Ae

    Hi, is there a way to see a reference background in the layer panel when painting or erasing? I dont want to paint on that second layer, only see it in the layer panel. Thank you!

  • Material Status during POD

    Hi ALL, I want to know what will be the status of Material in System once it leaves the Plant after PGI & Billing is to be done after POD. This specially required while looking at the sale done for the month on 1st of the next month (POD setting is f