[jboss-jira] [JBoss JIRA] Commented: (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
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Wed Dec 1 04:48:05 EST 2010
[ https://jira.jboss.org/browse/JBAS-8688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566421#comment-12566421 ]
jaikiran pai commented on JBAS-8688:
------------------------------------
Please use the user forums for questions like this. For this specific question, create a discussion here http://community.jboss.org/en/jbossas/config?view=discussions
Also while creating topics in the forum or creating a bug report in JIRA, please use meaningful and readable subject lines.
> 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
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBAS-8688
> URL: https://jira.jboss.org/browse/JBAS-8688
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Other
> Affects Versions: JBossAS-5.0.0.GA
> Environment: windows xp,Eclipse IDE,jboss-eap-5.0,jboss-4.2.3 GA,JDK1.6,1GB RAM,MSSQL 2005,java,jsp,servlets
> Reporter: siva Rama krishna Bonepalli
> Labels: new_and_noteworthy
> Fix For: JBossAS-5.0.0.GA
>
>
> 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();
>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list