[ 
https://issues.apache.org/jira/browse/KARAF-3132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Gonsalves updated KARAF-3132:
---------------------------------

    Description: 
Ran into an issue starting Karaf locally where the karaf would not fully start 
up.  In this state, running "la" at the command prompt showed the web console 
was hung in "starting' mode and never completed.  The root cause was a trailing 
whitespace at the end of the property "org.osgi.service.http.port" in the 
"org.ops4j.pax.web.cfg" file.  

The only property in that file was below and when it has a trailing whitespace, 
server fails to start.
org.osgi.service.http.port=8581  

I believe you need the "webconsole" feature enabled, as I did.

All properties pulled in should use trim() and values that are expected to be 
numbers should be checked for validity.  Would also be nice if some type of 
error message could have been found, no error was ever found.  

  was:
Ran into an issue starting Karaf locally where the karaf would not fully start 
up.  In this state, running "la" at the command prompt showed the web console 
was hung in "starting' mode and never completed.  The root cause was a trailing 
whitespace at the end of the property "org.osgi.service.http.port" in the 
"org.ops4j.pax.web.cfg" file.  

causes karaf to hang:
org.osgi.service.http.port=8581  

allows the server to succeed:
org.osgi.service.http.port=8581 

All properties pulled in should use trim() and values that are expected to be 
numbers should be checked for validity.  Would also be nice if some type of 
error message could have been found, no error was ever found.  


> Trailing whitespace on property hangs karaf at startup
> ------------------------------------------------------
>
>                 Key: KARAF-3132
>                 URL: https://issues.apache.org/jira/browse/KARAF-3132
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: cellar-2.3.0
>         Environment: This was discovered on a Windows machine, but seems 
> hardware/OS independent.  
>            Reporter: Jan Gonsalves
>
> Ran into an issue starting Karaf locally where the karaf would not fully 
> start up.  In this state, running "la" at the command prompt showed the web 
> console was hung in "starting' mode and never completed.  The root cause was 
> a trailing whitespace at the end of the property "org.osgi.service.http.port" 
> in the "org.ops4j.pax.web.cfg" file.  
> The only property in that file was below and when it has a trailing 
> whitespace, server fails to start.
> org.osgi.service.http.port=8581  
> I believe you need the "webconsole" feature enabled, as I did.
> All properties pulled in should use trim() and values that are expected to be 
> numbers should be checked for validity.  Would also be nice if some type of 
> error message could have been found, no error was ever found.  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to