2013/10/22 Rob Rock <robroc...@yahoo.it>: > I solved a bug: when I deploy the application as eploded archive on jboss > 5.1.0.GA the application doesn't work. I modified the method scanDir(File > dir, List<String> classNames, String packageName) of the class > com.opensymphony.xwork2.util.finder.ClassFinder as follow > > private void scanDir(File dir, List<String> classNames, String > packageName) { > File[] files = dir.listFiles(); > for (File file : files) { > if (file.isDirectory()) { > scanDir(file, classNames, packageName + file.getName() + "."); > } else if (file.getName().endsWith(".class")) { > String name = file.getName(); > name = name.replaceFirst(".class$", ""); > // Classes packaged in an exploded .war (e.g. in a VFS file > system) should not > // have WEB-INF.classes in their package name. > classNames.add(StringUtils.substringAfter(packageName, > "WEB-INF.classes.") + name); > } > } > } > > > the old method is this > > > private void scanDir(File dir, List<String> classNames, String > packageName) { > File[] files = dir.listFiles(); > for (File file : files) { > if (file.isDirectory()) { > scanDir(file, classNames, packageName + file.getName() + "."); > } else if (file.getName().endsWith(".class")) { > String name = file.getName(); > name = name.replaceFirst(".class$", ""); > // Classes packaged in an exploded .war (e.g. in a VFS file > system) should not > // have WEB-INF.classes in their package name. > classNames.add(StringUtils.removeStart(packageName, > "WEB-INF.classes.") + name); > } > } > }
How is this related to my statement? If you solved a bud, feel free to register an issue with your solution. Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org