Mysql driver issue with Deploytool 1.3

Hi,
I would like to have J2EE 1.3 container managed entity beans being able to talk with a Mysql database . I have added my jar file to deploytool and have the mysql database server running and the database table ready to be used. I am using Mysql Connector Java 3.0 and have put the required driver jar file into the ext directory of the JAVA_HOME path. I have windows XP.
Here is my configuration in deploytool :
Tools--> Server configuration --> Data source --> standart
JDBC driver : com.mysql.jdbc.Driver
JNDI name : jdbc/zob
JDBC url : jdbc:mysql (the database is running on localhost and the table to use is ready)
Then in the entity tab of my bean --> Deployment Settings --> Database Settings, I put jdbc/zob as JNDI name. No username or password is required.
If I try to generate Default SQL, I get the following error:
Erroe: while generating SQL
java.rmi.ServerException:RemoteException occured in server thread;nested exception is:
java.rmi.RemoteException: Error connecting to database;nested exception is:
java.sql.SQLException:No suitable driver
Please make sure the database name/user/password is valid and the J2EE server and database are running.
I would be very grateful for help because I can't see what is missing or wrong. Thank you very much in advance.

First thing to do is try to narrow in on the problem a little bit. Try writing a simple test JSP or something that runs on the container to manually get a Connection from your Connection Pool. Then do a simple query to make sure you can actually connect.
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/zob");
Connection conn = ds.getConnection();
do your test query
...Once you have established that your Connection Pool is working, then go ahead and try to get your entity bean working. I haven't used MySQL before, I have always used Oracle on some remote server, never on localhost. Maybe the URL convention is different when it's on localhost, but it seems like you're missing the host, port, and instance parts; you just have the driver.
I'm sure you've already checked this but I'll say it just in case, make sure you have your driver class somewhere that the container can see it. I know, it's obvious, but you never know...
Good luck!!

