aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes hibernate Transaction with Jboss(CMT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "hibernate Transaction with Jboss(CMT)" Watch "hibernate Transaction with Jboss(CMT)" New topic
Author

hibernate Transaction with Jboss(CMT)

Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
I am Using CMTTransaction.
as soon as it come to this code



hibernate crg.xml





It throws error:


18:41:52,176 INFO [TomcatDeployer] deploy, ctxPath=/testEJBWebTrans, warUrl=file:/E:/Diageo_Work/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_EAP_4.3_Server/deploy/testEJBWebTrans.war/
18:41:56,645 INFO [STDOUT] >>>>>>>>>>>>>>>>> getCountry
18:41:56,661 INFO [STDOUT] updateLoginCredentials >>>>>>>>>>>>>>>>>>>
18:41:56,661 INFO [STDOUT] >>>>>>>>>>>>>>>>>>>>> getDAOFactory
18:41:56,661 INFO [STDOUT] instantiateDAO >>>>>>>>>>>>>>>>
18:41:56,676 INFO [STDOUT] GenericHibernateDAO get session>>>>>>>>>>>>>>>>>>>>>
18:41:56,676 INFO [Configuration] configuring from resource: hibernate.cfg.xml
18:41:56,676 INFO [Configuration] Configuration resource: hibernate.cfg.xml
18:41:56,692 INFO [Configuration] Reading mappings from resource : org/jbpm/identity/User.hbm.xml
18:41:56,692 INFO [HbmBinder] Mapping class: org.jbpm.identity.User -> JBPM_ID_USER
18:41:56,708 INFO [HbmBinder] Mapping collection: org.jbpm.identity.User.permissions -> JBPM_ID_PERMISSIONS
18:41:56,708 INFO [Configuration] Reading mappings from resource : org/jbpm/identity/Group.hbm.xml
18:41:56,708 INFO [HbmBinder] Mapping class: org.jbpm.identity.Group -> JBPM_ID_GROUP
18:41:56,708 INFO [HbmBinder] Mapping collection: org.jbpm.identity.Group.permissions -> JBPM_ID_PERMISSIONS
18:41:56,708 INFO [Configuration] Reading mappings from resource : org/jbpm/identity/Membership.hbm.xml
18:41:56,723 INFO [HbmBinder] Mapping class: org.jbpm.identity.Membership -> JBPM_ID_MEMBERSHIP
18:41:56,739 INFO [HbmBinder] Mapping collection: org.jbpm.identity.Membership.permissions -> JBPM_ID_PERMISSIONS
18:41:56,739 INFO [Configuration] Reading mappings from resource : org/jbpm/db/hibernate.queries.hbm.xml
18:41:56,755 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/action/MailAction.hbm.xml
18:41:56,770 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/ProcessDefinition.hbm.xml
18:41:56,770 INFO [HbmBinder] Mapping class: org.jbpm.graph.def.ProcessDefinition -> JBPM_PROCESSDEFINITION
18:41:56,786 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/Node.hbm.xml
18:41:56,786 INFO [HbmBinder] Mapping class: org.jbpm.graph.def.Node -> JBPM_NODE
18:41:56,786 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/Transition.hbm.xml
18:41:56,801 INFO [HbmBinder] Mapping class: org.jbpm.graph.def.Transition -> JBPM_TRANSITION
18:41:56,801 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/Event.hbm.xml
18:41:56,817 INFO [HbmBinder] Mapping class: org.jbpm.graph.def.Event -> JBPM_EVENT
18:41:56,817 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/Action.hbm.xml
18:41:56,817 INFO [HbmBinder] Mapping class: org.jbpm.graph.def.Action -> JBPM_ACTION
18:41:56,833 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/SuperState.hbm.xml
18:41:56,833 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.def.SuperState -> JBPM_NODE
18:41:56,833 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/def/ExceptionHandler.hbm.xml
18:41:56,848 INFO [HbmBinder] Mapping class: org.jbpm.graph.def.ExceptionHandler -> JBPM_EXCEPTIONHANDLER
18:41:56,848 INFO [Configuration] Reading mappings from resource : org/jbpm/instantiation/Delegation.hbm.xml
18:41:56,848 INFO [HbmBinder] Mapping class: org.jbpm.instantiation.Delegation -> JBPM_DELEGATION
18:41:56,864 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/action/Script.hbm.xml
18:41:56,864 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.action.Script -> JBPM_ACTION
18:41:56,864 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/StartState.hbm.xml
18:41:56,880 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.StartState -> JBPM_NODE
18:41:56,880 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/EndState.hbm.xml
18:41:56,880 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.EndState -> JBPM_NODE
18:41:56,880 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/ProcessState.hbm.xml
18:41:56,895 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.ProcessState -> JBPM_NODE
18:41:56,895 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/Decision.hbm.xml
18:41:56,895 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.Decision -> JBPM_NODE
18:41:56,895 INFO [HbmBinder] Mapping collection: org.jbpm.graph.node.Decision.decisionConditions -> JBPM_DECISIONCONDITIONS
18:41:56,895 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/Fork.hbm.xml
18:41:56,911 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.Fork -> JBPM_NODE
18:41:56,911 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/Join.hbm.xml
18:41:56,911 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.Join -> JBPM_NODE
18:41:56,911 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/MailNode.hbm.xml
18:41:56,926 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.MailNode -> JBPM_NODE
18:41:56,926 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/State.hbm.xml
18:41:56,926 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.State -> JBPM_NODE
18:41:56,926 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/node/TaskNode.hbm.xml
18:41:56,942 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.TaskNode -> JBPM_NODE
18:41:56,942 INFO [Configuration] Reading mappings from resource : org/jbpm/context/def/ContextDefinition.hbm.xml
18:41:56,942 INFO [Configuration] Reading mappings from resource : org/jbpm/context/def/VariableAccess.hbm.xml
18:41:56,958 INFO [HbmBinder] Mapping class: org.jbpm.context.def.VariableAccess -> JBPM_VARIABLEACCESS
18:41:56,958 INFO [Configuration] Reading mappings from resource : org/jbpm/bytes/ByteArray.hbm.xml
18:41:56,973 INFO [HbmBinder] Mapping class: org.jbpm.bytes.ByteArray -> JBPM_BYTEARRAY
18:41:56,973 INFO [HbmBinder] Mapping collection: org.jbpm.bytes.ByteArray.byteBlocks -> JBPM_BYTEBLOCK
18:41:56,973 INFO [Configuration] Reading mappings from resource : org/jbpm/module/def/ModuleDefinition.hbm.xml
18:41:56,973 INFO [HbmBinder] Mapping class: org.jbpm.module.def.ModuleDefinition -> JBPM_MODULEDEFINITION
18:41:56,973 INFO [Configuration] Reading mappings from resource : org/jbpm/file/def/FileDefinition.hbm.xml
18:41:56,989 INFO [HbmBinder] Mapping subclass: org.jbpm.file.def.FileDefinition -> JBPM_MODULEDEFINITION
18:41:56,989 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml
18:41:56,989 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.def.TaskMgmtDefinition -> JBPM_MODULEDEFINITION
18:41:56,989 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/def/Swimlane.hbm.xml
18:41:57,005 INFO [HbmBinder] Mapping class: org.jbpm.taskmgmt.def.Swimlane -> JBPM_SWIMLANE
18:41:57,005 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/def/Task.hbm.xml
18:41:57,020 INFO [HbmBinder] Mapping class: org.jbpm.taskmgmt.def.Task -> JBPM_TASK
18:41:57,020 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/def/TaskController.hbm.xml
18:41:57,036 INFO [HbmBinder] Mapping class: org.jbpm.taskmgmt.def.TaskController -> JBPM_TASKCONTROLLER
18:41:57,036 INFO [Configuration] Reading mappings from resource : org/jbpm/scheduler/def/CreateTimerAction.hbm.xml
18:41:57,036 INFO [HbmBinder] Mapping subclass: org.jbpm.scheduler.def.CreateTimerAction -> JBPM_ACTION
18:41:57,036 INFO [Configuration] Reading mappings from resource : org/jbpm/scheduler/def/CancelTimerAction.hbm.xml
18:41:57,051 INFO [HbmBinder] Mapping subclass: org.jbpm.scheduler.def.CancelTimerAction -> JBPM_ACTION
18:41:57,051 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/exe/Comment.hbm.xml
18:41:57,051 INFO [HbmBinder] Mapping class: org.jbpm.graph.exe.Comment -> JBPM_COMMENT
18:41:57,067 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/exe/ProcessInstance.hbm.xml
18:41:57,067 INFO [HbmBinder] Mapping class: org.jbpm.graph.exe.ProcessInstance -> JBPM_PROCESSINSTANCE
18:41:57,067 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/exe/Token.hbm.xml
18:41:57,083 INFO [HbmBinder] Mapping class: org.jbpm.graph.exe.Token -> JBPM_TOKEN
18:41:57,083 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/exe/RuntimeAction.hbm.xml
18:41:57,098 INFO [HbmBinder] Mapping class: org.jbpm.graph.exe.RuntimeAction -> JBPM_RUNTIMEACTION
18:41:57,098 INFO [Configuration] Reading mappings from resource : org/jbpm/module/exe/ModuleInstance.hbm.xml
18:41:57,098 INFO [HbmBinder] Mapping class: org.jbpm.module.exe.ModuleInstance -> JBPM_MODULEINSTANCE
18:41:57,114 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/ContextInstance.hbm.xml
18:41:57,114 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.ContextInstance -> JBPM_MODULEINSTANCE
18:41:57,114 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/TokenVariableMap.hbm.xml
18:41:57,130 INFO [HbmBinder] Mapping class: org.jbpm.context.exe.TokenVariableMap -> JBPM_TOKENVARIABLEMAP
18:41:57,130 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/VariableInstance.hbm.xml
18:41:57,130 INFO [HbmBinder] Mapping class: org.jbpm.context.exe.VariableInstance -> JBPM_VARIABLEINSTANCE
18:41:57,130 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml
18:41:57,145 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.ByteArrayInstance -> JBPM_VARIABLEINSTANCE
18:41:57,145 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml
18:41:57,161 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.DateInstance -> JBPM_VARIABLEINSTANCE
18:41:57,161 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml
18:41:57,176 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.DoubleInstance -> JBPM_VARIABLEINSTANCE
18:41:57,176 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml
18:41:57,192 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.HibernateLongInstance -> JBPM_VARIABLEINSTANCE
18:41:57,192 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml
18:41:57,192 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.HibernateStringInstance -> JBPM_VARIABLEINSTANCE
18:41:57,192 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml
18:41:57,208 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.LongInstance -> JBPM_VARIABLEINSTANCE
18:41:57,208 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml
18:41:57,208 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.NullInstance -> JBPM_VARIABLEINSTANCE
18:41:57,208 INFO [Configuration] Reading mappings from resource : org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml
18:41:57,223 INFO [HbmBinder] Mapping subclass: org.jbpm.context.exe.variableinstance.StringInstance -> JBPM_VARIABLEINSTANCE
18:41:57,223 INFO [Configuration] Reading mappings from resource : org/jbpm/job/Job.hbm.xml
18:41:57,223 INFO [HbmBinder] Mapping class: org.jbpm.job.Job -> JBPM_JOB
18:41:57,239 INFO [Configuration] Reading mappings from resource : org/jbpm/job/Timer.hbm.xml
18:41:57,239 INFO [HbmBinder] Mapping subclass: org.jbpm.job.Timer -> JBPM_JOB
18:41:57,239 INFO [Configuration] Reading mappings from resource : org/jbpm/job/ExecuteNodeJob.hbm.xml
18:41:57,255 INFO [HbmBinder] Mapping subclass: org.jbpm.job.ExecuteNodeJob -> JBPM_JOB
18:41:57,255 INFO [Configuration] Reading mappings from resource : org/jbpm/job/ExecuteActionJob.hbm.xml
18:41:57,270 INFO [HbmBinder] Mapping subclass: org.jbpm.job.ExecuteActionJob -> JBPM_JOB
18:41:57,270 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml
18:41:57,270 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.exe.TaskMgmtInstance -> JBPM_MODULEINSTANCE
18:41:57,270 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml
18:41:57,286 INFO [HbmBinder] Mapping class: org.jbpm.taskmgmt.exe.TaskInstance -> JBPM_TASKINSTANCE
18:41:57,286 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.pooledActors -> JBPM_TASKACTORPOOL
18:41:57,286 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/exe/PooledActor.hbm.xml
18:41:57,301 INFO [HbmBinder] Mapping class: org.jbpm.taskmgmt.exe.PooledActor -> JBPM_POOLEDACTOR
18:41:57,301 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.PooledActor.taskInstances -> JBPM_TASKACTORPOOL
18:41:57,301 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml
18:41:57,317 INFO [HbmBinder] Mapping class: org.jbpm.taskmgmt.exe.SwimlaneInstance -> JBPM_SWIMLANEINSTANCE
18:41:57,317 INFO [Configuration] Reading mappings from resource : org/jbpm/logging/log/ProcessLog.hbm.xml
18:41:57,317 INFO [HbmBinder] Mapping class: org.jbpm.logging.log.ProcessLog -> JBPM_LOG
18:41:57,333 INFO [Configuration] Reading mappings from resource : org/jbpm/logging/log/MessageLog.hbm.xml
18:41:57,333 INFO [HbmBinder] Mapping subclass: org.jbpm.logging.log.MessageLog -> JBPM_LOG
18:41:57,333 INFO [Configuration] Reading mappings from resource : org/jbpm/logging/log/CompositeLog.hbm.xml
18:41:57,348 INFO [HbmBinder] Mapping subclass: org.jbpm.logging.log.CompositeLog -> JBPM_LOG
18:41:57,348 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/ActionLog.hbm.xml
18:41:57,348 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.ActionLog -> JBPM_LOG
18:41:57,348 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/NodeLog.hbm.xml
18:41:57,364 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.NodeLog -> JBPM_LOG
18:41:57,364 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml
18:41:57,364 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.ProcessInstanceCreateLog -> JBPM_LOG
18:41:57,364 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml
18:41:57,380 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.ProcessInstanceEndLog -> JBPM_LOG
18:41:57,380 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/ProcessStateLog.hbm.xml
18:41:57,380 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.ProcessStateLog -> JBPM_LOG
18:41:57,380 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/SignalLog.hbm.xml
18:41:57,395 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.SignalLog -> JBPM_LOG
18:41:57,395 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/TokenCreateLog.hbm.xml
18:41:57,395 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.TokenCreateLog -> JBPM_LOG
18:41:57,395 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/TokenEndLog.hbm.xml
18:41:57,411 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.TokenEndLog -> JBPM_LOG
18:41:57,411 INFO [Configuration] Reading mappings from resource : org/jbpm/graph/log/TransitionLog.hbm.xml
18:41:57,426 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.log.TransitionLog -> JBPM_LOG
18:41:57,426 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/VariableLog.hbm.xml
18:41:57,426 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.VariableLog -> JBPM_LOG
18:41:57,426 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/VariableCreateLog.hbm.xml
18:41:57,442 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.VariableCreateLog -> JBPM_LOG
18:41:57,442 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/VariableDeleteLog.hbm.xml
18:41:57,442 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.VariableDeleteLog -> JBPM_LOG
18:41:57,442 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/VariableUpdateLog.hbm.xml
18:41:57,458 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.VariableUpdateLog -> JBPM_LOG
18:41:57,458 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml
18:41:57,458 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.ByteArrayUpdateLog -> JBPM_LOG
18:41:57,458 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml
18:41:57,473 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.DateUpdateLog -> JBPM_LOG
18:41:57,473 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml
18:41:57,473 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.DoubleUpdateLog -> JBPM_LOG
18:41:57,473 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml
18:41:57,489 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.HibernateLongUpdateLog -> JBPM_LOG
18:41:57,489 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml
18:41:57,489 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.HibernateStringUpdateLog -> JBPM_LOG
18:41:57,489 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml
18:41:57,505 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.LongUpdateLog -> JBPM_LOG
18:41:57,505 INFO [Configuration] Reading mappings from resource : org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml
18:41:57,505 INFO [HbmBinder] Mapping subclass: org.jbpm.context.log.variableinstance.StringUpdateLog -> JBPM_LOG
18:41:57,505 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/TaskLog.hbm.xml
18:41:57,520 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.TaskLog -> JBPM_LOG
18:41:57,520 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml
18:41:57,520 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.TaskCreateLog -> JBPM_LOG
18:41:57,536 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml
18:41:57,536 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.TaskAssignLog -> JBPM_LOG
18:41:57,536 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml
18:41:57,551 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.TaskEndLog -> JBPM_LOG
18:41:57,551 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml
18:41:57,551 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneLog -> JBPM_LOG
18:41:57,551 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml
18:41:57,567 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneCreateLog -> JBPM_LOG
18:41:57,567 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml
18:41:57,567 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneAssignLog -> JBPM_LOG
18:41:57,567 INFO [Configuration] Configured SessionFactory: null
18:41:57,567 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.action.MailAction -> JBPM_ACTION
18:41:57,567 INFO [HbmBinder] Mapping subclass: org.jbpm.context.def.ContextDefinition -> JBPM_MODULEDEFINITION
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.identity.User.memberships -> JBPM_ID_MEMBERSHIP
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.identity.Group.children -> JBPM_ID_GROUP
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.identity.Group.memberships -> JBPM_ID_MEMBERSHIP
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.ProcessDefinition.events -> JBPM_EVENT
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.ProcessDefinition.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.ProcessDefinition.nodes -> JBPM_NODE
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.ProcessDefinition.actions -> JBPM_ACTION
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.ProcessDefinition.definitions -> JBPM_MODULEDEFINITION
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Node.events -> JBPM_EVENT
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Node.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Node.leavingTransitions -> JBPM_TRANSITION
18:41:57,567 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Node.arrivingTransitions -> JBPM_TRANSITION
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Transition.events -> JBPM_EVENT
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Transition.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.Event.actions -> JBPM_ACTION
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.SuperState.nodes -> JBPM_NODE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.def.ExceptionHandler.actions -> JBPM_ACTION
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.action.Script.variableAccesses -> JBPM_VARIABLEACCESS
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.node.ProcessState.variableAccesses -> JBPM_VARIABLEACCESS
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.node.TaskNode.tasks -> JBPM_TASK
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.file.def.FileDefinition.processFiles -> JBPM_BYTEARRAY
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes -> JBPM_SWIMLANE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM_TASK
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.Swimlane.tasks -> JBPM_TASK
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.Task.events -> JBPM_EVENT
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.Task.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskController.variableAccesses -> JBPM_VARIABLEACCESS
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.exe.ProcessInstance.runtimeActions -> JBPM_RUNTIMEACTION
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.exe.ProcessInstance.instances -> JBPM_MODULEINSTANCE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.exe.Token.children -> JBPM_TOKEN
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.graph.exe.Token.comments -> JBPM_COMMENT
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.context.exe.ContextInstance.tokenVariableMaps -> JBPM_TOKENVARIABLEMAP
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.context.exe.TokenVariableMap.variableInstances -> JBPM_VARIABLEINSTANCE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskMgmtInstance.swimlaneInstances -> JBPM_SWIMLANEINSTANCE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances -> JBPM_TASKINSTANCE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.variableInstances -> JBPM_VARIABLEINSTANCE
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.comments -> JBPM_COMMENT
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors -> JBPM_POOLEDACTOR
18:41:57,583 INFO [HbmBinder] Mapping collection: org.jbpm.logging.log.CompositeLog.children -> JBPM_LOG
18:41:57,598 INFO [NamingHelper] JNDI InitialContext properties:{}
18:41:57,598 INFO [DatasourceConnectionProvider] Using datasource: java:/JbpmDS
18:41:57,598 INFO [SettingsFactory] RDBMS: H2, version: 1.0.68 (2008-03-15)
18:41:57,598 INFO [SettingsFactory] JDBC driver: H2 JDBC Driver, version: 1.0.68 (2008-03-15)
18:41:57,598 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
18:41:57,598 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
18:41:57,598 INFO [NamingHelper] JNDI InitialContext properties:{}
18:41:57,598 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
18:41:57,598 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
18:41:57,598 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
18:41:57,598 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
18:41:57,598 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
18:41:57,598 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
18:41:57,598 INFO [SettingsFactory] JDBC batch size: 15
18:41:57,598 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
18:41:57,598 INFO [SettingsFactory] Scrollable result sets: enabled
18:41:57,598 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
18:41:57,598 INFO [SettingsFactory] Connection release mode: auto
18:41:57,598 INFO [SettingsFactory] Default batch fetch size: 1
18:41:57,598 INFO [SettingsFactory] Generate SQL with comments: disabled
18:41:57,598 INFO [SettingsFactory] Order SQL updates by primary key: disabled
18:41:57,598 INFO [SettingsFactory] Order SQL inserts for batching: disabled
18:41:57,598 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
18:41:57,598 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
18:41:57,598 INFO [SettingsFactory] Query language substitutions: {}
18:41:57,598 INFO [SettingsFactory] JPA-QL strict compliance: disabled
18:41:57,598 INFO [SettingsFactory] Second-level cache: enabled
18:41:57,598 INFO [SettingsFactory] Query cache: disabled
18:41:57,598 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
18:41:57,598 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
18:41:57,598 INFO [SettingsFactory] Structured second-level cache entries: disabled
18:41:57,598 INFO [SettingsFactory] Statistics: disabled
18:41:57,598 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
18:41:57,598 INFO [SettingsFactory] Default entity-mode: pojo
18:41:57,598 INFO [SettingsFactory] Named query checking : enabled
18:41:57,630 INFO [SessionFactoryImpl] building session factory
18:41:58,645 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
18:41:58,645 INFO [NamingHelper] JNDI InitialContext properties:{}
18:41:58,926 INFO [STDOUT] org.hibernate.impl.SessionFactoryImpl@1dac0d9>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sessionFactory
18:41:58,926 ERROR [STDERR] org.hibernate.HibernateException: Unable to locate current JTA transaction
at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
at com.diageo.neo.services.data.dao.GenericHibernateDAO.getSession(GenericHibernateDAO.java:37)
at com.diageo.neo.services.data.dao.GenericHibernateDAO.<init>(GenericHibernateDAO.java:19)
at com.diageo.neo.services.data.dao.ConsumerDAO.<init>(ConsumerDAO.java:5)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.diageo.neo.services.data.daofactory.HibernateDAOFactory.instantiateDAO(HibernateDAOFactory.java:19)
at com.diageo.neo.services.data.daofactory.HibernateDAOFactory.getConsumerDAO(HibernateDAOFactory.java:12)
at com.diageo.neo.ejb.consumer.ConsumerBO.updateLoginCredentials(ConsumerBO.java:12)
at com.diageo.neo.ejb.consumer.ConsumerBean.getCountry(ConsumerBean.java:18)
at org.apache.jsp.forgotPassword_jsp._jspService(forgotPassword_jsp.java:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
18:41:58,926 INFO [STDOUT] GenericHibernateDAO get session>>>>>>>>>>>>>>>>>>>>>
18:41:58,926 INFO [STDOUT] updateLoginCredentials >>>>>>>>>>>>>1
18:41:58,926 INFO [STDOUT] 1>>>>>>>>>>>>>>>>>>>>>>>>>>
18:41:58,926 INFO [STDOUT] findById >>>>>>>>>>>>>>>>>>>>>
18:41:58,926 INFO [STDOUT] org.hibernate.impl.SessionFactoryImpl@1dac0d9>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sessionFactory
18:41:58,926 ERROR [STDERR] java.lang.Exception: org.hibernate.HibernateException: Unable to locate current JTA transaction
18:41:58,926 ERROR [STDERR] at com.diageo.neo.services.data.dao.GenericHibernateDAO.findById(GenericHibernateDAO.java:67)
18:41:58,926 ERROR [STDERR] at com.diageo.neo.services.data.dao.ConsumerDAO.getCountry(ConsumerDAO.java:10)
18:41:58,926 ERROR [STDERR] at com.diageo.neo.ejb.consumer.ConsumerBO.updateLoginCredentials(ConsumerBO.java:15)
18:41:58,926 ERROR [STDERR] at com.diageo.neo.ejb.consumer.ConsumerBean.getCountry(ConsumerBean.java:18)
18:41:58,926 ERROR [STDERR] at org.apache.jsp.forgotPassword_jsp._jspService(forgotPassword_jsp.java:74)
18:41:58,926 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
18:41:58,926 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
18:41:58,926 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
18:41:58,926 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
18:41:58,926 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
18:41:58,926 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
18:41:58,926 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
18:41:58,926 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18:41:58,942 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
18:41:58,942 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
18:41:58,942 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
18:41:58,942 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:41:58,942 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
18:41:58,942 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
18:41:58,942 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
18:41:58,942 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
18:41:58,942 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
18:41:58,942 ERROR [STDERR] Caused by: org.hibernate.HibernateException: Unable to locate current JTA transaction
18:41:58,942 ERROR [STDERR] at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
18:41:58,942 ERROR [STDERR] at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
18:41:58,942 ERROR [STDERR] at com.diageo.neo.services.data.dao.GenericHibernateDAO.findById(GenericHibernateDAO.java:55)
18:41:58,942 ERROR [STDERR] ... 28 more

I am using Enterprise_Eclipse
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Sounds like you are running a method that is not in a transaction. What is the trans-attribute of the EJB method you called?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Hmm. Odd. Well the only thing you've done differently from the setup I'm looking at that does just this in JBoss is your enabled hibernate.transaction.flush_before_completion. Not sure if this should have any bearing, but I'm also not sure why your set this (you gain nothing from it given the rest of your configuration). You could try removing it.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Its actually not thr in the original code. I was trying hit and trial so forget to remove.
Please help me. If you wan i can send you the demo piece i hav work. It has jus got suck to that exception it not moving
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

So...is the code you have posted the code that is causing the problem?

If it is, it looks OK.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
I also know that ok after doing all possible research...
But its still nor working ... tell me what i am missing
Is it some jar file or some property
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Please post the name of the EJB class and the method name which has this tx attribute set and also a snippet of the code.

[My Blog] [JavaRanch Journal]
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
xxxx
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Your exception stacktrace:

at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
at com.salto.ejb3dao.hibernate.AbstractHibernateDAO.getSession(AbstractHibernateDAO.java:34)
at com.salto.ejb3dao.hibernate.AbstractHibernateDAO.save(AbstractHibernateDAO.java:61)
at org.apache.jsp.forgotPassword_jsp._jspService(forgotPassword_jsp.java:76)


does not show this bean in the call hierarchy. The bean is being bypassed and the jsp seems to be directly calling the DAO.
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Hi,

I have updated it with the exception its getting above ... now plzz check




This is the client from which i am calling
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Are you saying you are still seeing exactly the same exception message despite not calling it from a method that uses a transaction? Can you post the stack trace?
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
in the The first posty i hav updated the error stack trace. Please see that, its very much entering EJB and then moving to BO and then DAO

In EJB Stateless: ConsumerBean has the method getCountry
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The logging from the Hibernate configuration suggests you've configured JTA transaction handling correctly, so the only other possibility is you are still not calling the method with a valid transaction. Are you sure you have configured and are calling a CMT method correctly?
Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
I can send you the workspace its not very big if you want. That project is working fine if I am using simple hibernate session.
But when i am enabling

<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JbossTransactionManagerLookup</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>

Its not able to take session from session factory
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Those values are correct. What's missing is a transaction, which if you are using CMT correctly should not be the case. Stick a break point in your EJB method and see if you actually have a transaction.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hibernate Transaction with Jboss(CMT)
 
Similar Threads
How to create a dynamic web project using eclipse IDE?
JNDI error message
org.hibernate.MappingException: entity class not found:
JBPM Deployment on Jboss-4.0.3SP1
Error reading resource: hbm.xml file