// and a webjars resource finder.
WebjarsSettings settings = new WebjarsSettings();
// register vfs collector to use webjars on jboss (you don't need to add maven dependency)
Set<AssetPathCollector> collectors = Sets.newHashSet(settings.assetPathCollectors());
collectors.add(new VfsJarAssetPathCollector());
settings.assetPathCollectors(collectors.toArray(new AssetPathCollector[collectors.size()]));
WicketWebjars.install(this, settings);
}