JSP DRIVER NIGHTMARE

Hello,
I have tried everything to try and get the mm.mysql-2.0.13-bin.jar driver to load and its not.
I've placed it in several locations: C:\j2sdk1.4.0-beta3\LIB, C:\j2sdk1.4.0-beta3\JRE\LIB\EXT, C:\Apache Tomcat 4.0\lib, C:\Apache Tomcat 4.0\common\lib.
I have installed MySQL 3.23.51-nt on a Windows XP Professional OS. MY JAVA_HOME is configured correctly on my Environment variables and my code in my Java connection class is written out correctly:
try
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
String url = "jdbc:mysql://localhost:3306/camera ?user=rabuabed&password=faster";
conn = DriverManager.getConnection(url);
statement = conn.prepareStatement(sql);
When the debugger gets after the Class.forName line it simply skips to the finally section and thats because its not loading the MM MySQL driver. Can please help me out and point me in the right direction. Is there something I'm forgetting to do?

I always put the jar file containing the driver in the ../WEB-INF/lib directory within the web app.

Similar Messages

  • External hard drive nightmare

    Hi all, first time posting but this site has helped me several times in the past so thank you for that,
    Having an absolute nightmare with an external drive. I've got a Hitachi Touro Pro 4TB USB 3.0 that recently had some trouble with the power supply, over the last couple days the hard drive wouldn't power on if the power cable was hanging the wrong way off of the plug (if that makes sense), haven't had time to get a new power supply so have been dealing with it the last couple of days until I can get a new one.
    Suddenly my hard drive stopped showing up in Finder, I checked Disk Utility and it's still there. The actual hard drive model and, stemming down from it, "EYES DRIVE" (which is what I named the drive) are both still there, but the EYES DRIVE is greyed out. I've tried verify disk which lead to a warning saying it needed repairing, but when I try to repair it I'm told the disk cannot be repaired and to backup any files and restore the drive. It also won't let me mount from that menu.
    I've tried booting up to the Disk Utility menu and repairing from there to no avail, also tried DiskWarrior which tells me there's a hardware issue with the drive, I get the error "Directory cannot be rebuilt due to disk hardware failure (-36 2738)". I'm currently doing a surface scan on it with TechTool Pro, but it's a 4TB drive and this is proving to be taking a very long time. No bad blocks encountered so far but I'm only 15,000,000 blocks into a 976,000,000 block hard drive.
    What are my options here? The data on the drive is extremely valuable and I cannot really afford to lose it. Is it a good sign that the drive name still shows up in Disk Utility or am I still in big trouble?
    Also, I realise I should have multiple backups of all of my stuff, but this drive originally started off as a backup drive that I would keep safe and not touch except for backups, until I got a new retina MacBook Pro and the lack of space on it (256GB) forced me to use it as storage as well as Time Machine backups. There's about 5 years of hard work on it, I'm absolutely kicking myself that I didn't have it backed up elsewhere.
    Thank you for any responses and let me know if you need any more info, I'm really freaking out here!

    Managed to find a solution of sorts for anyone suffering from the same problem,
    It turns out I was unable to access the drive at all because of my MacBook trying to fix the drive before letting me use it, I stopped this by killing the process "fsck_hfs" in activity monitor, an error came up saying I was unable to repair the drive but I was then able to mount the drive as read only and all of my data was still there, ready to be copied onto another drive.
    I tried DiskWarrior immediately after this to try and repair the drive but it put me back to square one (with the drive not showing up and the "fsck_hfs" process running again), so it looks like the hard drive itself is a lost cause, but the data is saveable. I don't think I've ever been this relieved in my life, hope this helps someone else!

  • 24" iMac drive nightmare - not even a day old

    Well, Im very unlucky!
    My old 20" intel mac is going back to Apple because of a faulty DVDR drive.
    I thought to my self, Ill buy a 24" iMac and sell my old one once its fixed.
    8 hours into using my new iMac 24" after burning 4 or 5 DVDs, the mac fails to finish burning a dvdr at around 90%. First I try the cancel button on Toast but this just hangs forever. I force quit toast then force restart the mac. At this point I was hoping for the dvdr to eject but no such luck.
    I now have a dvdr stuck in the drive and no way to eject it! Ive tried all the suggested ways, mouse down at start up, F12, eject, resetting pram, resetting firmware, boot in target drive then eject and nothing works.
    In apple profiler the drive (pioneer) doesnt even get detected although I do hear it spin up at boot up.
    ANY IDEAS?

    I have managed to get the DVD out! Turned the computer off and got some very small twisers and pulled the DVD out.
    Problem is not solved though as my mac will not recognize the drive at all.
    I can hear it spinning up but its not responding.
    I will call Apple tomorrow and get it exchanged, its only a day old. Hope I don't get any hassle.
    So this makes my 3rd faulty iMac in 2 years! not great...
    1 was a faulty motherboard
    2 faulty dvd drives
    Is there anything I can try to make the imac recognize the drive?

  • ~~ HARD DRIVE  NIGHTMARE~~~ please help!!!

    well my macbook madae it over the year mark and all of a sudden i go to turn it on and get the blue/gry screen with black folder w/question mark on it. of course i am now without warranty . so after reading several threads of unhappy mac users, i have deteremined that my hard drive has failed.. ( i have no idea why), i did the diagnostic testing and it says allis ok, but it wont don anuthing ad won't acknowledge that i havea hard drive.
    my question is since i now have to buy a new nard drive for my year old macbook , can anyone point me in the right direction , I am new to macs and have no clue where to begin.
    I feel like a idiot because i bragged about my macbook and how i would never go back to a pc. well I am now typing this on a dell inspirion 8600 that is at least 3 yrs old and has out lasted my all mighty mac!! I talked people into getting macs in the past year and i hate to warn them about the hard drive.
    Sorry to rant and rave ,but this is very upseting and disappointing , paid way to much for it to last a year and i had just increased the memory. Grrrr! any help is appreciated .

    Mac Medic ([email protected]) wrote:
    Boot from your system CD, run Disk First Aid from your Disk Utility and repair your permissions. See if that fixes it. Also, you could try running DiskWarrior on it. That may repair the drive.
    -Bmer
    Mac Owners Support Group - Join us @ MacOSG.com
      Mac611 Mobile Mac Support - about.Mac611.com
       iTunes:MacOSG Podcast | YouTube.MacOSG.com
                       An Apple User Group 
    Have an iPhone or iPod touch? Enter Mac611.com in Safari on it for 'mobile Mac support.'
    the only things that show up in disk utility are the installation cd itself and the dvd drive.

  • ITunes library repair/moving to external network drive

    Hello all, I wonder if you can help.  I have searched high and low for a solution to my situation, but to no avail, and so you really are my last hope.  I've been trying to get my iTunes library in order for quite a while and things have gone wrong, and it has really got me down as I'm worried I'm about to have to start again from scratch.  It has taken me about 6 weeks (spread out over the course of a few months) to rip the 18,000 tracks in my library, then another month or so to get all the metadata right, weed out duplicates, etc.  However, the music collection is so big I have had to place it on a network drive in batches (which has the benefit of being able to access it on any laptop at home - but whatever I do iTunes just doesn't like it.
    I can't actually bring myself to recount everything I've done as it's a bit upsetting so I thought I might just summarise the situation that I'm now in to see if anyone could help.  I would be very grateful.
    I now have a network drive with an iTunes style folder structure within it's music folder, and within that artist/album/song.wav file path.  For reasons I'll explain later I have many MP3s, a few AACs, and *lots* of WAV files - which sadly, don't hold track metadata, otherwise I could have just re-imported all the files into a new iTunes library.  However correct metadata and having the files as WAVs are vital (again, I'll explain later), so it's not something I can change.
    I have moved iTunes libraries before when I have moved PCs without any hitches, by moving the music folders and files and doing a search and replace in the library file to point to the new locations.  I thought this would be the same situation.  It's complicated by the fact that I had been hoping to put the music files and library on the network drive so that iTunes on my Mac and PC would be able to access it and write back metadata changes, play counts and so on.
    I've not been able to work out how to do this as file paths to the network drive differ on both OS's - Windows paths are more like \\DISKSTATION\Music\ etc etc whereas Mac ones are more like file://localhost/Volumes/Music etc etc
    I don't understand networking very well so quickly gave up on the idea of trying to get my library to work off two machines with two OSs (though is someone can explain how/if this is possible, I'd like to try it again).
    Now I was left trying to get the library to work with iTunes on either just the Mac or just the PC, and I haven't managed it yet.  When I have been experimenting with amending the file paths in the library and opening it iTunes again I get little WiFi style icons, like the ones you see in the radio section of iTunes - indicating an audio stream - next to every track, and if you click play, it tries to open the track - but doesn't - and keeps trying.  It does this on both machines.  I've tried windows style file paths on the PC, and Mac ones with OSX, I've tried referring to the drive's network IP address and so on - but can't get it to work.  Most of the time it behaves as described above.  Some times it deletes the whole library and starts again from scratch.  At present the file seems to have reverted to the point after I had added all my tracks but before I'd amended the metadata.
    (I have a backup of the library file with all the correct data in it, but pointing to files in the wrong places, so I am happy to experiment.)
    I've read a lot of threads on similar external drive nightmares people have been having, and it is often mentioned elsewhere to consolidate the files to the iTunes folder once you have told iTunes of the new location, but this wouldn't have been practical - there was over 400gb of them to move over a (relatively) slow network.  And I can't consolidate now with the music files on the network drive as iTunes has all the information in the library, it just seems to not be able to find the files.
    So my question is what am I doing wrong and/or how can I fix the library to point to the files in the new location?  It must be possible as I have a version of the XML file with all the artist/album/filename.wav structure intact - it's just getting the bit before it correct and getting iTunes to accept the library once I've amended it.  Is there a way to get my library to recognise the files on the network drive properly - even just on one machine?
    I would be happy to start reloading tracks into a new, clean library but there is no metadata WITHIN the wav files like there is in the MP3 and WAVs and so I'll be left with a lot of wavs that aren't titled properly (and I really can't face going back and adding the titles and artists for thousands of tracks again).  Before moving the library I *did* rename the files with artist - track - genre - year etc. etc. information - so if there was a way for iTunes to rebuild the library with information from the filename, I'd be happy to try it.  But even the great Doug's iTunes Scripts website can't even offer anything like that.
    To explain the point about the files being all WAVs - the files are going to be used for broadcast and so need to be in the best quality in a format that can be opened - FLAC won't work.  And similarly, the metadata is important as it will be used in a professional situation too.
    Any help would be gratefully received as if this doesn't work I seriously think I will stop buying music as I don't want to add to the problem!  I can't face months of ripping everything in again.  I'm so fed up. 

    Yes it's quite possible, that's how I have mine set up, and Moving iTunes Music will tell you how to go about it.
    Pitfalls? Can't really think of any.
    Regards
    TD

  • How do I enable multiple dynamic drop down boxes?

    I'm using Windows 2000, Java SDK 2 Standard, Tomcat, Apache, Microsoft Access and Macromedia Dreamweaver Ultradev 4.
    With UltraDev I'm trying to create a jsp page that has more than one dynamic drop down box or more than one dynamic select list box. I can show one dynamic object and as many static objects as I need. But when I add a second dynamic drop down box, with a second recordset, the page will only display the first dynamic object and all content following that object will not display.

    Here's the code:
    <%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"%>
    <%@ include file="Connections/conn.jsp" %>
    <%
    Driver DriverRecordset1 = (Driver)Class.forName(MM_conn_DRIVER).newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection(MM_conn_STRING,MM_conn_USERNAME,MM_conn_PASSWORD);
    PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT STATE_NAME, COUNTRY FROM STATE");
    ResultSet Recordset1 = StatementRecordset1.executeQuery();
    boolean Recordset1_isEmpty = !Recordset1.next();
    boolean Recordset1_hasData = !Recordset1_isEmpty;
    Object Recordset1_data;
    int Recordset1_numRows = 0;
    %>
    <%
    Driver DriverRecordset2 = (Driver)Class.forName(MM_conn_DRIVER).newInstance();
    Connection ConnRecordset2 = DriverManager.getConnection(MM_conn_STRING,MM_conn_USERNAME,MM_conn_PASSWORD);
    PreparedStatement StatementRecordset2 = ConnRecordset2.prepareStatement("SELECT FIRSTNAME, LASTNAME, AGE FROM PLAYER");
    ResultSet Recordset2 = StatementRecordset2.executeQuery();
    boolean Recordset2_isEmpty = !Recordset2.next();
    boolean Recordset2_hasData = !Recordset2_isEmpty;
    Object Recordset2_data;
    int Recordset2_numRows = 0;
    %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <form name="form1" method="post" action="">
    <p>
    <select name="select2">
    <option value="Canada">Canada</font></option>
    <option value="France">France</font></option>
    <option value="French Guiana">French Guiana</font></option>
    <option value="French Polynesia">French Polynesia</font></option>
    <option value="French Southern Territories">French Southern Territories</font></option>
    <option value="Germany">Germany</font></option>
    <option value="United Kingdom">United Kingdom</font></option>
    <option value="United States">United States</font></option>
    </select>
    </p>
    <p>
    <select name="select">
    <%
    while (Recordset1_hasData) {
    %>
    <option value="<%=(((Recordset1_data = Recordset1.getObject("COUNTRY"))==null || Recordset1.wasNull())?"":Recordset1_data)%>" ><%=(((Recordset1_data =
    Recordset1.getObject("STATE_NAME"))==null || Recordset1.wasNull())?"":Recordset1_data)%></option>
    <%
    Recordset1_hasData = Recordset1.next();
    Recordset1.close();
    Recordset1 = StatementRecordset1.executeQuery();
    Recordset1_hasData = Recordset1.next();
    Recordset1_isEmpty = !Recordset1_hasData;
    %>
    </select>
    </p>
    <p>
    //Here's where things go awry
    <select name="select4">
    <%
    while (Recordset2_hasData) {
    %>
    <option value="<%=(((Recordset2_data = Recordset2.getObject("FIRSTNAME"))==null || Recordset2.wasNull())?"":Recordset2_data)%>" ><%=(((Recordset2_data = Recordset2.getObject("FIRSTNAME"))==null || Recordset2.wasNull())?"":Recordset2_data)%></option>
    <%
    Recordset2_hasData = Recordset2.next();
    Recordset2.close();
    Recordset2 = StatementRecordset2.executeQuery();
    Recordset2_hasData = Recordset2.next();
    Recordset2_isEmpty = !Recordset2_hasData;
    %>
    </select>
    </p>
    <p>
    <select name="select5">
    </select>
    </p>
    <p> </p>
    </form>
    <form name="form2" method="post" action="">
    <select name="select3">
    </select>
    </form>
    <p> </p>
    </body>
    </html>
    <%
    Recordset1.close();
    ConnRecordset1.close();
    %>
    <%
    Recordset2.close();
    ConnRecordset2.close();
    %>

  • Will "Transferring Purchases" from my friends ipod wipe the other tunes?

    I copied a load of tunes, purchased and copied from CD, etc to an I-pod nano and gave it to my friend as a present. I have since "lost" a lot of the tunes :0( when trying to transfer stuff to an external hard drive, nightmare..!! anyways, I am having no sucess re-copying the music back to my PC. The only option seems to be "Transfer Purchases" but I'm worried incase it wipes the rest of the songs from the i-pod. If anyone can help get my songs back I'd be most grateful. Music is Life...!!

    There is authorization and "authorization"
    I did a similar move. I replaced my Itunes server with a new build. I successfully saved off the old Itunes folder to my Network Attached Storage box and later copied that archive from the NAS into My Music on the new Itunes server.
    The Itunes folder contained different types of data.
    For CDs I loaded DIRECTLY into Itunes, the data includes authorization to play the data - because Itunes verified that it was an origional CD that was played directly into Itunes.
    In a similar manner, if you have Itunes data that was purchased and downloaded from the Itunes Store, then you need to "Authorize" the computer with Itunes in order to play that Itunes Store procured data. This is the "you have done 3 of 5" authorization.
    Finally, for CDs that I loaded into my old server via Windows Media Player, when I did a consolidate in Itunes, it went out and found the WMP data on a disk I dedicated to WMP music files, and since it was authorized in WMP, Itunes would play it. When I went to the new server, Itunes had the Itunes version of the songs in its library, but would NOT play the songs that had been migrated into Itunes from WMP until I actually connected the hard drive with the WMP files on it so Itunes could satisfy itself that it has "autorized" copies of the music. As soon as I connected the Windows Media Player data drive, Itunes did a compare and updated the Itunes versions of the songs imported from WMP to authrized and plays them just fine.
    The alternative is to reload from the origional media.
    Hope this helps.

  • I don't see the error! help?

    here's the JSP codes. It is suppose to process data from the database to PDF format
    <%@ page import="java.sql.*,
         java.io.*,
         javax.servlet.http.*,
         javax.servlet.*,
         com.lowagie.text.*,
         com.lowagie.text.pdf.PdfWriter"
    errorPage="" %>
    <%@ include file="Connections/test.jsp" %>
    <%
    Driver DriverRecordset1 = (Driver)Class.forName(MM_test_DRIVER).newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection(MM_test_STRING,MM_test_USERNAME,MM_test_PASSWORD);
    PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT MODCD, COUNT('ADMNO') AS NumQues FROM StudentModule GROUP BY MODCD ORDER BY MODCD");
    ResultSet Recordset1 = StatementRecordset1.executeQuery();
    boolean Recordset1_isEmpty = !Recordset1.next();
    boolean Recordset1_hasData = !Recordset1_isEmpty;
    Object Recordset1_data;
    int Recordset1_numRows = 0;
    %>
    <%
    response.setContentType( "application/pdf" );
    // step 1: creation of a document-object
    Document document = new Document();
    // step 2:
    // we create a writer that listens to the document
    // and directs a PDF-stream to a temporary buffer
    ByteArrayOutputStream buffer = new ByteArrayOutputStream();
    PdfWriter.getInstance( document, buffer );
    // step 3: we open the document
    document.open();
    // step 4: we add a paragraph to the document
         Table aTable = new Table(6,2); // 2 rows, 2 columns
         do {
         String modcode = Recordset1.getString("MODCD");
         String NumStud = Recordset1.getString("NumQues");
    aTable.addCell("modcode");
    aTable.addCell("NumStud");      
         } while (Recordset1.next());
         document.add(aTable);
    // step 5: we close the document
    document.close();
    %>
    <%
    // step 6: we output the writer as bytes to the response output
    DataOutput output = new DataOutputStream( response.getOutputStream() );
    byte[] bytes = buffer.toByteArray();
    response.setHeader("Cache-Control", "max-age=0");
    response.setHeader("Content-Disposition", "attachment;filename=pdfdemo.pdf");
    response.setContentLength(bytes.length);
    for( int i = 0; i < bytes.length; i++ ) { output.writeByte( bytes[i] ); }
    %>
    <%
    Recordset1.close();
    StatementRecordset1.close();
    ConnRecordset1.close();
    %>
    Sorry for the messy codes (:
    Error was a pile of stack trace in the web browser which i don't even understand

    i am thinking of using servlets too...but just wanna give it a shot with JSP.
    the stack trace is pretty long...
    here it is:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: getOutputStream() has already been called for this response
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         at org.apache.coyote.tomcat4.CoyoteResponse.getWriter(CoyoteResponse.java:600)
         at org.apache.coyote.tomcat4.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:171)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:166)
         at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184)
         at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198)
         at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193)
         at org.apache.jsp.convertPDF_jsp._jspService(convertPDF_jsp.java:128)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:536)
    if i can't find a solution today, guess i'll stick with servlets

  • Printing/scanning on Linux

    I've played with Linux on and off for a while now (at one point even used it for a month exclusively) and am considering switching back fulltime for several reasons. I do have several concerns though (no microsoft office.. aaaaah) - my biggest one being printing and scanning. It just seems like a total driver nightmare on Linux. Is it really as bad as it seems or will it just take a bit of config? Any other things I should worry myself with before switching? I think most of my concerns are just being a little too used to Windows.. Haven't used Linux in a few months

    luxade wrote:I do have several concerns though (no microsoft office.. aaaaah) - my biggest one being printing and scanning. It just seems like a total driver nightmare on Linux. Is it really as bad as it seems or will it just take a bit of config?
    "Seems like" based on what source?
    luxade wrote:I think most of my concerns are just being a little too used to Windows.. Haven't used Linux in a few months
    You will learn Linux the fastest and most deeply after you've committed yourself to using it as your main OS for more than a few weeks. I trust you've also encountered this idea that Arch Linux, in particular, is targeted more at people with a hacker mentality than some other distributions. If you're still pining for everything autoconfigured and guified like you're used to in Windows, I think you're facing a bit of an uphill battle, here.
    Now for something more specifically focused on your question - how to make sure your printer/scanner works in Linux:
    If you already have a printer/scanner, just google for how to get it working in Linux.
    If you don't already have a printer/scanner, google for printers/scanners that work in Linux, before buying. That's how I found my HP PhotoSmart.
    Last edited by /dev/zero (2011-12-18 19:43:06)

  • Concurrent Query through Informix JDBC

    Hi,
    I am using Informix Jdbc in my JSP ( Driver Downloaded from IBM Site). In case of concurrent calls to that Jsp , I am getting mixed result in the client site. It's written in the Informix JDBC Spec that "The Same statement or resultset instance cannot be accessed concurrently accross the threads". But what is the alternative way? Anybody found any solution....Any help appriciated.

    Hi k_dey,
    I don't use Informix JDBC driver, but looking through the Informix JDBC Driver Programmer's Guide UNIX and Windows Environments, V2.21, it appears that statement caching is enabled by setting the STMT_CACHE environment variable to 1 (one). Unfortunately, I couldn't find anything in the guide on how to disable statement caching, so I searched the archives of the "comp.databases.informix" newsgroup (for the word 'STMT_CACHE') and it seems that if you set it to 0 (zero), it disables statement caching.
    The guide says that you can set these environment variables through JDBC by either including NAME=VALUE pairs in the database connection URL, or supplying a "java.util.Properties" object as a parameter to the "getConnection()" method (in class "java.sql.DriverManager").
    According to the guide, this is the format for the URL:
    jdbc:informix-sqli://[{ip-address|host-name}:port-number][dbname]:
    INFORMIXSERVER=server-name;[user=user;password=password]
    [;name=value[;name=value]...]
    So I guess you just need to write:
    ;STMT_CACHE=0instead of
    ;name=valueAnd here is some slightly modified code, also taken from the guide:
    Properties pr = new Properties();
    pr.put("STMT_CACHE","0");
    conn = DriverManager.getConnection(newUrl, pr);The guide says that you must use only one of the above two methods, i.e. either set the environment variable in the URL, or use the "Properties" parameter.
    Hope this helps.
    Good Luck,
    Avi.

  • I'm about  to give up on this

    I work with macromedia DreamWaever, JRun4 with IIS and Oracle. I can connect to Oracle using dreamweaver and I can even see my records (through the app) but when I try to display the records in my webpage I get this errors (and btw my query is very basic, selct *):
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at jrun.jsp.JSPClassLoader.findClass(JSPClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at jrun__MaxiSource__TMP8cl5tg2oqx2ejsp1d._jspService(jrun__MaxiSource__TMP8cl5tg2oqx2ejsp1d.java:50)
         at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
         at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
         at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /MaxiSource/TMP8cl5tg2oqx.jsp:3
         at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
         at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:384)
         at jrun__MaxiSource__TMP8cl5tg2oqx2ejsp1d._jspService(jrun__MaxiSource__TMP8cl5tg2oqx2ejsp1d.java:89)
         at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
         at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
         at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    here's my code
    display page
    <%@ page language="java" import="java.sql.*" %>
    <%@ include file="Connections/Webuser.jsp" %>
    <%
    Driver DriverrstLogin = (Driver)Class.forName(MM_Webuser_DRIVER).newInstance();
    Connection ConnrstLogin = DriverManager.getConnection(MM_Webuser_STRING,MM_Webuser_USERNAME,MM_Webuser_PASSWORD);
    PreparedStatement StatementrstLogin = ConnrstLogin.prepareStatement("SELECT * FROM WEBUSER.TBL_LOGIN");
    ResultSet rstLogin = StatementrstLogin.executeQuery();
    boolean rstLogin_isEmpty = !rstLogin.next();
    boolean rstLogin_hasData = !rstLogin_isEmpty;
    Object rstLogin_data;
    int rstLogin_numRows = 0;
    %>
    <%
    int Repeat1__numRows = -1;
    int Repeat1__index = 0;
    rstLogin_numRows += Repeat1__numRows;
    %>
    <table width="75%" border="1">
    <tr>
    <td>Login</td>
    <td>Password</td>
    <td>H�pital</td>
    </tr>
    <% while ((rstLogin_hasData)&&(Repeat1__numRows-- != 0)) { %>
    <tr>
    <td><%=(((rstLogin_data = rstLogin.getObject("FLD_LOGIN"))==null || rstLogin.wasNull())?"":rstLogin_data)%></td>
    <td><%=(((rstLogin_data = rstLogin.getObject("FLD_PASSWORD"))==null || rstLogin.wasNull())?"":rstLogin_data)%></td>
    <td><%=(((rstLogin_data = rstLogin.getObject("FLD_PK_HOPITAL"))==null || rstLogin.wasNull())?"":rstLogin_data)%></td>
    </tr>
    <%
    Repeat1__index++;
    rstLogin_hasData = rstLogin.next();
    %>
    </table>
    <%
    rstLogin.close();
    StatementrstLogin.close();
    ConnrstLogin.close();
    %>
    connection page
    <%
    // FileName="oracle_jdbc_conn.htm"
    // Type="JDBC" ""
    // DesigntimeType="JDBC"
    // HTTP="false"
    // Catalog=""
    // Schema="WEBUSER"
    String MM_Webuser_DRIVER = "oracle.jdbc.driver.OracleDriver";
    String MM_Webuser_USERNAME = "system";
    String MM_Webuser_PASSWORD = "Manager";
    String MM_Webuser_STRING = "jdbc:oracle:thin:@alpha:1521:maxso";
    %>
    thanks anyway :)
    Genevieve

    remember. code inside a regular scriptlet block <%..%> is executed inside the service method of the created servlet. So when you define your connection data variables at the end of the page they are not defined before you are using them to make your connection. The two solutions would be 1) to move that scriplet block to the beginning of the page or 2) to change the <% %> to a <%! %> so that those variables will actually be defined at the member level of the created servlet class instead of at the method local level as they are now. At least that's what it seems like to me. I could be wrong.

  • EAX effects and Audition 2.0

    Hi ! I have a littlebit of a different problem ... I am tryin to record the applied EAX effect directly into Audition ... since the Creativ ASIO drivers are broken for Audition 2 I am using the recommended ASIO4ALL wrapper..it work well for normal input .. with the creative driver I cant even record without any kind of effect, but with the wrapper it works fine ... now there is a problem ... What u hear only works with the CreativeMediasource recording .. I do get the effects applied there but since the point is to record in Auditon with metronome and the acompaniing recordings of the other band instruments mediasource is clearly not usefull...
    Now If i record in audition with the desired effect applied *example a simple Destoriton wiht a rewerb .. I do hear it and it records BUT WITH A DOPPLER EFFECTS that goes up all the way till it saturates the eintiere sound thats beein recoreded .. Is there a way to tell the What u hear recording preset only to listen to the input with the applied effect and ignore all other outputs ?? Or juts to tell the audgy mixer to record the input with the applied effet?
    Now it seems to me that mediasource is probably written in a way to deviate such an effect (or to ignore the output while recording the input with the effect applied )but the problem is that the same thing also hapens in Soundforge ..
    I know that what u hear was intenden so we can capture the output with the effects but it clearly isnt working the way it should ... is there a way to make a recording on the Audigy 4 with an eax effect applied ot a linein input (el. guitar) into a 3nd party pro program ala Soundforge and Audition 2.0
    My system is comps config is >
    Athlon XP 2600+
    Nforc2 mobo with nforce audio
    512MB Ram
    Audigy 4 PRO
    WIn XP SP2
    Audition 2.0
    Soundforge 6
    I tried numerouse outputs and inputs with the flawd Creative asio driver *it only works for output in mulitchanell mixing* and with the recomended ASIO4ALL driver but I can only make it work without any effects applied to the recording .. and since the audigys effects are sooooooo good and easuly tweakable a vould really like to use those instead of some expensive external effects... I vould also like to avoud using the nforce as a loopsource to record form coz it degrades the recording quality considerably and ading another audigy vould be a driver nightmare according to my research
    thnx for the help

    Corben9 wrote:
    Hi ! I have a littlebit of a different problem ... I am tryin to record the applied EAX effect directly into Audition ... since the Creativ ASIO drivers are broken for Audition 2 I am using the recommended ASIO4ALL wrapper..it work well for normal input .. with the creative driver I cant even record without any kind of effect, but with the wrapper it works fine ... now there is a problem ... What u hear only works with the CreativeMediasource recording .. I do get the effects applied there but since the point is to record in Auditon with metronome and the acompaniing recordings of the other band instruments mediasource is clearly not usefull...
    Now If i record in audition with the desired effect applied *example a simple Destoriton wiht a rewerb .. I do hear it and it records BUT WITH A DOPPLER EFFECTS that goes up all the way till it saturates the eintiere sound thats beein recoreded .. Is there a way to tell the What u hear recording preset only to listen to the input with the applied effect and ignore all other outputs ?? Or juts to tell the audgy mixer to record the input with the applied effet?
    Now it seems to me that mediasource is probably written in a way to deviate such an effect (or to ignore the output while recording the input with the effect applied )but the problem is that the same thing also hapens in Soundforge ..
    I know that what u hear was intenden so we can capture the output with the effects but it clearly isnt working the way it should ... is there a way to make a recording on the Audigy 4 with an eax effect applied ot a linein input (el. guitar) into a 3nd party pro program ala Soundforge and Audition 2.0
    My system is comps config is >
    Athlon XP 2600+
    Nforc2 mobo with nforce audio
    512MB Ram
    Audigy 4 PRO
    WIn XP SP2
    Audition 2.0
    Soundforge 6
    I tried numerouse outputs and inputs with the flawd Creative asio driver *it only works for output in mulitchanell mixing* and with the recomended ASIO4ALL driver but I can only make it work without any effects applied to the recording .. and since the audigys effects are sooooooo good and easuly tweakable a vould really like to use those instead of some expensive external effects... I vould also like to avoud using the nforce as a loopsource to record form coz it degrades the recording quality considerably and ading another audigy vould be a driver nightmare according to my research
    thnx for the help
    I think w/ Cockos Reaper you should be able to record from output too (versions to 0.9x are freeware). There are some other software capable for this, like energyXT.
    Also, forget those EAX effects and check out what all goodies you can find even as freeware from KVR; like
    - Kjaerhus Classic serie
    - Karma FX effects
    - Voxengo effects
    - Fretted Synth guitar combos
    - etc.
    Also, w/ Creative ASIO (which should work well w/ Audition 2) you should be able to 'render' through EAX when exporting the final mix (see this thread for more on CT ASIO I/Os).
    jutapa
    Message Edited by jutapa on 09-17-2006 01:40 AM

  • Receiving form data

    I am new to JSP and I created a simple form with a list box. I have two names in my database and they both are in my list box. When I select one and hit submit I want it to display that persons name on the next page. Here is my code: Thx
    test.jsp
    Driver DriverRecordset1 = (Driver)Class.forName(MM_testconnec_DRIVER).newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection(MM_testconnec_STRING,MM_testconnec_USERNAME,MM_testconnec_PASSWORD);
    PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM CUSTOMERS");
    ResultSet Recordset1 = StatementRecordset1.executeQuery();
    boolean Recordset1_isEmpty = !Recordset1.next();
    boolean Recordset1_hasData = !Recordset1_isEmpty;
    Object Recordset1_data;
    int Recordset1_numRows = 0;
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <%= new java.util.Date() %><br><br>
    Please Select a Name:
    <form action="Test2.jsp" method="post" name="gototesttwo">
    <select name="listtest" size="1">
      <%
    while (Recordset1_hasData) {
    %><option value="<%=((Recordset1.getObject("CUSTFNAME")!=null)?Recordset1.getObject("CUSTFNAME"):"")%>"><%=((Recordset1.getObject("CUSTFNAME")!=null)?Recordset1.getObject("CUSTFNAME"):"")%></option>
      <%
      Recordset1_hasData = Recordset1.next();
    Recordset1.close();
    Recordset1 = StatementRecordset1.executeQuery();
    Recordset1_hasData = Recordset1.next();
    Recordset1_isEmpty = !Recordset1_hasData;
    %>
    </select>
    <input type="submit">
    </form>
    <br>
    <br>
    <br>
    </body>
    </html>
    <%
    Recordset1.close();
    StatementRecordset1.close();
    ConnRecordset1.close();
    %>second page-----------------------------------------------------------------------------------------------------
    test2.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="Connections/testconnec.jsp" %>
    <%
    Driver DriverRecordset1 = (Driver)Class.forName(MM_testconnec_DRIVER).newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection(MM_testconnec_STRING,MM_testconnec_USERNAME,MM_testconnec_PASSWORD);
    PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM CUSTOMERS");
    ResultSet Recordset1 = StatementRecordset1.executeQuery();
    boolean Recordset1_isEmpty = !Recordset1.next();
    boolean Recordset1_hasData = !Recordset1_isEmpty;
    Object Recordset1_data;
    int Recordset1_numRows = 0;
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <%=(((Recordset1_data = Recordset1.getObject("CUSTFNAME"))==null || Recordset1.wasNull())?"":Recordset1_data)%> Yes sir
    </body>
    </html>
    <%
    Recordset1.close();
    StatementRecordset1.close();
    ConnRecordset1.close();
    %>

    Do not learn jsp from Dreamweaver's generated code (or pretty much any code generator). The code from Dreamweaver is a messy implementation using embedded java scriptlets. Almost anything generated in this manner will exhibit the same problems. To really learn jsp you are better off using a simple programming text editor, there are several on the market and in freeware/open source (even Eclipse would suffice but may be overkill unless you also want to learn Java). Dreamweaver is for those who don't want to learn jsp and really don't ever care to learn jsp.

  • Is it possible to hook 2 23" Cinema Displays up to a 17" MacBook Pro

    I bought a 23" Cinema Display a couple of years ago. I love it, so much that I bought a 2nd one last week. I was hoping to be able to hook both of them up to my 17" MacBook Pro with a DVI Splitter. However, all the DVI Splitter does is split the display - so I have mirrored monitors. Is there some other piece of hardware that will allow me to drive both monitors from my MacBook (and my PC). I'm currently using a DVI-KVM Switch in order to use the same monitor, keyboard and mouse with both machines.
    Thanks,
    Matt

    unfortunately not currently. there are some interesting technologies, from matrox, for example, that are able to span analog monitors by creating a virtual double wide monitor, but not available for digital displays yet. i also believe that someone will make an ExpressCARD graphics adapter in the near future, much like there were PCMCIA graphics cards in the past.
    it is technically possible to breakout the Expresscard to desktop style PCI card planes, so the answer to you question is yes, there is a way, it is just very expensive, a pretty big box, the expense of a graphics adapter... nor really the solution i think you are seeking, more for pro applications - not to mention the driver nightmare it might be to get such a system working.

  • Setting up iCloud Drive for a family is a nightmare!

    Setting up iCloud Drive for a family is a nightmare!  I have spent the last two hours trying to figure out a smart way to make it work!  First off, even though the name is similar, iCloud Drive seems to be a very different thing than Google Drive or Dropbox.  There is no "sharing" option.  This is what is so frustrating at the moment.
    My family has used one main Apple ID for years.  I recently upgraded the iCloud space so my daughter could sync her iPhone to the cloud.  So, I updated to Yosemite and iCloud Drive and REALLY LIKED many aspects of the new system.  However, in order to make many of the new features work, like having the text messages come to the computer, and having the phone calls (which are linked to Facetime) come to the computer I am faced with all kinds of dilemmas.  My wife and I have two Macbooks.  In order for her to get her phone calls forwarded to her Macbook she needs to have her phone number AND e-mail address that's associated with the specific iCloud Account that her computer is logged into.  We have mainly been logging in to the same Apple ID.  In order for her to access her own phone vs. mine she will have to log her computer in to a different Apple ID - but that will also mean a new iCloud Drive.
    I think these new features in Yosemite are great - but they are geared towards individual people.  There have been many articles written about how to deal with Apple IDs within a family.  There need to be some updated articles on how to deal with iCloud Drive and a family.  To me it's just way, way too complicated. It seems like it doesn't "just work" anymore.

    It will depend on how much data has to be moved to iCloud Drive. 30 minutes is a long time, but not unbelievable.
    talltenor wrote:
    My MacBook Air has been "setting up iCloud Drive" for 15 hours!
    It's failed. Reboot and try again.

Maybe you are looking for