tag:blogger.com,1999:blog-6944050187568241059.post365025972393667293..comments2024-03-13T22:24:49.135-07:00Comments on Thoughts From A Management Platform Developer: Classloaders Keeping Jar Files OpenJohn Mazzhttp://www.blogger.com/profile/11415685873835789040noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6944050187568241059.post-83670308177080219972014-06-12T05:12:03.013-07:002014-06-12T05:12:03.013-07:00I have observed this problem while i am working wi...I have observed this problem while i am working with EAP 6.1 alpha and trying deploy/undeploy a Jboss module through CLI. If i load any class which is part of my jboss module and later try to undeploy the module doesn't work. madhuhttps://www.blogger.com/profile/09948900467984556266noreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-18009404154443188412009-12-29T11:13:15.587-08:002009-12-29T11:13:15.587-08:00here is addition to the hack:
Dynamic class load...here is addition to the hack: <br /><a href="http://loracular.blogspot.com/2009/12/dynamic-class-loader-with.html" rel="nofollow"><br />Dynamic class loader with URLClassLoader and howto unload class and delete it's jar file<br /></a>Vitali Yemialyanchykhttps://www.blogger.com/profile/10819447378389891377noreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-80403448162776105852009-01-25T13:03:00.000-08:002009-01-25T13:03:00.000-08:00Something we should be worried with our current JB...Something we should be worried with our current JBoss MC CL impl?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-34665369939875436572009-01-25T15:06:00.000-08:002009-01-25T15:06:00.000-08:00I don't think so. Scott and Adrian knew about this...I don't think so. Scott and Adrian knew about this bug 3 years ago (see https://jira.jboss.org/jira/browse/JBAS-766 ), so I have to believe they designed the new deployers with this problem in mind. But it might not be a bad idea to ping them anyway :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-48516853160374246972009-01-26T01:23:00.000-08:002009-01-26T01:23:00.000-08:00Actually it's not deployers. ;-)It's VFS and CL, d...Actually it's not deployers. ;-)<br>It's VFS and CL, deployers just use/delegate to it (see http://www.jboss.org/community/docs/DOC-13267).<br><br>I'm asking since it's my to worry about (leading the MC ;-), only in 'emergency' cases pinging them.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-52590029004972686172009-01-26T05:06:00.000-08:002009-01-26T05:06:00.000-08:00Ales - I'm not familiar with the new JBoss MC code...Ales - I'm not familiar with the new JBoss MC code base, but it should be very easy to know if this problem will affect it - see if there are any custom classloaders that extend URLClassLoader OR if there is any place in the code that instantiates and uses an instance of URLClassLoader (or one of its subclasses). If there is anyplace that does this, you will have a problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-79031287464586097662009-01-26T05:16:00.000-08:002009-01-26T05:16:00.000-08:00"if there are any custom classloaders that extend ..."if there are any custom classloaders that extend URLClassLoader OR if there is any place in the code that instantiates and uses an instance of URLClassLoader (or one of its subclasses). If there is anyplace that does this, you will have a problem"<br><br>That's exactly what we fixed. ;-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6944050187568241059.post-44196091913865104982009-01-26T06:26:00.000-08:002009-01-26T06:26:00.000-08:00Way to finally get to the bottom of the plugin rel...Way to finally get to the bottom of the plugin reload issue! I like the hack...I mean workaround :-)Anonymousnoreply@blogger.com