[Persistence, JBoss/CMP, Hibernate, Database] - Transactions in Hibernate and JBoss
by MichaelCouck
Hi,
There seems to be some conflict in the documentation for getting the Hibernate transaction and the server transaction synchronised.
We have a typical setup for Hibernate using the hibernate.cfg.xml where we map all the Pojos and so on. Then we access Hibernate by the getCurrentSession() method to get the session. We don't close the session anywhere of course as we assumed that it would be closed by the JBoss. I will say that we don't use the MBean for Hibernate.
Is the Hibernate session, and more specifically the Hibernate transaction in fact managed by the JBoss. I seem to think that the only way to put the Hibernate session in the JBoss transaction is via the MBean, then lookup the SessionFactory via JNDI.
Please could someone point me in the right direction, perhaps with a step by step tutorial as an example, and documentation.
Thanks in advance.
Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961197#3961197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961197
19 years, 9 months
[JBoss jBPM] - Re: Intalio vs jBPM
by kukeltje
custom code: The initial action you have to call is java, but that could be a wrapper to any other (scritped) language
Support for BPEL: Correct, beta.
Align IT to business strategy: I know I should not ask a question on a question but I do. Why does it (in your opinion) not align IT and business. If you read several of Tom's blog entries http://jboss.org/jbossBlog/blog/tbaeyens/about these things, I get a different impression.
Regarding the xslt stuff. We think that systems that provide information should not care or even know what information is e.g. needed by other systems. We use a kind of ESB like thing (very simple) that gets an xml document and uses a file the structure I described above which contains multiple lines (we did not need an xslt yet since all is simple, but you could also use an xslt to transform/extract this. Outgoing, there is an empty template xml document which is populated by using the file the other way around. This is harder to do with xslt since the source is not xml. Therefor we choose (and can still use) the simple solution.
hth
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961196#3961196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961196
19 years, 9 months
[JCA/JBoss] - [oracle.jdbc.xa.OracleXAException] From 4.0.3SP1 To 4.0.4GA
by vcopwu
Hi?
When we migrate applications to JBoss 4.0.4GA?and find some problem:
Environment:
AP Server: Jboss 4.0.4GA
DB: Oracle 9i
jdk: 1.5.0.07.b03
when we deploy the applications, sometimes we will use fast-deploy (copy class files to jboss and trigger jboss to re-deploy). The method works in 4.03SP1 but come out errors in 4.0.4GA. Applications didn't change at all,
we only move them from jboss 4.0.3SP1 to 4.0.4GA. Besides, the error only comes out when using fast-deploy, normal deploy is ok~
Following is my error message:
ErrorMessage:
2006-07-27 14:31:08,109 INFO [STDOUT] DEBUG [TransactionUtil] Thread [28888533] Begin!
2006-07-27 14:31:08,109 TRACE [org.jboss.tm.TransactionImpl] Created new instance for tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15]
2006-07-27 14:31:08,109 TRACE [org.jboss.tm.TxManager] began tx: TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15]
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.CachedConnectionManager] user tx started, key: null
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] subject: null
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] getManagedConnection trackByTx=true tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15]
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] supplying ManagedConnection from pool: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=null]
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Got connection from pool tracked by transaction org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=null] tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] [InUse/Available/Max]: [1/9/10]
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Using connection from pool tracked by transaction org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=null] tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] [InUse/Available/Max]: [1/9/10]
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Pre-enlist: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=null] threadTx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15]
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Get synchronizer org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=null] threadTx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15]
2006-07-27 14:31:08,109 TRACE [org.jboss.tm.TransactionImpl] registerSynchronization(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] status=STATUS_ACTIVE
2006-07-27 14:31:08,109 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Enlisting resource org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=TxSync27851547{tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] wasTrackByTx=true enlisted=false}]
2006-07-27 14:31:08,109 TRACE [org.jboss.tm.TransactionImpl] enlistResource(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] status=STATUS_ACTIVE xaRes=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f
2006-07-27 14:31:08,109 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=1, localId=15]) entered: org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f flags=0
2006-07-27 14:31:08,109 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=1, localId=15]) leaving: org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f flags=0
2006-07-27 14:31:08,109 WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] errorCode=XAER_RMERR
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1160)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:311)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:117)
at org.jboss.tm.TransactionImpl$Resource.startResource(TransactionImpl.java:2063)
at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:581)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:757)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:548)
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:323)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:501)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:382)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
at com.dsc.trinity.management.ManagementUtil.baseQuery(ManagementUtil.java:91)
at com.dsc.trinity.config.ConfigUtil.queryData(ConfigUtil.java:231)
at com.dsc.trinity.config.ConfigUtil.(ConfigUtil.java:70)
at com.dsc.trinity.config.ConfigUtil.getInstance(ConfigUtil.java:83)
at com.dsc.trinity.config.ConfigParameter.config(ConfigParameter.java:300)
at com.dsc.trinity.config.ConfigParameter.(ConfigParameter.java:285)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.dsc.struts.action.ActionServlet.init(ActionServlet.java:448)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
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:5116)
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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
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.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
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.GeneratedMethodAccessor99.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 $Proxy30.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.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
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 $Proxy31.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor56.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 $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
2006-07-27 14:31:08,125 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] Failed to enlist resource org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1aea727[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f handles=0 lastUse=1153981674031 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@5f634c context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@7038b9 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1601a4f txSync=TxSync27851547{tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=roger/15, BranchQual=, localId=15] wasTrackByTx=true enlisted=false}]
java.lang.Throwable: Unabled to enlist resource, see the previous warnings.
at org.jboss.resource.connectionmanager.TxConnectionManager.(TxConnectionManager.java:130)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor55.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.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
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 $Proxy42.create(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.create(XSLSubDeployer.java:192)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor56.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 $Proxy8.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.GeneratedMethodAccessor2.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:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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:464)
at java.lang.Thread.run(Thread.java:595)
P.S. If need more detail explain about my question, I'm glad to give more message and thanks for your help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961193#3961193
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961193
19 years, 9 months
[EJB/JBoss] - Migration to jboss4..0.4 problems
by prese
Hi *,
We have tried to migrate an application that uses EJB 2.1 from jboss 3.2.x to jboss 4.0.4.
We have encountered the following exception:
2006-07-27 08:54:24,781 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.util.Collection com.siemens.is.its.airfield.aglseries.datalayer.aglcore.beans.PersistentEntityLocalHome.findAllByType(java.lang.String) throws javax.ejb.FinderException, causedBy:
java.lang.IllegalStateException: createBeanClassInstanceCommand == null
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBCStoreManager.java:575)
at org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:139)
at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:238)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:183)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:113)
at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43)
at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:514)
at org.jboss.ejb.Container.invoke(Container.java:975)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
at $Proxy85.findAllByType(Unknown Source)
The DB used is PosgreSql.
Any ideas about how to overcome this exception?
Thanks
Sebi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961190#3961190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961190
19 years, 9 months
[JBoss Portal] - changing the default page
by vrthikkireddy
hi,
i want to make another page as default page rather than the 'default' page
for example i created one page with name 'mymedpractice'.
how can i set this 'mymedpractice' as my default page.
any one please reply to this topic. are the below changes are correct, or do i need to change any other settings, please let me know.
i had been strucked with this issue, for many days, please any one help me regarding this issue
jboss portal version: jboss portal 2.4.0 CR1
i did the following changes in the below configuration files
1. /jboss-portal.sar/portal-cms.sar/META-INF/jboss-service.xml
<mbean
code="org.jboss.portal.core.cms.CMSObjectCommandFactory"
name="portal:commandFactory=CMSObject"
xmbean-dd=""
xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
content
default.MyMedPractice.cms
<depends optional-attribute-name="Factory" proxy-type="attribute">portal:commandFactory=Delegating
<depends optional-attribute-name="CMSService" proxy-type="attribute">portal:service=CMS
2. /jboss-portal.sar/portal-core.war/WEB-INF/portlet.xml
<portlet-preferences>
indexpage
/MyMedPractice/index.html
</portlet-preferences>
bye,
venkat
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961189#3961189
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961189
19 years, 9 months