DAS Can't connect to mySQL ODBC

Using:<BR>HPS 8.3<BR>Sun Solaris 8<BR>I've created a BQY in Intelligence Explorer that connects using mySQL ODBC in Windows XP and wanted to publish it to the web, but I needed to publish the OCE to the server and set it up with DAS.<BR><BR>Here are the steps I took<BR>1. Installed the mysql connector odbc 3.51.12 sun solaris2.8 sparc 64bit ODBC in Solaris.<BR>2. Created an odbc.ini file in Solaris with my mySQL connection settings in the home directory of the user running the services. I even made a copy of it in the $BP_HOME directory.<BR>3. Added the library path for my ODBC library to all my scripts.<BR>4. Added the data source using the service config tool.<BR>5. Restarted services<BR>6. published the OCE and BQY<BR><BR>When I access the BQY using the plug-in, it gives me <BR>"Server Error [2009]; Internal Error Detected in Data Access Service"<BR><BR>When I access it using the thin-client (iHTML), it gives me:<BR>"An Intelligence Service error has occurred.-Failed to acquire requested service"<BR><BR>What else needs to be done?<BR>I tried some the other suggestions to no avail:<BR>--added the library path  to the LD_PRELOAD variable in the $BP_HOME/bin/services.sh script<BR><BR>Also, I noticed that when I ran ServiceConfig.sh, there were no data sources to pick from the dropdown.  Anyone know how to make that active so I can just PICK the connection to use?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

I'd strongly recommend that you take all that JDBC code out of your JSP. Put it into a class that you can test on the command line. Once you have it working, you can use it to get at data and pass it along to your JSP for display.
I'd also recommend that you not use scriptlets and learn JSTL right away. MVC separation suggests that putting Java code in a JSP is a very bad idea.
%

