Driver not specified error

when i explicitly give driver name and connection protocol, the servlet works perfectly.but when i give it in the deployment descriptor web.xml ,its says that driver not specified..
here is my web.xml code and my servlet code.
web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>register</servlet-name>
<servlet-class>registerservlet</servlet-class>
<init-param>
<param-name>driver</param-name>
<param-value>"sun.jdbc.odbc.JdbcOdbcDriver"</param-value>
</init-param>
<init-param>
<param-name>protocol</param-name>
<param-value>"jdbc:odbc:srikanth","scott","tiger"</param-value>
</init-param>
</servlet>
<servlet>
     <servlet-name>response</servlet-name>
     <servlet-class>responseservlet</servlet-class>
</servlet>
</web-app>
servlet code:
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import java.io.*;
public class registerservlet extends HttpServlet
String protocol;
     public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          String driver=getServletConfig().getInitParameter("driver");
          protocol=getServletConfig().getInitParameter("protocol");
          HttpSession session=request.getSession();
          String fname=request.getParameter("fname");
          String lname=request.getParameter("lname");
          String mname=request.getParameter("mname");
          Connection connection=null;
          String sqlquery="insert into register values(?,?,?)";
          try
          Class.forName(driver);
          catch(ClassNotFoundException cnfe)
          System.out.println(cnfe);
          try
          connection=DriverManager.getConnection(protocol);
          PreparedStatement insertstatement=connection.prepareStatement(sqlquery);
          insertstatement.setString(1,fname);
          insertstatement.setString(2,lname);
          insertstatement.setString(3,mname);
          insertstatement.executeUpdate();
          catch(SQLException sqle)
          System.out.println(sqle);     
          finally
          if(connection!=null)
               try
               connection.close();
               catch(SQLException sqle) {}
     //RequestDispatcher rd=getServletContext().getNamedDispatcher("response");
//               rd.forward(request,response);
plshelp me out
thank you

<param-value>"sun.jdbc.odbc.JdbcOdbcDriver"</param-value>I don't think you need quotes around these values.
<init-param>
<param-name>protocol</param-name>
<param-value>"jdbc:odbc:srikanth","scott","tiger"</param-value>
</init-param>I am fairly certain the value for this is incorrect. I'm assuming you're trying to use an oracle db through ODBC, based on the values above. However, I don't think the param-value element's data is correct here. Consult the oracle docs for this.
Hope this helps,
-Scott

