tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl-Henrik Tjärnlund <kalle.tjarnl...@gmail.com>
Subject Working dir incorrect tomcat 9.10?
Date Sat, 30 Jun 2018 13:37:59 GMT
Hi!
I'm in the process of upgrading from tomcat 8 to 9 and was running
into a probelm with velocity not beeing able to create the default log
file, ./velocity.log and after some troubleshooting it seems it is
trying to create it in the root of the file system instead of the
current working directory, which i thought would be CATALINA_BASE.

I just did some test and logging in the webapp:

log.info("Working path: " + new File(".").getAbsolutePath());

is reporting "Working path:  /.

Also, I could do a workaround by creating /velocity.log manually and
give the tomcat9 user ownership which  strengthen my belief that there
is something strange with the working path..

>From the logs it seems that tomcat is picking up the correct settings,
see below, so I really cant get my head around it..

This has been workign without a problem from tomcat6 to tomcat8, is
there some configuration change I may have missed?

28-Jun-2018 08:42:28.896 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version:
      Apache Tomcat/9.0.10
28-Jun-2018 08:42:28.897 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server built:
      Jun 20 2018 17:32:21 UTC
28-Jun-2018 08:42:28.898 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server number:
      9.0.10.0
28-Jun-2018 08:42:28.899 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Name:
      Linux
28-Jun-2018 08:42:28.899 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
      4.15.0-23-generic
28-Jun-2018 08:42:28.900 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:
      amd64
28-Jun-2018 08:42:28.900 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Java Home:
      /usr/lib/jvm/java-11-openjdk-amd64
28-Jun-2018 08:42:28.901 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
      10.0.1+10-Ubuntu-3ubuntu1
28-Jun-2018 08:42:28.902 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
      Oracle Corporation
28-Jun-2018 08:42:28.902 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
      /ssd/opt/apache-tomcat-9.0.10
28-Jun-2018 08:42:28.903 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
      /ssd/opt/apache-tomcat-9.0.10
28-Jun-2018 08:42:28.904 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: --add-opens=java.base/java.lang=ALL-UNNAMED
28-Jun-2018 08:42:28.905 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: --add-opens=java.base/java.io=ALL-UNNAMED
28-Jun-2018 08:42:28.905 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
28-Jun-2018 08:42:28.906 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.util.logging.config.file=/opt/tomcat/conf/logging.pro
perties
28-Jun-2018 08:42:28.906 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa
nager
28-Jun-2018 08:42:28.907 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dfile.encoding=ISO-8859-1
28-Jun-2018 08:42:28.907 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dnet.sf.ehcache.skipUpdateCheck=true
28-Jun-2018 08:42:28.908 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -XX:+CMSClassUnloadingEnabled
28-Jun-2018 08:42:28.908 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djdk.tls.ephemeralDHKeySize=2048
28-Jun-2018 08:42:28.909 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresource
s
28-Jun-2018 08:42:28.909 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
28-Jun-2018 08:42:28.910 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Xms512m
28-Jun-2018 08:42:28.910 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Xmx1G
28-Jun-2018 08:42:28.912 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: --add-modules=java.xml.bind
28-Jun-2018 08:42:28.913 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: --add-modules=java.xml.ws
28-Jun-2018 08:42:28.914 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dignore.endorsed.dirs=
28-Jun-2018 08:42:28.915 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.base=/opt/tomcat
28-Jun-2018 08:42:28.918 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.home=/opt/tomcat
28-Jun-2018 08:42:28.919 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.io.tmpdir=/opt/tomcat/temp

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


Mime
View raw message