DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4948>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4948

Class.getPackage() returns null in classes loaded by webapp class loader





------- Additional Comments From [EMAIL PROTECTED]  2001-11-20 08:09 -------
  Thanks for the clarification of what the class reloading problem was.  You're 
right about the way I was testing it ( touching web.xml ) and I agree that 
that's not good enough.  So, I spent some more time now digging in to 
DependClassLoader.java, trying to understand how it could possibly fail to 
define packages.  It turns out that the problem was much simpler than I had 
imagined it to be.  The root of the problem is that DependClassLoader12 is 
never calling definePackage.  Apparently, this must be a not-very-often used 
feature because everything still runs just fine regardless ( until you 
encounter some code that wants to call Class.getPackage() and it gets null ).  
I've modified my copy of DependClassLoader12.java to call definePackage 
appropriately and will attach a patch containing those changes.  Thanks for 
your attention.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to