Unable to load sqljdbc4.jar driver in PI 7.4

Hi all, I'm facing an issue while loading the jdbc adapter (sqljdbc4.jar) with the SUM in PI 7.4.  I downloaded the driver from Download Microsoft JDBC Driver 4.0 for SQL Server from Official Microsoft Download Center and followed the steps in note 1138877 - How to Deploy External Drivers JDBC/JMS Adapters, for the deploy.
Checking note 1829286 - PI: How to check which drivers are installed for the JMS and JDBC Adapters, I see that the loaded driver is not the one I'm trying to load.
The SDA I used to load the driver is the SAPXI3RDPARTY06_0-20009965 (com.sap.aii.adapter.lib.sda)
Anyone faced this issue before?
Thanks in advance,
Jesus Rodriguez

HI,
Is your JDBC adapter shown in communication channel?
I have deployed JDBC driver(sqljdbc4.jar) according tohttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b4a020-4ae6-2c10-5a95-fed4ad9a4b60?QuickLink=index&… .
Driver deployed successfully and I have checked it in folder \usr\sap\xxx\DVEBMGS30\j2ee\cluster\bin\ext\com.sap.aii.adapter.lib\lib and it's found ok. But this adapter type  not showing in Communication Channel only RFC and SOAP are showing there. I have restarted the server also.

