I'm using SQL Server 2000, JBoss 3.2.1, and the microsoft jdbc driver.
On my development machine (Win XP pro) the app works fine.
On the server (Win server 2003 small bus edition) I get exceptions deploying the EJBs
(see stack trace below).
The database port (1433) is open and I've confirmed sql server is listening on it. Sql
server log does not show any connection attempts (failed or successful). I've
double-checked database name, user, password, jndi name. The user can log into the
database successfully via MS Query Analyzer.
Any ideas?
My mssql-ds.xml file looks like this:
| Marketing
|
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=marketing
| com.microsoft.jdbc.sqlserver.SQLServerDriver
| myUserName
| myPassword
|
>From the system.log:
2004-11-02 18:02:13,843 ERROR [org.jboss.ejb.EntityContainer] Starting failed
| org.jboss.deployment.DeploymentException: Could not load class:
| at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityCommandMetaData.(JDBCEntityCommandMetaData.java:61)
| at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JDBCEntityMetaData.java:699)
| at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:303)
| at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:75)
| at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:737)
| at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:430)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:372)
| at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170)
| at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
| at $Proxy11.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:392)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy22.start(Unknown Source)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:329)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
| at $Proxy11.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:392)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy19.start(Unknown Source)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
| at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.mx.util.MBeanPr