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

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • JBossAS-5.0.0.GA
    • Other
    • High

      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();

              Unassigned Unassigned
              siva_rama25 siva Rama krishna Bonepalli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: