-
1. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
pmuir May 12, 2008 2:21 PM (in response to danielc.roth)Are you deploying your app with javassist as an application library?
-
2. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
danielc.roth May 12, 2008 2:30 PM (in response to danielc.roth)Yes! (3.3.GA)
However, the javassist in the lib dir seemed to be used instead. Simply exchanging it with the one I got from jboss maven repo (using seam-2.0.2.CR as parent project), works fine.
Removing it might have worked too (since it is in the app lib), but I didn't test that.
-
3. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
pmuir May 12, 2008 2:41 PM (in response to danielc.roth)
Daniel Roth wrote on May 12, 2008 02:30 PM:
Removing it might have worked too (since it is in the app lib), but I didn't test that.Yes, don't deploy it with your app.
-
4. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
pmuir May 12, 2008 2:41 PM (in response to danielc.roth)i.e. it should be provided
-
5. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
danielc.roth May 12, 2008 2:50 PM (in response to danielc.roth)Well, that is up to you guys to set it provided. As mentioned above I have your seam pom as parent i.e. I don't set any scopes or versions whatsoever on my dependencies. (I basically rely on your pom being
correct
, having all correct dependencies and so on).Look here for an outline
-
6. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
pmuir May 12, 2008 2:52 PM (in response to danielc.roth)
Daniel Roth wrote on May 12, 2008 02:50 PM:
Well, that is up to you guys to set it provided. As mentioned above I have your seam pom as parent i.e. I don't set any scopes or versions whatsoever on my dependencies. (I basically rely on your pom beingcorrect
, having all correct dependencies and so on).Not really possible as Maven doesn't support the concept of dependency profiles (although JBoss AS does provide javassist, other servers don't).
-
7. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
danielc.roth May 12, 2008 2:57 PM (in response to danielc.roth)And hence that, I made the initial informative posting. :-)
I'll test to set it provided and see if that works too.
-
8. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
danielc.roth May 12, 2008 3:19 PM (in response to danielc.roth)OK, so another solution to this problem is to exclude javassist from the seam dependencies.
Since there is no javassist dependency entry in my pom (again, using seam pom as parent) you have to exclude the jar from the seam dependency:
<dependency> <groupId>org.jboss.seam</groupId> <artifactId>jboss-seam</artifactId> <exclusions> <exclusion> <groupId>javassist</groupId> <artifactId>javassist</artifactId> </exclusion> </exclusions> </dependency>
Pete: Something like
<parent> <groupId>org.jboss.seam</groupId> <artifactId>root</artifactId> <version>2.0.2.CR2-Jboss5</version> </parent>
would be really nice. Provided some stub poms, it would be quite easy to get going with seam + maven @yourFavouriteAppServer.
-
9. Re: ERROR BasicLazyInitializer Javassist Enhancement failed
pmuir May 12, 2008 3:36 PM (in response to danielc.roth)Yup. Fancy writing a patch? ;-)