Reproduced with OpenJDK / tomcat6 / Ubuntu 9.10 The issue here is that you are not passing java options, but jsvc options. jsvc accepts -X and -D options and passes them to the underlying JVM. It does not recognize -enableassertions or -server (see man jsvc). It recognizes -ea for -enableassertions though (undocumented, found in 1.0.1 release notes).
Note that OpenJDK uses -server by default so it should not be needed if you used OpenJDK. Not sure about Sun's JVM, but it might have the same default. So this is not a bug, but maybe we need to document that a little better since the name is misleading (JAVA_OPTS). ** Package changed: tomcat5.5 (Ubuntu) => tomcat6 (Ubuntu) ** Changed in: tomcat6 (Ubuntu) Importance: Low => Wishlist ** Changed in: tomcat6 (Ubuntu) Status: New => Triaged ** Summary changed: - "-enableassertions -server" not working with tomcat 5.5.26 in Ubuntu 9.04 + Make it clearer that JAVA_OPTS is about JSVC options ** Description changed: - Binary package hint: tomcat5.5 + JAVA_OPTS is somewhat misleading since it is JSVC options and not all + Java options are recognized, which leads to bug reports like : I put that in /etc/default/tomcat5.5: - JAVA_OPTS="-Xmx1024m -enableassertions -server -XX:MaxPermSize=512m -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true" But I got this message: - Invalid option -enableassertions Then I move to: - JAVA_OPTS="-Xmx1024m -ea -server -XX:MaxPermSize=512m -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true" and I got: - Invalid option -server Then, if I remove '-server': - - JAVA_OPTS="-Xmx1024m -ea -server -XX:MaxPermSize=512m + JAVA_OPTS="-Xmx1024m -ea -XX:MaxPermSize=512m -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true" - tomcat finally start. + tomcat finally starts. But why that? and how can I be sure that tomcat is running with assertions and server enabled? - - ProblemType: Bug - Architecture: amd64 - DistroRelease: Ubuntu 9.04 - ExecutablePath: /usr/bin/jsvc - Package: jsvc 1.0.2~svn20061127-9ubuntu2 - ProcAttrCurrent: unconfined - ProcEnviron: - PATH=(custom, no user) - LANG=en_GB.UTF-8 - SHELL=/bin/bash - SourcePackage: commons-daemon - Uname: Linux 2.6.28-15-generic x86_64 -- Make it clearer that JAVA_OPTS is about JSVC options https://bugs.launchpad.net/bugs/440685 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tomcat6 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs