3 Replies Latest reply on Jan 11, 2006 3:23 PM by Karl Gruber

    EJB 3.0 with MS Access

    Karl Gruber Newbie

      Hello,

      I tried the jboss-ide-trailblazer with a MSAccess2000-Database. But I always get the same error while deploying, here is the code from the Eclipse-Console:

      13:09:28,843 INFO [JaccHelper] Initialising JACC Context for deployment: authors-beans.ejb3
      13:09:29,531 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.jboss.ejb3demo.AuthorsBean, class=org.jboss.ejb3demo.AuthorsBean, type=STATELESS
      13:09:30,390 INFO [JaccHelper] org.jboss.ejb3demo.AuthorsBean has no @SecurityDomain - skipping JACC configuration
      13:09:30,437 INFO [Ejb3Deployment] Found persistence.xml file in EJB3 jar
      13:09:30,671 INFO [Environment] Hibernate 3.1
      13:09:30,687 INFO [Environment] hibernate.properties not found
      13:09:30,703 INFO [Environment] using CGLIB reflection optimizer
      13:09:30,703 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      13:09:31,109 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.ejb3demo.Article
      13:09:31,109 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.ejb3demo.Author
      13:09:32,578 INFO [Configuration] processing extends queue
      13:09:32,578 INFO [Configuration] processing collection mappings
      13:09:32,578 INFO [CollectionBinder] Mapping collection: org.jboss.ejb3demo.Author.articles -> ARTICLES
      13:09:32,593 INFO [Configuration] processing association property references
      13:09:32,593 INFO [Configuration] processing foreign key constraints
      13:09:32,734 INFO [Configuration] processing extends queue
      13:09:32,734 INFO [Configuration] processing collection mappings
      13:09:32,734 INFO [Configuration] processing association property references
      13:09:32,734 INFO [Configuration] processing foreign key constraints
      13:09:32,765 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.InjectedDataSourceConnectionProvider
      13:09:32,781 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      13:09:33,765 INFO [SettingsFactory] RDBMS: ACCESS, version: 04.00.0000
      13:09:33,765 INFO [SettingsFactory] JDBC driver: JDBC-ODBC Bridge (odbcjt32.dll), version: 2.0001 (04.00.6304)
      13:09:33,875 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDialect
      13:09:33,921 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      13:09:33,953 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      13:09:33,968 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      13:09:33,968 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      13:09:33,968 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      13:09:33,968 INFO [SettingsFactory] Scrollable result sets: enabled
      13:09:33,968 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      13:09:33,968 INFO [SettingsFactory] Connection release mode: after_statement
      13:09:33,968 INFO [SettingsFactory] Default batch fetch size: 1
      13:09:33,968 INFO [SettingsFactory] Generate SQL with comments: disabled
      13:09:33,968 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      13:09:33,984 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      13:09:34,000 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      13:09:34,000 INFO [SettingsFactory] Query language substitutions: {}
      13:09:34,000 INFO [SettingsFactory] Second-level cache: enabled
      13:09:34,000 INFO [SettingsFactory] Query cache: disabled
      13:09:34,000 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      13:09:34,000 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      13:09:34,000 INFO [SettingsFactory] Structured second-level cache entries: disabled
      13:09:34,031 INFO [SettingsFactory] Statistics: disabled
      13:09:34,031 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: enabled
      13:09:34,031 INFO [SettingsFactory] Default entity-mode: POJO
      13:09:34,656 INFO [SessionFactoryImpl] building session factory
      13:09:36,765 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      13:09:36,781 INFO [Configuration] processing extends queue
      13:09:36,781 INFO [Configuration] processing collection mappings
      13:09:36,781 INFO [Configuration] processing association property references
      13:09:36,781 INFO [Configuration] processing foreign key constraints
      13:09:36,781 INFO [Configuration] processing extends queue
      13:09:36,781 INFO [Configuration] processing collection mappings
      13:09:36,796 INFO [Configuration] processing association property references
      13:09:36,796 INFO [Configuration] processing foreign key constraints
      13:09:36,796 INFO [SchemaExport] Running hbm2ddl schema export
      13:09:36,796 INFO [SchemaExport] exporting generated schema to database
      13:09:37,218 ERROR [SchemaExport] Unsuccessful: create table ARTICLES (articleId int identity not null, title varchar(255) null, body varchar(255) null, authorId int null, primary key (articleId))
      13:09:37,218 ERROR [SchemaExport] [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.
      13:09:37,234 ERROR [SchemaExport] Unsuccessful: create table AUTHORS (authorId int identity not null, name varchar(255) null, primary key (authorId))
      13:09:37,234 ERROR [SchemaExport] [Microsoft][ODBC Microsoft Access Driver] Syntaxfehler in CREATE TABLE-Anweisung.
      13:09:37,281 ERROR [SchemaExport] Unsuccessful: alter table ARTICLES add constraint FKE566C23D843A2A25 foreign key (authorId) references AUTHORS
      13:09:37,281 ERROR [SchemaExport] [Microsoft][ODBC Microsoft Access Driver] Tabelle/Einschränkung kann nicht gefunden werden.
      13:09:37,281 INFO [SchemaExport] schema export complete
      13:09:37,296 INFO [Configuration] processing extends queue
      13:09:37,296 INFO [Configuration] processing collection mappings
      13:09:37,296 INFO [Configuration] processing association property references
      13:09:37,296 INFO [Configuration] processing foreign key constraints
      13:09:37,296 INFO [Configuration] processing extends queue
      13:09:37,296 INFO [Configuration] processing collection mappings
      13:09:37,296 INFO [Configuration] processing association property references
      13:09:37,296 INFO [Configuration] processing foreign key constraints
      13:09:37,296 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      13:09:37,312 INFO [SessionFactoryImpl] Checking 0 named queries
      13:09:37,312 INFO [Ejb3Deployment] Create EntityManager with JNDI name: MSAccessTestDS
      13:09:37,343 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      13:09:37,359 INFO [Ejb3Deployment] EJB3 deployment time took: 8531
      13:09:37,937 INFO [ProxyDeployer] no declared remote bindings for : org.jboss.ejb3demo.AuthorsBean
      13:09:37,984 INFO [ProxyDeployer] there is remote interfaces for org.jboss.ejb3demo.AuthorsBean
      13:09:37,984 INFO [ProxyDeployer] default remote binding has jndiName of org.jboss.ejb3demo.Authors
      13:09:38,312 INFO [EJB3Deployer] Deployed: file:/C:/Apps/jboss-4.0.3SP1/server/all/deploy/authors-beans.ejb3
      13:09:38,453 INFO [TomcatDeployer] deploy, ctxPath=/authors, warUrl=.../tmp/deploy/tmp50691authors-exp.war/


      Can someone help me please??? I'm new in JBoss.
      I have:

      JBoss4.0.3SP1 (installed with the Installer)

      EJB3.0RC3

      JDK1.5

      Eclipse3.1.1

      JBossIDE1.5


      I'm using the following persistence.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <entity-manager>
      MSAccessTestDS
      <jta-data-source>java:/TestDB</jta-data-source>




      </entity-manager>

      I think this is not enough, or???

      Thanks a lot

      Karl

        • 1. Re: EJB 3.0 with MS Access
          Bill Burke Master

          you need to set the database dialect:

          <entity-manager>
          
           ...
           <properties>
           <property name="hibernate.dialect" value="...see hibernate doco"/>
           </properties>
          
          </entity-manager>
          




          • 2. Re: EJB 3.0 with MS Access
            Karl Gruber Newbie

            Thanks a lot,

            I think it helped but now I have another proplem.

            My persistence.xml looks like so:

            <?xml version="1.0" encoding="UTF-8"?>

            <entity-manager>
            MSAccessTestDS
            <jta-data-source>java:/TestDB</jta-data-source>



            </entity-manager>

            And my new error is something with the
            TransactionFactory. Look:

            20:50:10,015 INFO [JaccHelper] Initialising JACC Context for deployment: authors-beans.ejb3
            20:50:10,140 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.jboss.ejb3demo.AuthorsBean, class=org.jboss.ejb3demo.AuthorsBean, type=STATELESS
            20:50:10,234 INFO [JaccHelper] org.jboss.ejb3demo.AuthorsBean has no @SecurityDomain - skipping JACC configuration
            20:50:10,250 INFO [Ejb3Deployment] Found persistence.xml file in EJB3 jar
            20:50:10,250 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.ejb3demo.Article
            20:50:10,265 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.ejb3demo.Author
            20:50:10,281 INFO [Configuration] processing extends queue
            20:50:10,281 INFO [Configuration] processing collection mappings
            20:50:10,296 INFO [CollectionBinder] Mapping collection: org.jboss.ejb3demo.Author.articles -> ARTICLES
            20:50:10,296 INFO [Configuration] processing association property references
            20:50:10,296 INFO [Configuration] processing foreign key constraints
            20:50:10,343 INFO [Configuration] processing extends queue
            20:50:10,343 INFO [Configuration] processing collection mappings
            20:50:10,343 INFO [Configuration] processing association property references
            20:50:10,343 INFO [Configuration] processing foreign key constraints
            20:50:10,343 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.InjectedDataSourceConnectionProvider
            20:50:10,343 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
            20:50:11,343 INFO [SettingsFactory] RDBMS: ACCESS, version: 04.00.0000
            20:50:11,343 INFO [SettingsFactory] JDBC driver: JDBC-ODBC Bridge (odbcjt32.dll), version: 2.0001 (04.00.6304)
            20:50:11,343 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDialect
            20:50:11,359 INFO [TransactionFactoryFactory] Transaction strategy: The classname of a TransactionFactory to use with
            20:50:11,359 ERROR [TransactionFactoryFactory] TransactionFactory class not found
            java.lang.ClassNotFoundException: No ClassLoaders found for: The classname of a TransactionFactory to use with
            at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:292)
            at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
            at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
            at org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:37)
            at org.hibernate.cfg.SettingsFactory.createTransactionFactory(SettingsFactory.java:370)
            at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:120)
            at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823)
            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)
            at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358)
            at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484)
            at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:202)
            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:78)
            at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:525)
            at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:264)
            at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
            at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
            at $Proxy0.create(Unknown Source)
            at org.jboss.system.ServiceController.create(ServiceController.java:341)
            at org.jboss.system.ServiceController.create(ServiceController.java:284)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy10.create(Unknown Source)
            at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy11.create(Unknown Source)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy6.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
            20:50:11,359 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=authors-beans.ejb3
            org.hibernate.HibernateException: TransactionFactory class not found: The classname of a TransactionFactory to use with
            at org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:41)
            at org.hibernate.cfg.SettingsFactory.createTransactionFactory(SettingsFactory.java:370)
            at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:120)
            at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823)
            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)
            at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358)
            at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484)
            at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:202)
            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:78)
            at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:525)
            at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:264)
            at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
            at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
            at $Proxy0.create(Unknown Source)
            at org.jboss.system.ServiceController.create(ServiceController.java:341)
            at org.jboss.system.ServiceController.create(ServiceController.java:284)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy10.create(Unknown Source)
            at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy11.create(Unknown Source)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy6.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
            20:50:11,375 INFO [EJB3Deployer] Deployed: file:/C:/Apps/jboss-4.0.3SP1/server/all/deploy/authors-beans.ejb3
            20:50:11,515 INFO [TomcatDeployer] deploy, ctxPath=/authors, warUrl=.../tmp/deploy/tmp25753authors-exp.war/
            20:50:15,406 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

            --- MBeans waiting for other MBeans ---
            ObjectName: jboss.j2ee:service=EJB3,module=authors-beans.ejb3
            State: FAILED
            Reason: org.hibernate.HibernateException: TransactionFactory class not found: The classname of a TransactionFactory to use with

            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            ObjectName: jboss.j2ee:service=EJB3,module=authors-beans.ejb3
            State: FAILED
            Reason: org.hibernate.HibernateException: TransactionFactory class not found: The classname of a TransactionFactory to use with



            Thank you

            Karl

            • 3. Re: EJB 3.0 with MS Access
              Karl Gruber Newbie

              Sorry,

              but the persistence.xml looks like so:

              <?xml version="1.0" encoding="UTF-8"?>
              
              <entity-manager>
               <name>MSAccessTestDS</name>
               <jta-data-source>java:/TestDB</jta-data-source>
               <properties>
               <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
               </properties>
              </entity-manager>