Unable to load driver

hi,
when am trying to run this program am getting message
"Cannot connect to database server"
Someone could ya resolve the problem and tell me?
import java.sql.*;
public class Connect
public static void main (String[] args)
Connection conn = null;
try
String userName = "root";
String password = "";
String url = "jdbc:mysql://localhost/test";
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
conn = DriverManager.getConnection (url, userName, password);
System.out.println ("Database connection established");
catch (Exception e)
System.err.println ("Cannot connect to database server");
finally
if (conn != null)
try
conn.close ();
System.out.println ("Database connection terminated");
catch (Exception e) { /* ignore close errors */ }
}

reposted with tags:
import java.sql.*;
   public class Connect
       public static void main (String[] args)
           Connection conn = null;
           try
               String userName = "root";
               String password = "";
               String url = "jdbc:mysql://localhost/test";
               Class.forName ("com.mysql.jdbc.Driver").newInstance ();
               conn = DriverManager.getConnection (url, userName, password);
               System.out.println ("Database connection established");
           catch (Exception e)
               // System.err.println ("Cannot connect to database server");
               e.printStackTrace(); // **** this may be better ***
           finally
               if (conn != null)
                   try
                       conn.close ();
                       System.out.println ("Database connection terminated");
                   catch (Exception e) { /* ignore close errors */ }
   }You may want to change your catch block to print the stack trace for more information. I'm not a database guru, so that's the best suggestion I can make, that and to use code tags to improve readability of your code here.

