From: <ad...@jb...> - 2005-03-25 15:57:15
|
This has nothing to do with the spec and everything to do with OS configuration and java limitations. 1) You cannot load the library. This is because JBoss unpacks the dll to | ${jboss.server.home.dir}/tmp/native | which is not in your library path. We make no attempt to modify your library path. You can either: a) raise a feature request to add new behaviour http://jira.jboss.com/jira/browse/JBAS that allows this location to be overriden using a system property, e.g. | run.bat -Djboss.native.dir=d:\some\other\place | which is a location you can add to your library path, JBoss would then unpack the library to that location b) provide a patch that modifies run.bat to include that directory in the library path. 2) Redeployment This has nothing todo with NoAnnotationURLClassLoader. Java does not even use classloading scope to load libraries. The problem is caused because the classloader (the unified classloader) is not garbage collected yet. Your Objects -> Class -> UCL3 -> native library Once the GC has figured out they are no longer used (they are undeployed) it will unload the library. UnsatisifiedLinkError Where the NoAnnotationURLClassLoader does cause a problem is that the GC will not even try to unload the library until this classloader is no longer referenced (which is never/shutdown). Bug Report: http://jira.jboss.com/jira/browse/JBAS-1619 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871599#3871599 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871599 |