Locked JDBC Driver? Please Help

Hi All,
I am using SJSAS 8.1 and DB2 EXPRESS COMMUNITY Edition on a Fedora Machine.
I have set the connection pool in the Admin GUI of SJSAS for DataSource class com.sun.sql.jdbcx.db2.DB2DataSource.
Checked the Connection Pool using Ping. Ping succeeds.
Now I made a JDBC entry in the SJSAS using Admin GUI ie /jdbc/mydbds
I have written a simple JSP
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mydbds");
try {
Connection con = ds.getConnection();
Statement stmt=con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM tbl_user");
while(rs.next()){
out.println(rs.getString("firstname"));
out.println(rs.getString("lastname"));
out.println(rs.getString("userid"));
out.println("<hr>");
rs.close();
stmt.close();
con.close();
catch(SQLException e){
out.println(e.getMessage());
e.printStackTrace();
However when i run the jsp then I get the following error
[sunm][DB2 JDBC Driver]This driver is locked for use with embedded applications.
Can anybody please help me in resolving this problem. This is seriously frustratting as there are no solutiuons to this problem on google.
Many Thanks
Anand

Sun Studio/Creator are bundled with DataDirect jdbc drivers. Those drivers can only be used within Sun Studio/Creator environments.
You have an option of installing Sun Studio/Creator on your production server and use its bundled appserver as your production server, but it probably wouldn't be able to support many connections.
For a proper production server you either have to get appserver 8.x SE or EE edition or a jdbc driver from a third party(i.e DataDirect or i-net ) and use it with your appserver PE.

Similar Messages

  • Protocol Confusion of freeTDS jdbc driver, please help!

    I use freeTDS jdbc driver to connect to MS SQL 2000. In my programme, firstly I need to select sth out, and base on this update the other field in the same table. TOC will like that
    Statement stmt1 = conn.createStatement();
    ResultSet rs1 = stmt1.executeQuery("select sth from table");
    stmt1.executeUpdate("update table set field1 = 'xxx'");
    exception throw: java.sql.SQLException: Protocol confusion. Got a 0x79 packet
    I checked from the source of TDS driver, this exception throws when the sql query output is not a resultset.
    These 2 querys are prefectly okay individually, I tried to reverse the order, doesn't work neither. Even I disconnect the DB Connection and reconnect it before running the 2nd query, it won't help.
    Please help!

    I haven't used freetds, but seems like defaul version is 5.0. Try it with 7.0 and see it works better. By the way, JDBC driver's readme says that it was only tested with MSSQL 6.5 and 7.0.
    ---- FAQ from freetds.org ----
    Do I need to configure anything?
    When you untar the package you will need to run:
    $ ./configure
    You also have the following options you can add to the configure statement:
    --with-tdsver=VERSION
    specify the TDS version to use
    (4.2, 4.6, 5.0, or 7.0) [default is 5.0].
    --enable-msdblib
    enable Microsoft APIs and behaviour for DBLib
    --enable-dbmfix
    rename dbopen() to tdsdbopen() as a work around for dbm name conflict
    --with-gnu-ld
    assume the C compiler uses GNU ld [default=no]
    --enable-shared
    build shared libraries [default=yes]
    --enable-static
    build static libraries [default=yes]
    IMPORTANT You must build with TDS version 4.2 to access a MSSQL server or Sybase prior to 10.0! TDS 7.0 may also be used to talk to MS SQL 7 and above.

  • Locked External Drives, Please Help!!!!

    A few weeks ago I had to reformat our new external studio hard drives because they used the GUID formating from the factory and since I have Mac OSX 10.5/PowerMac G5 for Pro Tools they had to be reformatted to Apple Partition Mapping. Put a former session on it when it was done and opened PT. Session came up and ran fine, recorded fine, etc. This past week we got a DVD from one of our clients with the PT sessions we will be working on for them and dragged all the file to their client folder on one of the new drives. Now we can't record to, change, edit or unlock ANYTHING on these hard drive. I found out by checking the Workspace Browser in PT, the drives are set to "P" play only, tried to change to "R" record and that's when I get the message that the drives where locked and how I first was informed of this whole mess. From there I went to "Get Info" for the drives and all the sharing and permission info is grayed out. The studio account IS the administrator for the computer so we should have full access and privileges. I can't get a straight answer to figure out the procedure to COMPLETELY unlock the hard drives and all the files on them. I also want to know how to prevent this from ever happening again. Can anyone here help me?

    See Niel's guide. which might give you some clues.

  • Problems connecting using MM.MySQL JDBC driver - Please Help

    I have been trying to get the driver to work for the past two days and have hit a brick wall. If someone could offer any ideas on what other steps to try I would so much appreciate it. Here's the situation:
    I'm working on Mac OS X.1, jdk 1.3, mysql (database) and using the mm.mysql driver version 2.0.6.1. I'm using a test script which loads the driver, tries to connect to the 'test' database (which doesn't require a username/password) and then prints out the systems date when successful.
    //load the driver
    Class.forName("org.gjt.mm.mysql.Driver");
    //Try connecting to db
    Connection conn = DriverManager.getConnection(jdbc:mysql:///test", "", "");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("SELECT now();");
    while (rset.next())
    System.out.println(rset.getString(1));
    // Close result set, statement and DB connection
    rset.close();
    stmt.close();
    conn.close();
    The problem is that everytime I run the script I get an error telling me that the driver could not be found:
    Exception in thread "main" java.lang.ClassNotFoundException: org.gjt.mm.mysql.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:297)
    ��������at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
    The mysql database is running in the background, the driver's path location has been added to my classpath and I've also tried modifying the driver name as well as using older versions of the driver itself, but still no luck. This needs to be up and running so I can finalize a project I've been working on. If anyone has any ideas on what I could possibly try next, I welcome the suggestions.
    Thanks in advance.

    I didn't realize you had to extract the information either.
    Ok.. so I downloaded the latest jar file from sourceforge, extracted the data and IT WORKED!! Thank you so much. You saved my head from exploding.
    Many thanks.
    -c

  • I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD

    I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD

    To delete files from your external HDD, attach it to your MBP and drag the unwanted files to trash and then empty trash.
    Then you select the files that you want to transfer by 'drag and drop' to the external HDD and trash the files on your MBP.
    Ciao.

  • HT5278 I want to update my iOS 5.1.1 from iOS 7.1.1  .... But I'm confuce because, I'm from Bangladesh , my I phone 4s is country unlocked from USA .... So my confusion is , if I update my I phone iOS , can be it lock again? Please help me.

    I want to update my iOS 5.1.1 from iOS 7.1.1  .... But I'm confuce because, I'm from Bangladesh , my I phone 4s is country unlocked from USA .... So my confusion is , if I update my I phone iOS , can be it lock again? Please help me.

    You apparently aren't listening or don't understand English well enough to understand the responses you're getting.
    An unlocked iPhone will remain unlocked. Updating a legitimately unlocked phone does NOT affect the locked/unlocked status.
    It will only lock IF the phone was hacked or jailbroken to unlock it.

  • Lock cell formula Please Help

    Hello
    I have been setting up prices for a new business in the latest version of numbers. I was having no luck on iCloud making a formula that linked sheets by clicking cells I had to put each one in individually. I then downloaded it to my macbook and got that to work (any help there would be great but not essential) I managed to do my formulas fine once it was on my hard drive but there is one formula which is a combination of 2 sheets. The formula works fine which is in sheet 2. However, in sheet 1 everything is A-Z and if the formula for example is regarding cel B2, if i insert a new row and that cell then becomes C2 my formula is messed up. I have tried using the preserve tick boxes and manually insert the $ but it is not locking it. I want the cell to know that if I move cell B2 anywhere it still keeps that information.
    Here is the actual formula
    =SUM($Price $'Sugar)'÷$Price Per $'Sugar')×$B$6
    Price = cell B2 in Sheet 1
    Price per = B2 in sheet 2
    I have tried with and without $
    Please help I am trying to get a business plan together and the last thing I want is to change something without realising it has altered the formula.
    Thanks in advance

    Hi Egor,
    It would be clearer if you turned off "Use header names as labels". Even so each cell needs a column and a row designation.
    Price = cell B2 in Sheet 1,  Price per = B2 in sheet 2
    These statements cannot be true.
    That said, there are some things that are clear.
    If you are dividing one value by another you do not need the SUM() function. As far as I can tell you are not adding anything.
    There is an extra ")" in your formula.
    Whats with the quotes around 'Sugar'?
    What does your formula look like without the "Use header names as labels" checked?
    quinn

  • Somehow lock my ipod, please help

    It all started when I was taking a walk the other day and I don't have a holder for it so I put it in the hold position so that the volume wouldn't go all over the place in my pocket. I try to press the button and nothing happen and when I try to switch it back to unhold postion, I notice a pad lock symbol on my ipod on the left top corner. when i plug it to my computer the time is corsponding yet the pad lock is still there, try the 5 Rs still nothing, even try to restore it, but when it get the language screen on the ipod I can't click to english, the button won't work then it fade out, yet i still see the pad lock. plus everytime I plug my ipod to my computer, it will charge but I can't connect to the internet as it is charging, i ahve to wait till it's done and reset my computer to get to the internet. please anybody please help

    I assume you have tried everything here?
    iPod: Cannot restore or update in iTunes with error 1415, 1417, 1418, 1428, 1429, 1430, 1436, or 1439
    It could be an indication or a damaged or dying hard drive.  I would recommend doing a disk diagnostic on the iPod's HD using the instructions given by turingtest2 in this older thread.  He also covers what the resulting numbers indicate.
    https://discussions.apple.com/thread/3784647?start=0&tstart=0
    B-rock

  • Caps Lock key problem please help me

    Sir
    i want to check the caps lock key on or off
    how can i do?
    Please help me
    Thanks in advance

    Toolkit.getDefaultToolkit().getLockingKeyState(...);

  • ITunes library.itl file is locked?? please help

    I downloaded iTunes and tried to open it and it says that the library.itl file is locked on a locked disc or I do not have write permission for this file.....very confused can someone please help me.....Thanx

    first check to see if the itunes .itl library file, or any folders in the folder heirarchy above it have somehow been set to "read only". if they have, try switching that off.
    What are the iTunes Library files?
    if no joy with that, see:
    iTunes for Windows: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes

  • HP dv4t not detecting hard drive, please help!

    Hello, its been just a little over a year since I've bought my HP dvt, and of course the problems start as soon as my warranty has ended.. It's been working fairly fine most of the year, and then just all of a sudden while not even doing anything of importance on computer last week I got a blue screen error..
    Ever since then I have had so much problems. At first it just started out with closing the screen and reopening it crashed the laptop in a couple minutes..
    The main problem now is, it just does not detect the hard drive when booting up! Sometimes (rarely) it does though.. I thought it was a windows problem, so I did fresh clean install of Windows 7 and reformatted the hard drive. Then I ran CHKDSK and it did it stuff and said volume clean at the end.. It worked perfectly for a couple of hours, was able to close screen and open with no problems. I downloaded "Hard drive sentinel" to monitor my hdd health, and it said 90% which is apparently excellent. Yet as I was installing adobe reader, it crashed, got the blue screen of death and has not been able to boot up since
    Can anyone tell what is the problem with it? Anyone else have similar problem? I've tried to reformat again with CD but it doesnt even recognize any drive to install on..
    Important thing to note is that, in the BIOS screen when i run the HARD DISK TEST, it does recognize it! So i dont understand why it doesn't load the operating system or cant see the hard drive anywhere else!!
    What is at fault even? Is the motherboard dead? Althought the bios screen loads fine so does that mean its OK? Is it the hard drive? CHKDSK and the hdd health monitor thing said it was ok right before the crashes..
    Please help, I have my first computer science lab in like 2 days with my laptop breaking just a couple days before it with barely any money left to buy a new laptop

    "computer always freezes at 56%"
    Time to replace your Hard Drive. BACK UP NOW!!!
    This will be the 3rd HD in a new HP HDX 18 for me (6 months old).
    Open up the HD bay and take a look at the model of the HD.
    If it is a SEAGATE MOMENTUS 7200.4  they are known to fail in as little as 1 month from install, and do not last more than 6 months.
    Google the brand and you will see that most people are reccomending that you remove the SEAGATE product ASAP (data recovery is next to impossible) and replace it with something else.
    I had just finished setting up the PC as I wanted it, OS, programs / Bios, software upgrades, then without warning the 2nd HD went.
    I lost EVERYTHING in my C drive, was just preparing to do a full BU and Mirror Image after deleting both from my D and External Drive.
    HP is replacing one piece of crap with another, I will be shopping for a different brand for the C drive after the laptop comes back from repair.
    There seems to be no end to this BS with SEAGATE drives.
    DO A FULL BU NOW!!!
    > Was your question answered? Mark it as an Accepted Solution!
    > See a great post? Click on the white star and give it a Kudos!

  • Blinking folder with question mark, and disk utility doesnt recognise hard drive, please help!!!

    So today i was using my macbook pro and for some reason my CD/DVD drive was causing noise when i put a DVD inside it, and for some reason it did not recognise my DVD. I force ejected it using the restart and clicking, but after that my computer showed a blinking folder and question mark during start up. I restarted my computer to Recovery HD, but instead it took me to internet Recovery HD (i have mountain lion), and so i went to disk utility to repair my disk, but in the left it did not recognise my hard drive. Please help! Im not that experienced in computing!

    Sounds like some sort of power issue and now your drive is not working.
    You'll have to take this to Apple for repair.
    You should read this if you don't have recent backups of your data off the machine.
    My computer is not working, is my personal data lost?

  • My laptop is pavilion dv6502au, laptop not getting lanport driver. please help me..

    hi
    Dear Sir,
    i have Hp pavilion DV6502au laptop.
    he not getting Lan driver,
    i am doing system formating, bios upgration, and use updated driver but issue not sloved. please help me out.
    thanks in advanced.
    i belive in HP service, Hope you help me about my issue.
    thanks,
    have a nice day......................... 

    We would need to know what operating system you installed but I am going to guess it is Windows 7.It would help more to know if it is 32 or 64 bit. Without that info I cannot link you to anything specific.
    This Forum has a Windows 7 upgrade guide specifically for your laptop:
    Upgrade Guide
    Your laptop has the AMD processor I believe and the network (LAN) driver is part of the main chipset (nVidia nForce) driver, which is absolutely critical to getting your laptop to work properly.

  • Win7 x64, Not recognizing GoFlex Home as DRIVE, PLEASE HELP!.

    Bought GoFlex Home 3TB, plugged into Cisco WRT310N V2, w/ Desktop PC (Win 7 64bit) does not recognize the drive. Get NETWORK ERROR "Windows cannot access \\goflex_home" Error Code: 0x80070035.  Can not map netork drive. Under Win Explorer the drive DOES appear as "GoFlex Home:UPNP-AV" in TWO places, 1) under Media Devices & 2) Under Storage. Bother places are treated as MEDIA because, when I click on either of them it opens Windows Media Player!  I can type in the IP address in BOTH IE & WIn Explorer and it will take me to the web page for the drive, where i can log in and create users, add folderes, etc.  I WANT TO USE THIS AS A BACK-UP DRIVE, but can't get WINDOWS TO RECOGNIZE IT.  I have turned off McAfee and still have same problem. PLEASE HELP!

    check this link: http://social.technet.microsoft.com/Forums/en-US/w7itprovirt/thread/e08c3500-a722-4b44-b644-64f94f63....
    Make sure that your ip assetings were correct. You can try to setup a static ip parameters on your computer then check if it will work.

  • Dont remember passcode and have restored phone but phone still locked...please help. needing unlocked

    i put a passcode on phone...now iphone is locked...i dont remember code..i have restored pone on itunes...but still comes up with unlock wit passcode.....please need help unlocking......but just also found out seriel number has been replaced. as buy of a friend and they dont have seriel number.....please help

    I'm not sure how the serial number could have been replaced. Do you have access to any serial number at all? I would recommend calling Apple Support and explaining the problem, but you'll need the serial number to tell them so they can help you. It's possible that the original serial number on the phone is correct, so check on the back of the iPhone where the number can usually be found. If not, and you've synced your phone to iTunes, look on iTunes for the number. If you still can't find it, call Apple Support and explain the situation to them (tap on "emergency call" in the lower left screen below the keypad when you turn your phone on) and call Apple. Check this page for the number depending on where you live:
    http://support.apple.com/kb/he57
    I hope this helps!

Maybe you are looking for