Connecting to database via Dreamweaver

Hi All
I am trying to build a site using asp.net and SQL Server via
Dreamweaver.!!!! To help me on my way I decided to build a tiny
test site just to establish the connections. However, try as I
might I can’t make a connection to a database and am now
rapidly loosing the will to live due to the quite unbelievable time
I have spent trying to sort this out. Now this post is my last best
chance.
I am trying to connect to either of the databases that come
with the freebee SQL Server package (Is it called express or
something?). They are pubs and Northwind.
I am using Dreamweaver 8, XP Professional with the .Net
framework v2.0 and IIS.
However, when testing the connection in Dreamweaver I get a
choice of two different error messages depending on my
computer’s mood (I don’t change ANYTHING) The first is
the beautifully succinct and entirely unhelpful “an
unidentified error has occurred”. The second reads:
1) There is no testing server running on the server machine
2) The testing server specified for this site does not map to
the
ttp://Localhost/RootFolder/_mmServerScripts/MMHTTPDB.asp URL,
Verify that the URL Prefix maps to the root of the site.
After more hours trawling the net for answers, than I care to
admit to I decided in desperation to try out the Dreamweaver
tutorial that deals with these things (Café Townsend) to see
if it offered any clues. However, when attempting to connect to the
database (tutorial.mdb) I get the same two error messages:
“an unidentified error has occurred”.
1) There is no testing server running on the server machine
2) The testing server specified for this site does not map to
the
ttp://Localhost/MySampleApps/_mmServerScripts/MMHTTPDB.asp
URL, Verify that the URL Prefix maps to the root of the site. Again
dependent on my computer’s mood.
I am convinced that I have all the necessary components in
place and my connection strings are correct (I am aware that the
path given in the Dreamweaver tutorial for Café Townsend is
incorrect and have altered the string accordingly).
I now strongly believe the problem is something to do with
the MMHTTPDB.asp file in the _mmServerScripts folder but could
easily be wrong.
Does anyone know of a problem with Dreamweaver of this nature
or one that would result in my error message for either an Access
database or a SQL Server database?
I know Dreamweaver MX had a problem viewing database tables
whilst using .net and Adobe created a patch to fix the problem. Has
Dreamweaver 8 any similar problems?
I’m sorry this post is a bit long but trust me I could
have made it three times as long if I included everything I have
tried to resolve this!
Any help in the right direction would be appreciated more
than you can imagine.
Cheers
Burnsie

Sorry for jumping into the thread with a bit of an off topic question, but how do you find out what kind of a db the asp server is using? I've asked my company's web host a number of times for info/help in getting connected using Dreamweaver so I can redesign our site and I never hear back from them. It's a very specialized web hosting server set up for rubber stamp web sites. Looks like most of their customers use the online website design tool that they provide, but it is very limited in what it can do. Very limited.
They give me ftp access and I've changed what I can on the page, but with out access to the db it's hard to really change the look of the site.
Here's the link:
http://www.tacomarubberstamp.com

