Hi Thomas,
Firstoff great database! In mem, transactional, Spring support, great
stuff!
I do have a little problem though. I am starting the database from
Spring, with Bitronix as the transaction manager, OpenJpa for
persistence(not relevant, just for completeness) and I get a linkage
error. I see from the stack that org.h2.jdbcx.JdbcXAConnection is the
culprit, the method getXAResource returns it's self which is an
XAResource from 1.4, but in JBoss the XAResource is from 1.6, well on
my machine in any event. The natural solution is to recompile with
1.6, which is easy enough I expect, but that could be a slipery road
to follow.
Am I on the right tract here? Below the top of the stack for
reference. Do you have another solution perhaps?
{code}
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dataSource' defined in class path resource [/
META-INF/spring.xml]:
Invocation of init method failed; nested exception is
java.lang.LinkageError: loader constraint violation in interface
itable initialization:
when resolving method
"org.h2.jdbcx.JdbcXAConnection.getXAResource()Ljavax/transaction/xa/
XAResource;" the class loader (instance
of org/jboss/classloader/spi/base/BaseClassLoader) of the current
class, org/h2/jdbcx/JdbcXAConnection, and the class loader (instance
of
<bootloader>) for interface javax/sql/XAConnection have different
Class objects for the type javax/transaction/xa/XAResource used in the
signature
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1401)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
512)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
450)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
189)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
557)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
842)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
416)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:
197)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:
172)
at
com.ikokoon.search.toolkit.ApplicationContextManager.getApplicationContext(ApplicationContextManager.java:
37)
{code}
Thanks in advance,
Michael
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.