[Design of JCA on JBoss] - JBAS-5229 - Feature request - Atomic redeploy of connection
by adrian@jboss.org
While this is sounds trivial to do, it is a lot more complicated than it sounds.
When you redeploy the datasource it has lost track of the transaction context.
e.g.
// Begin Transaction here
// Before redeploy
Connection c1 = dataSource.getConnection();
// Use it
c1.close();
// Redeploy here
// After redeploy
Connection c2 = dataSource.getConnection();
// etc.
// End Transaction here
Normally (without the redeploy) c2 would have the same underlying connection as c1
and would share the same jdbc transaction.
With the redeploy, it is two different real connections and unless it is XA two different jdbc transactions.
So for at least a local-tx-datasource the semantics are broken.
To be really "atomic" it would have to somehow pass-off both the real connections from one pool to another
and the connection manager state for those connections as the redeploy occurs.
This "passing off" of connections and state may not even be valid if you are redeploying
the datasource to change a policy decision.
But this could be dealt with by "immediately" closing those passed off connections
when the application finishes with them (i.e. under the old policy)
and creating new ones with the new policy.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128679#4128679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128679
18 years, 1 month
[Design of JBoss Portal] - java.sql.SQLException: Unsupported feature
by arif1202
Hi ,
I have problem when i integrate jboss4.0.1sp1 with liferay4.3.Please send reply.
Arif
aSourceConnectionProvider
15:02:02,743 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produc
tion
15:02:02,743 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 9.2.0.1.0
15:02:02,743 INFO [Dialect] Using dialect: null
15:02:02,743 ERROR [DynamicDialect] java.sql.SQLException: Unsupported feature
java.sql.SQLException: Unsupported feature
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)
at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4442)
at com.liferay.portal.spring.hibernate.DynamicDialect.(DynamicDialect.java:75)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:78)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:42)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128677#4128677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128677
18 years, 1 month
[Design of JBoss Web Services] - Error deploying a war on metro
by psini
I have tried to deploy the application wstx-services.war, that cames with metro 1.1 installer of sun. This application deploy the endpoints nedded for ws-Addrassing, ws-Atomic Transaction etc. I have controlled that this endpoints are not deployed by jboss-metro 1.0GA so i have tried to install this manually wih this exception :
Code:
|
| INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/wstx-services, vfsU
| rl=wstx-services.war
| 2008-02-11 18:43:45,920 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] Using sessio
| n cookies default setting
| 2008-02-11 18:43:45,920 DEBUG [org.jboss.web.tomcat.service.WebCtxLoader] injectionContainer enabled
| and processing beginning with JBoss WebCtxLoader
| 2008-02-11 18:43:45,920 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking met
| hod addChild
| java.lang.RuntimeException: mapped-name is required for com.sun.xml.ws.tx.webservice.member.coord.Re
| gistrationRequesterPortTypeImpl/wsContext of deployment wstx-services.war
| at org.jboss.injection.ResourceHandler.loadXmlResourceRefs(ResourceHandler.java:156)
| at org.jboss.injection.ResourceHandler.loadXml(ResourceHandler.java:270)
| at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.j
| ava:348)
| at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4224)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
| 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:668)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5357)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.j
| ava:346)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
|
| at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:347)
| at org.jboss.web.deployers.WebModule.startModule(WebModule.java:89)
| at org.jboss.web.deployers.WebModule.start(WebModule.java:67)
| 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:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| 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:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
| at $Proxy5.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.
| java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.
| java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleCont
| rollerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContex
| tAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextA
| ctions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:32
| 7)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:2
| 55)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
| at org.jboss.system.ServiceController.start(ServiceController.java:431)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:150)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:108)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpl
| eRealDeployer.java:65)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:5
| 0)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:32
| 7)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstr
| ap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.jav
| a:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
|
I have tryed to do this on Tomcat 6 wiyhout problem , but when i tried to do this on JBoss 5.0.0beta4 with jbossws-metro1.0GA installed, I obtain this staktrace. Is it a bug or a miss feature ???
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128662#4128662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128662
18 years, 1 month