ERROR IN CONNECTING TO B1 DATABASE

Hello,
I am trying to connect to SAP B1  database from an add on so to post a journal entry. I have not been able to and wondering what could be wrong on connecting to the database?

Hi,
The question is not clear, you try to add through DI API or through SAP it self .
please check the link
oCompany.Connect takes a very long time.
and Check you system. the Server name or Ip is correct or not .
this also can be a problem.
Regards,
Mayank Shah

Similar Messages

  • Error while connecting to the database from a JSP Page

    Hi,
    I am using a simple JSP page which is based on the sample JSP pages from OTN.
    When I try to connect to my database using the following code:
    InitialContext ic = new InitialContext();
    OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
    m_connection = ds.getConnection();
    I get the following error:
    Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
    Does anybody know wht this is happening?
    Any help would be appreciated
    FRank

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

  • "no ocijdbc11 in java.library.path" error when connecting a TNS database co

    Hi
    "no ocijdbc11 in java.library.path" error when connecting a TNS database connection
    I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
    I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
    I've also tried most of the suggestions in various threads.
    Does anyone know what exactly causes this error?
    eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
    Can anyone explain to a newbie at db connections what I should do?
    I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
    This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
    Thanks

    When you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
    I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
    Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
    theFurryOne

  • Error while connecting to  Auxiliary Database

    Hi
    I am practicing Cloning the database on my Personal Computer. I am following the steps outlined here
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    But while connecting to Auxiliary database I get this error.
    RMAN - 04006 Error from auxiliary database: ORA 12514 TNS: listener does not currently know of service requested in connect descriptor
    RMAN - 00554 initialization of internal recovery manager package failed...
    what is the solution for this?
    This is 10g database and my PC has Opensuse 11 OS
    I think the problem is in configuring listener. But I am following the instructions given in that page....

    You probably skipped this part
    Next add the appropriate entries into the tnsnames.ora and listener.ora files in the $ORACLE_HOME/network/admin directory. Remember to load the new configuration into the listener:
    Which is why you are getting the error. The database needs to register itself with the listener. This doesn't happen in nomount mode.
    Other than that: there is an option in database control to duplicate a database in 10g. Using that you only need to hit buttons. Why are you using 9i code and policies?
    Sybrand Bakker
    Senior Oracle DBA

  • Error in connecting with the database

    Hi,
    when i try to connect with the database the following error has occured
    ORA-12504: TNS:listener name was not given the service name in connect data
    solution want

    hi,
    i has the following in my tnsnames.ora file
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    XE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.localdomain)
    )

  • Error RMAN connection to auxiliary database ORA- 12514

    Hi,
    I'm trying to make a clone of my database in another server but when I'm trying to connect as follow the RMAN return
    to me the error ORA-12514.
    C:\Documents and Settings\joses.morales>rman TARGET sys/pass@iswgen nocatalog
    AUXILIARY sys/[email protected]
    Recovery Manager: Release 8.1.7.4.1 - Production
    RMAN-06005: connected to target database: ISWGEN (DBID=2348350645)
    RMAN-06009: using target database controlfile instead of recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    For more information:
    - the auxiliary database is started whit nomount option.
    - this is my listener.ora in the auxiliary host
         LISTENER =
         (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = WSSP61)(PORT = 1521))
         SID_LIST_LISTENER =
         (SID_LIST =
         (SID_DESC =
         (GLOBAL_DBNAME = oracle8)
         (ORACLE_HOME = C:\oracle\ora81)
         (SID_NAME = iswgen)
         (SID_DESC =
         (GLOBAL_DBNAME = oracle8)
         (ORACLE_HOME = C:\oracle\ora81)
         (SID_NAME = oracle8)
    - this is my tnsnames.ora in the auxiliary host
         ISWGEN =
         (DESCRIPTION =
         (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = wssp61)(PORT = 1521))
         (CONNECT_DATA =
         (SERVICE_NAME = iswgen)
         ORACLE8 =
         (DESCRIPTION =
         (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = WSSP61)(PORT = 1521))
         (CONNECT_DATA =
         (SERVICE_NAME = oracle8)
    - this is my tnsnames.ora in the target host
    iswgen =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = gdcoracle)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = iswgen)
         iswgen.wssp61 =
         (DESCRIPTION =
         (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = wssp61)(PORT = 1521))
         (CONNECT_DATA =
         (SERVICE_NAME = iswgen)
    - target server: gdcoracle
    - auxiliary server: wssp61
    - global name in auxiliary: Oracle8
    - intances in auxiliary: Oracle8 & Iswgen
    I was expecting the follow message:
    connected to target database: ISWGEN (DBID=519338572)
    using target database control file instead of recovery catalog
    connected to auxiliary database: ISWGEN.WSSP61 (not mounted)
    Can anybody help me to resolve this error ORA-12514??
    Thanks

    I'm try to connect to the auxiliary server at SQLPLUS and I get the follow:
    C:\Documents and Settings\joses.morales>sqlplus /nolog
    SQL*Plus: Release 8.1.7.0.0 - Production on Sex Jun 1 12:26:09 2007
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    SQL> conn sys@iswgen
    Informe a senha:
    ERROR:
    ORA-12514: TNS:listener nao conseguiu resolver o SERVICE_NAME fornecido no
    descitor de conexao
    SQL> conn sys@iswgen as sysdba
    Informe a senha:
    ERROR:
    ORA-12514: TNS:listener nao conseguiu resolver o SERVICE_NAME fornecido no
    descitor de conexao
    SQL> conn internal as sysdba
    Conectado.
    SQL>
    Any sugestions?
    Thanks everyone and regards

  • Error while connecting to Access Database from Oracle

    Dear All,
    I'm trying to connect Oracle 9i to Access Database.
    but im getting the below error while executing query.
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQLi did the following thing through to connect the database.
    1) First i made odbc driver called ODBC1
    2) I create the following file on oracle server C:\oracle\ora9I\hs\admin\initodbc1.ora
    i edit the below thing in initodbc1.ora
    HS_FDS_CONNECT_INFO =ODBC1
    HS_FDS_TRACE_LEVEL = ON3) I made some changes in sqlnet.ora
    SQLNET.AUTHENTICATION_SERVICES= NONE
    before it was *NTS*4) Below are the entries in tnsnames.ora i changed the port from 1521 to 1522 cos 1521 already exists.
    ODBC1.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
    ODBC1.WORLD =
      (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
      (CONNECT_DATA =
          (SID = ODBC1)
      (HS=OK)
    )5) Listener file code
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
         (SID_DESC =
          (PROGRAM = hsodbc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
      )6) after that i created
    SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
    Database link created.7) Listener Status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                04-MAR-2012 20:52:33
    Uptime                    0 days 0 hr. 33 min. 44 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfullyi did exactly what documentation says and it will not through any error but atlast when i try to access the access database tables it give me the below error
    SELECT * FROM DBO_COMPANY@MYSQL
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQLi'm using Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will appreciate.
    Regards
    Moazam
    Edited by: Moazam Shareef on Mar 4, 2012 10:25 AM

    first of all thanks for your support Mr. Kgronau
    I did what u said but still its giving me below error.
    SQL> SELECT * FROM DBO_PATINS@MYSQL
      2  ;
    SELECT * FROM DBO_PATINS@MYSQL
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service namei re-check the service, and restart the listener as you said below are the logs could you help me to solve this issue plz.
    TNSNAMES.ORA
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora9I\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
    INST1_HTTP.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = SHARED)
          (SERVICE_NAME = MODOSE)
          (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
      )LISTENER.ORA
    # LISTENER.ORA Network Configuration File: C:\oracle\ora9I\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    ODBC1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
    SID_LIST_ODBC1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = ODBC1)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = hsodbc)
        (SID_DESC =
          (GLOBAL_DBNAME = ODBC1)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
      )then i restart both listener entries (ie lsnrctl start ODBC1 and lsnrctl start ) and both are running fine without any error below are the status.
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:42:09
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                05-MAR-2012 18:32:15
    Uptime                    0 days 0 hr. 9 min. 56 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfullyLISTENER.ORA ODBC1 status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:41:52
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     ODBC1
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                05-MAR-2012 18:32:08
    Uptime                    0 days 0 hr. 9 min. 46 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\odbc1.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1522)))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 2 handler(s) for this service...
    The command completed successfullyWhere hope i'm near to retrive the access data.
    Regards
    Moazam

  • ERROR while connecting to Netezza Database from oracle 10g via dblink.

    Gurus,
    We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    Server and/or port attributes are empty {HY000,NativeErr = 33}

    Manik wrote:
    We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    Server and/or port attributes are empty {HY000,NativeErr = 33}Always test ODBC client connectivity on the Oracle server to the remote and foreign database, first. Use the isql ODBC client command line interface (as the oracle or grid o/s user).
    If this does not work, then Oracle HSO will also not work.
    Once you have confirmed that this is working, then configure the HSO service for Oracle.
    If that fails, enables ODBC client tracing for that HSO service (in the init file for that service) to see exactly what ODBC calls Oracle is making and which of these are failing.

  • Error while connecting to Access Database

    hi
    i am making an application using Access Database using the following code
    *try {*
    *Connection conn=null;*
    *Statement s=null;*
    *ResultSet rs=null;*
        *Context ctx=new InitialContext();*
         *DataSource ds=(DataSource)ctx.lookup("jdbc/AccessDb");*
    **     conn = ds.getConnection();**
    **      s = conn.createStatement();**
    *rs = s.executeQuery("select empname from stable");*
    **      IPrivateApplic1View.IRsElement elm=null;**
    **      while (rs.next())**
    **          elm=wdContext.nodeRs().createRsElement();**
    **          elm.setValue(rs.getString(1));**
    **          wdContext.nodeRs().addElement(elm);**
    **     } catch (Exception e) {**
    **          wdComponentAPI.getMessageManager().reportSuccess(""+e);**
    **          e.printStackTrace();**
    but it is showing the error
    *com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of AccessDb.*

    Hi
    refer
    [Connecting to MS Access using receiver JDBC Adapter (Without DSN)|Connecting to MS Access using receiver JDBC Adapter (Without DSN)]
    [/thread/147169 [original link is broken]|/thread/147169 [original link is broken]]
    thanks
    suresh

  • Error when connecting to MySQL Database

    I am trying to connect to MySQL and receive an error everytime. I have attempted to talk to Bluehost (who my site is hosted thru) and they said it is not on their end and not something they can help me with. I set up a new MySQL Database with Bluehost and then set up the site through DW and everything went fine. I secured an ftp connection and went on to connect to MySQL. When I enter in my credentials for SQL Database, it returns:
    HTTP Error Code 404:
    Reason 1. No testing server running on the server machine.
    Reason 2. Testing server specified for this site deos not map to the http://my_domain.com/_mmServerScripts/MMHTPDB.php URL. Verify the URL Prefix maps to the site.
    The testing server model I am using is set to PHP MySQL and URL Prefix I am using (my_domain.com) is my website URL. I watched a YouTube video someone suggested elsewhere on how to add MMHTTPDB.php and mysql.php files to _mmServerScripts folder since the folder is empty but unfortunately, those files are not found on my computer. I assume they were supposed to be installed when I installed DW, but they are not here. I have done a general search of the comp and looked in each folder that was installed with DW and sadly, no files that match those names. What can I do? How can I make an SQL connection? Please help. It is greatly appreciated.
    -Sharon

    Your answer can be found somewhere in here http://forum.wampserver.com/read.php?2,83382,88694
    My hosts file (c:\windows\system32\drivers\etc\hosts) looks like
    # Copyright (c) 1993-2009 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    # localhost name resolution is handled within DNS itself.
        127.0.0.1       localhost
        ::1             localhost

  • Error while connecting to Cloudscape Database

    Hi All,
    I am working on Sun's reference implementation App Server verson 1.3.1. It comes shipped with cloudscape database. When I write try to connect to this App Server through JSP that calls methods through Enterprise Java Beans I get this Error Message:
    java.net.ConnectException: Connection refused: connect
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
    connect to database. Connection refused to host: XXXXXXXX; nested exception
    is:
    java.net.ConnectException: Connection refused: connect; nested exception
    is:
    javax.ejb.EJBException: Unable to connect to database. Connection refuse
    d to host: XXXXXXXXX; nested exception is:
    java.net.ConnectException: Connection refused: connect
    javax.ejb.EJBException: Unable to connect to database. Connection refused to hos
    t: XXXXXXXXX; nested exception is:
    java.net.ConnectException: Connection refused: connect
    <<no stack trace available>>
    Can any one help me solve this problem.
    Regards,
    Venky.

    Have you started the database?
    []s
    Michael

  • Error when connecting applet to database

    Hi,
    I'm trying to make an applet that get data from database.
    I'm using this code to connect to database :
    try
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase","mypassword", "password");
    System.out.println("inside of connection");
         if(!con.isClosed())
              System.out.println("Successfully connected to MySQL server...");
              Statement st = con.createStatement();
              ResultSet s = st.executeQuery("SELECT myString FROM string");
                        while (s.next())
                             ad = s.getString("myString");
                             System.out.println(ad);
              catch(Exception e)
                   System.err.println("Exception: " + e.getMessage());
    It shows me error like this :
    java.lang.ExceptionInInitializerError
         at com.mysql.jdbc.Connection.<init>(Connection.java:1174)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at com.inulsc.newsticker.connection.getString(connection.java:26)
         at com.inulsc.newsticker.NewsTicker.readFromDatabase(NewsTicker.java:481)
         at com.inulsc.newsticker.NewsTicker.init(NewsTicker.java:239)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
         at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
         ... 9 more
    I'm using Tomcat and I have copymysql-connector-java-3.1.13-bin download to C:\Tomcat 5.5\common\lib.
    Any one can help me please? I really need to solve this problem.
    I will appreciate any answer.
    Thanks,
    Vijay

    Thanks for you answer Jos, but honestly I don't know what I should do then, since I can't get data from database through the applet.
    I have read some articles that we can get data from database through the applet (they use tomcat too). I have followed what the article said, but I still get the error.
    Do you have any idea Jos? Thank you very much for your nice attention
    Warmnest regards,
    Vijay

  • Java == error while connecting to mysql database?!?!??!

    Hi. I'm using Eclipse to develope jsp pages. I'm new to java.
    I'm trying to connect from a jsp page to mysql server and i'm getting an error on the line below:
    Class.forName("com.mysql.jdbc.Driver");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    i downloaded the mysql jar file and i added it to my library folder.
    the other question is that is there anyway to mention the name of the database in my connection?
    conn =DriverManager.getConnection("jdbc:mysql://localhost","admin", "");

    hi this is the root cause i thought it might help
    root cause
    javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:100)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
         java.lang.ClassLoader.loadClassInternal(Unknown Source)
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Unknown Source)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:85)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • Error to connection Jdeveloper with database

    Hello world ,
    i want to make a connection between jdeveloper and database but i got this error message when i do test
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    i am working on client , and oracle developer is connected with database .
    regards

    SID is like what is use for developer , it is 100% correctThe error code you are getting (12505) indicates otherwise
    http://www.error-code.org.uk/view.asp?e=ORACLE-TNS-12505
    Perhaps you are pointing to the wrong host/IP address
    John

  • Error to connect  to Mysql database

    hi
    I just initial write program with jsp. I alway have problem.
    I will connect Mysql Database. I 'm download JDBC Driver and setting.
    step of using JDBC
    1. Load Driver JDBC (use method forName())
    2. Connection Database (use method method getConnection())
    3. create object statement (use methodcreateStatement())
    after run, I get this error
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " name" ', ' " surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " name" ', ' " surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed string literal
         String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:76: '{' expected
         catch(SQLExeption e2);
    ^
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:110: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:31: 'try' without 'catch' or 'finally'
    try {
    ^
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:120: '}' expected
    ^
    9 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    i don't know error mean
    can anyone explain me and send me a sample code for connect MySQL
    Thank you

    The java code in your jsp is not valid java code; the error messages are explaining why.
    For example, this statement is totally managled.
    String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";It should be:
    String sql="INSERT INTO test VALUES (' " +name+" ', ' " +surname+" ')";If you use PreparedStatement instead of Statement, then the SQL gets much much easier to write (and PreparedStatement has other advatages as well).
    Your other compilation problem is impossible to diagnose without the JSP source code; furthermore, it has nothing to do with JDBC, you simply have broken Java code. You need to post that question in a more appropriate forum.

Maybe you are looking for

  • Error while starting Tomcat

    Hi, This may be a very basic question on tomcat server: What is the difference between creating a server (through the server View provided in eclipse) and using the three icons (at the top, just below the main menu) to start tomcat? I am new to Tomca

  • Command the execute sql query and does not clean up data in Table

    Hi Team I have an SP, which writes source and target data to Temp Tables and runs except query to get mismatch details I am using Exec command to execute source query that writes data to Temp Table, once I execute query using Exec, data is written an

  • IPhoto all screwed up...

    I opened iPhoto one day and almost all of my photos were gone. I HAVE all of them on backup but I am not sure how to RE-load them into iPhoto, and which database to use...originals? [ will that install all of the originals and get rid of the changes

  • Where is My Ringtone?

    So I made some ringtones from iTunes. I made them fine it was easy. But I synced my phone and they didn't show up when I tried to assign them to a contact. Is anyone else having trouble?

  • Cannot submit expense report due to cost centre and location

    Hi, Has anybody faced the issue where you cannot submit your expense report? The system gives an error for every expense line...'cost centre - select a valid value and same for location'. However the values of the cost centre and location are valid i