<datasources>
- <local-tx-datasource><jndi-name>MSSQLDS</jndi-name><connection-url>jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=pubs</connection-url><driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class><user-name>sa</user-name><password>sa</password>
- <!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
- <!-- sql to call on an existing pooled connection when it is obtained from pool
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
--></local-tx-datasource></datasources>
org.jboss.deployment.DeploymentException: Error: can't find data source: java:/MSSQLDS; - nested throwable: (javax.naming.NameNotFoundException: MSSQLDS not bound) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:143)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:428)
省略.......
Caused by: javax.naming.NameNotFoundException: MSSQLDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
省略.....