Make sure you only have one jar in your classloader hierarchy that
includes the javax/transaction/TransactionManager class.
It should not be included in components, but make sure it has not
been included in your SU by transitive dependencies.
On 12/13/06, Jeffrey Puro <[EMAIL PROTECTED]> wrote:
I am receiving the following exception when my custom component (that is
being deployed to the lw-container) tries to use Hibernate. I suspect
it is related to a class loading issue, but I'm hoping someone can tell
me how to easily fix this problem:
2006-12-13 16:19:00,035 INFO [STDOUT] 16:19:00,035 ERROR [SedaQueue]
[EMAIL PROTECTED] got error
processing InOnly[
id: ID:STERLING-64AC55-3171-1166038236195-16:0
status: Active
role: provider
service: {http://sterling.com/randomlist}CreateInstance
endpoint: ID:STERLING-64AC55-3170-1166038235586-0:2
in: <?xml version="1.0" encoding="UTF-8"?><timer><name>Randomlist
Job</name><group>ServiceMix</group><fullname>ServiceMix.Randomlist
Job</fullname><description/><fireTime>Wed Dec 13 16:19:00 EST
2006</fireTime></timer>
]
java.lang.LinkageError: loader constraints violated when linking
javax/transaction/TransactionManager class
at
org.springframework.orm.hibernate3.SessionFactoryUtils.getJtaTransaction
Manager(SessionFactoryUtils.java:166)
at
org.springframework.orm.hibernate3.SessionFactoryUtils.registerJtaSynchr
onization(SessionFactoryUtils.java:460)
at
org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(Sess
ionFactoryUtils.java:361)
at
org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(Sessio
nFactoryUtils.java:243)
at
org.springframework.orm.hibernate3.HibernateTemplate.getSession(Hibernat
eTemplate.java:415)
at
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTe
mplate.java:351)
at
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTe
mplate.java:328)
at
org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java
:79)
at
org.apache.servicemix.jbpm.support.service.JbpmServiceImpl.createProcess
Instance(JbpmServiceImpl.java:49)
at
com.sterling.drug.JbpmEndpoint.transform(JbpmEndpoint.java:22)
at
org.apache.servicemix.components.util.TransformComponentSupport.onMessag
eExchange(TransformComponentSupport.java:66)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(D
eliveryChannelImpl.java:624)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.j
ava:170)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
:177)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:2
27)
at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:595)
This email (and any attachments) is intended only for the use of the individual or
entity named above and may contain information that is privileged and confidential.
If you are not the intended recipient, or have unauthorized access, you are hereby
notified that copying, disseminating, distributing or taking any action in reliance
on this email is strictly prohibited<br />
<br />
Opinions, conclusions and other information in this message that do not relate
to the official business of our firm shall be understood as neither given nor
endorsed by it.
--
Cheers,
Guillaume Nodet