I don't think this needs to be fixed. What we could do is display a warning
message if a user has set the JAVA_OPTS as well as the debug parameter.

On Wed, Dec 29, 2010 at 3:00 PM, Senaka Fernando <[email protected]> wrote:

>
>
> On Wed, Dec 29, 2010 at 2:24 PM, Afkham Azeez <[email protected]> wrote:
>
>> Actually, on many other AppServers, the way to enable debug mode is by
>> setting those JAVA_OPTS.  The --debug option is only a convenience mechanism
>> we have provided.
>
>
> Yes. But I think that our approach is more user friendly.
>
>>
>> Azeez
>>
>>
>> On Wed, Dec 29, 2010 at 2:23 PM, Afkham Azeez <[email protected]> wrote:
>>
>>> This is correct. When you pass the debug parameter, in the script we set
>>> JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE
>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
>>>
>>> So, if you choose to override the JAVA_OPTS, and still need to run in
>>> debug mode, you must set the above parameters too. We can look into merging
>>> this, but that may cause other issues.
>>>
>>
> +1. We need to think about these issues. But for instance if you merge it
> as JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT $JAVA_OPTS",
> the proper precedence will be given isn't it?
>
> May be we need to experiment and see.
>
>
>> So, I think it is better to pass the burden of properly setting the
>>> JAVA_OPTS to the user.
>>>
>>
> Yes, that was the intention. But the way we internally use the same for
> setting up debug mode was never mentioned. If the merging mentioned above
> fails (I don't think it does - but still it could be possible), we need to
> mention that.
>
> Thanks,
> Senaka.
>
>>
>>>
>>
>>> Azeez
>>>
>>> On Wed, Dec 29, 2010 at 2:14 PM, Senaka Fernando <[email protected]>wrote:
>>>
>>>> Hi Pradeep,
>>>>
>>>> $subject does not seem to work. Setting JAVA_OPTS is the recommended way
>>>> of passing system properties before starting Carbon. But, if you set it and
>>>> start the server in debug mode, it seems that these will never be passed,
>>>> according to our scripts. Can you have a look into [1]?
>>>>
>>>> [1] https://wso2.org/jira/browse/CARBON-8419
>>>>
>>>> Thanks,
>>>> Senaka.
>>>>
>>>> --
>>>> *Senaka Fernando*
>>>> Associate Technical Lead & Product Manager - WSO2 G-Reg;
>>>> WSO2, Inc.; http://wso2.com*
>>>> Member; Apache Software Foundation; http://apache.org
>>>>
>>>> E-mail: senaka AT wso2.com
>>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>>> Linked-In: http://www.linkedin.com/in/senakafernando
>>>>
>>>> *Lean . Enterprise . Middleware
>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> [email protected]
>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com
>>> ,
>>> *
>>> *
>>> *Member; Apache Software Foundation; 
>>> **http://www.apache.org/*<http://www.apache.org/>
>>> *
>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
>> *
>> *
>> *Member; Apache Software Foundation; 
>> **http://www.apache.org/*<http://www.apache.org/>
>> *
>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Associate Technical Lead & Product Manager - WSO2 G-Reg;
> WSO2, Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://www.linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Afkham Azeez*
Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
*
*
*Member; Apache Software Foundation;
**http://www.apache.org/*<http://www.apache.org/>
*
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to