You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "shashikalagt@gmail.com" <sh...@gmail.com> on 2012/05/10 18:06:56 UTC
java.lang.LinkageError:
Hi
i am getting this error
java.lang.LinkageError: loader constraint violation: when resolving
interface method
"org.hibernate.engine.SessionFactoryImplementor.getTransactionManager()Ljavax/transaction/TransactionManager;"
the class loader (instance of
org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the
current class, org/springframework/orm/hibernate3/SessionFactoryUtils, and
the class loader (instance of
org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for
resolved class, org/hibernate/engine/SessionFactoryImplementor, have
different Class objects for the type javax/transaction/TransactionManager
used in the signature
--
View this message in context: http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
Re: java.lang.LinkageError:
Posted by "Richard S. Hall" <he...@ungoverned.org>.
I can't help out on that... I don't know anything about hibernate. Maybe
someone else has some idea.
-> richard
On 5/10/12 14:42 , shashikalagt@gmail.com wrote:
> HI
>
> Thanks for your reply,
>
> I solved out that issue.
>
> Now i am getting
>
> org.springframework.orm.hibernate3.HibernateQueryException: User is not
> mapped [from User]; nested exception is
> org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]
> at
> org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:657)
> at
> org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
> at
> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
> at
> org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
> at
> org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:921)
> at
> org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:913)
> at
> com.causeway.osgi.model.security.UserDAOImpl.listUser(UserDAOImpl.java:27)
> at com.causeway.osgi.examples.dbclient.DbTest.start(DbTest.java:47)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
> at
> org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
> at
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
> at
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.hibernate.hql.ast.QuerySyntaxException: User is not mapped
> [from User]
> at
> org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
> at
> org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:111)
> at
> org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:93)
> at
> org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:327)
> at
> org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3441)
> at
> org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3325)
> at
> org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:733)
> at
> org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:584)
> at
> org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:301)
> at
> org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:244)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
> at
> org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
> at
> org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:124)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1770)
> at
> org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernate(HibernateTemplate.java:923)
> at
> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
> ... 13
>
>
>
> Thu, May 10, 2012 at 11:28 PM, Richard S. Hall [via Apache Felix]<
> ml-node+s18485n4966271h35@n6.nabble.com> wrote:
>
>> On 5/10/12 13:46 , [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=0>wrote:
>>> Hi
>>>
>>> hibernate refering jta 1.1 and orm refering 1.0.1, 2.0.0. is this is the
>>> problem
>> Probably, but you're only telling us snippets of information, so it is
>> hard to completely diagnose what is going on. When you say "refering",
>> do you mean wired to?
>>
>> If you are using a recent framework release, you should be able to do
>> the following command in the Gogo shell:
>>
>> inspect req osgi.wiring.package<bundle-id>
>>
>> Where<bundle-id> is the bundle ID from the list bundles command ("lb").
>> Do this for each of the two bundles to see which provider they are wired
>> to for the package.
>>
>> Once you know this, then you need to figure out how to get them to use
>> the same provider. How to do that depends on your situation.
>>
>> -> richard
>>
>>
>>> On Thu, May 10, 2012 at 9:56 PM, Richard S. Hall [via Apache Felix]<
>>> [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=1>>
>> wrote:
>>>> Try to determine how each of the two bundles (spring framework orm and
>>>> hibernate engine) are getting access to the javax.transaction package.
>>>> They look like they are getting it from two different sources. You need
>>>> to figure out why and eliminate it.
>>>>
>>>> -> richard
>>>>
>>>> On 5/10/12 12:06 , [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4966074&i=0>wrote:
>>>>> Hi
>>>>>
>>>>> i am getting this error
>>>>> java.lang.LinkageError: loader constraint violation: when resolving
>>>>> interface method
>>>>>
>> "org.hibernate.engine.SessionFactoryImplementor.getTransactionManager()Ljavax/transaction/TransactionManager;"
>>
>>>>> the class loader (instance of
>>>>> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of
>>>> the
>>>>> current class, org/springframework/orm/hibernate3/SessionFactoryUtils,
>>>> and
>>>>> the class loader (instance of
>>>>> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5)
>> for
>>>>> resolved class, org/hibernate/engine/SessionFactoryImplementor, have
>>>>> different Class objects for the type
>>>> javax/transaction/TransactionManager
>>>>> used in the signature
>>>>>
>>>>> --
>>>>> View this message in context:
>> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033.html
>>>>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4966074&i=1>
>>>> For additional commands, e-mail: [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4966074&i=2>
>>>>
>>>>
>>>> ------------------------------
>>>> If you reply to this email, your message will be added to the
>> discussion
>>>> below:
>>>>
>>>>
>>>> .
>>>> NAML<
>> http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>>> --
>>> View this message in context:
>> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966239.html
>>
>>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=2>
>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=3>
>>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966271.html
>> To unsubscribe from java.lang.LinkageError:, click here<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4966033&code=c2hhc2hpa2FsYWd0QGdtYWlsLmNvbXw0OTY2MDMzfDIxMjM1NjgzNjM=>
>> .
>> NAML<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
> --
> View this message in context: http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966353.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: java.lang.LinkageError:
Posted by "shashikalagt@gmail.com" <sh...@gmail.com>.
HI
Thanks for your reply,
I solved out that issue.
Now i am getting
org.springframework.orm.hibernate3.HibernateQueryException: User is not
mapped [from User]; nested exception is
org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]
at
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:657)
at
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
at
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:921)
at
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:913)
at
com.causeway.osgi.model.security.UserDAOImpl.listUser(UserDAOImpl.java:27)
at com.causeway.osgi.examples.dbclient.DbTest.start(DbTest.java:47)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
at
org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.hql.ast.QuerySyntaxException: User is not mapped
[from User]
at
org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
at
org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:111)
at
org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:93)
at
org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:327)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3441)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3325)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:733)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:584)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:301)
at
org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:244)
at
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254)
at
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)
at
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
at
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:124)
at
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1770)
at
org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernate(HibernateTemplate.java:923)
at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
... 13
Thu, May 10, 2012 at 11:28 PM, Richard S. Hall [via Apache Felix] <
ml-node+s18485n4966271h35@n6.nabble.com> wrote:
> On 5/10/12 13:46 , [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=0>wrote:
> > Hi
> >
> > hibernate refering jta 1.1 and orm refering 1.0.1, 2.0.0. is this is the
> > problem
>
> Probably, but you're only telling us snippets of information, so it is
> hard to completely diagnose what is going on. When you say "refering",
> do you mean wired to?
>
> If you are using a recent framework release, you should be able to do
> the following command in the Gogo shell:
>
> inspect req osgi.wiring.package <bundle-id>
>
> Where <bundle-id> is the bundle ID from the list bundles command ("lb").
> Do this for each of the two bundles to see which provider they are wired
> to for the package.
>
> Once you know this, then you need to figure out how to get them to use
> the same provider. How to do that depends on your situation.
>
> -> richard
>
>
> >
> > On Thu, May 10, 2012 at 9:56 PM, Richard S. Hall [via Apache Felix]<
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4966271&i=1>>
> wrote:
> >
> >> Try to determine how each of the two bundles (spring framework orm and
> >> hibernate engine) are getting access to the javax.transaction package.
> >> They look like they are getting it from two different sources. You need
> >> to figure out why and eliminate it.
> >>
> >> -> richard
> >>
> >> On 5/10/12 12:06 , [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4966074&i=0>wrote:
> >>
> >>> Hi
> >>>
> >>> i am getting this error
> >>> java.lang.LinkageError: loader constraint violation: when resolving
> >>> interface method
> >>>
> >>
> "org.hibernate.engine.SessionFactoryImplementor.getTransactionManager()Ljavax/transaction/TransactionManager;"
>
> >>
> >>> the class loader (instance of
> >>> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of
> >> the
> >>> current class, org/springframework/orm/hibernate3/SessionFactoryUtils,
> >> and
> >>> the class loader (instance of
> >>> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5)
> for
> >>> resolved class, org/hibernate/engine/SessionFactoryImplementor, have
> >>> different Class objects for the type
> >> javax/transaction/TransactionManager
> >>> used in the signature
> >>>
> >>> --
> >>> View this message in context:
> >>
> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033.html
> >>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4966074&i=1>
> >> For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4966074&i=2>
> >>
> >>
> >>
> >> ------------------------------
> >> If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
>
> >> .
> >> NAML<
> http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> > --
> > View this message in context:
> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966239.html
>
> > Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=2>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966271&i=3>
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966271.html
> To unsubscribe from java.lang.LinkageError:, click here<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4966033&code=c2hhc2hpa2FsYWd0QGdtYWlsLmNvbXw0OTY2MDMzfDIxMjM1NjgzNjM=>
> .
> NAML<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966353.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
Re: java.lang.LinkageError:
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 5/10/12 13:46 , shashikalagt@gmail.com wrote:
> Hi
>
> hibernate refering jta 1.1 and orm refering 1.0.1, 2.0.0. is this is the
> problem
Probably, but you're only telling us snippets of information, so it is
hard to completely diagnose what is going on. When you say "refering",
do you mean wired to?
If you are using a recent framework release, you should be able to do
the following command in the Gogo shell:
inspect req osgi.wiring.package <bundle-id>
Where <bundle-id> is the bundle ID from the list bundles command ("lb").
Do this for each of the two bundles to see which provider they are wired
to for the package.
Once you know this, then you need to figure out how to get them to use
the same provider. How to do that depends on your situation.
-> richard
>
> On Thu, May 10, 2012 at 9:56 PM, Richard S. Hall [via Apache Felix]<
> ml-node+s18485n4966074h28@n6.nabble.com> wrote:
>
>> Try to determine how each of the two bundles (spring framework orm and
>> hibernate engine) are getting access to the javax.transaction package.
>> They look like they are getting it from two different sources. You need
>> to figure out why and eliminate it.
>>
>> -> richard
>>
>> On 5/10/12 12:06 , [hidden email]<http://user/SendEmail.jtp?type=node&node=4966074&i=0>wrote:
>>
>>> Hi
>>>
>>> i am getting this error
>>> java.lang.LinkageError: loader constraint violation: when resolving
>>> interface method
>>>
>> "org.hibernate.engine.SessionFactoryImplementor.getTransactionManager()Ljavax/transaction/TransactionManager;"
>>
>>> the class loader (instance of
>>> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of
>> the
>>> current class, org/springframework/orm/hibernate3/SessionFactoryUtils,
>> and
>>> the class loader (instance of
>>> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for
>>> resolved class, org/hibernate/engine/SessionFactoryImplementor, have
>>> different Class objects for the type
>> javax/transaction/TransactionManager
>>> used in the signature
>>>
>>> --
>>> View this message in context:
>> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033.html
>>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966074&i=1>
>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966074&i=2>
>>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966074.html
>> To unsubscribe from java.lang.LinkageError:, click here<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4966033&code=c2hhc2hpa2FsYWd0QGdtYWlsLmNvbXw0OTY2MDMzfDIxMjM1NjgzNjM=>
>> .
>> NAML<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
> --
> View this message in context: http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966239.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: java.lang.LinkageError:
Posted by "shashikalagt@gmail.com" <sh...@gmail.com>.
Hi
hibernate refering jta 1.1 and orm refering 1.0.1, 2.0.0. is this is the
problem
On Thu, May 10, 2012 at 9:56 PM, Richard S. Hall [via Apache Felix] <
ml-node+s18485n4966074h28@n6.nabble.com> wrote:
> Try to determine how each of the two bundles (spring framework orm and
> hibernate engine) are getting access to the javax.transaction package.
> They look like they are getting it from two different sources. You need
> to figure out why and eliminate it.
>
> -> richard
>
> On 5/10/12 12:06 , [hidden email]<http://user/SendEmail.jtp?type=node&node=4966074&i=0>wrote:
>
> > Hi
> >
> > i am getting this error
> > java.lang.LinkageError: loader constraint violation: when resolving
> > interface method
> >
> "org.hibernate.engine.SessionFactoryImplementor.getTransactionManager()Ljavax/transaction/TransactionManager;"
>
> > the class loader (instance of
> > org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of
> the
> > current class, org/springframework/orm/hibernate3/SessionFactoryUtils,
> and
> > the class loader (instance of
> > org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for
> > resolved class, org/hibernate/engine/SessionFactoryImplementor, have
> > different Class objects for the type
> javax/transaction/TransactionManager
> > used in the signature
> >
> > --
> > View this message in context:
> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033.html
> > Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966074&i=1>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4966074&i=2>
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966074.html
> To unsubscribe from java.lang.LinkageError:, click here<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4966033&code=c2hhc2hpa2FsYWd0QGdtYWlsLmNvbXw0OTY2MDMzfDIxMjM1NjgzNjM=>
> .
> NAML<http://apache-felix.18485.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033p4966239.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
Re: java.lang.LinkageError:
Posted by "Richard S. Hall" <he...@ungoverned.org>.
Try to determine how each of the two bundles (spring framework orm and
hibernate engine) are getting access to the javax.transaction package.
They look like they are getting it from two different sources. You need
to figure out why and eliminate it.
-> richard
On 5/10/12 12:06 , shashikalagt@gmail.com wrote:
> Hi
>
> i am getting this error
> java.lang.LinkageError: loader constraint violation: when resolving
> interface method
> "org.hibernate.engine.SessionFactoryImplementor.getTransactionManager()Ljavax/transaction/TransactionManager;"
> the class loader (instance of
> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the
> current class, org/springframework/orm/hibernate3/SessionFactoryUtils, and
> the class loader (instance of
> org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for
> resolved class, org/hibernate/engine/SessionFactoryImplementor, have
> different Class objects for the type javax/transaction/TransactionManager
> used in the signature
>
> --
> View this message in context: http://apache-felix.18485.n6.nabble.com/java-lang-LinkageError-tp4966033.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org