[ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentin Valchev reopened FELIX-1957: ------------------------------------- The latest changes to the webconsole makes it again incompatible with the OSGi/Minimum EE: - UUID used in ConfigurationRender is missing in OSGi/Minimum-1.2 - Collections.list(Enumeration) used in ComponentsServlet & ComponentConfigurationPrinter is not support by OSGi/Minimum-1.1. Although it is added in OSGi/Minimum-1.2, it's better for wider compatibility to replace this method with own. Simple implementation is given below: class WebConsoleUtil { .... /** * This method is the same as Collections#list(Enumeration). The reason to duplicate it here, * is that it is missing in OSGi/Minimum execution environment. * * @param e the enumeration which to convert * @return the list containing all enumeration entries. */ public static final ArrayList list( Enumeration e ) { ArrayList l = new ArrayList(); while ( e.hasMoreElements() ) l.add( e.nextElement() ); return l; } } - Locale.Locale( String ) constructor is not available in OSGi/Minimum-1.1 (though available in OSGi/Minimum-1.2). However, for better compatibility we should use another approach. So instead of: DEFAULT_LOCALE = new Locale( "" ) it can be DEFAULT_LOCALE = Locale.getDefault(); or even better (since our default language translation is English): DEFAULT_LOCALE = Locale().ENGLISH > Make Web Console compatible with OSGi/Minimum-1.0 EE > ---------------------------------------------------- > > Key: FELIX-1957 > URL: https://issues.apache.org/jira/browse/FELIX-1957 > Project: Felix > Issue Type: New Feature > Components: Web Console > Affects Versions: webconsole-2.0.4 > Reporter: Valentin Valchev > Assignee: Felix Meschberger > Fix For: webconsole-2.0.6 > > Attachments: mathes-patch.patch > > > Currently the Web Console requires some methods that are JDK 1.4+ specific. > In some embedded JVM the methods are not available. > However, it's not needed to sync with each embedded JVM but make sure to run > at least at OSGi/Minimum-1.0 Execution Environment. > The problem methods are: > String.matches(pattern); (LicenseServlet & BundlesServlet) > String.replaceAll(); (ConfigurationRender) > String.split(); (BundleRepositoryRender) > The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the > ConfigurationListener. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.