Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8688

I'm using jboss-eap-5.0 server getting the exception when connecting to mssql-ds.xml(mssqldb) org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.sql.DataSource but its working fine in jboss4.2.3GA i didn't getting what happen

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: JBossAS-5.0.0.GA
    • Fix Version/s: None
    • Component/s: Other
    • Environment:

      windows xp,Eclipse IDE,jboss-eap-5.0,jboss-4.2.3 GA,JDK1.6,1GB RAM,MSSQL 2005,java,jsp,servlets

    • Estimated Difficulty:
      High

      Description

      Hi all,

      I'm using jboss-eap-5.0 application server trying to get connection with database using jndi and mssql-ds.xml(in default/deploy)
      i'm getting exception org.jboss.resource.adapter.jdbc.WrapperDataSource cannot be cast to javax.sql.DataSource in jboss-eap-5.0 but it's fine everything in jboss4.2.3GA,tomcat6.0. could you please give me solution asap.its urgent.

      i'used jndi like that

      InitialContext ctx = new InitialContext();
      DataSource sd = (DataSource)ctx.lookup(strJNDI);
      con = sd.getConnection();

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                siva_rama25 siva Rama krishna Bonepalli
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: