users@glassfish.java.net

Re: Running embedded test with multimodule project

From: Major Péter <majorpetya_at_sch.bme.hu>
Date: Fri, 18 Jun 2010 21:55:19 +0200

> The instance.root property is mentioned in
> http://docs.sun.com/app/docs/doc/821-1208/gjldt?a=view but not the
> install.root. This is because the supported configuration for 3.0 was
> not a maven setup that you use, but running using a plain classpath with
> the pre-installed GF.
>
> Feel free to file a docs RFE for 3.1 ;).

done, https://glassfish.dev.java.net/issues/show_bug.cgi?id=12292 ;)

I now have an another issue with Hibernate. From my standalone GlassFish
I have copied the necessary jar's to my install.root/lib folder and the
Hibernate is working for compiling my namedqueries and such, but when it
comes to javassist, then I got:
2010.06.18. 21:40:30
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer getProxyFactory
SEVERE: Javassist Enhancement failed: hu.sch.domain.Valuation
java.lang.RuntimeException: by java.lang.NoClassDefFoundError:
org/hibernate/proxy/HibernateProxy

with a really long stacktrace for all of my entities. The funny part is
that the test runs flawlessly with correct result. Is this some kind of
class-loading issue?
When I direct the EJBContainer to my standalone configuration then the
query-compiling will fail with noclassdeffounderror. :/
The hibernate was installed with updatetool.

Thanks,
Peter