Similar Messages

  • Cannot connect to database via TNS

    Hello!
    I installed XE with default settings and have some trouble. I cannot connect to database via TNS. Two symptoms:
    1. I can connect with SQLPLUS system/pwd (locally, without tns name input), but CANNOT connect with SQLPLUS system/pwd@EX (WITH TNS NAME input).
    2. I cannot start Database Home Page.
    How to avoid this problem? Any ideas?
    DETAILS:
    PC configuration: Win2k+SP4, 512Mb, Outpost Firewall (disabled!), No another Oracle products being installed.
    TNSNAMES.ORA file:
    ************* BEGIN TNSNAMES *****************************************
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pz)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    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)
    ************* END OF TNSNAMES *****************************************
    Listener status:
    ************* BEGIN STATUS *****************************************
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
    ction
    Start Date 22-MAR-2006 17:27:15
    Uptime 0 days 1 hr. 8 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\admin\listener.ora
    Listener Log File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pz)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", 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 "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ************* END OF STATUS *****************************************
    NETSTAT -an results:
    ************* BEGIN NETSTAT *****************************************
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2298 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2455 127.0.0.1:8080 ESTABLISHED
    TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:8080 127.0.0.1:2382 CLOSE_WAIT
    TCP 127.0.0.1:8080 127.0.0.1:2455 ESTABLISHED
    TCP 192.168.200.49:1521 192.168.200.49:2298 ESTABLISHED
    TCP 192.168.200.49:2298 192.168.200.49:1521 ESTABLISHED
    <truncated>
    ************* END OF NETSTAT *****************************************
    I found following error in SQLNET.LOG:
    *************** START LOG *********************************************
    Fatal NI connect error 12570, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 22-MAR-2006 17:28:59
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12570
    TNS-12570: TNS:packet reader failure
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    *************** END OF LOG *******************************************

    I successfully connect with XE client to another Oracle databases from LAN, including 8i and 9i databases.
    But cannot connect from another machines to my XE.

  • Can not connect the database via query string (C#). The SQL Server Management Studio is showing the full path of a location instead of database name.

    I can not connect to the database via C#. The database is showing full path of the database file instead of the database name. See the pic: a database showing only name 'emart' and the other database showing the full path.
    : Robby

    Hi,
    According to your post, I know that the database name is showing file path of the database rather than the database name in SQL Server Management Studio. You were not able to
    establish a connection to the database using C#.
    As Olaf said, was any error message thrown out when the connection failed? How did you create these databases?
    You can use the following T-SQL to attach the database and see if the issue persists.
    CREATE DATABASE
    databasename
        ON (FILENAME = 'filepath _Data.mdf'),
        (FILENAME = 'filepath_Log.ldf')
    FOR ATTACH;
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Cannot connect to database via JApplet

    Hi,
    I created a Java application which allows me to send information to my mysql database using the jdbc connector via a JFrame. However when i modified the file to be a JApplet the info will not sent and i cannot connect to the database? Any particular reason for this?
    I need it to be a JApplet so i can add it to a browser window.
    Code: ( java )
    private void save ()
    Connection conn = null;
    try
    Statement stmt;
    String userName = "root";
    String password = "PASSWORD";
    String url = "jdbc:mysql://localhost:3306/DATABASE";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName, password);
    System.out.println ("Database connection established");
    //Get a statement object
    stmt = conn.createStatement();
    stmt.executeUpdate( "INSERT INTO TABLE(Info i know to put in) VALUES('Values i know to put in')");
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    finally
    {if (conn != null)
              {try
                   {conn.close ();       
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors*/  }
    As i said above it works fine as a JFrame but not as a JApplet. Any help would be great.
    Thanks G

    Your error reporting is not good. You print a meanningless message or ignore the error.
    Print the stacktrace in the catch blocks.
    Change the code, rerun it and then check the Java Console for output.
    I'm guessing you'll see a security error. Unsigned applets can't access the client file system. If so, sign the applet.

  • Unable to connect to databases via SQLPlus or SQLDeveloper

    Hi,
    Current Setup: Linux Enterprise 5.8 64 bit/ Oracle 11g/ SQL Developer 3.1
    I recently created a new Linux VM from scratch and installed Oracle 11g on it. Was able to successfully create databases via DBCA, how ever am not able to connect to these databases.
    You'll find this very interesting. I recently discovered different scenarios, where it works and does not works.
    Below scenarios are executed in sequence. After Scenario C, I can successfully create connections via SQLPlus and SQLDeveloper
    Scenario A :
    STEP 1) Start Linux Box
    STEP 2) Try to extablish connection via SQLPlus and SQLDeveloper
    SQLPlus Error: ERROR: ORA-12541: TNS:no listener
    SQLDeveloper Error: Network Adaptor could not establish the resource
    Scenario B :
    STEP 1)Run: lsnrctl start
    ==========
    OUTPUT START
    ==========
    [admin@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 10-AUG-2012 23:53:53
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /home/admin/app/admin/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionSystem parameter file is /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.oraLog messages written to /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xmlListening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Listening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))STATUS of the LISTENER------------------------
    Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionStart Date 10-AUG-2012 23:53:56Uptime 0 days 0 hr. 0 min. 2 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.oraListener
    Log File /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xmlListening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))The listener supports no servicesThe command completed successfully[admin@localhost ~]$
    =========
    OUTPUT END
    =========
    STEP 2) Try to extablish connection via SQLPlus and SQLDeveloper
    SQLPlus Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    SQLDeveloper Error: TNS: listner does not currently know of SID given in connect descriptor
    Scenario C :
    STEP 1) Open DBCA > Configure all database one by one database > Go to till STEP 3 of DBCA configuration wizard
    STEP 2) Close DBCA
    STEP 3)Run: lsnrctl status
    ==========
    OUTPUT START
    ==========
    [admin@localhost ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-AUG-2012 12:04:11
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 11-AUG-2012 11:48:51
    Uptime 0 days 0 hr. 15 min. 19 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "agent" has 1 instance(s).
    Instance "agent", status READY, has 1 handler(s) for this service...
    Service "agentXDB" has 1 instance(s).
    Instance "agent", status READY, has 1 handler(s) for this service...
    Service "orcl.localdomain" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "productionXDB" has 1 instance(s).
    Instance "production", status READY, has 1 handler(s) for this service...
    Service "production_core" has 1 instance(s).
    Instance "production", status READY, has 1 handler(s) for this service...
    Service "publishing" has 1 instance(s).
    Instance "publishing", status READY, has 1 handler(s) for this service...
    Service "publishingXDB" has 1 instance(s).
    Instance "publishing", status READY, has 1 handler(s) for this service...
    Service "switchinga" has 1 instance(s).
    Instance "switchinga", status READY, has 1 handler(s) for this service...
    Service "switchingaXDB" has 1 instance(s).
    Instance "switchinga", status READY, has 1 handler(s) for this service...
    Service "switchingb" has 1 instance(s).
    Instance "switchingb", status READY, has 1 handler(s) for this service...
    Service "switchingbXDB" has 1 instance(s).
    Instance "switchingb", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [admin@localhost ~]$
    ==========
    OUTPUT END
    ==========
    What can I do to connect to databases and not start dbca and configure each database on system start?
    Any help would be highly appreciated.
    Cheers,
    Sandeep
    Edited by: Sandeep.R on Aug 11, 2012 12:06 PM

    You need a service to auto start/stop instances. Pls See
    Re: Oracle instance is going to idle when i restart/start the machineRgds,
    Ahmer

  • Connect to database via another machine

    We have a machine that is setup with a VPN connection to a database outside our firewall. Whenever we need to access this database we make a remote desktop connection to this machine.
    We would like to be able to connect to the database directly from our workstation using the machine with the VPN connection as a gateway.
    Any pointers in the right direction are welcome.
    Rene

    Dear Rene W.!
    Please have a look at the following link. Your subject has already been discussed there:
    [http://www.mydatabasesupport.com/forums/oracle-server/369378-not-able-connect-oracle-database-through-vpn.html]
    Yours sincerely
    Florian W.

  • Connecting to a LIVE mySQL database via Dreamweaver (ASP)

    Hi All,
    Have a bit of of an issue with connecting to my live database... I've created several sites in PHP and each time its been really easy to set up a connection to the live database (on a shared server), and work using live data... but I can't figure out how to do it when working on an ASP (vb) site!? Can anyone direct my on how to do it please? ... or direct to some documentation on the subject? Cheers!
    Regards,
    Dan

    Sorry for jumping into the thread with a bit of an off topic question, but how do you find out what kind of a db the asp server is using? I've asked my company's web host a number of times for info/help in getting connected using Dreamweaver so I can redesign our site and I never hear back from them. It's a very specialized web hosting server set up for rubber stamp web sites. Looks like most of their customers use the online website design tool that they provide, but it is very limited in what it can do. Very limited.
    They give me ftp access and I've changed what I can on the page, but with out access to the db it's hard to really change the look of the site.
    Here's the link:
    http://www.tacomarubberstamp.com

  • Connection to database via Oracle Sql Developer

    I want to establish a local connection to my database Oracle Database 10g Express Edition via Sql Developer
    I put :
    - hostname: localhost
    - Port: 1521
    - SID: the name of my PC
    But it tolds me:
    The network adapter could not establish the connection
    Can you help me please?

    Where sould i type this command?lsnrctl is an OS command, you have to execute it at OS prompt.

  • Can't "connect to database" from Dreamweaver CS3

    This question maybe more appropriate for the PHP or MySQL Forum but since the problem is encountered in Dreamweaver CS3, I am going to first try getting help on this Forum.
    I have a LINUX CentOS 5.3 Server with Apache (httpd-2.2.3) & PHP-5.1.6 installed. I also have a text site; httpd://ip.tib.com on it.
    I am using a WinXP with DW CS3 to develop & test the above web site. Currently I am trying to setup a test dynamic page and am reading Dreamweaver USER GUIDE page 514 Chapter “Database Connections for PHP Developer”.
    FYI, the Remote & Test Servers are setup for the web site under construction and connections to both are tested successfully from DW CS3.
    Now when I try to test “Connect to a database” (Dreamweaver USER GUIDE page 514) , I get the following error message:
    Your PHP server doesn’t have the MySQL module loaded or you can’t use mysql_(p)connect function.
    First of all, I can connect to the MySQL server and create/edit/delete tables from WinXP using Navicat Package. I have looked into “php.ini” on the LINUX server but can’t figure out what changes I need?
    Any help is highly appreciated.

    I have resolved this problem.
    PHP 5.3 no longer bundles the MySQL libraries. I couldnot find the missing libraries anywhere. I switched back toolder versions of both MySQL & PHP, where MySQLlibraries are bundled with PHP package.
    Problem solved.

  • Connecting mysql database to dreamweaver

    when i try to upload database which i did in mysql to the
    webserver from dreamweaver by doing: view - live data in
    dreamweaver i get this message: "the testing server did not execute
    any of the scripts in your document.possible explanations
    include:1. the testing server is not running 2. the testing server
    ignores files with the php. extension. 3. your document does not
    contain any scripts"
    my webserver is xampp (appache + mysql) and below are the
    scripts which i used:
    also when i do F12 the images in the database appear gibrish
    on the webserver page.
    what did i do wrong ?

    noa2 wrote:
    > when i try to upload database which i did in mysql to
    the webserver from
    > dreamweaver by doing: view - live data in dreamweaver i
    get this message: "the
    > testing server did not execute any of the scripts in
    your document.possible
    > explanations include:1. the testing server is not
    running 2. the testing server
    > ignores files with the php. extension. 3. your document
    does not contain any
    > scripts"
    It sounds as though you have not defined the testing server
    correctly in
    your Dreamweaver site definition.
    > my webserver is xampp (appache + mysql) and below are
    the scripts which i used:
    > also when i do F12 the images in the database appear
    gibrish on the webserver
    > page.
    You should not store images inside the database. Or if you
    do, you need
    to write a proxy script to display them. The normal procedure
    is to
    store the details of images (such as filename) in the
    database, but keep
    the images themselves in the normal file system. Use the
    filename from
    the recordset result to build the <img> tag to display
    the image.
    > mysql_connect("","","");
    Using mysql_connect() with only empty strings as arguments
    means you
    have a totally unprotected database.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Unidentified error occurred when trying to connect to database (was: Dreamweaver issue )

    I am unable to connect to  a database. I get the following error
    "An unidentified error occurred".
    This is a test server that I am setting up.  My directory structure looks as follows:
    All my files reside in C:\users\Badri\My Documents\Unamed Site 2
    I have Apache web services running and the _mmServerScripts is in the htdocs directory (Apache root directory). My SQL is
    I am sure that something is not configured correctly, but I am not sure what?
    Thanks
    Badri

    If your testing server is XAMPP or MAMP, you should put your site files in the htdocs folder of your local testing server.
    C:\xampp\htdocs\YourSiteName
    C:\mamp\htdocs\YourSiteName
    If you use WAMP server, you should put your site files inside www folder.
    C:\wamp\www\YourSiteName\
    These are the default directories used by localhost when previewing in browsers.
    Then define your local testing server in DW.  See screenshots.
    Advanced tab:  Testing Server model.
    If you haven't already, log-in to your local server's phpMyAdmin to create an SQL database and table.
    PHP MySQL Tutorial: Create a Database and Table in phpMyAdmin -HD- - YouTube
    Nancy O.

  • Unable to connect to database via other software.

    I have narrowed down all the problems i am having to Oracle XE. I have written a bit of software which uses Crystal Reports. The crystal reports work in the software and attach to the database and get the results when the software is installed on a machine which has Oracle XE installed (full database not just the client) even if the database the crystal report actually attaches to is not on this machine.
    If the software is installed on a machine with only the Oracle XE client installed on i get connection errors every time i try and get the Crystal Reports to run in the software.
    What files do i need to have on these client machines to get rid of these connection errors?

    Please ... don't make us guess.
    At the least, give us a hint what the messages are. Cutting and pasting from the actual session would be best.
    Right now, I am guessing you use Windows and that you have only tried connecting to an Oracle database that runs on Windows. But that is a guess.
    I'm also guessing that you have not set up the Oracle 'tnsnames.ora' file (or used any other naming resolution mechanism) on the machine with crytstal reports and XE.
    I have about 93 other guesses I could make as well. Many of which are not useful.

  • Trying to connect to database via jdbc

    I'm tring to connect to a mimer database currently running on my computer. This is what I've done in main:
    Connection con;
    try{
                   Class.forName("com.mimer.jdbc.Driver");
                   String url = "jdbc:mimer://sysadm:frenulum@C:/Skola/Examensarbete/Testbasen";
                   con = DriverManager.getConnection(url);
              catch(Exception e){
                   System.out.println(e);
              }I have included drivers and all that. The Exception I get is:
    java.sql.SQLException: Illegal port: , java.lang.NumberFormatException: For input string: ""
    Does anyone know what's wrong?

    I'm tring to connect to a mimer database currently
    running on my computer. This is what I've done in
    main:
    Connection con;
    try{
                   Class.forName("com.mimer.jdbc.Driver");
    String url =
    l =
    "jdbc:mimer://sysadm:frenulum@C:/Skola/Examensarbete/T
    estbasen";
                   con = DriverManager.getConnection(url);
              catch(Exception e){
                   System.out.println(e);
              }I have included drivers and all that. The Exception I
    get is:
    java.sql.SQLException: Illegal port: ,
    java.lang.NumberFormatException: For input string:
    Does anyone know what's wrong?Your url is probably wrong. The exception says that you haven't specified the port number.
    /Kaj

  • Connection with Database via Middleware  Application on a Web Server

    Hello friends
             I dont have much knowledge of Authorware. I want to read some values from my JSP Applicaiton using Authorware and need to display those values in Authorware file. If any one know please inform me. its urgent!..
    Thanks and Regards
    Dagadu Akambe
    Pune, india

    I dont have much knowledge of Authorware. I want to read some values from my JSP Applicaiton using Authorware and need to display those values in Authorware file. If any one know please inform me. its urgent!..
    Look at ReadURL and PostURL. These work similar to HTML form Get and Post.
    Steve

  • How  to connect .... MYSQL database via JSP

    Hello,
    I am not able to connect mysql database via JSP... everytime i try to connect the database i get the following error .....
    "java.lang.NoClassDefFoundError: org/aspectj/lang/Signature" ..
    my jsp code is ....
    <%@ page import = "java.sql.*" %>
    <%
    Connection conn = null;
    Statement smt = null;
    ResultSet rs = null;
    %>
    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase","username" ,"password");
    smt = conn.createStatement();
    rs = smt.executeQuery("select * from table");
    out.println("output is "+ rs.getString("my field"));
    rs.close();
    %>
    I have installed ............
    jdk1.5.0_02
    MySQL Server 4.1
    there are two jar files .. i tried with both jar files ..
    mysql-connector-java-3.1.8-bin.jar
    mysql-connector-java-3.1.8-bin-g.jar
    tomcat server 5.5.9
    my path .... is
    C:\Program Files\Java\jdk1.5.0_02\bin;C:\jakarta-tomcat-5.5.9\bin;C:\program files\mysql\mysql server 4.1\bin;
    any help on this error ..at the earliest ..
    ... am worried ..bcoz my deadlines is getting closer .....
    .. step by step .. procedure .. could be helpful ..
    anil

    Find out the JAR which contains the class and add it
    to WEB-INF/classes directory for your web application.WEB-INF/classes directory ..means ..C:\jakarta-tomcat-5.5.9\common\classes .. is that the one i need to keep my jar files ....???????????
    well i have downloaded .. mysql database connector from the website "http://www.mysql.com/products/connector/j/ " .. and i have downloaded MySQL Connector/J 3.1..under which i have downloaded "Source and Binaries (zip)" ..
    anil

Maybe you are looking for