Unable to get data (DSN connection)

I've got a report file, created using ODBC connexion with DSN File
These report work fine in design mode using crystal report full (not Visual studio)
When I try to open this report in a .net application I've got the following error :
Crystal Reports Windows Forms Viewer
Impossible d'extraire des données de la base de données.
Détails : 
Impossible d'extraire des données de la base de données.
Erreur dans le fichier Postes {A47B5908-2F0A-4A3D-A2A5-A708FEB329EB}.rpt:
Impossible d'extraire les données de la base de données.
Détails : 
Which can be translate by :
Unable to extract datas from database
Details:
My database is Oracle, error code 942 means table or view does not exist
In my .net code I use DSN connection (the same as in design mode) like this :
Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
myConnectionInfo.ServerName = "my_dsn_file"
For your information this report has been made with CR 9 and converted to CR 2008
In CR 9 everything worked fine.
Any idea ?
Thanks

This Forum edito  is buggy ? I had to split my answer otherwise the format is broken
Also you wrote: "User used to create connection (throught DSN) is a generic user, not the user associated with the schema containing the view accessed by the report"
It's odd that this works in CR, CR repsects DB security so if it's not in a schema that user should not have access to anything in Oracle, I'm surprised it works at all. Possibly this is a bug in CR 8.5 and 9 that finally got fixed.
Work arounds, what is the reason you can't add that user account to a schema? Or use an account that has access?
I problably don't use the correct words (I'me not Oracle DBA + translation approximation).
Of course our user "application_user" has right on all the schema of the database, what I want to say it's when you connect to Oracle with a user "application_user" you're connected in the schema corresponding to these user (so "application_user" schema).
And if you want to make request on a table / view from another schema you need to prefix table/view with the corresponding schema (Sale in my previous fictive example)
So in my case CR try to access "CommercialDocument" view in "application_user" schema but this view is not in  this schema, it is in "Sales" schema.
The correct way to access it is Sales.CommercialDocument, that what CR throught .net don't do, but do when run directly in CR developers.
Here is real example (fench name inside), those SQL request have been monitoring througt SQL monitor tools of TOAD :
Execution of postes.rpt report directly in CR :
Timestamp: 10:30:03.881
Successful logon attempt (session tag: 0x6464CB8)
username: 'APPLI_HUET'; database: 'DEV'
Timestamp: 10:30:03.881
SELECT VALUE FROM SYS.NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET'
Timestamp: 10:30:03.896
SELECT VALUE FROM SYS.NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_NCHAR_CHARACTERSET'
Timestamp: 10:30:03.975
SELECT "POSTES"."N_POSTE", "POSTES"."LIB_POSTE", "POSTES"."N_ETAB",
"POSTES"."N_ATELIER", "POSTES"."TPSID", "POSTES"."DT_DEB_ACTIF",
"POSTES"."DT_FIN_ACTIF", "ETAB"."ETAB" FROM   "COMMUN"."ETAB" "ETAB" INNER JOIN
"GESTION_DES_TEMPS"."POSTES" "POSTES" ON "ETAB"."N_ETAB"="POSTES"."N_ETAB"
WHERE  "POSTES"."N_ETAB"=2 ORDER BY "POSTES"."N_POSTE"
Timestamp: 10:50:29.178
Logoff (session tag: 0x6464CB8).