Similar Messages

  • XML parsing -  org.xml.sax.driver not specified

    I am attempmtping to parse my first XML document and get the following excpetion when running my prog.
    org.xml.sax.SAXException: System property org.xml.sax.driver not specified.
    I am following the examples in the O'Reilly Java and XML book but suspect I am missing something obvious.
    This is the offending line of code:
    XMLReader xr = XMLReaderFactory.createXMLReader();
    Any help will be appreciated.

    You need to set a property for your class that invokes your SAX handler. This is the property you need to set
    org.xml.sax.driver=???
    Where ??? is the name of the package where your SAXparser lives.
    for example, my sax driver is in:
    org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
    (see code below)
    Also, a sweet reference is Elliot Rusty Harold's "XML processing with Java", which answered all the practical questions I had -- really! And is free, online.
    http://www.ibiblio.org/xml/books/xmljava/chapters/index.html
    This is the code for main() where my xml handler is invoked
    try
    {  SpiderHandler spiderHandler = new SpiderHandler(testSpider);
       XMLReader reader = XMLReaderFactory.createXMLReader();
       reader.setContentHandler(spiderHandler);
       for (int i=4; i<args.length; i++)
       {   FileReader xmlScript = new FileReader(args);
    System.out.println("Input file number "+i+" named "+args[i]);
    // org.xml.sax.XMLReader.parse(InputSource) interface
    // see org.xml.sax.InputSource class      
    reader.parse(new InputSource(xmlScript));
    catch(Exception e)
    {   System.out.println("Error encountered in parsing from main(). \n");
    e.printStackTrace();
    Luck to you! XML is a joy.

  • System property org.xml.sax.driver not specified

    I'm getting the error:
    System property org.xml.sax.driver not specified
    How do I set this property? Why doesn't it find the default?
    I'm using WL6.0
    Imports:
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import org.xml.sax.InputSource;
    import org.xml.sax.XMLReader;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    Code Snippet:
    try
    File stylesheet = new File("LaborDistHours.xsl");
    LaborDistHours ldh = new LaborDistHours("1041410011",
    "01-feb-2000", "30-mar-2000");
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    StringReader reportXML = new StringReader( ldh.getReportXML() );
    document = builder.parse(new InputSource( reportXML ));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    StreamSource stylesource = new StreamSource(stylesheet);
    Transformer transformer = tFactory.newTransformer(stylesource);
    //error occurs here
    DOMSource source = new DOMSource(document);
    StringWriter reportXLST = new StringWriter();
    StreamResult result = new StreamResult(reportXLST);
    transformer.transform(source, result);
    Steven Ford ([email protected])
    "...That we here highly resolve that these dead shall not have died in
    vain - that this nation, under God, shall have a new birth of Freedom - and
    that Government of the people, by the people and for the people shall not
    perish from the earth." Abraham Lincoln

    try to look on xml.apache.org for this error. There should be some pages describing how and why setup this property.
    Basically, these properties defines factories for javax extensions. javax defines interfaces and providers than supply implementations, so for example you can use different XML parsers implementations (we use Xalan for one OC4J container and original ORACLE parser for other). To bind this together they use some defined mechanism like setting system property of including special manifest file etc. (I don't know about details)
    Myrra

  • Publisher not specified error during autorun from cd

    Hello,
    I am trying get rid of the publisher not specified when launching ADOBE PDF Doc from a CD.  Can you please tell me how to get this option removed? 
    The autorun.inf is as follows
    [AutoRun]
    Open=c:\Program Files (x86)\Adobe\Reader 10.0\Acrord32.exe
    shellexecute="Blah.pdf"
    icon=SC_Reader.ico
    label=blah blah..

    I guess I had to try something here. 
    Apparently when you use the autorun.inf you have to call the actual Adobe Acrobat reader program instead of the PDF File itself.  Now I am no longer getting the "Publisher Not Specified" error message but when I click on the Adobe program to run I am now getting "adobe reader core dll failed to load".
    How can I call the Adobe Acrobat program from the source location on the hard drive.  If you load the pdf file on the same CD you get the "publisher not specified" error.  Now I am trying to figure out how to call any of the installed versions of Adobe Reader.  I am currently running Adobe Reader X but some customers might have Version 8 or 9.  Does anyone know how to call any version of Adobe Reader from the autorun.inf file? 
    I called Adobe Support but they didn't answer my question. So maybe they know how to fix a pretty standard error based on the Google Searches. 
    Thanks,
    Calvin Grier, Jr.

  • Why do I get a boot drive not found error only when laptop lid has been closed?

    I've got a HP Mini 210 P/Number: VX818EA with Windows 7 Starter.
    It works fine when turning on after shutdown, but when I've put it to sleep by closing the lid it won't 'wake up', and I get a blank screen. On restarting the computer I get a 'boot drive not found' error, (3F0) which can be resolved by following the steps on this page: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01443463&tmp_task=solveCategory&lc=en&dlc=en&cc...
    I've run disk check etc as suggested on that link, no errors are found, but nothing seems to resolve the problem more than temporarily. Seems odd that this only happens if I close the lid (sleep mode with the lid up is fine, doesn't crash the computer).
    Can anyone advise?
    Thanks

    Hello,
     Very strange, can you go to BIOS and reset the setting " By Default " ?. How did you check the disk ?
    This is an unusual probleme Hp Mini 210 . And notice me after your reset the bios settings.

  • Jabber 4.4 "Graphics card or driver not supported" error on one machine but not another.

    Hi, I looked at the KB document but the email link on it no longer works.
    I have two end-users using Jabber 4.4 on identical machines, same specs, same driver build and OS image. One gets the  "Graphics card or driver not supported" error, the other does not.
    We have two DellOptiPlex 7010's,
    Both had 2 instances of AMD Radeon HD 7470 - they are dual monitor machines.
    In both cases the driver version 8.922.0.0, Driver Date 12/6/2011. This is the latest Dell has on their website.
    On one machine when I run a fresh install for Jabber for TelePresence 4.4 it works fine. But on another the user first gets
    "supportabilitytest.exe has stopped working
    A oriblem cause the program to stop working correctly. Please close the program."
    Then when that's closed out we get:
    "Graphics card or driver not supported!
    New features in this version of Jabber Video are not supported by your computer's graphics driver.
    Update to the newest graphics driver available and run Jabber Video again."
    I can't believe it's just a matter of upgrading the drivers because in this case one machine with identical drivers works.
    I appreciate any insights, thanks !

    Hi ksouthall,
    It sounds like the openGL supported version did not install on the one that is failing.  There isn't much we can do regarding that error.  Best practice is to always upgrade to the latest manufacturer's available driver.  Client requirements are below.
    Windows 7 (32-bit or 64-bit), Vista, or XP (SP 2 or newer), with OpenGL 1.2 or newer.
    For 720p HD video calls, Intel Core2Duo @ 1.2GHz or better.
    For VGA video calls, Intel Atom @ 1.6GHz or better.
    Webcam, built-in or external. You need an HD webcam if you want other callers to see you in HD.
    Broadband Internet connection with a recommended bandwidth of 768kbps upstream and downstream. You need about 1.2Mbps upstream and downstream for 720p HD video calls.
    Regards,
    Jason

  • Drive Not Ready Error Message

    Hello all,
    Today I tried to sync my Ipod and I got an error message that said "Drive not ready". When I turned my ipod back on, it was wiped clean. Itunes was not seeing the ipod, then it was, and finally I was able to restore it. However, when it goes to sync up after being restored, it only gets up to about song 300 until I get this error message:
    itunes.exe - Drive not ready
    The drie is not ready for use; its door may be open. Please check drive \Device\Harddisk1\DR3 and make sure that a disk is inserted and that the drive door is closed.
    Any suggestions?
    Thanks!
    Lisa

    My ipod was dead. It was trying to tell me that its little hard drive was worn out.

  • Driver not capable error. Why?

    I try to access an Oracle 8i DB with the following code:
    <%@page language="java" import="java.sql.*"%>
    <%
    Driver DriverRecordset1 = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection("jdbc:odbc:celsius","UID","PW");
    PreparedStatement StatementRecordset1 = ConnRecordset1.prepareCall("SELECT * FROM CELSIUS.PERSON");
    StatementRecordset1.setQueryTimeout(0);
    ResultSet Recordset1 = StatementRecordset1.executeQuery();
    boolean Recordset1_isEmpty = !Recordset1.next();
    boolean Recordset1_hasData = !Recordset1_isEmpty;
    int Recordset1_numRows = 0;
    %>
    But i always get an error : Driver not capable. Can anyone help.
    BTW how do i register the CLASSPATH for the oracle drivers lcated in the lib subdirectory of my JDeveloper??
    thanks in advance
    alex
    null

    go to project , project properties in main menu .
    click on add button next to java libraries ,
    you will see name of java libraries corresponding to the ones in ur jdev/lib dir

  • Driver not capable error

    Hai,
    I am facing the problem in websphere,
    [4/21/08 12:42:41:296 IST] 00000038 SystemOut O java.sql.SQLException: [TimesTen][TimesTen 7.0.4.0.0 ODBC Driver]Driver not capable
    I configured Websphere Datasource to Timesten database using direct driver, passthrough=3.
    Can you please tell me what is the solution for this problem.

    This is the Java Script calling Stored procedure SP_CHK_TIMESTEN,
    String m_no = "1001";
                   System.out.println(m_no);
                   String m_name = "DBA";
                   System.out.println(m_name);
              stmt = connDB.prepareCall("call SP_CHK_TIMESTEN(?,?,?)");
                   stmt.setString(1,m_no);
                   stmt.setString(2,m_name);
                   stmt.registerOutParameter(3, Types.VARCHAR);     
                   stmt.execute();
                   System.out.println(stmt.getString(3));
                   /* while(rs1.next())
                        System.out.println(rs1.getString(1));
                   catch(Exception e)
                        System.out.println("Exception in mschema "+e);
    And this is the error i am facing in Websphere,
    77ad48d0 PrivExAction W J2CA0114W: No container-managed authentication alias found for connection factory or datasource Data source 1.
    [4/24/08 19:13:37:500 IST] 77ad48d0 SystemOut O Timesten Check2
    [4/24/08 19:13:37:500 IST] 77ad48d0 SystemOut O com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource@52f648c1
    [4/24/08 19:13:37:500 IST] 77ad48d0 SystemOut O 1001
    [4/24/08 19:13:37:500 IST] 77ad48d0 SystemOut O DBA
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O Exception in mschema java.sql.SQLException: [TimesTen][TimesTen 7.0.4.0.0 ODBC Driver]Driver not capable
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O LSIL
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O bank12
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O 192.168.1.81
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O GOKULNATH
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O Timesten Check4
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O Timesten Check5
    [4/24/08 19:13:39:266 IST] 77ad48d0 SystemOut O Timesten Check6
    [4/24/08 19:13:39:281 IST] 77ad48d0 SystemErr R java.sql.SQLException: [TimesTen][TimesTen 7.0.4.0.0 ODBC Driver]Driver not capable
    [4/24/08 19:13:39:281 IST] 77ad48d0 SystemErr R      at com.timesten.jdbc.JdbcOdbc.createSQLException(JdbcOdbc.java:3187)
    [4/24/08 19:13:39:281 IST] 77ad48d0 SystemErr R      at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3321)
    [4/24/08 19:13:39:281 IST] 77ad48d0 SystemErr R      at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3286)
    [4/24/08 19:13:39:281 IST] 77ad48d0 SystemErr R      at com.timesten.jdbc.JdbcOdbc.SQLBindOutParameterString(JdbcOdbc.java:252)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.timesten.jdbc.JdbcOdbcCallableStatement.registerOutParameter(JdbcOdbcCallableStatement.java:233)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.timesten.jdbc.JdbcOdbcCallableStatement.registerOutParameter(JdbcOdbcCallableStatement.java:134)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcCallableStatement.registerOutParameter(WSJdbcCallableStatement.java:611)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at lsi.common.ob.entry.SPAccessManager.getSpValue(SPAccessManager.java:1198)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at lsi.common.ob.entry.XMLHTTPListener.doPost(XMLHTTPListener.java:79)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [4/24/08 19:13:39:391 IST] 77ad48d0 SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)

  • MS Query "Driver Not Capable" Error

    Has anyone experienced the error "Driver Not Capable" when trying to connect
    to a Citadel database from MS Query/Excel? I can get the query to work
    perfectly on one machine, but I installed a fresh copy of MS Office 97 on
    another machine and I get this error every time.
    If anyone knows how to fix this please reply.
    Thanks,
    Geoffrey B. Klotz
    GK Associates, Inc.
    TEL: (805) 523-8700
    FAX: (805) 523-1216
    EMAIL: [email protected]

    Make sure the "Use the Query Wizard..." option is unchecked in the 'Choose
    Data Source' dialog box when you are creating the query.
    Khalid
    "Geoffrey Klotz" wrote:
    >Has anyone experienced the error "Driver Not Capable" when trying to connect
    to a Citadel database from MS Query/Excel? I can get the query to work>perfectly
    on one machine, but I installed a fresh copy of MS Office 97 on>another machine
    and I get this error every time.
    If anyone knows how to fix this please reply.
    Thanks,
    --Geoffrey B. Klotz
    GK Associates, Inc.
    TEL: (805) 523-8700
    FAX: (805) 523-1216
    EMAIL: [email protected]

  • SAP Design Studio ODBC Driver Not Found error while creating HANA connection.

    Hi,
    While creating SAP HANA ODBC connection in Design Studio via Tools > Preference > Application Design > Backend Connection. I am getting error ODBC Driver Not Found. Error screen shot is attached.
    My Design Studio version is 1.3 win 32 bit
    My OS Win 7 64 bit
    I have installed both HANA client 32 bit and 64 bit.
    I have tried creating DSN ODBC connection via "C:\Windows\SysWOW64\odbcad32.exe" and via Control Panel > Administrative tools > Data Sources(ODBC). But it does not detect it either.
    I am not sure what needs to change to let Design Studio know which HANA client driver to use.
    Please help!.

    Hi Rohit,
    This seems to be a known bug with Design Studio. Please see the SAP Note below on this.
    1774480 - Fix launching of ODBC Data Source Administrator
    Regards,
    Abhijit

  • ''Vendor not specified'' error while accesing SXMB_IFR t-code in ECC 6.0

    Hi,
    I have installed ECC 6.0 server & i have selected PI component while installing. Installation is successfully completed. But when iam accessing the SXMB_IFR t-code it is showing the error " Vendor not specified " .
    Please can any body suggest me what to do with this error. I need to apply any patches or any content to the server?.
    Please suggest me.
    Thanks in Advance,
    Babu.

    HI Kishore
    Hope these can help you. i used the same
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c3b830-9a54-2b10-008f-b8547efc040a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20669448-9a54-2b10-89b5-ff50f6de8061
    With these for Post installation
    Logon to the NWA with administrator id and password and Click on the Deploy and Change execute the template installer please refer the following for more information
    Configuration : Go to the following:
    http://service.sap.com/instguidesNW2004s -> Installation -> Technology
    Consultant's Guide. -> Enabling Application-to-Application Processes ->
    Application-to-Application Integration -> Configuration of Usage Type
    Process Integration (PI) -> Template-Based Basic Configuration.
    You can use either the Template-Based Basic Configuration to carry
    out the configuration steps OR you can do the configuration steps
    manually:
    Please see the following link regarding this:
    http://help.sap.
    com/saphelp_nw04s/helpdata/en/61/6e8c42c398173be10000000a155106/frameset.htm
    For the central SLD, further manual steps are required.
    For more information, see SAP Note 939592.
    If you want to use an Integration Server client other than 001
    further manual steps are required. For more information, see SAP Note
    940309.
    Thanks
    Gaurav Bhargava

  • Eclipse plug-in error - driver not found error with DB2

    Hi,
    i am using websphere studio developer and the kodo 3.0 implementation.
    I have set up the kodo plug in and i get an error when i try to create the
    database schema:
    kodo.util.FatalDataStoreException: No suitable driver
    It can't find the DB2 driver. This is the information I have in the kodo
    properties:
    javax.jdo.option.ConnectionDriverName: COM.ibm.db2.jdbc.app.DB2Driver
    javax.jdo.option.ConnectionURL: jdbc:db2:baokodo
    The DB2 driver jar is in the kodo eclipse plugin directory and I am
    referencing this jar file in the plugin xml file.

    The plug in is finding the driver class but it does not like the driver
    for some reason. It tells me no suitable driver found.
    Here is my plugin.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <plugin id="kodo"
         name="%name"
         version="1.0.1"
         provider-name="%provider-name"
         class="kodo.jdbc.integration.eclipse.KodoPlugin">
         <runtime>
              <library name="db2java.jar"/>
              <library name="kodo-jdo.jar"/>
              <library name="jakarta-commons-collections-2.1.jar"/>
              <library name="jakarta-commons-lang-1.0.1.jar"/>
              <library name="jakarta-commons-logging-1.0.3.jar"/>
              <library name="jakarta-commons-pool-1.0.1.jar"/>
              <library name="jakarta-regexp-1.1.jar"/>
              <library name="jca1.0.jar"/>
              <library name="jdbc2_0-stdext.jar"/>
              <library name="jdo-1.0.1.jar"/>
              <library name="jta-spec1_0_1.jar"/>
              <library name="xalan.jar"/>
              <library name="xercesImpl.jar"/>
              <library name="xml-apis.jar"/>
              <library name="jfreechart-0.9.13.jar"/>
              <library name="jcommon-0.8.8.jar"/>
         </runtime>
         <requires>
              <import plugin="org.eclipse.ui"/>
              <import plugin="org.eclipse.core.resources"/>
              <import plugin="org.eclipse.jdt.core"/>
              <import plugin="org.eclipse.jdt.launching"/>
         </requires>
         <extension point="org.eclipse.ui.actionSets">
              <actionSet id="kodo.jdbc.integration.eclipse.actionSet"
                   label="%action-set-name"
                   visible="true">
                   <menu id="kodo.menu"
                        label="%group-label">
                        <separator name="baseGroup"/>
                   </menu>
                   <action id="kodo.removeBuilder"
                        label="%remove-builder-label"
              class="kodo.jdbc.integration.eclipse.RemoveBuilderAction"
                        tooltip="%remove-builder-tooltip"
                        menubarPath="kodo.menu/baseGroup"
                        enablesFor="1">
                   </action>
                   <action id="kodo.addbuilder"
                        label="%add-builder-label"
                   class="kodo.jdbc.integration.eclipse.AddBuilderAction"
                        tooltip="%add-builder-tooltip"
                        menubarPath="kodo.menu/baseGroup"
                        enablesFor="1">
                   </action>
                   <action id="kodo.mapping.build"
                        label="%mapping-build-label"
                        tooltip="%mapping-build-tooltip"
                   class="kodo.jdbc.integration.eclipse.MappingToolAction$BuildSchema"
                        icon="icons/BuildSchemaMappingTool.gif"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="1">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
                   <action id="kodo.mapping.drop"
                        label="%mapping-drop-label"
                        tooltip="%mapping-drop-tooltip"
                        class="kodo.jdbc.integration.eclipse.MappingToolAction$Drop"
                        icon="icons/DropMappingTool.gif"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="1">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
                   <action id="kodo.mapping.refresh"
                        label="%mapping-refresh-label"
                        tooltip="%mapping-refresh-tooltip"
              class="kodo.jdbc.integration.eclipse.MappingToolAction$Refresh"
                        icon="icons/RefreshMappingTool.gif"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="1">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
                   <action id="kodo.enhance"
                        label="%enhance-label"
                        icon="icons/EnhancerAction.gif"
                   class="kodo.jdbc.integration.eclipse.EnhancerAction"
                        tooltip="%enhance-tooltip"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="1">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
              </actionSet>
         </extension>
         <!-- lock our actions into the base perspective -->
         <extension point="org.eclipse.ui.perspectiveExtensions">
              <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
                   <actionSet
                        id="kodo.jdbc.integration.eclipse.actionSet">
                   </actionSet>
              </perspectiveExtension>
         </extension>
         <!-- put our extensions in -->
         <extension point="org.eclipse.ui.preferencePages">
              <page name="%preference-name"
                   class="kodo.jdbc.integration.eclipse.KodoPreferencePage"
                   id="kodo.jdbc.integration.eclipse.preferences.KodoPreferencePage">
              </page>
         </extension>
         <!-- lock in our eclipse-generated xml editor -->
         <extension point="org.eclipse.ui.editors">
              <editor name="%mappingeditor-name" extensions="mapping"
                   icon="icons/mapping.gif"
                   contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
                   class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
                   id="kodo.jdbc.integration.eclipse.editor.XMLEditorMapping">
              </editor>
              <editor name="%editor-name" extensions="jdo,schema"
                   icon="icons/metadata.gif"
                   contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
                   class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
                   id="kodo.jdbc.integration.eclipse.editor.XMLEditor">
              </editor>
         </extension>
         <!-- lock in our "view" -->
         <extension point="org.eclipse.ui.views">
              <view id="kodo.jdbc.integration.eclipse.KodoView"
                   name="%view-name"
                   category="org.eclipse.jdt.ui.java"
                   icon="icons/kodosmall.gif"
                   class="kodo.jdbc.integration.eclipse.KodoView">
              </view>
         </extension>
         <!-- lock in our builder -->
         <extension point="org.eclipse.core.resources.builders"
              id="kodo.jdbc.integration.eclipse.EnhancerBuilder"
              name="%builder-name">
              <builder>
                   <run
                   class="kodo.jdbc.integration.eclipse.EnhancerBuilder">
                   </run>
              </builder>
         </extension>
         <!-- put our view onto the bottom bar -->
         <extension point="org.eclipse.ui.perspectiveExtensions">
              <perspectiveExtension
                   targetID="org.eclipse.debug.ui.DebugPerspective">
                   <view id="kodo.jdbc.integration.eclipse.KodoView"
                        relative="org.eclipse.debug.ui.ExpressionView"
                        relationship="stack"/>
                   <viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/>
              </perspectiveExtension>
         </extension>
    </plugin>
    Here is the kodo.properties file:
    # Kodo JDO Properties configuration
    # To evaluate or purchase a license key, visit http://www.solarmetric.com
    kodo.LicenseKey: xxxxxxx
    javax.jdo.PersistenceManagerFactoryClass:
    kodo.jdbc.runtime.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionDriverName: COM.ibm.db2.jdbc.app.DB2Driver
    javax.jdo.option.ConnectionUserName: db2admin
    javax.jdo.option.ConnectionPassword: db2admin
    javax.jdo.option.ConnectionURL: jdbc:db2:baokodo
    javax.jdo.option.Optimistic: true
    javax.jdo.option.RetainValues: true
    javax.jdo.option.NontransactionalRead: true
    # By default, Kodo stores object-relational mapping information in .mapping
    # files. Other common options are storing the information in a special
    # database table Kodo creates or as extensions in JDO metadata. Uncomment
    # one of the properties below to use one of these options. See the
    reference
    # guide for a full list of mapping factories to choose from.
    #kodo.jdbc.MappingFactory: db
    #kodo.jdbc.MappingFactory: metadata
    # Kodo provides a management / monitoring capability. It can be enabled
    # locally (in the same JVM) by setting the kodo.ManagementUI property to
    # "gui". Remote management / monitoring can be enabled by setting the
    # kodo.ManagementServer property, and by running the remotemanagementtool
    # in another process.
    # kodo.ManagementUI: gui
    # kodo.ManagementServer: true(host="localhost",port=1234)
    Stephen Kim wrote:
    Can you post your plugin.xml? We have tested against WebSphere Studio 4
    and 5.
    TD wrote:
    I am specifying a properties file in the preferences pane.
    Still not sure why this doesn't work...
    Have you been able to get it to work in websphere studio.
    Stephen Kim wrote:
    The plugin does not use any kodo.properties by default. You have to
    configure it through the Preferences pane (which you can point to your
    kodo.properties file)
    TD wrote:
    Hi,
    i am using websphere studio developer and the kodo 3.0 implementation.
    I have set up the kodo plug in and i get an error when i try to create the
    database schema:
    kodo.util.FatalDataStoreException: No suitable driver
    It can't find the DB2 driver. This is the information I have in the kodo
    properties:
    javax.jdo.option.ConnectionDriverName: COM.ibm.db2.jdbc.app.DB2Driver
    javax.jdo.option.ConnectionURL: jdbc:db2:baokodo
    The DB2 driver jar is in the kodo eclipse plugin directory and I am
    referencing this jar file in the plugin xml file.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Hibernate Driver not found error

    Hi, I downloaded the hibernate tutorial examples:
    [http://docs.jboss.org/hibernate/orm/4.1/quickstart/en-US/html/pr01.html]
    They worked fine using the H2 in memory database. However, I tried to change the hibernate-tutorial-hbm Maven project to connect to Oracle 11g Express Edition. These were the changes I've done:
    1. To add ojdbc14.jar as a Manven dependency to the .pom configuration file;
    2. To create the entity Event in my Oracle XE database;
    3. To reset the following hibernate properties:
    <property name="connection.driver_class">oracle.jdbc.OracleDriver</property>
    <property name="connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
    <property name="connection.username">system</property>
    <property name="connection.password">1234</property>
    After doing these changes, I tried to run Maven "test" target, but an exception was thrown:
    Test set: org.hibernate.tutorial.hbm.NativeApiIllustrationTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.421 sec <<< FAILURE!
    testBasicUsage(org.hibernate.tutorial.hbm.NativeApiIllustrationTest) Time elapsed: 1.376 sec <<< ERROR!
    org.hibernate.exception.JDBCConnectionException: Could not open connection
    at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131)
    at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
    at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304)
    at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)
    at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)
    at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)
    at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1363)
    at org.hibernate.tutorial.hbm.NativeApiIllustrationTest.testBasicUsage(NativeApiIllustrationTest.java:61)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:243)
    at junit.framework.TestSuite.run(TestSuite.java:238)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
    at $Proxy0.invoke(Unknown Source)
    at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
    at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
    Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:xe
    at java.sql.DriverManager.getConnection(DriverManager.java:604)
    at java.sql.DriverManager.getConnection(DriverManager.java:190)
    at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:192)
    at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:278)
    at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)
    ... 30 more
    I'm investigating three possible mistakes:
    1. Classpath
    2. Driver class name
    3. Url connection
    Unfortunately, I couldn't fix it yet.
    What's really wrong?
    PS. I'm using Ecplise Indigo
    Edited by: fadc80 on 20/04/2012 08:29
    Edited by: fadc80 on 20/04/2012 08:31

    fadc80 wrote:
    1. To add ojdbc14.jar as a Manven dependency to the .pom configuration file;odjbc14 to connect to Oracle 11g? Try ojdbc6.
    I'm investigating three possible mistakes:
    1. Classpath
    2. Driver class name
    3. Url connection
    Unfortunately, I couldn't fix it yet.
    What's really wrong?Something odd, as the hibernate configuration and the error report don't match.
    <property name="connection.driver_class">oracle.jdbc.OracleDriver</property>and
    org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver oracle.jdbc.OracleDrive class not foundNotice the diference there?

  • Trying to pair IPAD2 with Windows 7 - Driver Not Found error

    Hi, I have the Ipad2 & Iphone4 and am trying to pair them with my windows 7  pc.32 bit I get an error message that the bluetooth periphal driver is not installed nor can it be found.   I have wifi but not 3G on Ipad2. I have 3G on Iphone 4 and my laptop can use the iphone4 3G to connect to internet if my comcast goes down. I  do have the capability to use my 3G service of my Iphone to tether to my Ipad2. I do not understand why I am getting this bluetooth error nor can I find a way to resolve.

    After searching through this forrow i found this
    http://support.microsoft.com/kb/946414
    After running the Fix-It, i had no problem installing iTunes

Maybe you are looking for