Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.1
-
Unknown
-
N/A
-
N/A
-
Description
When starting XWiki 7.1 on Windows you get:
D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>∩╗â”@echo off '∩╗â”@echo' is not recognized as an internal or external command, operable program or batch file. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM ------------------------------------------------------------------------- D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM See the NOTICE file distributed with this work for additional D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM information regarding copyright ownership. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM This is free software; you can redistribute it and/or modify it D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM under the terms of the GNU Lesser General Public License as D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM published by the Free Software Foundation; either version 2.1 of D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM the License, or (at your option) any later version. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM This software is distributed in the hope that it will be useful, D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM but WITHOUT ANY WARRANTY; without even the implied warranty of D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Lesser General Public License for more details. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM You should have received a copy of the GNU Lesser General Public D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM License along with this software; if not, write to the Free D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM 02110-1301 USA, or see the FSF site: http://www.fsf.org. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM ------------------------------------------------------------------------- D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM ------------------------------------------------------------------------- D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Optional ENV vars D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM ----------------- D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM XWIKI_OPTS - parameters passed to the Java VM when running Jetty D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM e.g. to increase the memory allocated to the JVM to 1GB, use D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM set XWIKI_OPTS=-Xmx1024m D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM JETTY_OPTS - optional parameters passed to Jetty's start.jar. For example to list the configuration that will D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM execute, try setting it to "--list-config". See D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM http://www.eclipse.org/jetty/documentation/9.2.3.v20140905/start-jar.html for more options. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM JETTY_PORT - the port on which to start Jetty, 8080 by default D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM JETTY_STOP_PORT - the port on which Jetty listens for a Stop command, 8079 by default D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM ------------------------------------------------------------------------- D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>setlocal EnableDelayedExpansion D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set JETTY_HOME=jetty D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set JETTY_BASE=. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if not defined XWIKI_OPTS set XWIKI_OPTS=-Xmx512m -XX:MaxPermSize=196m D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM The port on which to start Jetty can be defined in an enviroment variable called JETTY_PORT D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if not defined JETTY_PORT ( REM Alternatively, it can be passed to this script as the first argument set JETTY_PORT= if not defined JETTY_PORT (set JETTY_PORT=8080 ) ) D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM The port on which Jetty listens for a Stop command can be defined in an enviroment variable called JETTY_STOP_PORT D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if not defined JETTY_STOP_PORT ( REM Alternatively, it can be passed to this script as the second argument set JETTY_STOP_PORT= if not defined JETTY_STOP_PORT (set JETTY_STOP_PORT=8079 ) ) D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>echo Starting Jetty on port 8080, please wait... Starting Jetty on port 8080, please wait... D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Discover java.exe from the latest properly installed JRE D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>for /F tokens=2 delims=" %i in ('reg query HKEY_CLASSES_ROOT\jarfile\shell\open\command /ve') do set JAVAW_PATH=%i D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set JAVAW_PATH=C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set JAVA_PATH=C:\Program Files\Java\jre1.8.0_45\bin\java.exe D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if "C:\Program Files\Java\jre1.8.0_45\bin\java.exe" == "" set JAVA_PATH=java D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Handle the case when JAVA_HOME is set by the user D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if not "C:\Program Files\Java\jdk1.8.0_45" == "" set JAVA_PATH=C:\Program Files\Java\jdk1.8.0_45\bin\java.exe D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Location where XWiki stores generated data and where database files are. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set XWIKI_DATA_DIR=data D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set XWIKI_OPTS=-Xmx512m -XX:MaxPermSize=196m -Dxwiki.data.dir="data" D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Ensure the data directory exists so that XWiki can use it for storing permanent data. D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if not exist "data" mkdir "data" D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Ensure the logs directory exists as otherwise Jetty reports an error D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>if not exist "data\logs" mkdir "data\logs" D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Specify Jetty's home and base directories D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set XWIKI_OPTS=-Xmx512m -XX:MaxPermSize=196m -Dxwiki.data.dir="data" -Djetty.home="jetty" -Djetty.base="." D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Specify the encoding to use D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set XWIKI_OPTS=-Xmx512m -XX:MaxPermSize=196m -Dxwiki.data.dir="data" -Djetty.home="jetty" -Djetty.base="." -Dfile.encoding=UTF8 D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Specify port on which HTTP requests will be handled D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set JETTY_OPTS= jetty.port=8080 D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM In order to print a nice friendly message to the user when Jetty has finished loading the XWiki webapp, we pass D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM the port we use as a System Property D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set XWIKI_OPTS=-Xmx512m -XX:MaxPermSize=196m -Dxwiki.data.dir="data" -Djetty.home="jetty" -Djetty.base="." -Dfile.encoding=UTF8 -Djetty.port=8080 D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>REM Specify port and key to stop a running Jetty instance D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>set JETTY_OPTS= jetty.port=8080 STOP.KEY=xwiki STOP.PORT=8079 D:\xwiki\xwiki\7.1\xwiki-enterprise-jetty-hsqldb-7.1 - Copy>"C:\Program Files\Java\jdk1.8.0_45\bin\java.exe" -Xmx512m -XX:MaxPermSize=196m -Dxwiki.data.dir="data" -Djetty.home="jetty" -Djetty.base="." -Dfile.encoding=UTF8 -Djetty. port=8080 -jar "jetty/start.jar" --module=xwiki jetty.port=8080 STOP.KEY=xwiki STOP.PORT=8079 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=196m; support was removed in 8.0 2015-06-16 09:11:17,186 [main] INFO o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server... 2015-06-16 09:11:17,217 [main] INFO o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [data\solr] 2015-06-16 09:11:19,483 [main] INFO o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server. 2015-06-16 09:11:20.639:INFO:oxtjl.NotifyListener:main: ---------------------------------- 2015-06-16 09:11:20.639:INFO:oxtjl.NotifyListener:main: Server started, you can now open http://172.16.55.41:8080/ in your browser to access your wiki. 2015-06-16 09:11:20.639:INFO:oxtjl.NotifyListener:main: ----------------------------------
inside the console.
Might have been introduced when fixing XWIKI-12150 & XWIKI-12154.
Attachments
Issue Links
- duplicates
-
XWIKI-12154 XWiki fails to start on Windows when there are spaces in the XWiki Data dir
- Closed
-
XWIKI-12682 Confusing ${jetty.base} messages in console
- Closed
- is duplicated by
-
XWIKI-12809 Errors when starting XWiki on Windows
- Closed