manish suriya [
https://community.jboss.org/people/techtalk] created the discussion
"Re: Jboss 7.x - HA Web Sessions via Database Persistence with Oracle"
To view the discussion, visit:
https://community.jboss.org/message/746939#746939
--------------------------------------------------------------
Ok I added the <transport lock-timeout="60000"/> to cache-container... It
starts attempting to create a table but by default suffixin
"//deafult-host//<context-name>" to the table name ..hence causing SQL
error. Below is the error I am getting now..
13:14:08,233 ERROR [org.infinispan.loaders.jdbc.TableManipulation] (MSC service thread
1-4) ISPN008011: Error while creating table; used DDL statement: 'CREATE TABLE
stringbased_//default-host//JavaServerFaces (id VARCHAR2 NOT NULL, datum BLOB, version
NUMBER, PRIMARY KEY (id))': java.sql.SQLException: ORA-00922: missing or invalid
option
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
at
oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1614)
at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1579)
at
org.jboss.jca.adapters.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:371)
at
org.infinispan.loaders.jdbc.TableManipulation.executeUpdateSql(TableManipulation.java:154)
at
org.infinispan.loaders.jdbc.TableManipulation.createTable(TableManipulation.java:130)
at
org.infinispan.loaders.jdbc.TableManipulation.start(TableManipulation.java:231)
at
org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore.doConnectionFactoryInitialization(JdbcStringBasedCacheStore.java:365)
at
org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore.start(JdbcStringBasedCacheStore.java:121)
at
org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:129)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_03]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[rt.jar:1.6.0_03]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[rt.jar:1.6.0_03]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_03]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:236)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:882)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:637)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:626)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:530)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:173)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at org.infinispan.CacheImpl.start(CacheImpl.java:499)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:626)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:516)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:530)
[infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:148)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:139)
at
org.jboss.as.clustering.web.infinispan.DistributedCacheManagerFactory.getDistributedCacheManager(DistributedCacheManagerFactory.java:97)
at
org.jboss.as.web.session.DistributableSessionManager.<init>(DistributableSessionManager.java:159)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.web.deployment.JBossContextConfig.processWebMetaData(JBossContextConfig.java:250)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.as.web.deployment.JBossContextConfig.applicationWebConfig(JBossContextConfig.java:169)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:417)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:182)
[jbossweb-7.0.13.Final.jar:]
I am not sure why its appending //deafult-host//... to atble name every time i start
server. Below is my new cache entry
<cache-container name="web" default-cache="database">
<transport lock-timeout="60000"/>
<invalidation-cache name="database" mode="ASYNC"
batching="true">
<string-keyed-jdbc-store
datasource="java:jboss/datasources/LiferayPool_test" preload="true"
passivation="false" purge="false">
<property name="databaseType">
oracle
</property>
<string-keyed-table prefix="stringbased">
<id-column name="id"
type="VARCHAR2"/>
<data-column name="datum"
type="BLOB"/>
<timestamp-column name="version"
type="NUMBER"/>
</string-keyed-table>
</string-keyed-jdbc-store>
</invalidation-cache>
</cache-container>
Please advice !!!! I am stuck :(
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/746939#746939]
Start a new discussion in Datasource Configuration at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]