Similar Messages

  • 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.

  • Unable to load time source driver sntp

    Hi ,
    I added sntp client script in ni-rt.ini file. but i am getting the following error. Do i have to install something. if sowhat is the driver needs to be installed.
    "unable to load time source driver"
    thank you,
    Ranjith

    Hi,
    I need to sync RT PXI chassis time with remotely located unix PC which is running NTP server.
    Any help would be appriciated.
    Ranjith

  • 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

  • Unable to load the jdc driver

    Hi,
    I am using mckoi, but I don't succed in loading the jdbc driver:
    Class.forName("com.mckoi.JDBCDriver");This line throw a ClassNotFoundException. But:
    cd $CLASSPATH; ls | grep mkjdbc.jar
    mkjdbc.jar
    So the jar file is in the CLASSPATH.
    I try also:
    import com.mckoi.JDBCDriver;But when it compile:
    javac ConnectToServerDemo.java
    ConnectToServerDemo.java:2: package com.mckoi does not exist
    import com.mckoi.JDBCDriver;
    Something strange:
    java -cp mckoidb.jar com.mckoi.tools.JDBCQueryTool -u "admin_user" -p "aupass00"
    It's work very well !
    I don't understand and I have no idea.
    It will be fine if someone can help me.

    You should follow duffymo's advice and explicitly pass classpath on the command line.
    However, classpath environment variable can work. It appears you have the directory in which the jar file resides in the classpath. Java won't find JARs automatically, you have to include the name of the JAR file explicitly.
    E.g., if your jar is located in "/mydir" and your classpath environment variable contains an entry "/mydir" change it to "/mydir/mckoidb.jar", or better yet add that in addition to "/mydir" so classes are also found.
    Tim

  • Unable to load "ejb.jar" to database

    Hi All,
    I am trying to load ejb.jar to database by using the following syntax.
    loadjava  -verbose -force -resolve -oracleresolver -user <uname>/<password>@<server>:<port>:<sid>  -t  ejb.jar 
    But it is showing error :
    ksh: loadjava : not found.
    In the server when i type loadjava it is showing the options, means loadjava will work i think. Is there any configuration needs to change to load ejb.jar to database ?
    Machine details :
    AIX 64 Bit 5.3
    DB : Oracle 11g 11.2.0.2.0
    Appreciated your help in this.
    Thanks,
    Prakash

    Prakash wrote:
    Hi,
    I did the following
    export PATH=$ORACLE_HOME/bin
    Then
    loadjava  -verbose -force -resolve -oracleresolver -user <Uname>/<Pwd>@<Server>:<Port>:<Sid>  -t  ejb.jar
    But still i m facing the same issue.
    Even the .profile also we have defined : export PATH=$PATH:$ORACLE_HOME/bin/
    Can you please point me what is missing in the above steps i followed.
    Thanks,
    Prakash
    PLEASE use COPY & PASTE so we can see exactly what you do & response from OS/Oracle
    what is "-t" arguement?
    bcm@bcm-laptop:~$ loadjava
    loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grants] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-nativecompile] [-resolver resolver] [-schema schema] [-synonym] [-thin] [-tableschema schema] [-user user/password@database] [-verbose] [-edition edition] classes..jars..resources..properties...
    bcm@bcm-laptop:~$

  • Unable to load bluetooth device driver to xfer files

    On W500 and T61P attempt to connect a Samsung SGH T809 phone using bluetooth. Device is seen at both PC and phone using bluetooth. Win 7 OS. When it connects it loads the Modem, and other device drivers but fails to load one of the peripheral device drivers. Windows Update fails to find missing driver. Help says incompatible with level of Operating System.
    Went to Lenovo site and downloaded latest bluetooth drivers. All but one of them load. Not able to do any file transfers from the phone although did send an image file (jpeg) to the phone. Could not find it after it was sent. Seems to be a PC and not a phone problem. What gives?

    I'm having the same problem on my W500 running Win 7 Pro/64-bit..  I have also updated the drivers per the Lenovo  support site.   My PC recognizes my Apple iphone 5 have successfully paired them, but we have the dreaded yellow exclamation flag reflecting the fact that there are no drivers for file transfer (shows also in Device Manager).  Able to play music from iphone to PC, but not able to transfer files.
    This also happens when I attempt to pair with another bluetooth equipped PC, so obviously the problem is not with the phone.  Trouble shooter shows "The driver for VOB instantDrive Controller is not installed"
    Any suggesstions?  Is this simply an unsupported feature?

  • Unable to load oracle.jdbc.driver.OracleDriver class

    i want to connect my java application with oracle database but i m getting an error -"class not found exception oracle.jdbc.driver.OracleDriver " which is written in Class.forName() to register the driver for DriverManager.
    plz help me..

    This is an old class, not included with the JDK anymore. It was made obsolete by
    DataSource which is a connection pool and not a single connection.

  • Unable to load hardware monitor driver

    Often, when booting, I get this message after logging in to XP and the pc reboots, sometimes it needs several tries. Is that Core Center? Or my 9700 Pro?
    Board is 875 P Neo with Bios 1.2.
    In the system error log I find errors from boot time (category 102, event 1003). What could that be? Microsoft thanks for asking, but has no further information  X(
    Any info appreciated!
    Thanks,
    Hornebom
     

    It definitely is a error message from Core Center (latest version).
    Hornebom

  • 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?

  • Legacy prog installs QT2.12 & fails on Vista; prog with QT7: unable to load

    A program installs QT 2.12 on Vista, but fails with the message
    Quicktime of Windows has stopped working.
    If I install QT7, the .MOV files can be played individually, but the program states:
    Unable to load external movie driver for Intro1st.mov.
    Possibly the driver is missing or there is no enough memory.
    There is a Gb of free memory for Vista. The software is from 1999.
    What can I do to enable this to work either with
    (a) QT7; or
    (b) QT2.12 with QT7 installed too; or
    (c) QT2.12 without QT7 installed.
    I am willing to give a USD $50 voucher to Amazon for the first respondent with a solution to option (a), $30 for option (b) and $10 for option (c). Only one gift in total is available. I will give people time to arrive at the best solution, namely option (a), before deciding on receives the gift.
    Thank you.

    You can't install QuickTime version 2 on your machine. I can't install the same >Mac version on my OS.
    Are your files found on a CD?
    QT2.12 is provided on the CD in the form of a setup executable file.
    Is the software running from a CD?
    I have copied all files to the notebook for ease-of-use, but usually it would run from the CD.
    After posting my message, I checked with my desktop (running XP SP2), and observed that I got the main software runnning with QT5 installed. Tried this on Vista, but the same error message occurs as for QT7.
    Does that CD try to do the QuickTime version 2 install?
    It tries to do it itself with the setup program for the application.
    Also, I have tried to do it myself.
    You could probably navigate through the CD to find the QuickTime files on it and >open them directly or drag them to your desktop to duplicate them.
    I will try copying them from another computer, but wouldn't it be necessary to set up the registry or something to let Vista know of its existence?

  • 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/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)

  • 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 :)

  • 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?

Maybe you are looking for