You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2012/05/08 10:17:24 UTC
svn commit: r816480 - in /websites/staging/openejb/trunk: cgi-bin/ content/
content/examples-trunk/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java
Author: buildbot
Date: Tue May 8 08:17:23 2012
New Revision: 816480
Log:
Staging update by buildbot for openejb
Modified:
websites/staging/openejb/trunk/cgi-bin/ (props changed)
websites/staging/openejb/trunk/content/ (props changed)
websites/staging/openejb/trunk/content/examples-trunk/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java
Propchange: websites/staging/openejb/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue May 8 08:17:23 2012
@@ -1 +1 @@
-1335374
+1335376
Propchange: websites/staging/openejb/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue May 8 08:17:23 2012
@@ -1 +1 @@
-1335374
+1335376
Modified: websites/staging/openejb/trunk/content/examples-trunk/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/polling-parent/polling-client/src/main/java/jug/client/util/CommandManager.java Tue May 8 08:17:23 2012
@@ -37,7 +37,8 @@ public class CommandManager {
final ClassLoader loader = CommandManager.class.getClassLoader();
try {
UrlSet urlSet = new UrlSet(loader);
- urlSet = urlSet.exclude(loader.getParent());
+ urlSet = urlSet.exclude(loader);
+ urlSet = urlSet.include(CommandManager.class.getProtectionDomain().getCodeSource().getLocation());
final IAnnotationFinder finder = new AnnotationFinder(new ConfigurableClasspathArchive(loader, urlSet.getUrls()));
for (Annotated<Class<?>> cmd : finder.findMetaAnnotatedClasses(Command.class)) {
@@ -56,7 +57,7 @@ public class CommandManager {
} catch (RuntimeException e) {
LOGGER.log(Level.SEVERE, "an error occured while getting commands", e);
} catch (IOException e) {
- LOGGER.log(Level.SEVERE, "can't get commands");
+ LOGGER.log(Level.SEVERE, "an error occured while getting commands", e);
}
}