Similar Messages

  • Table are not prefixed with Schema in  SQL request - Unable to get Data

    I began this new thread because I closed the [previous one|Unable to get data (DSN connection); a little bit early, I believed it was OK but no the problem still here.
    First my architecture :
    Oracle 9g
    +500 Reports made under CR developper 8.5 or 9.0
    Report opened in VB .net application, framework 2.0 using CR runtime 8.5 and 9.0
    We want to upgrade CR version to 2008, so modification of reports will be done with CR 2008 Developper, and we want to
    use only CR 2008 runtime.
    The problem :
    Everything works fine in CR Developer, but the same report with the same parameters failed when called inside .net.
    The error is "Unable to get data", the database connection is OK but the queries mades from inside the report are wrong :
    The tables/views in the from statement are not prefixed with the Schema, so Oracle don't find them.
    Example (SQL monitoring done with TOAD)
    Execution of postes.rpt report directly in CR :
    Timestamp: 10:30:03.881
    Successful logon attempt (session tag: 0x6464CB8)
    username: 'APPLI_HUET'; database: 'DEV'
    SELECT ...
    FROM  "COMMUN"."ETAB" "ETAB" INNER JOIN "GESTION_DES_TEMPS"."POSTES" "POSTES"
    ON "ETAB"."N_ETAB"="POSTES"."N_ETAB"
    WHERE  "POSTES"."N_ETAB"=2 ORDER BY "POSTES"."N_POSTE"
    Timestamp: 10:50:29.178
    Logoff (session tag: 0x6464CB8).
    Same report, same authentication but throught .net program :
    Timestamp: 11:01:24.569
    Successful logon attempt (session tag: 0xA93FC38)
    username: 'APPLI_HUET'; database: 'DEV'
    SELECT ...
    FROM   "ETAB" "ETAB" INNER JOIN "POSTES" "POSTES"
    ON "ETAB"."N_ETAB"="POSTES"."N_ETAB" WHERE  "POSTES"."N_ETAB"=2 ORDER
    BY "POSTES"."N_POSTE"
    Runtime error occurred: 942 (ORA-00942: Table ou vue inexistante)
    The .net code :
    Dim _report As New ReportDocument()
    _report.Load("report.rpt", OpenReportMethod.OpenReportByDefault)
    Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
    myConnectionInfo.ServerName = "DSN_file"
    myConnectionInfo.UserID = p_Userid
    myConnectionInfo.Password = p_Password
    ' to see code in this method se my original post
    SetDBLogonForReport(myConnectionInfo, _report)
    SetDBLogonForSubreports(myConnectionInfo, _report)
    Dim frmViewer As New CrystalReportViewer
    frmViewer.CrystalReportViewer1.ReportSource = _report
    frmViewer.Show()
    Any ideas ?

    Thanks for the and sorry but I don't understand.
    I've made a research of Location on this forum the more intersting thread I've found is rpt-files do not function anymore after deploying to a different database, but I still don't understand.
    I take a look at all code sample and I can't found anything.
    You say that .Location need to be set, indeed Location property of CrystalDecisions.CrystalReports.Engine.Table object only contains table name.
    I tried to overrides this value by the fully qualified table name (ie Schema.Table, for example GESTION_DES_TEMPS.POSTES), and it work  BUT it wouldn't be the solution, my code is designed to be generic, I can't have a database to know wich schema add before differents table name.
    Why when we execute the report directly in CR 2008 developper we don't have to redefine the table location ?
    Another test :
    I've made a new report directly in CR 2008 with a DSN, launch it in .net with the same DSN (server) : OK
    Then I launch it in .net with another DSN, it work also.
    Why report done with Crystal 8.5 or 9.0 have this problem ?
    I'me gonna be mad....
    Edited by: Yoann DAVID on Jan 8, 2010 3:32 PM

  • Error while applying a patch "Unable to get the database connection"

    Dear Experts,
    A patch which got successfully applied is failing Production and the error is kind of surprising to me.
    Apps version is 11.5.10.2
    db version is 10.2.0.4
    The worker log file shows
    Time when worker restarted job: Thu Nov 24 2011 22:14:52
    Start time for file is: Thu Nov 24 2011 22:14:52
    adjava -ms128m -mx256m -nojit oracle.apps.fnd.odf2.FndXdfCmp &un_apps &pw_apps &un_apps &pw_apps &jdbc_protocol &jdbc_db_addr table &fullpath_pa_patch/115
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
      Temporarily resetting CLASSPATH to:
      "/erp/oracle/prodappl/ad/11.5.0/java/adjri.zip:/usr/java14/jre/lib/charsets.jar:/usr/java14/jre/lib/core.jar:/usr/java14/jre/lib/graphics.jar:/usr/java1
      Calling /usr/java14/bin/java ...
    Exception occured
                  Copyright (c) 2003 Oracle Corporation
                     Redwood Shores, California, USA
             XDF(XML Object Description File) Comparison Utility
                            Version 1
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    Unable to get the database connection using schema username/passwordIo exception: The Network Adapter could not establish the connection
    AD Run Java Command is complete.
                         Copyright (c) 2002 Oracle Corporation
                            Redwood Shores, California, USA
                                        AD Java
                                     Version 11.5.0
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    AD Worker error:
    The above program failed.  See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Thu Nov 24 2011 22:14:53
    {code}
    The error says database connection error.  I am able to connect to the database using sqlplus.  I tried to restart the failed worker, but the same error is repeating. 
    Any help would be appreciated.
    Thanks
    qARS
    Edited by: user7640966 on Nov 24, 2011 9:07 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hussein,
    One thing which I noticed now is in the apps Tier the
    tnsnames.ora under $TNS_ADMIN
    shows entry like this:
    PROD=
            (DESCRIPTION=
                    (ADDRESS=(PROTOCOL=tcp)(HOST=<appsServerName>)(PORT=1521))
                    (ADDRESS=(PROTOCOL=tcp)(HOST=<dbServer>)(PORT=1521))
                (CONNECT_DATA=
                    (SID=PROD)
            )Actually *(ADDRESS=(PROTOCOL=tcp)(HOST=<appsIPaddress>)(PORT=1521))* this line in the tnsnames.ora is not correct. In fact the appsServerName should be replaced with dbServerName
    I deleted the tnsnames.ora and reran autoconfig but it is again recreating the same entry.
    Any clue how this can be fixed?
    Thanks
    qARS

  • DropDrown unable to get data in ALV

    Hi,
    I'm trying to put an dropdown by key (or index) into an ALV but I'm unable to get data in the dropdown. Can someone please help me with this?
    I was watching this threads on topics at the forum, but I can not solve this problem.
    Copy my code.
      DATA: lr_col                            TYPE REF TO cl_salv_wd_column,
                 lr_dropdown                  TYPE REF TO cl_salv_wd_uie_dropdown_by_key,
                 l_cmp_usage                TYPE REF TO if_wd_component_usage,
                 l_alv_model                   TYPE REF TO cl_salv_wd_config_table,
                 l_ref_interfacecontroller  TYPE REF TO iwci_salv_wd_table.
      l_cmp_usage = wd_this->wd_cpuse_doc_measure( ).
      IF l_cmp_usage->has_active_component( ) IS INITIAL.
        l_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_doc_measure( ).
      l_alv_model = l_ref_interfacecontroller->get_model( ).
      l_alv_model = l_ref_interfacecontroller->get_model( ).
      l_alv_model->if_salv_wd_table_settings~set_read_only( abap_false ).
      lr_col = l_alv_model->if_salv_wd_column_settings~get_column(
        id = 'VALEUR_DIFF' ).
      CREATE OBJECT lr_dropdown
        EXPORTING
          selected_key_fieldname = 'VALEUR_DIFF '.
      lr_col->set_cell_editor( lr_dropdown ).
      DATA:
      lo_nd_ctx_tab TYPE REF TO if_wd_context_node,
      lo_ndinfo_ctx_tab TYPE REF TO if_wd_context_node_info,
      lt_value_set TYPE TABLE OF wdr_context_attr_value,
      ls_value_set TYPE wdr_context_attr_value.
      ls_value_set-value = '01'.
      ls_value_set-text = 'One'.
      APPEND ls_value_set TO lt_value_set.
      ls_value_set-value = '02'.
      ls_value_set-text = 'Two'.
      APPEND ls_value_set TO lt_value_set.
      lo_nd_ctx_tab = wd_context->get_child_node( 'DOC_MEASURE' ).
      lo_ndinfo_ctx_tab = lo_nd_ctx_tab->get_node_info( ).
      lo_ndinfo_ctx_tab->set_attribute_value_set(
        name = 'VALEUR_DIFF' value_set = lt_value_set ).
      DATA: lt_valueset TYPE TABLE OF wdr_context_attr_value,
                ls_valueset TYPE wdr_context_attr_value,
                lr_node TYPE REF TO if_wd_context_node,
                lr_nodeinfo TYPE REF TO if_wd_context_node_info.
      lr_node = wd_context->get_child_node( 'DOC_MEASURE' ).
      lr_nodeinfo = lr_node->get_node_info( ).
      lr_nodeinfo->set_attribute_value_set(
      EXPORTING
        name = 'VALEUR_DIFF'
        value_set = lt_valueset
    Thanks.
    Matías.

    Hi,
    In your code, you are trying to do set_attribute_value_set twice. If you read your code carefully, you are setting the values once using lt_value_set where you have correctly filled the values. But after this, you are again trying using lt_valueset without filling any values. This is why your previous value-list gets overwritten and you see nothing in the dropdown. Remove the following lines in your code and it will work fine.
    DATA: lt_valueset TYPE TABLE OF wdr_context_attr_value,
    ls_valueset TYPE wdr_context_attr_value,
    lr_node TYPE REF TO if_wd_context_node,
    lr_nodeinfo TYPE REF TO if_wd_context_node_info.
    lr_node = wd_context->get_child_node( 'DOC_MEASURE' ).
    lr_nodeinfo = lr_node->get_node_info( ).
    lr_nodeinfo->set_attribute_value_set(
    EXPORTING
    name = 'VALEUR_DIFF'
    value_set = lt_valueset
    Please get back if you are facing any more issues.
    Regards,
    Nithya

  • Unable to get date in yyyy.MM.dd format

    Hi All
    I am unable to get date in yyyy.MM.dd format.
    I tried everything said in the previous postiongs.Nothig seem to work.
    I am getting date in yyyy-MM-dd
    This needs to be changed in said format. Also datatype should be date only.
    Regards
    Pratyush

    You can solve the problem in two ways
    First way;
    Format formatter = new SimpleDateFormat("yyyy.MM.dd");
    String s = formatter.format(date);
    OR
    Assuming your context attribute name is Date
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Date");
    attributeInfo.getDataAttribute().getScalarType().format("yyyy.MM.dd");
    Second way;
    By changing the default Language of your browser. You have to check the format of each language and choose the language that gives the date in yyyy.MM.dd format.
    Rgs,
       Dni

  • ConMan Bootstrap unable to get a t3 connection t

    <ConMan> Bootstrap unable to get a t3 connection ..What can be the reason for
    the above mentioned error.

    Hi,
    "localhost/127.0.0.1" is not a valid address! Decided between either
    "t3://localhost" or "t3://127.0.0.1".
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Adrian Blakey" <[email protected]> wrote in message
    news:[email protected]..
    Tue Sep 05 13:23:58 PDT 2000:<I> <ConMan> Bootstrap unable to get a t3
    connection to localhost/127.0.0.1
    Wl 5.1.0 sp5 Linux JDK1.3
    Anyone know what causes this and how to fix it?

  • HT201415 My data connection works when its in an andriod phone but when I switch it over to the iphone 4 unable to get data connection?

    I have just swapped from Galaxy 3 to the iPhone 4 but once I swap the chip card over I do not get Data Connection?

    Most carriers diferentiate between regular data plans and iPhone data plans. Also, if you go into Settings, is celluar data turned on? Check with your carrier.

  • Experia M dual c2005 unable to get data roaming since update to android 4.3

    Hi,since the phone was updated (automatically) to android 4.3 i canty get any data roaming. any suggestion?

    I have the same problem with my Xperia M Dual C2004. I cannot get data to work when I'm abroad. Data works fine when I'm on my national network but as soon as I cross a border and roam on a different network a warning triangle shows in the notification line on top of the phone: Data transmission is turned off - no connection! All the right boxes are ticked off and International Roaming has been chosen before I left my home network. Voice calls and SMS works fine while I'm abroad. It has not been a problem for me before as International Roaming from your home service provider has been prohibitively expensive. Part of my reason to buy a Dual SIM phone was the ability to use a local SIM for Data in slot one. But as International Roaming prices are comming down I would like to be able to use this option. I have used it with SIM cards from US T-mobile and German LIDL as well as a couple of Danish service providers. They alle work fine as long as no borders are crossed. Android version is 4.3 and Version Number is 15.5.A.1.5. The latest and final update. I'm looking into a possible downgrade to 15.2.A.2.5 as mentioned above. Can anyone point me to where I can find this for a C2004? I have been able to find it for a C2005. But for C2004 the best I can find is 15.2.A.1.12 something called Storefront.    

  • Unable to get to Xfinity Connect

    I have a problem.  It seems that the Xfinity Connect email is not working right.  I try getting to Xfinity Connect but I get trouble connecting to it!  Does anyone know when the email issues will be fixed?  I'm using Google Chrome, BTW.  

    Again wrote:
    You're going to need to supply us with more information.  Are you getting any error messages?  Seeing the spinning blue dots?  Have you cleared your cache and cookies?  Tried a different browser?  Any recent changes to your computer?Well, I can see that the Xfinity Connect thing is mostly fixed, both the Email inbox and the mobile one, but sometimes the commands get timed out in the latter one.  I can say that Xfinity Connect is pretty okay for now.

  • Unable to get Data Connection on Treo Pro after Flying (Sprint)

    I got my Treo Pro a few weeks ago and have really had no issues. It has been a great phone, but I just ran into an issue I cannot explain.
    I had to fly from Mpls to Miami and put my phone in "airplane mode" when the flight started. When I landed I took the phone out of "airplane mode" and was able to get voicemail and make calls. However, when I tried to get email or open a browser session the phone kept giving me an error. It was trying to dial #777 to begin a data session (I think) and said it was unable to make a connection. I removed the battery and forced the phone to reboot and everything work just fine.
    Someone I traveled with suggested I give it some time to "sync" up with the network, so on the return trip I just let phone continue to try and establish a session for about an hour. After an hour with no email I got frustrated and rebooted the phone... again everything worked just fine. Am I going to need to reboot this phone every time I travel? Is there something I am missing here?
    Is anyone else seeing this? Is it a Sprint Issue? Please help. Thanks in advance.
    Dan
    Post relates to: Treo Pro T850 (Sprint)
    This question was solved.
    View Solution.

    Hello and thank you for using the Palm Help Forums!
    That's strange and I've never heard of this issue. I usually don't jump to this method of troubleshooting right away but I do not have any other idea to resolve this issue. Try to do a hard reset on the device. A hard reset will erase all data on the device and restore settings back to default. Be sure to back up all data on a computer to Outlook via Activesync or Windows Mobile Device Center (WMDC). For further information and instructions on hard resets please visit kb.palm.com and look up article number 43146 in the solution id search field.
    Please let me know if you have any further questions or concerns.
    -Pat 
    Post relates to: Treo 800w (Sprint)

  • Unable to get Results using Connection Pool

    Hi All,
    I have been trying to create JDBC connection pooling provided by the Apache Tomcat 4.0 with MySQL 4.0.16-nt at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html and my configuration is as follows
    server.xml
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/TestDB"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/TestDB">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- Maximum number of dB connections in pool. Make sure you
    configure your mysqld max_connections large enough to handle
    all of your db connections. Set to 0 for no limit.
    -->
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- MySQL dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>javauser</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>javadude</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <!-- The JDBC connection url for connecting to your MySQL dB.
    The autoReconnect=true argument to the url makes sure that the
    mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
    connection. mysqld by default closes idle connections after 8 hours.
    -->
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    </Context>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    test.jsp
    <jsp:useBean id="foo" class="foo.DBTest" scope="page" />
    <html>
    <head>
    <title>DB Test</title>
    </head>
    <body>
    <%
    foo.DBTest tst = new foo.DBTest();
    tst.init();
    %>
    <h2>Results</h2>
    Foo <%= tst.getFoo() %>
    Bar <%= tst.getBar() %>
    </body>
    </html>
    DBTest.java package
    package foo;
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class DBTest {
    String foo = "Not Connected";
    int bar = -1;
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Boom - No Context");
    DataSource ds =
    (DataSource)ctx.lookup(
    "java:comp/env/jdbc/TestDB");
    if (ds != null) {
    Connection conn = ds.getConnection();
    if(conn != null) {
    foo = "Got Connection "+conn.toString();
    Statement stmt = conn.createStatement();
    ResultSet rst =
    stmt.executeQuery(
    "select id, foo, bar from testdata");
    if(rst.next()) {
    foo=rst.getString(2);
    bar=rst.getInt(3);
    conn.close();
    }catch(Exception e) {
    e.printStackTrace();
    public String getFoo() { return foo; }
    public int getBar() { return bar;}
    Now when I am trying to run this on browser, everything goes fine except it doesn't show the expected results, instead of that it shows following in the browser:-
    Results
    Foo Not Connected
    Bar -1
    Can anybody help me out as to why I am getting such result while everything is right from my side. Is the program unable to connect to the database or it is not supporting the JDBC version that I am using.
    Thanks in advance
    Regards
    Vikas

    I've seen cases where NOT using the ResourceParams section, and instead using attributes in the Resource section will fix this. Don't know why.
    i.e.
    Instead of using:
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>use the driver attribute of the Resource tag:
    <Resource name="jdbc/TestDB"
    auth="Container"
    type="javax.sql.DataSource"
    driver="org.gjt.mm.mysql.Driver"/>Also note...I don't use the org.gjt.mm.mysql.Driver class (which is in the distribution), I use com.mysql.jdbc.Driver. Any reason you don't? This could be part of it. I don't really know.

  • Unable to get data from a xml file...

    hi everybody....
    i'm new with spry....can you tell me what's wrong with this
    code? I'm just unable to display the xml content from a
    database...thanks in advance for any help :)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
    http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Documento senza titolo</title>
    <link href="css/thrColEls.css" rel="stylesheet"
    type="text/css" />
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var articoli = new Spry.Data.XMLDataSet("
    http://www.openweb.in/xml.php",
    "wp_posts/post");
    //-->
    </script>
    <link href="SpryAssets/SpryCollapsiblePanel.css"
    rel="stylesheet" type="text/css" />
    </head>
    <body class="thrColEls">
    <div id="container">
    <div id="sidebar1">
    <div id="articoli" spry:region="articoli">
    <ul>
    <li spry:repeat="articoli"><a href="note1.html"
    onclick="articoli.setCurrentRowNumber(0); return
    false;">{titolo}</a></li>
    </ul>
    </div>
    <!-- end #sidebar1 --></div>
    <div id="mainContent">
    <div id="CollapsiblePanel1" class="CollapsiblePanel"
    spry:detailregion="articoli">
    <div class="CollapsiblePanelTab"
    tabindex="0"><h3>{titolo}</h3></div>
    <div class="CollapsiblePanelContent">
    <p>{testo}</p></div>
    </div>
    <p> </p>
    <!-- end #mainContent --></div>
    <!-- Questo elemento di clearing deve seguire
    immediatamente il div #mainContent al fine di forzare il div
    #container a contenere tutti i float di livello inferiore
    --><br class="clearfloat" />
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var CollapsiblePanel1 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    //-->
    </script>
    </body>
    </html>

    ok, thanks!
    i'd like to ask one more thing, if you don't mind...
    i want to make a sliding panel where each link leads to a
    different article in the wml file....like in this page:
    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsSample.html#Hor izontalSliding
    how to call the ID article from the xml?.....
    can you give a look to this code?....thanks a lot:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Sliding Panels Sample</title>
    <link href="
    http://labs.adobe.com/technologies/spry/widgets/slidingpanels/SprySlidingPanels.css"
    rel="stylesheet" type="text/css" />
    <link href="
    http://labs.adobe.com/technologies/spry/css/samples.css"
    rel="stylesheet" type="text/css" />
    <style type="text/css">
    hr, .clearAll {
    clear: both;
    .SlidingPanels {
    width: 300px;
    height: 300px;
    .SlidingPanelsContent {
    width: 300px;
    height: 300px;
    #example2.SlidingPanels {
    float: left;
    #example2 .SlidingPanelsContentGroup {
    float: left;
    width: 10000px;
    #example2 .SlidingPanelsContent {
    float: left;
    #example3.SlidingPanels {
    float: left;
    #example3 .SlidingPanelsContentGroup {
    float: left;
    width: 900px;
    #example3 .SlidingPanelsContent {
    float: left;
    #example3_nav.SlidingPanels {
    float: left;
    #example3_nav .SlidingPanelsContentGroup {
    float: left;
    width: 900px;
    #example3_nav .SlidingPanelsContent {
    float: left;
    </style>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SprySlidingPanels.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var articoli = new Spry.Data.XMLDataSet("
    http://www.openweb.in/xml.php",
    "wp_posts/post");
    articoli.setColumnType("testo","html");
    //-->
    </script>
    </head>
    <body>
    <p>
    Navigate by id:
    <div id="articoli" spry:region="articoli">
    <ul>
    <li spry:repeat="articoli"><a href="#"
    onclick="sp2.showPanel('{ID}'); return
    false;">{titolo}</a></li>
    </ul>
    </div>
    <a href="#" onclick="sp2.showFirstPanel(); return
    false;">First</a> |
    <a href="#" onclick="sp2.showPreviousPanel(); return
    false;">Previous</a> |
    <a href="#" onclick="sp2.showNextPanel(); return
    false;">Next</a> |
    <a href="#" onclick="sp2.showLastPanel(); return
    false;">Last</a>
    </p>
    <p> </p>
    <div id="example2" class="SlidingPanels" tabindex="0"
    spry:detailregion="articoli">
    <div class="SlidingPanelsContentGroup">
    <div id="{ID}" class="SlidingPanelsContent p1">
    <h3>{titolo}</h3>
    <p>{testo}</p></div>
    </div>
    </div>
    <script type="text/javascript">
    var sp2 = new Spry.Widget.SlidingPanels('example2');
    </script>
    <p class="clearAll"> </p>
    <hr />
    </body>
    </html>

  • I just purchased a hp laser jet printer m1217 with AirPrint, i am unable to get it to connect to my time capsule wirelessly, i am currently using WPA2 personal any suggests

    I Just puchased a HP laserjet printer M1217, i am trying to print wirelessly , the printer doesnot recognise my network, i am using a apple timemachine using WPA2 personal, anyone have any ideas

    Don't know if you ever figured this out but here is the answer...
    I just spent the last two days on this and have finally sorted it out. It actually isn't that hard to do but for some reason, no one has consolidated the information in one place!
    First and foremost, make sure that you have all the latest and greatest firmware updates for your printer, your computer and your mobile devices.
    Next, you need to connect your printer to your network via an ethernet cable, this is the only way to get in to the printer softare to configure it for your wireless network.
    Navigate the printer menus on the keypad to Reports>Config Report and print this report. It will provide you with the IP adress and IPv4 address for the printer.
    With the printer connected to your network and powered on, point your browser to the IP address of the printer. If this doen't work (it didn't for me) use the IPv4 address.
    This will open the configuration panel for the printer and will let you configure the wireless for the printer so that it can join your wireless network. You will see various tabs across the top. Select network. Then along the left you will see wireless. Choose that. Now you should see a list of wireless networks available including your very own home network. Choose that one, enter your password and hit apply.
    Disconnect the ethernet cable and you should be ready to Airprint from all devices. This worked for me, I can't imagine it won't work for all...then again...

  • Unable to get an internet connection for CC???

    Hi there,
    I am wanting to provide InDesign CC to some of my customers but am having difficulties with this.
    Please can someone tell me how the Creative Cloud and then links within InDesign need to be configured on a business network to allow access?
    I would have imagined that it would look at the internet settings and follow those but no.  I can only achieve this by coming off the network and accessing an open wifi connection.
    I am also unable to find the network config area for either the creative cloud interface or the app itself and is proving quite annoying.
    Please help.
    Thanks,
    Marc

    Hi Marc,
    To activate Indesign CC and other CC application internet connection mandatory if you are not able to activate the CC application with your internet connection then please contact your IT Engineer and ask them to follow then instruction given in kb document : http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Regards,
    Jatin Dembla

  • Lumia 635- Unable to get emails and connect to Cor...

    Can,t get my emails or connect to cortana
    Moderator's Note: Post was moved to the appropriate board and amended the title.

    You'll have to provide more information on these two problems.
    For your e-mail, have you been able to successfully set up the account(s)? Are there any error messages?
    For Cortana, it is available in a limited number of markets so a lot depends on your regional settings. Assuming that it's available in your country and your settings are correct, then again - are there any error messages or what happens when you try to access it?

Maybe you are looking for

  • My PC has been restored to factory settings some of my photos are in a album on my iphone only how can i get them back onto my pc

    I have had to restore my PC to factory settings and didnt back up all of my photos but they are in seperate albums on my iphone 4 how can i get them back onto my pc many thaks johnmall

  • IPad in the Enterprise

    Hi all, Do you know if there is a way to limit the enterprise users to download only the applications that are "accepted" by the company? Is there kinda a config profile to set up? Any help greatly appreciated. Thanks and cheers, Pierreg256

  • Java.io.File renameTo does not work on Solaris

    Hi Experts, I have a code-piece which tries to move files from one directory to another on the SAME FILE SYSTEM using java.io.File.renameTo method. It works fine when there less no. of files in the source directory. But the renameTo does not work as

  • Apple TV 2 & shared folders

    Can Apple TV 2 connect to shared folders on my Mac? Is it possible to watch movies from shared folders on Apple TV 2?

  • Moving music back after reinstall

    My daughter's imac G3 was a mess. She needed copies of some of the files, but not much of it so I hooked up an external drive and copied her existing hard drive onto it. I didn't use CCC or anything like it because I was intending on starting from sc