Similar Messages

  • How can I connect to MySQL external database

    Hello.
    I have a SAP system running in SQL Server 2003.
    I need to connect to external MySQL DB., to operate with this information in ABAP program.
    I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
    DB CONNECTION --> AFIS
    DBMS --> MSS
    user name --> xxxxxx
    DBpass -->xxxxxx / xxxxxx
    Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
    I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
    Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
    Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
    Thks.
    DATA: BEGIN OF wa,
    cod_modelo(20),
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    con = 'AFIS'. "DB Connection in DBCO above
    EXEC SQL.
    CONNECT TO :con
    ENDEXEC.
    WRITE sy-subrc. ---> The result it's 4
    EXEC SQL.
    GET CONNECTION :con
    ENDEXEC.
    WRITE : con. --> The result it's DEFAULT
    EXEC SQL.
    SET CONNECTION DEFAULT
    ENDEXEC.
    write : con. --> The result it's DEFAULT

    > It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
    yes, for all those databases exists the database interface library.
    > In resume:
    >  IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
    Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
    MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
    However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
    Markus

  • Database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2) on mac os x 10.9.2

    Dear Fellas:
    I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
    mysql info:
    ps -ef | grep mysql
        0    66     1   0 11:06AM ??         0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
       74   225    66   0 11:06AM ??         0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
      501   952   947   0  3:52PM ttys000    0:00.00 grep mysql
    Please help!!

    Fascinated and guessing:
    Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
    I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
    Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
    Just speculating.

  • Can I connect to MySQL database

    sorry for my English...
    I'm absolutely new in Flex
    can I connect to MySQL database?
    I read here that I need to create a java class file and edit
    an xml to create connection to oracle, can I connect to MySQL
    server too, I think that the PHP-XML is too slow to work with lare
    amounts of data... so can you post me MXML, the XML, and the JAVA
    class file, with I will be able to send sql to mysql server and get
    the response?
    or FDS is a stand-alone SQL server?

    Flex is not a SQL server.
    The Flex SDK and compiler supports developing applications
    that run in the Flash player.
    Flex Data Services is deployed as a Java web application that
    simplifies integrating Flex clients with Java server-side resources
    (including interacting with SQL databases via Java).
    FlexBuilder is an IDE for developing Flex apps.
    I'd recommend spending some time browsing the Flex product
    area on adobe.com.
    Best,
    Seth

  • MySQL - Another 'Can't connect through mysql.sock' question...

    Hey, folks.
    So I'm trying to install MySQL to run with PHP on my PowerBook G4 (running 10.4.7, non-server edition) to use it to test out a shopping cart program for a website I'm building.
    I had it working as of Monday, when I installed it, got all the permissions set, built the necessary tables, and changed the root password (and logged in just to make sure it worked before retiring for the night)...but today I realized that I had somehow installed the wrong version of MySQL (I connected to it earlier today and discovered it was 4.026 - and I needed to be running MySQL 4.1.20, in order to be running the same version as my webhost).
    So I decided to upgrade. I downloaded and installed the 4.1.20 file, followed the directions about creating the system tables, changed permissions via sudo chown -R mysql:mysql data...and now, when I go to change the root user password (just to make sure it's still the same as it was), I get the following error:
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
    This error also occurs when I try to simply startup MySQL. I also now find I can't connect via MySQL Admin, either - it gives me the same error. Pinging the host works, however.
    Sooo...anyone have any ideas? I've read up on the forums re: Apple changing the socket to /var/mysql/mysql.sock as of 10.4.4, but it seems that would have affected me earlier this week when I was running the previous version of MySQL, too (I certainly haven't upgraded the OS since then).
    Regardless, I can't connect through MySQL Admin using the /var/mysql/mysql.sock socket, anyway...nor the standard /tmp/mysql.sock.
    Any thoughts on what might be causing this? I should confess, I'm well-versed in DOS (ugh), but UNIX is not really my strong suit, so I'm still figuring out how to get around in the Terminal...
    Thanks so much for any input you can give me!
    (Oh, one more thing, since it'll probably come up - I'm not currently connecting via PHP, but I will be eventually. Right now, I just want to be able to change my root password, and login from the Terminal)!
    Thanks again!\
    PowerBook G4 1GHz 15   Mac OS X (10.4.7)  

    Alright, folks.
    Somehow my computer has fixed itself. After wiping the mysql directories entirely, then reinstalling, I was still getting the same error.
    After going back to the original "MySQL-On-Mac" site at Marc Liyanage's entropy.ch site & following some of the instructions there, somehow my problem seems to have fixed itself.
    I wish I could tell you what the solution was (to benefit anyone else having this problem), but since I was simply following the unix commands listed there (without much explanation, at times, as to what they were doing), I just know that somehow it worked.
    (But if I had to make a guess, I think it had to do with starting the server via sudo ./bin/mysqld_safe &)...

  • ERROR#: 2002 can't connect to MySQL server through socket '/var/mysql/mysql.sock'

    I was following this adobe article (
    http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html)
    to set up PHP and MySQL and connect a MySQL database to dreamweaver
    in Mac OS 10.4.8 and I kept getting:
    "Can't connect to MySQL server through socket
    '/var/mysql/mysql.sock' ERROR#: 2002".
    After a lot of searching I came across
    this
    article which said that there was an error in the PHP and MySQL
    connection or something.
    Anyway all I had to do was type (in a TERMINAL window):
    $ sudo mkdir /var/mysql
    $ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    and that fixed the problem, otherwise the adobe article
    worked very well.
    Check out the "this article" link to get the fix straight
    from the horse's mouth.

    I was following this adobe article (
    http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html)
    to set up PHP and MySQL and connect a MySQL database to dreamweaver
    in Mac OS 10.4.8 and I kept getting:
    "Can't connect to MySQL server through socket
    '/var/mysql/mysql.sock' ERROR#: 2002".
    After a lot of searching I came across
    this
    article which said that there was an error in the PHP and MySQL
    connection or something.
    Anyway all I had to do was type (in a TERMINAL window):
    $ sudo mkdir /var/mysql
    $ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    and that fixed the problem, otherwise the adobe article
    worked very well.
    Check out the "this article" link to get the fix straight
    from the horse's mouth.

  • Adobe LiveCycle Designer ES Error while Connecting to MYSQL ODBC Driver

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

  • Can't connect to MySQL from Oracle 11g R1

    Hello Oracle's guru.
    Sorry for my English it's not my native langauge
    Enviroments: Oracle 11g R1, Windows 7, ODBC Driver 5.1.8
    I have a some problem with creation gateway to connection to MySQL, and I hope somebody can help me.
    So,
    1) ODBC name - MYSQLDSN
    2) initMYSQLDSN.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLDSN
    HS_FDS_TRACE_LEVEL = 0
    3) listener.ora
    # listener.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLDSN)
    (ORACLE_HOME=E:\app\voxa\product\11.1.0\db_1)
    (PROGRAM=dg4odbc)
    4) tnsnames.ora
    # tnsnames.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    CXWH =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = CXWH)
    MYSQLDSN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =(SID = MYSQLDSN))
    (HS = OK)
    Then I trying to connect to MySQL using sql*plus:
    C:\Windows\system32>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Ср Июн 1 12:13:39 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    login: system
    pass:
    Connect to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create public database link MYSQLDSN
    2 connect to DEMO identified by "DEMO" using 'MYSQLDSN';
    Channel was created
    SQL> select * from items@MYSQLDSN;
    select * from items@MYSQLDSN
    Error in line 1:
    ORA-28500: connection with ORACLE with other system return message:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near
    '"ITEMS_KEY",A1."ITEM_NAME",A1."ITEM_CATEGORY",A1."ITEM_VENDOR",A1."ITEM_SKU",A1
    .' at line 1
    ORA-02063: предшествующий 2 lines из MYSQLDSN
    If I trying create new ODBC mobule via OWB, I had next error:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"DUAL"' at line 1
    ORA-02063: предшествующий 2 lines из OWB_56
    What I do wrong? Please help me

    Hi,
    You can download the 11.1.0.7 patchset from My Oracle Support -
    support.oracle.com
    as patch 6890831.
    Once logged in click on 'Patches and Updates' and enter the patch number as 6890831 and choose whichever platform you are running.
    the readme explains how to apply the patch to an existing 11.1.0.6 install.
    The url you posted is only for complete product installs, but 11.1.0.7 is only a patchset that must be applied to an existing install.
    Regards,
    Mike

  • Connection with MYSQL ODBC

    Post Author: wrkwinter
    CA Forum: Data Connectivity and SQL
    Hi,   I am having problem with conecting Crystal Report XI to the MYSQL Server. I am using Mysql Connector/ODBC 3.51. I configured ODBC connection . Once i connect to MYSQL server thru Crystal Rpeort Everything works fine but after 5-10 minutes if i refresh the report I get following error.
    "Failed to retrieve data from the database"DetailsHY000:&#91;MySQL&#93;&#91;ODBC 3.51 driver&#93;&#91;mysqld-4.1.22-standard-log&#93;&#91;MySQl server has gone away&#91;Database vendor code :2006&#93; and if i log off and relog on to database everything works fine like for another 5-10 minutes and after that same ERROR  But if i use MYSQL Query Browser to connect to the database. I don't have any problem like that.  Can please explain any reason for that.....Thanks

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    Check out:
    http://www.mysqltalk.org/server-has-gone-away-vt158777.html
    I'd guess that you're timing out or exceeding the number of connections.
    -k

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    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: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  • Can't connect to MySQL in DW CS5.5 on Win 7 Pro 64-bit...

    Hi there.
    I hope you can help me. I used Dreamweaver CS3 for some years on my former Windows XP Pro 32-bit laptop. Everything worked just fine with updating files to my webhotel and view my MySQL-databases within Dreamweaver. I use classic ASP and the MySQL 5.1/5.5 driver. Then a few months ago I upgraded to CS5.5, but everything still worked fine, as I were used to. BUT then I got a new laptop with Win 7 Pro 64-bit. I installed everything including all MySQL drivers, but I can't connect to my databases within Dreamweaver anymore. :-((( I get a connection error (Unable to retrieve tables from this connection, click on the 'Define...' button to test this connection.).
    Do note, that there's nothing wrong with my connectionstring. My webdatabases works just fine, but DW can't figure out to connect. Is it DW on Win 7 or is it a question about how to configure MySQL on my computer? I installed the full package from Sun/MySQL.
    I hope you can help me! It's so annoying that I can't use the feature to drag variables from my databases into my pages.
    Best regards
    Ulrich

    start at the top and work your way down applying applicable fixes until your problem is resolved.
    if cc (win):  https://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-application-failed.html
    if, your error is:
    "Installer failed to initialize. File not found." or "Installer failed to initialize. This could be due to missing files."
    first, rename OOBE Folder to OOBE.old.
    to find OOBE:
    64 bit win OS: Program Files x86\Common Files\Adobe\OOBE
    32 bit win OS: Program Files \Common Files\Adobe\OOBE
    mac os: HD>library>application support>adobe>caps
    mac os: USER>library>application support>adobe>OOB
    if that fails or isn't the exact error you see, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall.
    if you're using a dvd to install:
    copy the disc contents to a desktop directory and install from that directory.
    if you're using a mac:
    1. Try to Create a new user account in Mac with Administrator Priviledges.
    2. Login to the New user, Navigate to Mac HD> Application> Utilities> Adobe Installer folder, Locate products like Adobe Reader, Adobe Flash, Adobe Air and un-install them
    3. Navigate to User Library> Application Support> Adobe and move Adobe to Trash.
    4. Navigate to Mac HD> Library> Application Support> Adobe and move Adobe to Trash.
    5. Start the installation again.
    if everything applicable above fails, check your installation logs:
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-install-using-logs-elements.html

  • PHP can't connect to MySQL socket

    Since upgrading from 10.4 to Leopard 10.5, PHP can no longer connect to MySQL. It gives the error:
    +Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'+
    I've read the threads and the following Technical Article:
    http://docs.info.apple.com/article.html?artnum=301457
    The problem is that none of the solutions are working!
    I can see that MySQL is creating a socket at:
    /tmp/mysql.sock
    1. So in /etc/apache2/httpd.config I set:
    mysql.default_socket = /tmp/mysql.sock
    But that had no effect, because even after restarting everything it still gives the above error message referring to /var/mysql/mysql.sock
    2. So then I followed the directions to have MySQL create the socket in the /var/mysql/mysql.sock. But any attempt to set the permissions on that directory has no effect or produces an 'unexpected error'.
    3. So then I tried creating an alias from /var/mysql/mysql.sock to /tmp/mysql.sock, but that had no effect either.
    Three possible solutions -- any one of which would solve the problem -- but all three of them fail, and the error message is always the same. What gives?

    Hi,
    I had the exactly the same problem after the 10.5 upgrade, I found following in another forum (seems to be pretty same as your solution 3, except for the mkdir command). After I applied these commands via the terminal window the MySQL worked with my PHP scripts (The PHP needed also some tweaking before working, but is not the issue here).
    ! first create the /var/mysql directory
    sudo mkdir /var/mysql/
    ! Then create the link
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    ! The restart apache (web sharing off and on in the sharing panel)
    Best regards,
    Sebastian

  • I can't connect to MySQL getting Error #2002 after I updated php

    I'm on a mac and I updated my version of PHP and installed the GD library.
    The problem is that I needed up date my connection to the database or something to that affect so I ran this command line:
    sudo mkdir /var/mysql
    sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
    And it worked... but then I restarted my computer and now I can't connect and I'm getting the error I had of...
    #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
    So I tried the above two lines of code and it said those files/directory exist.
    I went into /etc/php.ini file to change this mysql.default_socket = /var/mysql/mysql.sock
    So what do I need to do here to change this permanently?

    Post Unix queries to the Unix forum under OS X Technologies.

  • Can't connect to MySQL Community Server 5.6 from CF11

    I'm trying to connect to MySQL Community Server version 5.6 from Cold Fusion 11. If I choose the DataDirect driver, I get an error message stating that the driver does not support Community Server. So I choose the MySQL5 driver and I am able to verify the connection from the CF Admin page. However, whenever I try to run any queries using the verified datasource, I get a "500 - internal server error".
    Is there an updated driver I can use? Does that driver support Community Server?

    Have either of you turned on "Enable Robust Exception Handling" in CF Administrator so a more detailed error message can be viewed?  If you are using IIS, have you set the Error Pages settings to show "Detailed errors" so it will pass through ColdFusion errors?
    -Carl V.

