-
1. Re: A javassist is in the problem in the WEB application
hlship Jun 5, 2007 3:16 PM (in response to ajjjian)That's some lovely gibberish.
http://www.catb.org/~esr/faqs/smart-questions.html -
2. Re: A javassist is in the problem in the WEB application
omotelet Jul 13, 2007 10:59 AM (in response to ajjjian)Hi,
I think I have the same problem thus maybe I can help to formulate it.
I use javassist in an eXist extension. This extension comes as a jar package automatically loaded by eXist.
Let com.Foo.class com.Bar.class 2 classes contained in the package myCom.jar
If I call in Foo
ClassPool.getDefault().get("com.Bar") I got an javassist.NotFoundException: com.Bar.
Nevertheless when I run eXist form inside an IDE and providing Foo and Bar as part of the build path of eXist I have no problem...
The problem seems to arise with multiple bootloaders in order to overpass it you may use the following hint:
try {
pool.get("com.Bar");
} catch (NotFoundException e) {
pool.appendClassPath(new ClassClassPath(Class.forName("com.Bar")));
pool.get("com.Bar");
}
Regards,
olivier
PS thanx to matthieu for the hint