Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323015

Summary: duplicated commandline init-param in web.xml
Product: z_Archived Reporter: Markus Knauer <mknauer>
Component: LibraAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sa
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   
Whiteboard:

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.