-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Olaf,

On 1/10/18 12:50 PM, Olaf Kock wrote:
> 
> 
> On 10.01.2018 17:57, Christoph P.U. Kukulies wrote:
>> Am 10.01.2018 um 17:06 schrieb Christoph P.U. Kukulies:
>>> The problem is overlaid by the following:
>>> 
>>> [2018-01-10 16:35:37] [info]  [ 6340] Commons Daemon procrun 
>>> (1.0.15.0 64-bit) s tarted [2018-01-10 16:35:37] [info]  [
>>> 6340] Running 'Tomcat7' Service... [2018-01-10 16:35:37] [info]
>>> [ 6376] Starting service... [2018-01-10 16:35:37] [error] [
>>> 6376] Failed creating java C:\Program Files\Java 
>>> \jdk1.8.0_111\jre\bin\server\jvm.dll [2018-01-10 16:35:37]
>>> [error] [ 6376] Das System kann den angegebenen Pfad nicht 
>>> finden. [2018-01-10 16:35:37] [error] [ 6376] ServiceStart
>>> returned 1 [2018-01-10 16:35:37] [error] [ 6376] Das System
>>> kann den angegebenen Pfad nicht finden. [2018-01-10 16:38:06]
>>> [info]  [ 6340] Run service finished. [2018-01-10 16:38:06]
>>> [info]  [ 6340] Commons Daemon procrun finished
>>> 
>>> 
>>> My system wide setting of JAVA_HOME is (installed recent jre
>>> today since my Java instalation jdk1.8.0.111 was hosed and the
>>> error message is correct in this sense).
>>> 
> AFAIK the batch files are completely insignificant when services
> are started on Windows.

Correct, except that the batch files can be used to install the
service, e.g.:

C:\path> SET CATALINA_HOME=...
C:\path> SET CATALINA_BASE=...
C:\path> %CATALINA_HOME%\bin\service.bat install

(from memory... it's something like that)

The point is that the batch scripts use environment variable values
that were set at the time of execution to set all of the command-line
parameters that the service will use when it's actually launched.
Changing the environment variable values after service.bat is run does
not have any effect on the service (unless you "reinstall" it).

> Linux Daemons often use the shellscripts, but Windows - as you
> probably figured - uses the configuration it finds in its registry,
> to be configured through tools like tomcat7w.exe

Correct.

> And indeed (as you asked earlier): I meant enclosing everything in 
> double quotes as in SET "key=value with spaces" - but that's from
> memory as I don't have any Windows system available for reference.

At this point, most of the batch scripts behave "properly" when paths
contain spaces. But things are slightly worse on Windows when it comes
to spaces in paths for at least two reasons:

1. Some commands or utilities understand spaces and don't necessarily
need quoting around the paths, which is enormously confusing to a
UNIX-type person like me.

2. Windows capabilities to quote/unquote strings are often
unpredictable -- again especially for UNIX-y folks like me -- do
sometimes it's tough to make sure that 100% of possible cases are covere
d.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlpXiTodHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFhYLxAAs89p2tYykgCiuiCm
xuowKgzZrTKlCUl3vxBCzLQFZVUif2uY2Qj4Trj5/pb4ukDx9YmZKQ9HwExcR0Ww
E8DpZ/LR704SQIwyxlX3YCFjeIcficwzKxlDLEE4P2iMOWxTXTkWGNFnb3MjrN57
3TbO11UGLbuUOiA216PzyyzN880YPPI7x+UkgGS6/OLPdvugQlNZ6HeAFfe5H3Ix
aWgwM61iWA0/IGjws9qYpBpyaISUa6/s5MuMDyvhMbYfyn8V3MPPKaQgLtCfeWz2
iK9A7AN++55/T/0O7CXn4GKFE+oWpmWyfeMrYPmX+yVyTqCCOvr/HPkU70fEh8kZ
CWx1Ml9MQ2m9GwAa5XxFyik9/eJGa3ATUS80tmANup5G816HztGhFDmOLfxe1HW8
yjyA8Wz0v56xIDHVUj6itqj9e9en9RjqRbuwjOceOS+m/CwUWFa/qtYMbJH0M8N1
l/OoaSrZV08OwZIT/A/PseAesMXRpd4zOhvu+9W0zEwNl0krxtKW9JRkl3C41F0L
QZ6hrph+mJL5jSYdW4ZOFpXuwojgBKlos4t9PG3+h1bLJEunugGI0zuOGSqMHald
OwLwI4wK+4XlXDe9iw1nsXk8N2NwkzI1SvFy3EPeSvczAXY1briOIUZ3CIT2csDn
/4Wk3yP43vVJkl+UqspArdCUvAw=
=WeK4
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to