JDBC connector help

Ok here we go,
I want to work with MySQL and JSP from Dreamweaver . I installed TOMCAT 5.0 and everything is working fine. But... I can't connect to my MySQL. I have downloaded the connector from MySQL, Install it and here is my
CLASSPATH : C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jsp-api.jar;C:\Program Files\MySQL\MySQL Server 4.1\mysql-connector-java-3.1.5-bin.jar;
When I try to connect I get the no suitable driver message. Can anybody help!!
Thanks.
Kriegerman

It would help others to help you if you were to post the relevant code and specify the line of code that is generating the exception. This is because the message "No suitable driver" does not necessarily mean that the driver class could not be loaded. Indeed it may be that your URL is incorrect.

Similar Messages

  • Please Help me on BI Java SDK using BI JDBC Connector

    Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour. Please check out the following code ........
    ManagedConnectionFactory mcf;
    IConnectionFactory cf;
    IConnectionSpec cs;
    mcf = new JdbcManagedConnectionFactory();
    cf = (IConnectionFactory) mcf.createConnectionFactory();
    cs = cf.getConnectionSpec();
    ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
    Enumeration propnames = rbLocal.getKeys();
    while (propnames.hasMoreElements())
    String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
    cs.setPropertyValue(key, rbLocal.getString(key));
    // Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
    IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs);
    IBIRelational rel = connection.getRelational();
    IBIQuery query = rel.createQuery();
    String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
    Thanks SreeKanth

    Well, I added two lines in OC4J.cmd
    set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
    set JAVA_HOME=C:\JAVA\JDK7u7
    before
    set J2EE_HOME=%ORACLE_HOME%\j2ee\home
    and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
    Sam

  • Can't connect to external Oracle DB with JDBC connector

    Hello guys,
    I had failed to connect to connect external Oracle  via JDBC connector .
    Could you please help me to resolve the problem ?
    Backgroud:
    We need to connect the external Oracle DB with JDBC connector, because BI need to connect to the target Oracle. If the JDBC connector suceed, BI will create a UD which use the datasource
    we create in Visual admin to connect to the external Oracle DB.
    Environment:
    Our EP version is NW04S SP17 , OS is AIX .
    The target Oracle DB version is 10g(10.1.0.2.0, 64bi).
    Configuration procedure :
    1. Import Oracle driver "ojdbc14.jar" and create new driver which named "Oracle "  under
    JDBC Connector ->Run time ->Driver  in Visual Admin.
    2. Create datasource "Mydatasource" under JDBC Connector ->Run time ->Data Source,
    Name : Mydatasource
    Driver Name : Oracle
    JDBC version: 2.0(with XA support)
    JDBC compliant:
    Object Factory :oracle.jdbc.pool.OracleDataSourceFactory
    DataSource Type: ConnectionPoolDataSource
    *CPDS class name :oracle.jdbc.pool.OracleConnectionPoolDataSource
    Additional:
    Additional Properties:
    DatabaseName:LPAR8TEST
    DriverName:oracle.jdbc.OracleDriver
    Password: *****
    PortNumber:1521
    ServerName: 10.1.16.208
    URL :jdbc:oracel:[email protected]:1521:LPAR8TEST
    User:IMPL
    Connectoin Pool:
    Initial Connectons: 1                                         Expiration:  (check)
    Maximum Connections: 25                                  Connection Lifetime :600
    Maximum time wait of connection : 60                  Cleanup Thread : 200
    Default Connectoin Isolaton :Default
    SQL Engine:
    Open SQL
    3.Create Connector :
       Copy the standard connector :SDK_JDBC to SDK_JDBC_Oracle,
      Resource Adopter:
      Loader References:
      Add "libray:Oracle" .
    Managed Connection Factory:
    Configuration Property:
    DriverName:oracle.jdbc.OracleDriver
    Password: ****
    User:IMPL
    URL: jdbc:oracle:[email protected]:1521:LPAR8TEST
    All fo my configuration had been listed.
    And I had created JCO RFC : JT-BIDEV_PORTAL_BD1 , and created RFC connection with SM59 in BI.
    Please give me some suggesiton.
    Thanks.
    Louis

    When I try to start datasoure "Mydatasource" , it display error, error detail:
    java.rmi.RemoteException: com.sap.engine.services.dbpool.exceptions.BaseRemoteException: Error during start of application "sap.com/Mydatasource". [id = StartupError]
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:608)
    Caused by: java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "CGNPC".
         at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
    Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "Mydatasource".
         at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
    Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
              u2026.
    When I try to test JDBC with URL : http://jt-pldev:50000/TestJDBC_Web/TestJDBCPage.jsp,
    First I choose connection name "SDK_JDBC_Oracle" .
    If I click "Check Connectons", it display :
    500   Internal Server Error
    SAP J2EE Engine/7.00
      Application error occurred during request processing.
      Details:
      java.lang.NoClassDefFoundError: com.sap.ip.bi.sdk.dac.connector.odbo.impl.Connection (initialization failure)
    Exception id: [001A64A86F2C006B000004C40010302A000469C74E86A096]
    If I click "Slecton Connection", it display:
    500   Internal Server Error
    SAP J2EE Engine/7.00
      Application error occurred during request processing.
      Details:
      com.sap.engine.frame.core.load.SAPNoClassDefFoundError: javax.resource.Referenceable
    Exception id: [001A64A86F2C0063000004C00010302A000469C74FA2BB59]

  • Problem using JDBC Connector

    Hi,
    I have problem connecting to MS SQL Server using the JDBC Connector. I have 2 main questions, one is on the DQE and the other is on user mapping.
    I have a created a JDBC System Landscape using the portal component com.sap.portal.systems.jdbc.
    Following are the properties I have set and also I have listed where I am finding propblems.
    - User Management
    User MApping Type : Admin, User
    - Connection Properties
    Connection Timeout: 1000
    Connection URL: jdbc:microsoft:sqlserver://10.7.1.5:1433;DatabaseName=SAPEP
    Driver Class Name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
    (Here I do not know whihc driver to use. Do I have to use the above one or this one com.microsoft.jdbc.sqlserver.SQLServerDriver. Anyway, both of them Did not work)
    - Distributed Query Engine (DQE) (What is this, and what Parameters I need to pass here)
    Also, While doing the user mapping, we need to provide the username and password. What username and password is that? Is it the DB user name and Password?
    Any help will be well appriciated.
    Thanks and regards,
    Babu

    Hi Babu,
    Here's what's needed in the system (examples are from my system):
    CONNECTION PROPERTIES:
       -- Connection URL: jdbc:sap:sqlserver://p031617:1433;DatabaseName=pubs
       -- DRIVER CLASS NAME: com.sap.portals.jdbc.sqlserver.SQLServerDriver
       -- VALIDATE CONNECTION: yes
    USER MANAGEMENT:
       -- USER MAPPING TYPE: admin, user
    DQE: Put in admin user/password (DQE is for distributed queries between multiple, heterogeneous databases, but you still need to use it for simple queries)
    Create an alias
    Go to User Administration and set user mapping for the admin user
    Test connection
    Each user that access the system will need user mapping.
    Hope this helps.
    Daniel

  • JDBC connector problem

    Hi All,
    I installed SAP BW 3.5 by following Installation Seqence in the mySAP ERP 2004 SR1 master guide,
    there are two servers under Visual Administator -> Cluster -> sapsid: one is "Server 0 10_37758"(I think this is Central Instance), another is "Server 0 12_93726" (it maybe dialog instance). The first server is empty, and I can see JDBC Conncetor, Connector Container and etc.
    In the runtime tab of JDBC Connector, the Drivers only inculdes System_Driver, is it correct?
    and the status of the connector jdbc, odbo, smla and sapq in the Connector Container, Connector 1.0 display as sap.com/com.sap.ip.bi.sdk.dac.connector.sapq/null
    sap.com/com.sap.ip.bi.sdk.dac.connector.xmla/null
    sap.com/com.sap.ip.bi.sdk.dac.connector.odbo/null
    sap.com/com.sap.ip.bi.sdk.dac.connector.jdbc/null
    and they are not activity. what problem are these?
    I tried to add JDBC Driver in JDBC Connector, the problem can't be fixed, please help me.
    I install all ECC IDES 5.0 and java components and database on same host which is windows 2003 with Oracle9i

    Hi there,
    Do i have to to put mysql.connecto.jar to the
    j2dk\lib\ext? I have not copy the files maybe this is
    a problem with the connector. What do you think?Good God, no. Your code does not belong there.
    You have to add the MySQL Connector JAR to your CLASSPATH when you run. If you're running on the command line, that means using the -classpath option on java.exe. If you're using an IDE, that means adding the JAR to your CLASSPATH using the mechanism provided by the IDE. If you're using an app server, that means packaging the JAR with your app.
    %

  • Where i will get  the .jar files for JDBC connector for MSSQL Server

    Hi,
    i am trying to configure the JDBC connector for the MSSQL server. For this we need to add the .jar files for MSSQL Server. Can any body tell , where i will will get the jar files to finish this connection.
    Database version is MS SQL Server 2000
    Portal version is       Portal7.0 sp9
    Regards
    vijay

    Hi Vijay,
    If you are looking for the exact steps as to how we can configure the JDBC Connector for accessing the MS SQL Server, have a look at this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10
    Follow the steps till page 12 of this doc.
    Bye
    Ankur
    Do reward points for helpful as well as solved answers!!

  • SAP Portal JDBC Connector for Oracle

    Hi forum:
       hi need to configure the DATABASE URL for make the connection with JDBC Connector to Oracle.
       Somebody knows this url ?
    thnks
    Joshua

    HI,
    DB URL for oracle
    jdbc:sap:sapdb://localhost/TST?timeout=0
    For DB configuration refer this link
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm">DB CONFIGURATION</a>

  • Connection Properties for the BI JDBC Connector

    Hi
    I am trying to configure BW 3.5 java component. In the Connection Properties for the BI JDBC Connector, there are four required properties. (UserName, Password, URL and DRIVERNAME) What should I enter for the URL and DRIVERNAME? I am using Oracle920.
    Please help,
    JW

    I found this info at
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    Oracle is replacing the SID mechanism for identifying databases with a new services approach. This has been available in the database since 8.1.7. JDBC now supports services in the connect URL. 
    The basic format of a service URL is:
    jdbc:oracle:thin:[<user>/<password>]@//<host>[:<port>]/<service>
    jdbc:oracle:oci:[<user>/<password>]@//<host>[:<port>]/<service>
    Examples:
    jdbc:oracle:thin:@//myserver.com/customer_db
    jdbc:oracle:oci:scott/tiger@//myserver.com:5521/customer_db

  • BI JDBC Connector

    I am evaluating the option of using BI JDBC connector to connect BI7 to a different source system. I would like to know the application requirements for that.What are the tools that needs to be installed and where?
    A Step by guide for configuration steps in JDBC connector and steps in BW would be of great help too.
    I primarily need the tools require to enable UDI using JDBC Connector.
    Thanks and regards
    Ramesh

    Hi,
    Check these,
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/e35b3315bb2d57e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/93/8aea385252494d9b1eb92e0b7f1bad/frameset.htm
    Hope this helps...

  • Configuring JDBC connector with my Tomcat server

    I realize this may be a dumb question, but I'm having trouble configuring my JDBC connector with my tomcat server. I'm trying to run a simple servlet that will access mysql database. I am almost certain its throwing an exception on the line:
    Class.forName("com.mysql.JDBC.Driver");
    I have a feeling the tomcat class path isn't finding the connector jar file.
    Any help would be greatly appreciated.
    Brian

    I am almost certain its throwing an exception on the line:
    Class.forName("com.mysql.JDBC.Driver");If it's a ClassNotFound exception or the like, then yes. Post the exception and stack trace if you need confirmation of this.
    I have a feeling the tomcat class path
    isn't finding the connector jar file.That's what I think too. Did you ensure that the MySQL driver JAR file was in the classpath?
    It will need to be in common/lib under Tomcat, or WEB-INF/lib under your application.
    For a more portable application you should use JNDI to obtain database connection resources, in which case you would want the JAR to be under common/lib.

  • JDBC Connector service - lookup fails

    Hi all,
    We have EP6 SP14 on Linux. I am trying to access some data from external database SQL Server 2000. I tried two different sets of drivers in Visual Admin --> Services --> JDBC Connector  but the context lookup fails.
    <b>Set 1:</b>
    msbase.jar,msutil.jar, mssqlserver.jar
    JDBC 1.x compliant
    Driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver
    also tried com.sap.jdbc.sqlserver.SQLServerDriver
    URL: jdbc:microsoft:sqlserver://sqlser2:1433;databaseName=repdb
    <b>Set 2:</b>
    P9sqlserver.jar, P9base.jar, P9util.jar
    JDBC 1.x compliant
    Driver class:   com.sap.portals.jdbc.sqlserver.SQLServerDriver
    URL:jdbc:sap:sqlserver://sqlser2:1433;databaseName=repdb
    <b>The connection works fine if use the traditional way</b>
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    conn  = DriverManager.getConnection("jdbc:microsoft:sqlserver://dbsql2:1172","<userid>","<passwd>");
    (Note no db name here)
    Can you help me let me know where I am going wrong. Thank you in advance.
    Regards,
    Subu.

    hi,
    The problem is with driver class and the URL.
    pliz check out the link.
    http://www.bwexpertonline.com/downloads/Schroeder0604.doc
    regards
    mujjammil

  • FAST JDBC Connector with documents/attachments

    Hi, we are using FAST database connector for crawling/indexing a Oracle database, from the docs we didn't find sample of crawling documents stored in Oracle. We created a Python script to do that but the problem is, only one document can be crawled/indexed
    to FAST, and we are using DATA property to store.
    I'd like to know is how to crawl documents/attachments in JDBC connector by leveraging document processor and how we map to FAST managed properties?
    Thank you.

    Hi JOSHUA,
    According to your description, my understanding is that you want to use FAST JDBC connector for crawling/indexing documents/attachments stored in an Oracle database.
    You can use the following string to connect to the Oracle database:
    jdbc:oracle:thin:@<YourServerHere>:1521:<YourDataBaseNameHere>
    Where:
     •<YourServerHere> is the Oracle server host name
     •<YourDatabaseNameHere> is the name of the source database that you are connecting to
    More information, please refer to the link below:
    http://technet.microsoft.com/en-us/library/ff383302(v=office.14).aspx
    Here are some articles for you to take a look at:
    http://www.sharepointboco.com/fast-search-for-sharepoint-2010-and-jdbc-connector/
    http://www.youtube.com/watch?v=wWCF66hhSXo
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • JDBC Connector service in visual administrator

    Hi All,
    JDBC Connector service in visual administrator is not getting start or stopped.
    I checked in Visual admiistrator ,then in JDBC Connector. On right click to JDBC Connector, Start or stop options are disabled.
    It may be because of wrong configuration,please provide me the solution for this  or provide me the configuration settings for JDBC Connector, so that i could recheck.Please tell how to start JDBC Connector from visual administrator services.
    Points will be awarded.
    Thanks & Regards,
    Aman.

    Hi Aman,
    > i am also not able to start/stop data sources that i have created manually
    On such datasources, for each one there is one .xml entry (the DS definition file)and below that, the datasource settings can be reached. If you mark the first one - the xml definition file - you get a blank screen right-hand, but at the same time, the "Stop" button (tooltip: "Stop Selected Standalone Application"; or the corresponding "Start" button, depending on the DS state) gets clickable.
    This does not hold for the preconfigured default DS (which also has no xml entry).
    Hope it helps
    Detlev

  • Visual Admin - JDBC connector

    Hi
    Can anyone help me in configuring JDBC Connector -> Data source for Oracle.
    Regards,
    Murali.

    Hi,
    Here are the steps,
    1. Create a driver (say, refer to it as "ORACLE"), and include the classes12.zip file in it.
    2. Create a DataSource ("ORACLEDS") and configure it like this:
    a. Add an alias ("ALIAS")
    b. Driver Name = ORACLE
    c. JDBC Version = 2.0 (with XA support)
    d. Object Factory =
    e. DataSource Type = XADataSource
    f. XADS Classname = oracle.jdbc.xa.client.OracleXADataSource
    g. In the additional properties pane, add 3 properties:
    i. Password = ~PWD to your Oracle server~
    ii. User = ~Username to your Oracle server~
    iii. URL = jdbc:oracle:thin:@~IP:PORT:ALIAS~
    h. SQL Engine = Vendor SQL
    Regards
    Srinivasan T

  • About autostart jdbc connector service

    Hi experts,now i want to auto initialize the db in jdbc connector
    service not log on to visual admin.how can i get it?thanks

    hi,
    folow this link where u can find the JDBC Connection with an Example for enabling the connection to the SQL Server and using the methods .
    [http://help.sap.com/saphelp_nw04/helpdata/en/14/0b743cdcf47b4ee10000000a11405a/frameset.htm]
    thanks and regards
    Fistae

Maybe you are looking for

  • Open tabs from last session lost - intermittently

    Don't know whether it's a bug or me but tabs left open from last session are lost - intermittently - when I re enter Firefox mobile on my Samsung Galaxy s3. I'll often leave 5 or so showing on the tab counter in the top right hand corner of the brows

  • Counter in Query

    Hi all, I need to create a counter that counts the sales order items per sales order. For example Sales Order 00001 has 5 line items. I need the counter to show "5" in all five rows for that sales order. I have Sales Order Number & Sales Order Item i

  • Multi Level BOm is not working in SAP afs

    Hi Experts,          I am facing issue in MRP.For multi level bom's ,Requirements is not getting generates.Is there any settings is there to active multi level bom for afs materials. please suggest solution Thanks and Regards, Deepika.

  • Probably Stupid Question

    Hello all, what I would like to ask is ... on my G5 ... can I install both FCP5 and FCP HD and use both?? Thanking you in advance!

  • Problems after installing 10.6

    I just installed 10.6, and now my Time Machine keeps powering off, and I have no Internet.  I have no idea how to fix this issue.  Please help, if you know what to I..