Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The "HowToRunTapestry5OnJBoss5" page has been changed by GeoffCallender: http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss5?action=diff&rev1=5&rev2=6 public URL convert(URL url) { + // If the URL is a "vfs" URL (JBoss 5 uses a Virtual File System)... + if (url != null && url.getProtocol().startsWith("vfs")) { - // supports virtual filesystem used by JBoss 5.x + // Ask the VFS what the physical URL is... + try { URLConnection connection = url.openConnection(); Object virtualFile = invokerGetter(connection, "getContent"); + // Use reflection so that we don't need JBoss in the classpath at compile time. Object zipEntryHandler = invokerGetter(virtualFile, "getHandler"); Object realUrl = invokerGetter(zipEntryHandler, "getRealURL"); return (URL) realUrl; @@ -23, +27 @@ catch (Exception e) { log.info(e.getCause()); + if (e.getCause() == null) + { + logger.error(e.toString()); + } + else + { + logger.error(e.getCause().toString()); + } } } return url; @@ -59, +71 @@ The above just override the default ClaspathURLConverter service. For more information on overriding a general service, please see http://tapestry.apache.org/tapestry5.1/tapestry-ioc/cookbook/override.html - The above fix has been test with Tapestry 5.1 and JBoss 5.0.1. It does not work on Jboss 5.1.0! + The above fix has been test with Tapestry 5.1 and 5.2 on JBoss 5.0.1. It does not work on JBoss 5.1.0! --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
