-
1. Re: Cannot create timer table
mskonda May 1, 2007 9:30 AM (in response to apk2072)The ejb is accessing the timerservice for which it requires (if you turn it on) to persit the timers in database.
Did you have DefaultDS configured properly so it can create the table-if-not-exists?
I would first check the DefaultDS datasoruce config, then check the user if he has permission to create a table.
Madhu -
2. Re: Cannot create timer table
apk2072 May 1, 2007 9:35 AM (in response to apk2072)Thanks for the information...
DefaultDS datasource is configured correctly, in fact, it created rest of the Messaging tables during start up, except this one. Since we are not using any EJBs I think I can turn off this table creation. -
3. Re: Cannot create timer table
mskonda May 1, 2007 9:52 AM (in response to apk2072)u know how to turn it off, dont' u?
-
4. Re: Cannot create timer table
apk2072 May 1, 2007 10:20 AM (in response to apk2072)I tried but I couldn't figure out how to turn it off, can you please provide some guidance?
-APK -
5. Re: Cannot create timer table
mskonda May 1, 2007 10:28 AM (in response to apk2072)Check the deploy/ejb-deployer.xml.
You may have to comment
org.jboss.ejb.txtimer.DatabasePersistencePolicy mbean block and enable org.jboss.ejb.txtimer.NoopPersistencePolicy block (which is curretnly closed).
Thant should do the trick -
6. Re: Cannot create timer table
peterj May 1, 2007 10:48 AM (in response to apk2072)Check the *-ds.xml file for DefaultDS and make sure that you have a metadata entry, such as:
<metadata> <type-mapping>Type of database</type-mapping> </metadata>
where "Type of database" is the name of one of the type mappings in server/xxx/conf/standardjbosscmp-jdbc.xml.
When you do that, the metadata MBean gets created. -
7. Re: Cannot create timer table
apk2072 May 1, 2007 11:38 AM (in response to apk2072)It worked in both cases:
1. As Madhu wrote, commenting out the org.jboss.ejb.txtimer.DatabasePersistencePolicy did work.
2. As Peter wrote, I gave the Oracle9i database type it worked. However, in my case our database is Oracle10g and there is no entry for Oracle10g in server/xxx/conf/standardjbosscmp-jdbc.xml. I tested with giving Oracle9i in my oracle-ds.xml. But I am bit scared of giving incorrect mapping. I am not sure if JBoss released with Oracle10g mapping yet.
-APK. -
8. Re: Cannot create timer table
timfox May 1, 2007 11:47 AM (in response to apk2072)You should post this on the JCA forum.
Datasource configuration is handled by the JCA layer, not by JBoss Messaging. -
9. Re: Cannot create timer table
karim.baina May 14, 2013 6:11 PM (in response to apk2072)I am using JBOSS 5.1 with Postgres 9.1
In my -ds.xml I put "normally"
JBOSS <type-mapping>PostgreSQL 9.1</type-mapping>
this caused :
ERROR [org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists:155] Cannot create timer table
java.lang.IllegalStateException: Cannot obtain type mapping from: jboss.jdbc:datasource=DefaultDS,service=metadata
I changed to JBOSS <type-mapping>PostgreSQL 8.0</type-mapping>
and the reoor diappeared.
So Peter Johnson was right.
Best