Similar Messages

  • Unable to load Driver Class

    Hi There:
    When I try to connect to the Oracle 8i via this applet , I get the following run time error.
    Any help will be appreciated.
    I am using j2sdkee1.3.1, jdk1.3.1_02 and Oracle8.
    I also need your suggestion please. I have inserted some BLOB data in the Oracle table. I will need to display the BLOB data to the end users. I plan to convert this BLOB data into string format so that my applet can display the same. Further the string will have to be edited by the end users. I will then convert this modified string back to byte array so that I can insert the same as BLOB.
    Please let me know applet or the servlet? Which is better option.
    Users are reluctant to use any kind of WebServer because it will introduce the additional layer of complexity.
    Any help will be greatly appreciated.
    Thanks in advance.
    C:\>AppletViewer JdbcApplet.html
    Unable to load Driver Class
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:\oracle\jdbc\
    driver\OracleDriver.class (The system cannot find the path specified)
    The following code snippet fails because it is unable to find the suitable driver.
    if (conn == null)
         //make a connection to the db
         try {     
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:@"+"localhost:1521:sys", "system", "manager");
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:system/manager@(description=(address_list= (address=(pro tocol=tcp)(host=localhost)(port=1521)))(source_route=yes)(connect_data=(sid=sys)))" );
              Class.forName("oracle.jdbc.driver.OracleDriver");
              String conurl="jdbc:oracle:thin:@localhost:1521:sys";
              Connection con=DriverManager.getConnection(conurl,"system","manager");
         } catch ( Exception e ) {
              System.out.println ("Unable to load Driver Class");
              e.printStackTrace (System.out);
              // add send email notification about this fact
              return false;
    } // End of if Statement from conn...

    Hi,
    maybe I'm too late but try the following :
    It seems that Your IDE doesn't check the path to Your classesxxx.zip file.
    Or Your classesxxx.zip file is corrupt.
    We had this error after downloading the classes12.zip for Oracle versions
    higher 8.1.6.
    The original size of this file is 1.888kB.
    Remember Windows FTP is downloading in ascii mode per default.
    Or Your classpath isn't correct
    ( the Exception souns like this )
    Regards

  • Exception in thread "main" related to CLASSPATH and unable to load driver??

    Hi,
    I am a JAVA beginner, I have met some problems cannot solve, can somebody help?
    My OS is Windows2000
    Java SDK in C:\j2sdk-1_4_2_04 and Java JRE in C:\Program Files\Java\j2re1.4.2_04 [Installation: j2sdk-1_4_2_04-windows-i586-p.exe]
    MySQL in C:\mysql [Installation: mysql-4.0.18-win.zip]
    MyODBC in C:\Download\MYODBC [Installation: MyODBC-3.51.06.exe]
    MyJDBC in C:\mysql-connector-java-3.0.11-stable [Installation: mysql-connector-java-3.0.11-stable.zip]
    Enviornment Variables Settings
    PATH = C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\j2sdk1.4.2_04\bin;C:\mysql\bin
    JAVA_HOME = C:\j2sdk1.4.2_04
    (CASE ONE) - While I didn't set a new Enviornment Variable for CLASSPATH
    HelloWorld.class can work properly and LoadDriver.class cannot work due to Unable to load Driver (As below)
    C:\JavaTry>javac HelloWorld.java
    C:\JavaTry>java HelloWorld
    Hello World!
    C:\JavaTry>javac LoadDriver.java
    C:\JavaTry>java LoadDriver
    Unable to load driver.
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at LoadDriver.main(LoadDriver.java:7)
    (CASE TWO) - While I set a new Enviornment Variable for CLASSPATH (No matter which settings as below)
    CLASSPATH = C:\mysql-connector-java-3.0.11-stable\mysql-connector-java-3.0.11-stable-bin.jar
    CLASSPATH = C:\mysql-connector-java-3.0.11-stable
    CLASSPATH = C:\mysql-connector-java-3.0.11-stable\com;C:\mysql-connector-java-3.0.11-stable\org
    Both the HelloWorld.class and LoadDriver cannot work properly due to Exception in thread "main" java.lang.NoClassDefFoundError (As below)
    C:\JavaTry>javac HelloWorld.java
    C:\JavaTry>java HelloWorld
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    C:\JavaTry>javac LoadDriver.java
    C:\JavaTry>java LoadDriver
    Exception in thread "main" java.lang.NoClassDefFoundError: LoadDriver
    Below are the JAVA scripts which I used
    -> HelloWorld.java
    public class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello World!");
    -> LoadDriver.java
    import java.sql.*;
    public class LoadDriver {
    public static void main(String[] Args) {
    try {
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    /* Class.forName("com.mysql.jdbc.Driver").newInstance(); <- either one try the same */
    } catch (Exception E) {
    System.err.println("Unable to load driver.");
    E.printStackTrace();
    Moreover, I saw some information only standalone application need to set CLASSPATH, right??

    My problem "unable to load driver" have solved.
    I set the CLASSPATH = C:\mysql-connector-java-3.0.11-stable\mysql-connector-java-3.0.11-stable-bin.jar
    and try
    java -cp ".";%CLASSPATH% LoadDriver
    Thanks masnare again :> and who provided the link http://www.kevinboone.com/classpath.html in the forums others similar topics, actually I forgot which topic and who, so... :P no matter whom thanks very much :)

  • Help Please ....  Unable to load Driver Class

    Hi There:
    When I try to connect to the Oracle 8i via this applet , I get the following run time error.
    Any help will be appreciated.
    I am using j2sdkee1.3.1, jdk1.3.1_02 and Oracle8.
    I also need your suggestion please. I have inserted some BLOB data in the Oracle table. I will need to display the BLOB data to the end users. I plan to convert this BLOB data into string format so that my applet can display the same. Further the string will have to be edited by the end users. I will then convert this modified string back to byte array so that I can insert the same as BLOB.
    Please let me know applet or the servlet? Which is better option.
    Users are reluctant to use any kind of WebServer because it will introduce the additional layer of complexity.
    Any help will be greatly appreciated.
    Thanks in advance.
    C:\>AppletViewer JdbcApplet.html
    Unable to load Driver Class
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:\oracle\jdbc\
    driver\OracleDriver.class (The system cannot find the path specified)
    The following code snippet fails because it is unable to find the suitable driver.
    if (conn == null)
         //make a connection to the db
         try {     
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:@"+"localhost:1521:sys", "system", "manager");
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:system/manager@(description=(address_list= (address=(pro tocol=tcp)(host=localhost)(port=1521)))(source_route=yes)(connect_data=(sid=sys)))" );
              Class.forName("oracle.jdbc.driver.OracleDriver");
              String conurl="jdbc:oracle:thin:@localhost:1521:sys";
              Connection con=DriverManager.getConnection(conurl,"system","manager");
         } catch ( Exception e ) {
              System.out.println ("Unable to load Driver Class");
              e.printStackTrace (System.out);
              // add send email notification about this fact
              return false;
    } // End of if Statement from conn...

    Hi,
    maybe I'm too late but try the following :
    It seems that Your IDE doesn't check the path to Your classesxxx.zip file.
    Or Your classesxxx.zip file is corrupt.
    We had this error after downloading the classes12.zip for Oracle versions
    higher 8.1.6.
    The original size of this file is 1.888kB.
    Remember Windows FTP is downloading in ascii mode per default.
    Or Your classpath isn't correct
    ( the Exception souns like this )
    Regards

  • Unable to load driver download page.

    I was called by my dad who needed some assistance to get a printer installed he bought fresh from a second hand store.
    Anyway, I tried getting to the HP download page. The page however remains blank and does not load. I found some similar threads that availability to the driver pages is sometimes inaccesible. I don't want to get ahead of things (like assuming it's the fault of HP), and I also don't want to be a jerk (I love HP seriously)
    But I have had very frequent issues in the past with multiple machines on different networks while accessing HP webpages. Either because of extreme long loading times through any hp web service. And in this case unable to access pages completely. Just a reminder that it might be a area of business to improve upon albeit a minor focus point for the people that run this company.
    I read similar threads on this board through google searches that the same webpage (driver) page could be accesible through different international domains. I tried the german and spanish ones with the same results.
    I tried accessing the driver download page for over 4 hours now.
    Maybe it's just a issue with the driver page of my printer type. Especially since it is a older model.
    Personally I don't know about safe alternative download methods to get the drivers.
    Please post-
    1:If you consider the fault to be at my end and how to fix it.
    2:If there is any other way to get my hands on the printer software.

    Hi:
    The problem is on HP's end.
    The link is now working.
    http://support.hp.com/us-en/product/HP-Deskjet-D2400-Printer-series/2510721/model/2510766/drivers
    Yes, I agree with you that there have been too many times in the last year that the support pages are down.
    There should be a performance metric that is part of whoever's job it is that is in charge of the webpages (webmaster?), and there should be measurements of accessibility which should be part of the person's performance evaluations.
    For example overall: Webpages never go out more than 1% of the time each year, etc.
    I have found it quite unacceptible lately, and if this person worked for me, they would be on the carpet.
    I was the commanding officer of a USCG LORAN station back in the 1980's
    The mission of the station was to provide a radio navigation signal 100% of the time. 
    Anything short of that, and you better have a darn good reason why the station went off air.
    You go off air too many times, how do ships and planes find their position?
    I can tell you this, if my station had gone off air as many times as these web pages have been down lately, I would have been relieved of command.
    Plain and simple.

  • Applet, Connector/J, unable to load driver

    I have written an Applet that is using the Connector/J com.mysql.jdbc.Driver to connect. When I compile and run the Applet with VisualCaf� and the AppletViewer, it is able to load the driver, access the database, exectue queries, etc. The problem occurs when I upload my files to the webspace.
    My Applet loads, but when it tries to load the driver, these are the exceptions that I catch:
    "Error loading class: com.mysql.jdbc.Driver
    java.lang.NoClassDefFoundError
    Failed to initialize driver: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"
    Here is the code having the problem:
    import java.sql.*;
    public DatabaseConnection()
    // First, we initialize the driver.
    try
    //System.out.println("Initializing Driver...");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    //Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    //System.out.println("Driver initialized.");
    catch (Exception e)
    System.out.println("Failed to initialize driver: " + e);
    On my webspace, I have included the mysql-connector-java-3.0.8-stable-bin.jar file in the same directory as my main class file. In the HTML code, I use the ARCHIVE tag and give it that .jar file. I have even un-jarred the file, retaining the original directory structure and placed those in the same directory. The .jar file seems to download when I go to the page and load the Applet.
    Is there something I'm missing that lets the Applet load the Driver? The Driver i'm using is a Type 4 Driver, which should be useable by an Applet.
    Any help would be very much appreciated - I've struggled with this for a long time, now.

    For anyone else out there using the Connector/J driver to make an Applet connect to a mySQL database, read on.
    The mysql-connector-java-3.0.8-stable-bin.jar does not work with Applets. At least, it would not work for me after trying many different things. So, I downloaded an earlier version: mysql-connector-java-2.0.14-bin.jar and everything worked fine (!!!).
    I hope this helps someone else with the same problem!! If the number of forums with very similar postings that i've run across is any indication, there are a lot of people having this problem!

  • Unable to load driver for Storage for Windows 2008 UCS B230 M2

    I am trying to Boot from SAN windows 2008 R2. I  have configured and connected the Cisco UCS Chassis and FI to our Network & Storage .I am  having problem to install Windows 2008 R2 Server on Blades as it is not able to see Storage LUN while installation .I downloaded drivers from Cisco Support Site.
    I tried drivers from ISO ucs-bxxx-drivers.2.1.3 latest version but Windows is showing driver is available but not installing the driver I am getting the following error and not showing the LUN hard disk to select the installation.
    Windows is unabe to locate storage LUN. I am able to LUN while booting process.
    I am not sure where I am doing wrong.or I am chosing wrong driver.

    I don't see the error message either, but to install W2008 on a boot lun, you must
    1) do the zoning of the vhba (initiator) to the pwwn of the storage subsystem port (target)
    2) the lun masking / mapping has to be setup
    3) fnic driver has to be installed
    Therefore, if you don't see your boot lun, either 1) and or 2) has to be fixed
    then
    4) only one path should be configured (e.g. fabric a), because no multipathing is available during installation, this is very important, and necessary for W2003, 2008 and 2012
    and
    5) if you see the boot lun, and can install, but the boot fails, the problem is the boot policy !
    Very easy ! Good luck !

  • Unable to load my sql driver

    So frustrated to see my servlet cant connect to mysql database, anyone pls help me?
    i put mysql-connector-java-2.0.14-bin.jar in
    C:\Apache\Tomcat 4.0\common\lib
    C:\Apache\Tomcat 4.0\webapps\ROOT\WEB-INF\lib
    D:\j2sdk1.4.0_03\jre\lib\ext
    here the exception:
    javax.servlet.ServletException: Unable to load driver
         at FormHandlerServlet.init(FormHandlerServlet.java:27)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    here is my servlet:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import java.sql.Date;
    public class FormHandlerServlet extends HttpServlet{
    private static final String driver="com.mysql.jdbc.driver";
    private static final String dbURL= "jdbc:mysql://localhost/aos";
    private static final String login= "aos";
    private static final String password= "aos";
    private ServletContext context;
    private Connection conn= null;
    private Statement stmt= null;
    public void init(ServletConfig config) throws ServletException{
         super.init(config);
         context= config.getServletContext();
         try{
         Class.forName(driver);
         conn= DriverManager.getConnection(dbURL, login, password);
         stmt= conn.createStatement();
         catch(ClassNotFoundException e){
         System.err.println("Unable to load driver");
         throw new ServletException("Unable to load driver");
         catch(SQLException e){
         System.err.println("Unable to connect to database");
         throw new ServletException("Unable to connect to database");
    public void service(HttpServletRequest req,
              HttpServletResponse res)
         throws ServletException, IOException{
         Vector errors= new Vector();
         Calendar startCalendarDate = Calendar.getInstance(TimeZone.getDefault());
         java.util.Date startUtilDate = new java.util.Date();
         long startLongDate = startCalendarDate.getTime().getTime();
         java.sql.Date startSqlDate = new java.sql.Date(startLongDate);
         String userID= req.getParameter("userID");
         String password1= req.getParameter("password1");
         String password2= req.getParameter("password2");
         String name= req.getParameter("name");
         String ic= req.getParameter("ic");
         String status= req.getParameter("status");
         String gender= req.getParameter("gender");
         String department= req.getParameter("department");
         String email= req.getParameter("email");
         String phone=req.getParameter("phone");
         if(!isRequiredData(userID, password1, password2, status))
         errors.add("Sila isikan semua data yang diperlukan dimana *.");
         else{
         try{
         if(isExistedUser(userID))
    errors.add("No Matriks/Pekerja anda sudah wujud, Sila cuba lagi.");
         catch(SQLException e){}
         if(!isSamePassword(password1,password2))
         errors.add("Sila isikan password1 dan password2 yang sama.");
         if(!isValidPassword(password1,password2))
         errors.add("Sila isikan password anda dalam 8-12 perkataan.");
         if(!isValidEmail(email))
         errors.add("Sila pastikan " +"@"+" dalam e-mel anda.");
         if(!isValidPhone(phone))
         errors.add("Sila pastikan "+ "-"+" tidak dalam nombor telefon anda.");
         if(!isValidUserID(userID))
         errors.add("Nombor Matriks/Pekerja anda tidak mengandungi 6 perkataan.");
         String next;
         String password= password1;
         String insert= "insert into user values('"+userID+"', '"+password+"','"+
         name+"', '"+ic+"', '"+status+"', '"+gender+"','"+
         department+"', '"+email+"', '"+phone+"', '"+startSqlDate+"')";
         if (errors.size() ==0){
         //data is ok, insert data to database, dispatch to wherever
         try{
              int x= stmt.executeUpdate(insert);
         catch(SQLException e){}
         next= "/aos/thanks.jsp";
         else{
         //data has errors, try again
         String[] errorArray= (String[])errors.toArray(new String[0]);
         req.setAttribute("errors", errorArray);
         next= "/aos/RegisterForm.jsp";
         RequestDispatcher rd;
         rd= context.getRequestDispatcher(next);
         rd.forward(req, res);
    public boolean isSamePassword(String password1,String password2){
         //check for both password is same
         return(password1.equals(password2));
    public boolean isValidPassword(String password1,String password2){
         //check for both password is under 8-12 char
         return(password1.length()>=8 && password1.length()<=12 &&
         password2.length()>=8 && password2.length()<=12);
    public boolean isValidPhone(String phone){
         //check for no dashes
         return(phone.indexOf("-")==-1);
    public boolean isValidEmail(String email){
         //check an "@" somewhere after 1st char
         return(email.indexOf("@")>0);
    public boolean isValidUserID(String userID){
         //check for userID is 6 char
         return(userID.length()==6);
    public boolean isRequiredData(String userID,
    String password1, String password2, String status){
    //check for required data is filled
         return(userID.length()!=0 && password1.length()!=0 &&
         password2.length()!=0 && status.length()!=0);
    public boolean isExistedUser(String userID) throws SQLException{
    String sql= "select * from user where id= '"+userID+"'";
    ResultSet rs= stmt.executeQuery(sql);
         if(rs.next())
    return true;
         else
         return false;
         

    is the driver name correct?
    private static final String driver="com.mysql.jdbc.driver";
    I usually have another string, but I might use a different mysql driver. Try opening your mysql driver with winzip and see if the class is there and at the defined directory place

  • LibGL error: failed to load driver: i965 [Solved]

    Executing some wine programs I get this messages:
    libGL error: failed to load driver: i965
    libGL error: Try again with LIBGL_DEBUG=verbose for more details.
    Following the suggestion I get:
    libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri/tls/i965_dri.so
    libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri/i965_dri.so
    libGL error: dlopen /usr/lib32/xorg/modules/dri/i965_dri.so failed (/usr/lib32/xorg/modules/dri/i965_dri.so: cannot open shared object file: No such file or directory)
    libGL error: unable to load driver: i965_dri.so
    libGL error: driver pointer missing
    libGL error: failed to load driver: i965
    libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri/tls/swrast_dri.so
    libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri/swrast_dri.so
    What is that lib32 xorg module file that appears missing?
    Some informations that might be useful...
    # lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    # glxinfo | grep 'dir\|^Open'
    direct rendering: Yes
    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
    OpenGL version string: 3.0 Mesa 9.0.2
    OpenGL shading language version string: 1.30
    OpenGL extensions:
    # uname -a
    Linux macthearcher 3.7.4-1-ARCH #1 SMP PREEMPT Mon Jan 21 23:05:29 CET 2013 x86_64 GNU/Linux
    Last edited by ezzetabi (2013-02-08 09:33:19)

    According to wine#Graphics_Drivers it is lib32-intel-dri.

  • Torrentflux 2.4 (ADONewConnection: Unable to load database driver)

    I'm trying to setup Torrentflux 2.4 on my server.
    I used the torrentflux PKGBUILD vom AUR: http://aur.archlinux.org/packages.php?ID=1664
    I set up Apache/MySQL/PHP following the guide. PHP test script is working fine:
    <?php phpinfo(); ?>
    I setup a symbolic link from /srv/http to my /opt/torrentflux
    ls /srv/http/
    insgesamt 4
    -r--r--r-- 1 root root 20 6. Mär 21:23 test.php
    lrwxrwxrwx 1 root root 17 6. Mär 21:07 torrentflux -> /opt/torrentflux/
    When I try to open /torrentflux/login.php in my webbrowser it says
    ADONewConnection: Unable to load database driver ''
    I left the default in torrentflux' config.php:
    $cfg["db_type"] = "mysql"; // mysql, postgres7, postgres8 view adodb/drivers/
    ls /opt/torrentflux/adodb/drivers/
    insgesamt 532
    -r--r--r-- 1 root daemon 20476 6. Mär 20:44 adodb-mysql.inc.php
    -r--r--r-- 1 root daemon 25340 6. Mär 20:44 adodb-mysqli.inc.php
    -r--r--r-- 1 root daemon 3220 6. Mär 20:44 adodb-mysqlt.inc.php
    I'm pretty new to the whole LAMP stuff, so can please any1 tell me what's going wrong?

    Ok, some questions:
    1. Did you enable mysql in php.ini?
    http://wiki.archlinux.org/index.php/LAMP#MySQL
    2. Did you read / follow the torrentflux installation guide included with the installation?
    (if not, check here: http://www.torrentflux.com/)
    3. I have not worked with the package from AUR, the package form the official site (again, http://www.torrentflux.com/) works well for me. Did you try this?

  • Unable to load mySql Driver in Java class invoked using bpelx:exec

    Hi ,
    I am trying to connect to mysql database in my java class.when i run this class in Jdeveloper it loads the driver without any problem.I can chk the log in the Jdev messages area.Now I am invoking this class from the BPEL process through <bpelx activity.But when i run my BPEL process it throws runtime exception "classNotFoundException:unable to load com.mysql.jdbc.Driver".I have set the project properties ->libraries to the class path of the mysql jar file as well.
    Now if i try to connect with the Oracle driver then it is working fine.
    I know this is a classpath issue.Can anyone tell me if there are some other settings to make it work fine.
    the java code :
    System.out.println("in getConnection method");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    System.out.println("loaded Driver :");
    String url="jdbc:mysql://ntlv014:3306/wx";
    _jdbcConnection = DriverManager.getConnection(url,"development","ber1nger");
    System.out.println("Got Connection :"+_jdbcConnection.isClosed());                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I think you have 2 options..
    either put the jar for the mysql in the classpath on the server...or try something like this :
    http://forum.java.sun.com/thread.jspa?forumID=17&threadID=633158
    try to put the jar of the mysql into the suitecase of the bpel.
    never seen this coming around...so..it's just a wild guess.
    ORABPEL-11622 Could not create/access the TopLink Session
    spendem got the same situation...the puts the libraries in the applib-dir
    Message was edited by:
    Eric Elzinga (IT-Eye)

  • Unable to Load USB Driver in LV for Total Phase's Aardvark I2C adaptor

    I have tried to instal Total Phase's Aardvark I2C USB driver for LabVIEW on two computers and two versions of LV (8.5 and 7.1) without success. The Windows driver seems to be working fine as their command center gui terminal-esque program works without a hitch, but the LV DLL doesn't seem to work.
    Attached is the very simple vi to find connected Aardvark USB devices (aa_find_devices). It always returns the same error code, 8002, which resolves to:
    AA_UNABLE_TO_LOAD_DRIVER
    -2
    unable to load USB driver
    From their documentation: http://www.totalphase.com/docs/aardvark_datasheet/​sect005/#s5.9
    This looks like perhaps the LabVIEW DL, "aardvark.dll" maybe having a versioning issue. So my question is this: Using LabVIEW, how does one debug dll dependencies and resolve issues like this? Do I need the source code for the lib?
     Cheers,
    Joe Gorse
    Solved!
    Go to Solution.
    Attachments:
    find_devices.vi ‏11 KB

    Dear Joe,
    Let me start off by apologizing for the inconvenience you
    have gone through.  I am an engineer at Total Phase.  We are
    working on fixing this issue for our next release of the
    Aardvark LabVIEW Driver.  This forum post was only brought
    to our attention today.  In the future, you can also let
    Total Phase know about these kinds of issues by emailing
    [email protected]  We are very responsive through
    email or phone.
    The problem you are experiencing has to do with versioning
    issues between our DLL and USB driver.  Specifically, DLLs
    before v5.xx must use the older version of our USB driver.
    By replacing the DLL from our latest version of Control
    Center, you have effectively upgraded the DLL that the
    LabVIEW driver is using and made it compatible with v2.xx of
    the USB driver.
    The most likely reason that smercurio_fc did not see a
    difference between the DLL in Aardvark Control Center and
    the LabVIEW driver is because he is using an older version
    of Control Center and correspondingly an older version of
    the USB driver.
    The reason that we have not packaged the LabVIEW driver with
    latest DLL is due to the fact that a few functions have
    changed their function prototypes (for example aa_open_ext
    and aa_spi_write), and the VIs have not yet been updated
    accordingly.  Although updating the DLL solved your USB
    driver issue, it introduced this new issue.  If you try to
    use these certain VIs, LabVIEW will error out.
    We are currently working on updating the LabVIEW drivers to
    work cohesively with the new DLL and USB driver, and this
    should be available soon.  If you need immediate
    availability to the functions with new prototypes you will
    have to change it manually.  The other recommended option is
    to simply revert back to the DLL that is packaged with our
    LabVIEW driver and downgrade the USB driver back to v1.xx.
    I will make sure to post again once the update is released,
    and I once again apologize for the inconvenience.
    Best regards,
    Etai

  • Unable to load/parse portlets config SAX2 driver

    Hi All
    I try no test our software with several AS (Resin, HPAS, etc.) With OC4J we have $subj error. This is my steps:
    1 Unzip oc4j_extended.zip
    2 Add web-module to default application.
    in application.xml:
    <web-module id="Axiom" path="/opt/gorod/axiom" />
    in http-web-site.xml:
    <web-app application="default" name="Axiom" root="/axiom" />
    3 Start it
    4 Try to connect http://mysite.com:8888/axiom
    And watch my log:
    2/12/02 11:44 AM: ERROR: unable to load/parse portlets config SAX2 driver class org.apache.xerces.parsers.SAXParser not found: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
    2/12/02 11:44 AM: org.jdom.JDOMException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
    2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:320)
    2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:408)
    2/12/02 11:44 AM: at ru.gorod.xpml.PortletsConfig.load(PortletsConfig.java:819)
    2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.reloadConfig(PageProcessorServlet.java:733)
    2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.__bgReloadConfig(PageProcessorServlet.java:702)
    2/12/02 11:44 AM: at ru.gorod.xpml.BGConfigReloadingThread.run(BGConfigReloadingThread.java:16)
    2/12/02 11:44 AM: Root cause: 2/12/02 11:44 AM: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
    2/12/02 11:44 AM: at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:118)
    2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:237)
    2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:408)
    2/12/02 11:44 AM: at ru.gorod.xpml.PortletsConfig.load(PortletsConfig.java:819)
    2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.reloadConfig(PageProcessorServlet.java:733)
    2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.__bgReloadConfig(PageProcessorServlet.java:702)
    2/12/02 11:44 AM: at ru.gorod.xpml.BGConfigReloadingThread.run(BGConfigReloadingThread.java:16)
    Why? File xerces.jar Placed with application (in /opt/gorod/axiom/WEB-INF/lib) and have all permissions.
    Also I try to start java with -Xbootclasspath/a: option but it has equal result.
    PS Sorry for my english :-\

    mv xerces.jar $J2EE_HOME
    cd $J2EE_HOME
    java -Xbootclasspath/a:xerces.jar\;jaxp.jar -jar oc4j.jar &
    No changes :-(
    But with
    java -Xbootclasspath/a:xerces.jar:jaxp.jar -jar oc4j.jar &
    VM not starts and shows error:
    2/13/02 9:33 AM: javax.xml.parsers.FactoryConfigurationError: oracle/xml/jaxp/JXDocumentBuilderFactory
    2/13/02 9:33 AM: at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:154)
    2/13/02 9:33 AM: at com.evermind.xml.JavaxXMLUtils.getJavaxDocument(JavaxXMLUtils.java:23)
    2/13/02 9:33 AM: at com.evermind.xml.XMLUtils.getDocument(XMLUtils.java:157)
    2/13/02 9:33 AM: at com.evermind.xml.XMLConfig.init(XMLConfig.java:131)
    2/13/02 9:33 AM: at com.evermind.xml.XMLConfig.init(XMLConfig.java:88)
    2/13/02 9:33 AM: at com.evermind.server.XMLApplicationServerConfig.init(XMLApplicationServerConfig.java:1298)
    2/13/02 9:33 AM: at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:43)
    2/13/02 9:33 AM: at java.lang.Thread.run(Thread.java:484)
    2/13/02 9:33 AM: at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:47)

  • Urgent... unable to load JDBC driver

    i have developed a servlet which will establish connection to mySQL.. but it couldn't load the JDBC driver even i placed
    [ mysql-connector-java-2.0.14-bin.zip ] in [ C:\j2sdk1.4.2_05\jre\lib\ext\ ]
    in fact.. it work fine b4 i format my notebook.. anyone can help me??
    pls note that i using APACHE TOMCAT and mySQL 3.23
    pls help.. very urgent one
    the following is my servlet code.....
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
    static final String dbURL = "jdbc:mysql://localhost" ;
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    Connection conn = null;
    String nextJSP = null;
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    catch (ClassNotFoundException e) {
    throw new ServletException("Unable to load JDBC driver");
    }

    i already add new variable in environment variables
    variable name = CLASSPATH
    variable value = C:\j2sdk1.4.2_05\jre\lib\ext\mysql-connector-java-2.0.14-bin.jar;
    but the same output is come up.. still unable to load my JDBC driver in TOMCAT... y?

  • Unable to load HP printer driver-Error message!

    Hi,
    Just wondering if anyone can be of any assistance.
    I recently purchased a HP Photosmart 2575 all-in-one printer and installed the necessary software, which said it was successfully installed. However, whenever I boot up the G3 I keep getting the following message 'Unable to load the printer drive, open the applications Get Info dialog and increase the preferred memory size. If this does not help try quitting all other applications or reinstalling the printer software.'
    After clicking ok on this message about four times the message goes and I am able to print fine. Just wondering why this is happening. I have increased the memory allocation and also turnt on the virtual memory to see if this makes any difference, but all to no avail. I have also uninstalled and then reinstalled the software to see if this makes a difference, but that didn't help either.
    Any help would be greatly appreciated.
    Thanks in advance
    PS: The printer is connected via ethernet on my router to enable me to print from another machine

    Use Techtool Lite or Trash*Desktop (TD may delete Finder comments )to rebuild your desktop w/extensions off. Does a better job than manually & you avoid all the finger gymnatics. You just have to hold down the shift key to shut off extensions.
    Restart to turn the extensions back on again.
    If you want to rebuild manually, see KB article http://docs.info.apple.com/article.html?artnum=10182 Rebuilding Desktop File and Icon Recovery.

Maybe you are looking for

  • Wrong condition table for condition type

    Hi, I have a big problem during pricing. while creating the sales order the system takes the wrong condition table for the specified condition type (I have created a new condition table and changed the access seq, did the initial load and in customiz

  • My dvd burner wont read  rom or cd's

    My Intel Mac Pro can read OSX install disc n dvd's  but cannot read dvd software install disc's nor any audio disc's... drive specs say it can read all that plus... is there something I have 2 do 2 Mac 2 reconcile this issue?

  • Range partitioning does not work the way I thought it would

    I have a table that is range partitioned by number. The number represents a date field of the form: YYYYMMDDHH24 However, there are extra values on the end of the field that represent an exact datestamp so a record looks like 20071102100000001 What I

  • Missing Sales document

    Hi, While loading delta from 2LIS_11_VAHDR, some of the sales documents are not getting extracted to BW. These records are not present in PSA as well. However if we fill the setup tables for these documents and do a repair full to BW we are able to l

  • Customer function or BADI for Destination storage section (WM)

    Hi guru's I'm looking for a customer function or a badi that allows me to choose the destination storage section (field LTAP-NLBER). There is something that can help me? I look at EXIT_SAPLL03T_001 and  EXIT_SAPML03T_002 but they don't seems to fit m