Maybe you are looking for

  • Need to override CSS style for link

    I've set up a page with an external style sheet. I have a link within a heading that I want to look different from my CSS link style (I want it to match the heading). Is there a way to override the basic style? I tried setting up a class and that did

  • Large ETLTraces folder

    Hello, I have a new Exchange 2013 server. There is a folder "c:\program files\microsoft\exchange server\v15\bin\search\ceres\diagnostics\etltraces" that seems to churn DocumentProcessingTrace_???.etl files constantly (where ??? is an incrementing num

  • Adding crop marks in jpeg export

    Hi All, Is is possible to add crop marks in jpeg export similar to what we have in pdf export. I see SnapshotUtils class but could not see any method to set crop marks. What I need to do to set crop marks? Regards, Alam

  • Motion with windows xp embedded

    I am trying to get some motion code to run under the Windows XP embedded Op system. Has anyone any new knowledge from that existing in the forum? If so can anyone possibly give me a blow by blow account of how to get some sample CVi motion code runni

  • [svn:fx-trunk] 5005: Last PARB changes for FxContainer/FxDataContainer.

    Revision: 5005 Author: [email protected] Date: 2009-02-18 17:21:52 -0800 (Wed, 18 Feb 2009) Log Message: Last PARB changes for FxContainer/FxDataContainer. We're now exposing more properties on the FxContainer from the underlying Group (same for FxDa