3 Replies Latest reply on Aug 20, 2004 2:04 PM by forhead

    JBoss, Hibernate, JDBC, hotdeploy causes error

    forhead

      Hello

      Does anyone have any idea why I am getting an error when I hotdeploy to JBoss 3.2.3. This has not happened before. I start JBoss and no error. Then I hotdeploy application to JBoss and then, while hotdeployment goes on, Hibernate tries to create a new connection. And then comes an error through JBoss pool management that says 'could not get connection'. Now because of that, application don't work. I use jTDS driver v0.9. And problem comes with and without cursor mode. I tried with MS SQL Server JDBC Driver also (in cursor mode), but the error comes with that too. If I just start JBoss without hotdeployment, then the error does not come.

        • 1. Re: JBoss, Hibernate, JDBC, hotdeploy causes error
          forhead

          Here is stack trace: LocalManagedConnectionFactory.createManagedConnection crashes at line 160.

          09:15:50,995 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection:
          org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.RuntimeException: No message resource found for message property prop.servertype)
          at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:160)
          at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:477)
          at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:213)
          at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:496)
          at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:425)
          at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:318)
          at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:477)
          at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
          at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:122)
          at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:56)
          at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)

          • 2. Re: JBoss, Hibernate, JDBC, hotdeploy causes error
            forhead

            We believe that the problem is in hotdeployment: JBoss does not manage to undeploy the application and connections and that is why hotdeployment fails when Hibernate asks for a connection from JBoss connection manager. I use jTDS driver, but problems occur with MS JDBC Driver too. So how am I supposed to debug this problem?

            • 3. Re: JBoss, Hibernate, JDBC, hotdeploy causes error
              forhead

              driver jar should not be inside EAR file