Similar Messages

  • On windows 8 and itunes I have importing problems the DVD is only reading the music cd from 1.5x to 4.0x for 95% of the time, it does hit speeds of 30x for the other 5% of the time. Is it a driver issue with the DVD or is it  a windows 8 issue?

    on windows 8 and itunes I have importing problems the DVD is only reading the music cd from 1.5x to 4.0x for 95% of the time, it does hit speeds of 30x for the other 5% of the time. Is it a driver issue with the DVD or is it  a windows 8 issue?

    No. You have no alternative but to plug it into a computer running iTunes and restore it.

  • Has anyone else been having hard drive issues with 13" MacBook Pro barely a year old?

    Has anyone else been having hard drive issues with 13" MacBook Pro barely a year old?

    Yes, BUT...
    ... there are many problems that are really easy to eliminate by replacing the Hard drive, including ones that have nothing to do with actual Drive Hardware failure. These include corrupted install of Mac OS X, its EFI partition, clobbered partition tables, or the appearance of Bad Blocks in a critical area.
    Any of these problems can sometimes be eliminated by re-initializing the entire drive and writing Zeroes, and re-installing from scratch. The trouble is, this process takes hours to complete, and is not guaranteed to be successful -- you may still need a new drive after all that effort.
    I learned from my Plumber that consumers have no appetite for solutions that might work, and detest return visits for any related problems whatsoever. You or your friend may have had your drive replaced, not because it actually failed, but because the situation was troublesome, and the provider thought you would not tolerate anything less than a crisp, complete fix on the first attempt. And based on the cost of technician time, it may have even been cheaper that way.

  • Audio driver issue with my HP Compaq DC7800 Convertibl​e Minitower

    Hello,
    I am having an Audio driver issue with my HP Compaq DC7800 Convertible Minitower desktop PC.
    A few days ago I have formatted my desktop PC and installed a new Windows XP Service pack 3. As I needed driver for my device I have managed to find all drivers except the one for my audio device. As I saw I have integrated audio on my motherboard, but drivers that I have found on a support site of HP (drivers download) none of them work and there are too many (I have also needed to download drivers for other devices form intel site but this is another issue). So, now I was hoping that someone can help me to find (finally) and install audio device so I can finish with installation process. I would be veeeeeerrrry thankful for that Thanks in advance.
    This question was solved.
    View Solution.

    It does not matter . I have found the driver that I needed: ADI High-Definition (HD) Audio Driver - Sound Max
    thx anyway

  • Driver issue with GTX470 and GTX570 in CS5.03

    So we have two different video cards as we can't find the GTX470 easily anymore.
    Both computers when the video card driver is updated to a newer version the video is displayed weird.
    The rest of the hardware is the same on both computers Core i5 3.3ghz, 8gb ram, msi motherboard, and RT.X2 matrox card.
    This also happens on Preview and Program as well, unless the video is stopped, but while playing it always does this.
    I was able to fix the problem by going to an older version of the drivers. The GTX570 is using 275.33, and the GTX470 is using 280.26.
    I haven't really had too much time to mess around with the video drivers on the GTX570 as I needed to get the computer up and running ASAP so I just grabed an older driver off of nvidia's website. Which is the reason the GTX570 drivers are older than the GTX470.
    Now is this an issue with the RT.X2 card or something with premiere?
    The GTX570 system is a clean install.
    I manually added the GTX570 to the cuda support list in order to get it to work on CS5.03

    The problem lies with Matrox itself: Matrox has never provided bug-free drivers to begin with. Every single driver release from them fixed one problem but created a new problem - and yet they still failed to fully fix the same problem that plagues their drivers for ages.

  • Driver issue with Intel ICH9M LPOC Inte. Controller post windows 7 upgrade

    Upgraded from vistahome premium to 7 proffesional and have hardware issue with this device
    on Intel(R) ICH9M LPC Interface Controller - 2919
    The drivers for this device are not installed. (Code 28)
    There is no driver selected for the device information set or element.
    To find a driver for this device, click Update Driver.
    Went to intels website and could not find driver for 7 (there were drivers for vista & xp)
    Any idea where to get driver for this

    Hi,
    It really helps us help you when you identify your notebook with its complete product name or product number and include it in a post in you thread..
    Remove the battery and look in the compartment where the battery was installed. You should see a printed part number and a product name (p/n). Post one or both of them (with all alphanumeric characters here). 
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Driver issue with Cisco HD Precision / JFV 4.4

    Hi,
    Just to installed Jabber for Video4.4 on my laptop ( win7 64bits)
    all works fine except the video!! i use a Cisco HD precision wih Jabber, may be a driver issue, the camera is not recognized.
    When i selected my integreted camera from laptop, the video is going up.
    i've already the same issue with Jabber Video 4.3.
    Does anyone has got the same issue? Any idea?
    Thanks

    Thread back from the dead...
    I have this exact scenario playing out today trying to use a PrecisionHD USB camera with Windows 7. Completed the 1.5 update listed here and following the update I see the results in the picture. The LibUSB device is present, and it looks like a Tandberg HD camera is known to the system, but not accessible/usable.
    Anybody have success with this issue or have any additional ideas to try?

  • HP PSC 1510 driver issue with Windows 8.1

    I can't get my HP PSC 1510 all in one to work with Window's 8.1.  I've installed HP doctor and the driver fails.  I've downloaded the new driver so I don't know what the issue is?  Anybody solve a similar issue?

    Hi @DerekRL , and welcome to the HP Forums!
    I can see you're experiencing driver issues.  I'd like to help!
    I would suggest Uninstalling the Printer Software.
    Once it is uninstalled, I would suggest putting your system into clean boot mode within the Microsoft configuration.  You can do so by following this document: How to perform a clean boot in Windows.
    Once the computer is in clean boot mode, I would suggest reinstalling the HP Printer Install Wizard for Windows.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Driver Issues with HP Officejet Pro 8600 and Windows 8

    I have to reinstall the printer driver for my HP Office Jet Pro 8600 wireless printer each time I power up my laptop. I do not have any issues with this printer when using my PCs and my antroid tablet.  Once the driver is reinstalled I can print my documents however it becomes "offline" whenever I log off and then log back onto my laptop.

    Hello there! Welcome to the forums @Shrn 
    I read your post about how your printer will disconnect and show offline on your laptop, each time the computer is restarted. As this only happens on your laptop, the problem could be with a firewall running on your computer.
    I would suggest checking your firewall settings and ensure you're allowing the printer to connect within the firewall.
    This link may help: How to Edit Firewall Settings
    You could also try running the Print and Scan Doctor when you restart your computer to see if this tool will pick up the printer on the network and connect it to your computer again.
    Another option, would be to try a Clean Boot, which will turn off all Start Up Programs on your laptop to see if another program could be blocking the printer from connecting to it during a restart. Make sure to go back and enable the programs again after you have tested this out.
    Let me know your findings and what happens!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Internal hard drive issue with Mac Pro

    I work for two office that share information through a VPN. Each office has one Mac Pro being used as a server for data storage. The Pros have four internal hard drives (1TB each).
    Hard drives in the Pro for OFFICE 1 were configured like so:
    HD1 - OS/Boot drive
    HD2 - Time Machine backup of HD1/DATA1/DATA2
    DATA1 - Data storage
    DATA2 - Data storage
    Three weeks ago: Time Machine could not find HD2 and could not backup. I rebooted the machine and HD2 reappeared. However, after the reboot, DATA1 did not mount. I was unable to find DATA1 in Disk Utility. However, the drive could be accessed by all other Macs on the network. This machine was taken to the local Apple Store and we were told that HD2 was a bad drive and need to be replaced. We opted not to replaced the drive at this time and turned Time Machine backups off. We haven't had any problems with DATA1 since. (NOTE: During the weeks prior, the client machines intermittently lost connection with DATA1 and would have to reconnect)
    Last week: OFFICE 2 - Mac Pro hard drives configured the same as OFFICE 1; however, HD2 was not used for TM backups. TM was turned on and set to backup HD1/DATA1/DATA2 to HD2 (exactly like OFFICE 1). The next day, TM could not find HD2 and backups stopped running. I rebooted the machine, HD2 reappeared, but we did not restart the TM backups.
    Today: OFFICE 2 client machines have experienced intermittent disconnecting of DATA1.
    I wasn't extremely concerned with the situation at OFFICE 1 as these Pros are almost five years old and in constant use. We plan on purchasing an external drive for the TM backups. HOWEVER, with a similar situation now being experienced in OFFICE 2, I am perplexed.
    Could both machine be experiencing hard drive failures weeks apart? They were both purchased and installed at the same time.
    Is there a known issue with TM and internal drives?
    One difference between the two machines: OFFICE 1 is running OS X 10.8.5; OFFICE 2 runs 10.6.8
    Any suggestions/help is appreciated. Thanks!

    Relying on TimeMachine has some issues, along with only having one, I use at least two swapping TimeMachine so that they rotate AND I clone every drive (volume actually) so I can swap drives if need be, especially useful for t he system but good for any drive.
    Power issues in t he buildings?
    There are some programs that will scan for and report and./or attempt to reassign a failing sector ("fail" is qualitative, is 10 write failures a fail? then the 9th is not but it is a "weak sector.") Some run in the background.
    Mirror can be 2 or 3 ( I prefer 3, that way if one fails I STILL have a mirror array in place) where any failure is not acceptable, AND where the array data is backed up usually - less important  when using a three-drive configurations.
    How old, when last initialized (zero), and is it showing spare blocks being used? that last is the most indicative of failed drive.
    Rare but a bad SATA cable or power (seeing how the cables are tucked away) is only way generally for multiple failures in same drive bay or computer. Note: early on in 2006-7 there were reports of some customers having motherboard and trouble with a drive bay , and t he problems showed up early.
    Often though it is NVRAM or SMC related issue trigged by something else, a USB cable or device that is faulty, even a PCIe controller that is the culprit. And replacing cable, keyboard, device, and resetting SMC and NVRAM (often NVRAM needed to be done multiple times, but never keep resetting SMC) - unplugged and when you connect back up, do not install anything other than system, keyboard and mouse and see if that helps.
    With a drive, likely the drive in 85% or more, is fine, but the directory is not, or it needs to be erased to rebuild all the system partitions.
    1TB is small for TimeMachine. 350% of the amount of data, and always have free space for a full backup set of all the data. T.M. will try and prefers to automatically backup any and everything plugged in and connected, rather than my preference which is ASK FIRST to add a drive to TM backup set, otherwise leave it out. 600GB of data and system would mean 2.5TB drive, maybe 2TB minimum.

  • Display and driver issues with Windows 7 on i5 MBP

    Hello-
    I just purchased one of the i5 Macbook Pros, and set out to get Windows 7 working through boot camp. I did this on an older model (32-bit) previously with no problems.
    This time around, installation of Windows worked fine, but I have had some trouble getting all the drivers working. The setup.exe program on the OS X DVD didn't want to run at all, I had to do a workaround from the command line that I found on a forum (otherwise I just got a response of "Bootcamp x64 is unsupported on this computer model").
    Eventually I got (at least some of) the drivers to work, but there are still some issues.
    After installing the drivers, things like brightness and two-finger clicking started working. A number of other things still aren't, though:
    - Display: My machine has a 1440x900 screen. But for some reason Windows refuses to go higher than 1280x800.
    - Network: No wireless at all. Windows doesn't detect any wireless capability, and only gets on-line via ethernet.
    There may be other issues, but these are the big ones. Can anyone provide suggestions on what to do to get everything working?
    Thanks!

    I just used winclone to move my Win 7 from my Core2Duo MPB to an i5 MBP and had to do a few updates and have eneded up in pretty much the same place as you. I won't bother installing from scratch. I'm guessing we just need to wait for some bootcamp updates for these new machines.
    For those of you who are looking to migrate your bootcamp partition over, winclone made it easy - I followed the directions for resizing and Win7 boots, does a disk check, then installed many of the new drivers automatically. There are some drivers that are still needed however, wifi and video. I also so a USB driver issue but have to look at that a little closer before I comment.
    Best of luck,
    Simon

  • MySQL Driver issue

    Hi,
    I've been trying to connect to a MySQL database from Java. I have no problems from PHP so the db is fine, but suspect this is a driver issue.
    I was using the Netbeans IDE but have now switched to a basic texteditor and command line to try understanding whats going on:
    $ javac *.java -cp <other-libs-here>:~/Java/libs/mysql-connector-java-5.1.6-bin/mysql-connector-java-5.1.6-bin.jar
    $ java Main
    Failed to get connection
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at MyDBConnection.init(MyDBConnection.java:38)
         at MyDBConnection.query(MyDBConnection.java:23)
         at Processor.index(Processor.java:31)
         at Main.main(Main.java:32)
    Exception in thread "main" java.lang.NullPointerException
         at MyDBConnection.query(MyDBConnection.java:25)
         at Processor.index(Processor.java:31)
         at Main.main(Main.java:32)Any help you can offer on this would be greatly appreciated.

    OK I thought one classpath was the same as another. It seems that the system classpath is something different.
    Running: CLASSPATH=~/Java/libs/mysql-connector-java-5.1.6-bin/mysql-connector-java-5.1.6-bin.jar;export CLASSPATHin bash fixed this problems.
    But I really want to get it working in NetBeans, does anyone have any ideas?

  • Measurement Computing USB-DIO96H driver issue with Labview 2012 SP1 on Windows 7 x64

    Is anyone else having issues with measuremetn Computing's USB-DIO96H driver in Labview 2012 SP1. It throws warnings in Labview when loaded that are unresolvable as you can't save to the DLL driver file. Also it regularily crashes Labview randomly. I am not impressed with their driver. Anyone have any suggestion other than replacing with NI-DAQ solution, which I am working on?

    I've taken a look and I don't see any drivers available for that device on ni.com. There are two potential workarounds that would both involve building your own driver:
    1. Write a LabVIEW application that calls functions on the DLL you downloaded from Measurements Group
    2. Write a LabVIEW application that addresses the device using NI-VISA and serial communication.
    Some resources if you choose to go down that path:
    http://www.ni.com/devzone/idnet/development.htm
    http://www.ni.com/white-paper/3271/en/
    http://www.ni.com/white-paper/3009/en/
    Hope this helps!
    Rob B
    FlexRIO Product Manager

  • Driver issues with HP Z440 and SCCM 2012 R2?

    Greetings, we received our first charges of Z440 workstations last week. We immediately downloaded the HP Z440 driverpack from http://ftp.hp.com/pub/caps-softpaq/cmit/HP_Driverpack_Matrix_x64.html and imported those into our System Center Configuration Manager 2012 R2. Of course we did use the Win 8.1 drivers to inject into our boot image and wie normally imported the Windows 7 drivers for the Windows 7 deployment.Well, unfortunately SCCM WinPE5 does not show any drives installed, even with the correct drivers installed. We even tried to import  the WinPE 5 driver pack and the drivers from SoftPaq download manager, but none of those seemed to work. Is there any known issues with Z440s drivers and SCCM? Please help me out on this, it's pretty urgent. Thank you & kind regards

    The problem cannot be replicated. My Z440 has an 1TB WD SATA drive attached to port 0 of sSATA 6 Gb/s. Download and install the ´Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1 Update´:   https://www.microsoft.com/en-US/download/details.aspx?id=39982 Download and extract the ´Intel Rapid Storage Technology Enterprise Utility and Driver for Microsoft Windows (64-bit Editions)´, 4.1.0.1046 B(12 Nov 2014), sp69762.exe:http://h20564.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6978829&swItemId=wk_139802_1&swEnvOid=4059 Copy the IRST driver “64bit_RSTe_4.1.0.1046_F6_Drivers” abd sub folders into “C:\z440_x64\64bit_RSTe_4.1.0.1046_F6_Drivers” Open the ´Deployment and Imaging Tools Environment´ command window as administrator and create bootable USB media:copype amd64 c:\winpe_x64 Dism /Mount-image /ImageFile:c:\winpe_x64\media\sources\boot.wim /index:1 /MountDir:c:\winpe_x64\mountDism /Add-Driver /image:C:\winpe_x64\mount /driver:C:\z440_x64 /recurseDism /Get-Drivers /image:C:\winpe_x64\mountdism /unmount-wim /Mountdir:c:\winpe_x64\mount /commitMakeWinPEMedia /UFD c:\winpe_x64 d: Boot Z440 to F10 Setup.Set Factory Defaults and exit.Boot to WinPE media created above.I also tested the wim file as the boot image in SCCM 2012. The hard drive is detected correctly. 

  • URGENT - org.gjt.mysql.driver Issues... Please help...

    import java.sql.*;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class receiving extends Applet implements ItemListener, ActionListener
    Connection conDatabase;//door to the database
    Statement cmdDatabase;//messenger
    ResultSet rsDatabase;//bucket
    private String dbURL = "jdbc:mysql://web6.duc.auburn.edu/?user=gunthms&password=tigers05";
    boolean blnSuccessfulOpen = false;
    Choice Order_No = new Choice();
    TextField txtOrder_No = new TextField(6);
    TextField txtCompany = new TextField(20);
    TextField txtLocation = new TextField(20);
    TextField txtDate_Shipped = new TextField(10);
    TextField txtBlack_Poly = new TextField(8);
    TextField txtBlue_Poly = new TextField(8);
    TextField txtBrass1 = new TextField(8);
    TextField txtBrass2 = new TextField(8);
    TextField txtTransaction_No = new TextField(8);
    TextField txtTracking_No = new TextField(18);
    Button btnAdd = new Button("Add");
    Button btnEdit = new Button("Save");
    Button btnCancel = new Button("Cancel");
    Button btnDelete = new Button("Delete");
    Button btnNext = new Button(" > ");
    Button btnLast = new Button(" >>> ");
    Button btnPrevious = new Button(" < ");
    Button btnFirst = new Button(" <<< ");
    public void init()
    //Set up panel and load database
    LoadDatabase();
    if (blnSuccessfulOpen)
    Order_No.insert("Select an Order",0);
    add(Order_No);
    add(new Label(" "));
    Order_No.addItemListener(this);
    add(new Label("Order No"));
    add(txtOrder_No);
    add(new Label("Company"));
    add(txtCompany);
    add(new Label("Location"));
    add(txtLocation);
    add(new Label(" "));
    add(new Label("Date Shipped"));
    add(txtDate_Shipped);
    add(new Label(" "));
    add(new Label("Black Poly (sqft)"));
    add(txtBlack_Poly);
    add(new Label("Blue Poly (sqft)"));
    add(txtBlue_Poly);
    add(new Label("Brass 1inch (pcs)"));
    add(txtBrass1);
    add(new Label("Brass 2inch (pcs)"));
    add(txtBrass2);
    add(new Label(" "));
    add(new Label("Transaction No"));
    add(txtTransaction_No);
    add(new Label(" "));
    add(new Label("Tracking No"));
    add(txtTracking_No);
    setTextToNotEditable();
    add(new Label(" "));
    add(btnAdd);
    btnAdd.addActionListener(this);
    add(btnEdit);
    btnEdit.addActionListener(this);
    add(btnDelete);
    btnDelete.addActionListener(this);
    add(btnCancel);
    btnCancel.addActionListener(this);
    btnCancel.setEnabled(false);
    //Navigate Buttons
    add(btnFirst);
    btnFirst.addActionListener(this);
    add(btnPrevious);
    btnPrevious.addActionListener(this);
    add(btnNext);
    btnNext.addActionListener(this);
    add(btnLast);
    btnLast.addActionListener(this);
    else
    System.err.println("Unable to populate fields");
    public void LoadDatabase()
    try
    //Load MySQL drivers
    Class.forName("org.gjt.mm.mysql.Driver");
    catch ( java.lang.ClassNotFoundException e )
    System.err.println("MySQL ORG Package Driver not found ...");
    System.err.println(e.getMessage());
    /* try
    //Load MySQL drivers
    Class.forName("com.mysql.jdbc.Driver");
    catch ( java.lang.ClassNotFoundException e )
    System.err.println("MySQL COM Package Driver not found ...");
    System.err.println(e.getMessage());
    try
    //Connect to the database
    conDatabase = DriverManager.getConnection(dbURL);
    catch(SQLException error)
    System.err.println("Unable to Connect to Database");
    try
    Statement cmdDatabase = conDatabase.createStatement();
    //Create the ResultSet
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING;");
    loadNumbers(rsDatabase);
    blnSuccessfulOpen = true;
    catch(SQLException error)
    System.err.println("Error in recordset");
    public void loadNumbers(ResultSet rsDatabase)
    //Fill last name list box
    try
    while(rsDatabase.next())
    Order_No.add(rsDatabase.getString("Order_No"));
    catch (SQLException error)
    System.err.println("Error in Display Record");
    public void itemStateChanged(ItemEvent event)
    //Retrieve and display the selected record
    String strOrder_No = Order_No.getSelectedItem();
    showStatus(""); //Delete instructions
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery(
    "Select * from gunthmsjv.RECEIVING where Order_No = '" + strOrder_No + "';");
    txtOrder_No.setText(strOrder_No);
    displayRecord(rsDatabase);
    setTextToEditable();
    catch(SQLException error)
    showStatus("Error in recordset");
    public void displayRecord(ResultSet rsDatabase)
    //Display the current record
    try
    if(rsDatabase.next())
    txtOrder_No.setText(rsDatabase.getString("Order_No"));
    txtCompany.setText(rsDatabase.getString("Company"));
    txtLocation.setText(rsDatabase.getString("Location"));
    txtDate_Shipped.setText(rsDatabase.getString("Date_Shipped"));
    txtBlack_Poly.setText(rsDatabase.getString("Black_Poly"));
    txtBlue_Poly.setText(rsDatabase.getString("Blue_Poly"));
    txtBrass1.setText(rsDatabase.getString("Brass1"));
    txtBrass2.setText(rsDatabase.getString("Brass2"));
    txtTransaction_No.setText(rsDatabase.getString("Transaction_No"));
    txtTracking_No.setText(rsDatabase.getString("Tracking_No"));
    showStatus("");
    else
    showStatus("Record not found");
    ClearTextFields();
    catch (SQLException error)
    showStatus("Error in display record");
    public void actionPerformed(ActionEvent event)
    //Test the command buttons
    Object objSource = event.getSource();
    if(objSource == btnAdd && event.getActionCommand() == "Add")
    Add();
    else if (objSource == btnAdd)
    Save();
    else if(objSource == btnEdit)
    Edit();
    else if(objSource == btnDelete)
    Delete();
    else if(objSource == btnCancel)
    Cancel();
    else if(objSource == btnFirst)
    firstRecord();
    else if(objSource == btnNext)
    nextRecord();
    else if(objSource == btnPrevious)
    previousRecord();
    else if(objSource == btnLast)
    lastRecord();
    public void setTextToNotEditable()
    //Lock the text fields
    txtOrder_No.setEditable(false);
    txtCompany.setEditable(false);
    txtLocation.setEditable(false);
    txtDate_Shipped.setEditable(false);
    txtBlack_Poly.setEditable(false);
    txtBlue_Poly.setEditable(false);
    txtBrass1.setEditable(false);
    txtBrass2.setEditable(false);
    txtTransaction_No.setEditable(false);
    txtTracking_No.setEditable(false);
    public void setTextToEditable()
    //Unlock the text fields
    txtOrder_No.setEditable(true);
    txtCompany.setEditable(true);
    txtLocation.setEditable(true);
    txtDate_Shipped.setEditable(true);
    txtBlack_Poly.setEditable(true);
    txtBlue_Poly.setEditable(true);
    txtBrass1.setEditable(true);
    txtBrass2.setEditable(true);
    txtTransaction_No.setEditable(true);
    txtTracking_No.setEditable(true);
    public void ClearTextFields()
    //Clear the Text Fields
    txtOrder_No.setText("");
    txtCompany.setText("");
    txtLocation.setText("");
    txtDate_Shipped.setText("");
    txtBlack_Poly.setText("");
    txtBlue_Poly.setText("");
    txtBrass1.setText("");
    txtBrass2.setText("");
    txtTransaction_No.setText("");
    txtTracking_No.setText("");
    public void Add()
    //Add a new record
    showStatus("");
    //Empty the text fields
    setTextToEditable();
    ClearTextFields();
    txtOrder_No.requestFocus ();
    //Change the button labels
    btnAdd.setLabel("OK");
    btnCancel.setEnabled(true);
    //Disable the Delete and Edit buttons
    btnDelete.setEnabled(false);
    btnEdit.setEnabled(false);
    public void Save()
    //Save the new record
    // Activated when Add button has an "OK" label
    if (txtOrder_No.getText().length() == 0 && txtLocation.getText().length() == 0)
    showStatus("The Customer Name or ID Number is blank");
    else
    try
    Statement cmdDatabase = conDatabase.createStatement();
    cmdDatabase.executeUpdate(
    "Insert Into gunthmsjv.RECEIVING "
    + "(Order_No,Company,Location,Date_Shipped,Black_Poly,Blue_Poly,Brass1,Brass2,Transaction_No,txtTracking_No) "
    + "Values('"
    + txtOrder_No.getText() + "', '"
    + txtCompany.getText() + "', '"
    + txtLocation.getText() + "', '"
    + txtDate_Shipped.getText() + "', '"
    + txtBlack_Poly.getText() + "', '"
    + txtBlue_Poly.getText() + "', '"
    + txtBrass1.getText() + "', '"
    + txtBrass2.getText() + "', '"
    + txtTransaction_No.getText() + "', '"
    + txtTracking_No.getText() + "')");
    //Add to name list
    Order_No.add(txtOrder_No.getText());
    //Reset buttons
    Cancel();
    catch(SQLException error)
    showStatus("Error: " + error.toString());
    public void Delete()
    //Delete the current record
    int intIndex = Order_No.getSelectedIndex();
    String strOrder_No = Order_No.getSelectedItem();
    if(intIndex == 0) //Make sure a record is selected
    //Position zero holds a message
    showStatus("Please select the record to be deleted");
    else
    try
    //Delete from Database
    Statement cmdDatabase = conDatabase.createStatement();
    cmdDatabase.executeUpdate(
    "Delete from gunthmsjv.RECEIVING where Order_No = '"
    + strOrder_No + "';");
    ClearTextFields(); //Delete from screen
    Order_No.remove(intIndex); //Delete from list
    showStatus("Record deleted"); //Display message
    catch(SQLException error)
    showStatus("Error during Delete");
    public void Cancel()
    //Enable the Delete and Edit buttons
    btnDelete.setEnabled(true);
    btnEdit.setEnabled(true);
    btnCancel.setEnabled(false);
    //Change caption of button
    btnAdd.setLabel("Add");
    //Clear the text fields and status bar
    ClearTextFields();
    showStatus("");
    public void Edit()
    //Save the modified record
    int intIndex = Order_No.getSelectedIndex();
    if(intIndex == 0) //Make sure a record is selected
    //Position zero holds a message
    showStatus("Please select the record to be changed");
    else
    String strOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    cmdDatabase.executeUpdate(
    "Update gunthmsjv.RECEIVING "
    + "Set Order_No = '" + txtOrder_No.getText() + "', "
    + "Company = '" + txtCompany.getText() + "', "
    + "Location = '" + txtLocation.getText() + "', "
    + "Date_Shipped = '" + txtDate_Shipped.getText() + "', "
    + "Black_Poly = '" + txtBlack_Poly.getText() + "', "
    + "Blue_Poly = '" + txtBlue_Poly.getText() + "', "
    + "Brass1 = '" + txtBrass1.getText() + "', "
    + "Brass2 = '" + txtBrass2.getText() + "', "
    + "Transaction_No = '" + txtTransaction_No.getText() + "', "
    + "txtTracking_No = '" + txtTracking_No.getText() + "', ");
    if (!strOrder_No.equals(txtOrder_No.getText()))
    //Last name changed; change the list
    Order_No.remove(intIndex); //Remove the old entry
    Order_No.add(txtOrder_No.getText()); //Add the new entry
    catch(SQLException error)
    showStatus("Error during Edit");
    public void stop()
    //Terminate the connection
    try
    if (conDatabase != null)
    conDatabase.close();
    catch(SQLException error)
    showStatus("Unable to disconnect");
    public void firstRecord()
    int first = 1;
    Order_No.select(first);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    public void previousRecord()
    int PreviousIndex = 0;
    PreviousIndex = Order_No.getSelectedIndex();
    PreviousIndex--;
    if (PreviousIndex > 0)
    Order_No.select(PreviousIndex);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    else
    showStatus("You've reached the beginning of the list.");
    public void nextRecord()
    int NextIndex = 0;
    NextIndex = Order_No.getSelectedIndex();
    if(NextIndex == 0)
    NextIndex = 1;
    else
    NextIndex++;
    if (NextIndex < Order_No.getItemCount())
    Order_No.select(NextIndex);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    else
    showStatus("You've reached the end of the list.");
    public void lastRecord()
    int last = 0;
    while (last < Order_No.getItemCount()-1)
    last++;
    Order_No.select(last);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    How do I point the class.forname to a url? This class will be run off a webserver with an html file. Everytime I run it currently, it comes back with a NullPointerException so I know it can't find it. I know if I run it locally, the file runs properly... Can someone help ASAP :(

    oad: class http://www.auburn.edu/~gunthms/classes/shipping.class not found.
    java.lang.ClassNotFoundException: http:..www.auburn.edu.~gunthms.classes.shipping.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.UnknownHostException: www
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It's just not finding it. Now if there were a way of loading that class from a jar file... or just any method at all of loading that... I think it would work... thanks alot man for your continuing help.

Maybe you are looking for