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);
}
}
}
Il Martedì 22 Ottobre 2013 15:10, Lukasz Lenart <[email protected]> ha
scritto:
Hi,
I'm just working on [1] and have noticed that the
LegacyPropertiesConfigurationProvider adds Locale as a injectable
property (so it was possible to use @Inject with Locale). Anyway, it
isn't used internally by the framework so I'm going to remove it.
[1] https://issues.apache.org/jira/browse/WW-4152
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]