users@glassfish.java.net

答复: Problem using Jersey in conjunction with Hibernate

From: zhu <zhu.believe_at_gmail.com>
Date: Mon, 11 Feb 2008 19:58:23 +0800

Hi.

What would happen if you use both asm-3.1.jar and cglib-2.1.3.jar?


-----邮件原件-----
发件人: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
发送时间: 2008年2月11日 19:56
收件人: users_at_glassfish.dev.java.net
主题: Problem using Jersey in conjunction with Hibernate

Hi there.

I am using hibernate for a while now without any (bigger) problems.
Now I am trying to work out RESTful Webservices with project jersey.

It seems that hibernate wich depends on ASM framework (asm.jar,
asm-attrs.jar) and jersey which depends on ASM too (asm V3.1 as of
asm-3.1.jar) are having problems with the asm implementation versions.

When using asm.jar, jersey is missing a method in
[i]org.objectweb.asm.ClassVisitor[/i]. When using asm-3.1.jar as of the
jersey distribution, hibernate complains about missing class
[i]net.sf.cglib.proxy.Enhancer[/i] which is provided in cglib-2.1.3.jar.

Both Libraries are using cglib.jar.

Does anyone out there has got it running?

Alexander.
[Message sent by forum member 'sahlix' (sahlix)]

http://forums.java.net/jive/thread.jspa?messageID=258314

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net