[
https://issues.apache.org/jira/browse/OPENEJB-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660519#comment-13660519
]
Romain Manni-Bucau commented on OPENEJB-2024:
---------------------------------------------
the proposed fix doesn't work, javaee-api needs to be set here to avoid
classloading issues. If win 8 can't support 2 files we'd need to create 2 var
'openjeb_core and javaee_api), check both and then call the goto.
Do you want to propose a patch?
> openejb.bat incorrectly identifies an incorrect OPENEJB_HOME in Win 8
> ---------------------------------------------------------------------
>
> Key: OPENEJB-2024
> URL: https://issues.apache.org/jira/browse/OPENEJB-2024
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 4.6.0
> Reporter: Reinis Vicups
> Priority: Minor
>
> openejb.bat contains following line:
> set
> OPENEJB_CORE_JAR="%OPENEJB_HOME%\lib\openejb-core-*.jar;%OPENEJB_HOME%\lib\javaee-api-*.jar"
> later on following check is made:
> if exist %OPENEJB_CORE_JAR% goto openejbHomeSet
> The "exist" function in Win 8 returns false if two files are supplied in
> expression.
> This (also the way it is currently implemented in 4.5.0) works:
> REM echo Provide ONLY ONE file pattern here!
> set OPENEJB_CORE_JAR="%OPENEJB_HOME%\lib\openejb-core-*.jar"
> if exist %OPENEJB_CORE_JAR% goto openejbHomeSet
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira