1 Reply Latest reply on Sep 24, 2008 12:43 AM by Rishabh Chandra

    jboss transactions errors

    Rishabh Chandra Newbie

      Hi all,
      I am using hibernate 3 with JTA transactions which are supplied by Jboss. When deploying my war on Jboss4.2.3GA I am getting the stacktrace below.
      To me it seems like defect in Jboss arjuna transaction code. Also I believe it is related to JIRA ticket JBAS-4481. The below stack strace is produced when I deploy this applicaiton on a fresh run of Jboss. If I dont restart Jboss and redeploy the app with minor changes (so the deployer redeploys the app) i get a folowing error:

      [STDERR] javax.transaction.NotSupportedException
      [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.begin(BaseTransaction.java:79)
      [STDERR] at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.begin(BaseTransactionManagerDelegate.java:77)
      this strengthens my belief that this is because of JIRA ticket JBAS-4481.
      So potentially there are 2 issues.
      1.the transaction does not get created properly
      2.the javax.transaction.NotSupportedException exception

      Any feedback from you people is appreciated.
      Teh

      Hibernate version:3.2.3GA

      Code using transactions

      UserTransaction tx = null;
      HibernateUtil.createAndSetSessionFactory("hibernate.cfg.xml", "mydb");
      System.out.println("startApplication(): context load complete.");

      Event theEvent = new Event();
      theEvent.setTitle("tom");
      theEvent.setDate(new Date());

      try {
      System.out.println("startApplication(): getting the UserTransaction.");
      tx = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction");
      } catch (NamingException e1) {
      e1.printStackTrace();
      }

      try {
      tx.begin();
      HibernateUtil.getSessionFactory("mydb").getCurrentSession().save(theEvent);
      tx.commit();

      } catch (NotSupportedException e) {


      Full stack trace of any exception that occurs:

      18:29:59,171 INFO [Server] Starting JBoss (MX MicroKernel)...
      18:29:59,171 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
      18:29:59,187 INFO [Server] Home Dir: D:\jboss-4.2.1.GA
      18:29:59,187 INFO [Server] Home URL: file:/D:/jboss-4.2.1.GA/
      18:29:59,187 INFO [Server] Patch URL: null
      18:29:59,187 INFO [Server] Server Name: default
      18:29:59,187 INFO [Server] Server Home Dir: D:\jboss-4.2.1.GA\server\default
      18:29:59,187 INFO [Server] Server Home URL: file:/D:/jboss-4.2.1.GA/server/default/
      18:29:59,203 INFO [Server] Server Log Dir: D:\jboss-4.2.1.GA\server\default\log
      18:29:59,203 INFO [Server] Server Temp Dir: D:\jboss-4.2.1.GA\server\default\tmp
      18:29:59,203 INFO [Server] Root Deployment Filename: jboss-service.xml
      18:29:59,718 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
      18:29:59,718 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02,Sun Microsystems Inc.
      18:29:59,718 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      18:30:00,375 INFO [Server] Core system initialized
      18:30:03,515 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      18:30:03,515 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      18:30:05,437 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      18:30:05,437 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      18:30:05,656 INFO [TransactionManagerService] Starting recovery manager
      18:30:05,765 INFO [TransactionManagerService] Recovery manager started
      18:30:05,765 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      18:30:09,671 INFO [EJB3Deployer] Starting java:comp multiplexer
      18:30:12,171 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756)
      18:30:13,546 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not fo
      n the java.library.path: C:\Program Files\Java\jdk1.5.0_16\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\CA\Dcs\DMScripting\;C:\Program F
      CA\DCS\CAWIN\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\WinZip;C:\Progr
      les\QuickTime\QTSystem\;C:\Program Files\Reflection\;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\Program Files\Java\jdk1.5.0_16\bin;C:
      he-ant-1.7.1\bin;C:\apache-maven-2.0.9\bin;D:\eclipse;C:\JOB-4.3.3-bin\bin;D:\INSTALL\UnixCommands;C:\Program Files\Rational\common;C:\Program Fi
      ational\ClearCase\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell
      18:30:13,656 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
      18:30:13,656 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
      18:30:13,656 INFO [Catalina] Initialization processed in 285 ms
      18:30:13,656 INFO [StandardService] Starting service jboss.web
      18:30:13,656 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA
      18:30:13,718 INFO [Catalina] Server startup in 53 ms
      18:30:13,875 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      18:30:14,828 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      18:30:15,390 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp46013jbossws-context-exp.war/
      18:30:15,578 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      18:30:16,906 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      18:30:17,562 INFO [MailService] Mail Service bound to java:/Mail
      18:30:17,812 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      18:30:17,953 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      18:30:18,062 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      18:30:18,171 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      18:30:18,453 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      18:30:18,562 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      18:30:18,578 INFO [QuartzResourceAdapter] start quartz!!!
      18:30:18,640 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      18:30:18,671 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      18:30:18,671 INFO [RAMJobStore] RAMJobStore initialized.
      18:30:18,671 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'qua
      roperties'
      18:30:18,687 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      18:30:18,687 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      18:30:19,296 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'j
      efaultDS'
      18:30:19,609 INFO [A] Bound to JNDI name: queue/A
      18:30:19,625 INFO [B] Bound to JNDI name: queue/B
      18:30:19,625 INFO [C] Bound to JNDI name: queue/C
      18:30:19,625 INFO [D] Bound to JNDI name: queue/D
      18:30:19,625 INFO [ex] Bound to JNDI name: queue/ex
      18:30:19,656 INFO [testTopic] Bound to JNDI name: topic/testTopic
      18:30:19,656 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      18:30:19,656 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      18:30:19,671 INFO [testQueue] Bound to JNDI name: queue/testQueue
      18:30:19,718 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
      18:30:19,765 INFO [DLQ] Bound to JNDI name: queue/DLQ
      18:30:19,921 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
      a:JmsXA'
      18:30:20,015 INFO [TomcatDeployer] deploy, ctxPath=/datasourceTest, warUrl=.../tmp/deploy/tmp46042datasourceTest-exp.war/
      18:30:20,140 INFO [STDOUT] startApplication(): starting context load
      18:30:20,203 INFO [Environment] Hibernate 3.2.4.sp1
      18:30:20,218 INFO [Environment] hibernate.properties not found
      18:30:20,218 INFO [Environment] Bytecode provider name : javassist
      18:30:20,234 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      18:30:20,328 INFO [Configuration] configuring from resource: hibernate.cfg.xml
      18:30:20,328 INFO [Configuration] Configuration resource: hibernate.cfg.xml
      18:30:20,421 INFO [Configuration] Reading mappings from resource : Event.hbm.xml
      18:30:20,562 INFO [HbmBinder] Mapping class: com.al.aig.Event -> EVENTS
      18:30:20,609 INFO [Configuration] Configured SessionFactory: null
      18:30:20,703 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
      18:30:20,703 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 5
      18:30:20,703 INFO [DriverManagerConnectionProvider] autocommit mode: false
      18:30:20,718 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/vodafonemigration
      18:30:20,718 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=rishabh}
      18:30:21,031 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.67-community-nt
      18:30:21,046 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
      18:30:21,062 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
      18:30:21,078 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
      18:30:21,093 INFO [NamingHelper] JNDI InitialContext properties:{}
      18:30:21,109 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLoo
      18:30:21,109 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      18:30:21,109 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLoo
      18:30:21,109 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      18:30:21,109 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      18:30:21,125 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      18:30:21,125 INFO [SettingsFactory] JDBC batch size: 15
      18:30:21,125 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      18:30:21,125 INFO [SettingsFactory] Scrollable result sets: enabled
      18:30:21,125 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      18:30:21,125 INFO [SettingsFactory] Connection release mode: auto
      18:30:21,140 INFO [SettingsFactory] Maximum outer join fetch depth: 2
      18:30:21,140 INFO [SettingsFactory] Default batch fetch size: 1
      18:30:21,140 INFO [SettingsFactory] Generate SQL with comments: disabled
      18:30:21,140 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      18:30:21,140 INFO [SettingsFactory] Order SQL inserts for batching: disabled
      18:30:21,140 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      18:30:21,156 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      18:30:21,156 INFO [SettingsFactory] Query language substitutions: {}
      18:30:21,156 INFO [SettingsFactory] JPA-QL strict compliance: disabled
      18:30:21,156 INFO [SettingsFactory] Second-level cache: enabled
      18:30:21,156 INFO [SettingsFactory] Query cache: disabled
      18:30:21,156 INFO [SettingsFactory] Cache provider: org.hibernate.cache.NoCacheProvider
      18:30:21,171 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      18:30:21,171 INFO [SettingsFactory] Structured second-level cache entries: disabled
      18:30:21,171 INFO [SettingsFactory] Echoing all SQL to stdout
      18:30:21,171 INFO [SettingsFactory] Statistics: disabled
      18:30:21,187 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      18:30:21,187 INFO [SettingsFactory] Default entity-mode: pojo
      18:30:21,187 INFO [SettingsFactory] Named query checking : enabled
      18:30:21,250 INFO [SessionFactoryImpl] building session factory
      18:30:21,515 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      18:30:21,515 INFO [NamingHelper] JNDI InitialContext properties:{}
      18:30:21,515 INFO [STDOUT] startApplication(): context load complete.
      18:30:21,515 INFO [STDOUT] startApplication(): getting the UserTransaction.
      18:30:21,640 ERROR [[/datasourceTest]] Exception sending context initialized event to listener instance of class com.al.aig.EventManager
      org.hibernate.HibernateException: save is not valid without active transaction
      at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:297)
      at $Proxy57.save(Unknown Source)
      at com.al.aig.EventManager.startApplication(EventManager.java:36)
      at com.al.aig.ApplicationStarter.contextInitialized(ApplicationStarter.java:40)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor18.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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:595)
      18:30:21,921 ERROR [StandardContext] Error listenerStart
      .

        • 1. Re: jboss transactions errors
          Rishabh Chandra Newbie

          okay problem solved.
          This was not a Jboss issue apart from the version of Hibernate in Jboss.

          My issue was because of two things in my hibernate.cfg.xml
          When using JTA transactions I believe we need to have a datasource specified instead of a database. Also I had
          thread
          which only applies when using DB transactions.
          So below is the working file

          <?xml version='1.0' encoding='utf-8'?>
          <!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
          <hibernate-configuration>
          <session-factory>
          java:/vodafone
          org.hibernate.dialect.MySQLDialect
          true
          org.hibernate.transaction.JTATransactionFactory
          org.hibernate.transaction.JBossTransactionManagerLookup


          </session-factory>
          </hibernate-configuration>.

          Also I was using JBoss's verion of hibernate which is 321SP1 which i replaced with 323GA.