Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323015 - duplicated commandline init-param in web.xml
Summary: duplicated commandline init-param in web.xml
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Libra (show other bugs)
Version: unspecified   Edit
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 08:46 EDT by Markus Knauer CLA
Modified: 2022-02-24 11:24 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Knauer CLA 2010-08-18 08:46:02 EDT
The default web.xml created by the war-product tooling contains two init-params with param-name commandline. In this configuration it is not (yet) a problem because the first one is disabled / commented out, but as soon as s.o. removes the xml comments from the first one the OSGi console doesn't start and the parameter seems to be ignored:

  <!--
  <init-param>
    <param-name>commandline</...
    <param-value>-console</...
  ...
  -->

  <init-param>
    <param-name>commandline</...
    <param-value>-registryMultiLanguage</...
  ...


One solution could be to put both command line parameters into one attribute, e.g.

    <param-value>-console -registryMultiLanguage</...
Comment 1 Holger Staudacher CLA 2010-08-18 12:04:52 EDT
I see your point and a while ago I ran into the same problem. So, the console param should be disabled by default.

Maybe one solution can be to inline it like this:
   <init-param>
      <param-name>commandline</param-name>
      <param-value>-registryMultiLanguage <!-- -console --></param-value>     
    </init-param>
    
What do you think about this?
Comment 2 Markus Knauer CLA 2010-08-18 13:40:46 EDT
I agree that enabling the OSGi console is not the expected default behaviour ;-)

Your suggestion looks good to me, but it should be well documented in the web.xml file what steps someone needs to do in order to activate the console.
Comment 3 Holger Staudacher CLA 2011-01-27 05:40:42 EST
Fixed in CVS HEAD.