[ 
https://issues.apache.org/jira/browse/KARAF-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261851#comment-13261851
 ] 

Dan Stolz commented on KARAF-1398:
----------------------------------

In my case, I was starting karaf using a service wrapper.  I have KARAF_DEBUG 
set as a system environment variable.
To stop karaf, the service wrapper uses "karaf stop".  This fails.

There are several ways that *I* can work around the problem, but I will be 
delivering an application that uses karaf and I can't control it's use in the 
field.

My solution was to modify karaf.bat so that it uses a different port when 
'stop' is a parameter.  I would also modify the port when 'client' is a 
parameter as well.
                
> Multiple executions of karaf.bat with KARAF_DEBUG set will fail
> ---------------------------------------------------------------
>
>                 Key: KARAF-1398
>                 URL: https://issues.apache.org/jira/browse/KARAF-1398
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.6
>         Environment: Windows
>            Reporter: Dan Stolz
>            Priority: Minor
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When KARAF_DEBUG is set, karaf is always started with the debug port set to 
> 5005.
> If an instance of this batch is running and another call to karaf.bat is 
> executed, it will fail because the port is in use.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to