tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yas Ogawa (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TOMEE-1607) NetBeans not able to start server instance
Date Mon, 15 Jul 2019 14:45:00 GMT

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

Yas Ogawa edited comment on TOMEE-1607 at 7/15/19 2:44 PM:
-----------------------------------------------------------

TomEE(8.0.0.M3) also fails to start on NetBeans11/Windows10.

JAVA_OPTS contains carrets for escaping pipe characters like
{code:java}
-Dhttp.nonProxyHosts=localhost^|127.0.0.1^|xxx{code}
but in bin/catalina.bat carrets are removed at here (line 243)
{code:java}
rem Add OpenEJB javaagent
if not exist "%CATALINA_HOME%\lib\openejb-javaagent.jar" goto noOpenEJBJavaagent
set JAVA_OPTS="-javaagent:%CATALINA_HOME%\lib\openejb-javaagent.jar" %JAVA_OPTS%{code}
on my environment, quoting JAVA_OPTS will fix it:
{code:java}
set "JAVA_OPTS=-javaagent:%CATALINA_HOME%\lib\openejb-javaagent.jar %JAVA_OPTS%"{code}
i think this fix will preserve whitespaces in the path.


was (Author: oganet):
TomEE(8.0.0.M3) also fails to start on NetBeans11/Windows10.

JAVA_OPTS contains carrets for escaping pipe charactors like
{code:java}
-Dhttp.nonProxyHosts=localhost^|127.0.0.1^|xxx{code}
but in bin/catalina.bat carrets are removed at here (line 243)
{code:java}
rem Add OpenEJB javaagent
if not exist "%CATALINA_HOME%\lib\openejb-javaagent.jar" goto noOpenEJBJavaagent
set JAVA_OPTS="-javaagent:%CATALINA_HOME%\lib\openejb-javaagent.jar" %JAVA_OPTS%{code}
on my environment, quoting JAVA_OPTS will fix it:
{code:java}
set "JAVA_OPTS=-javaagent:%CATALINA_HOME%\lib\openejb-javaagent.jar %JAVA_OPTS%"{code}
i think this fix will preserve whitespaces in the path.

> NetBeans not able to start server instance
> ------------------------------------------
>
>                 Key: TOMEE-1607
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1607
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.7.2
>         Environment: Windows 7, Netbeans 8.0.2
>            Reporter: Miklos Krivan
>            Priority: Trivial
>
> If Netbeans has nonProxyHosts setup the JAVA_OPTS value contains like this -Dhttp.nonProxyHosts="localhost*|127.0.0.1*|10*"
so when included in set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%" it will be failed because
of pipe character. Why did you add quotes around it? In TomEE 1.7.0 it was simple this: set
JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG% (without quotes) and worked.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message