Well,I have put my -ds.xml file under WEB-INF and WEB-INF\classes and even META_INF of my application directory, but it all doesn't work! I don't understand why it is so hard for configuration.
But if i put the -ds.xml under the {tomcat}/lib/deploy directory , it at least can find the datasoure when tomcat is started. INFO 01-12 09:34:11,416 (ConnectionFactoryBindingService.java:bindConnectionFactory:148) -Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=CPI_SqlserverDatasource' to JNDI name 'java:CPI_SqlserverDatasource' but i just don't know why my hibernate can't find this datasource under this kind of situation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109501#4109501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109501 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user