From: <sco...@jb...> - 2005-09-08 23:17:42
|
Give me the example deployment then as the jboss class loader version certainly does add the WEB-INF/classes and WEB-INF/lib contents to the RepositoryClassLoader associated with the war: | public void setWarURL(URL warURL) throws MalformedURLException | { | this.warURL = warURL; | String path = warURL.getFile(); | File classesDir = new File(path, "WEB-INF/classes"); | if (classesDir.exists()) | { | delegate.addURL(classesDir.toURL()); | ctxLoader.addURLInternal(classesDir.toURL()); | } | File libDir = new File(path, "WEB-INF/lib"); | if (libDir.exists()) | { | File[] jars = libDir.listFiles(); | int length = jars != null ? jars.length : 0; | for (int j = 0; j < length; j++) | { | delegate.addURL(jars[j].toURL()); | ctxLoader.addURLInternal(jars[j].toURL()); | } | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893700#3893700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893700 |