Yes, I did try -X--enable-preview, was passed via jsvc, but not in a meaningful or understandable way to java/tomcat.
On Thu, Mar 19, 2020 at 3:11 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Ken, > > On 3/18/20 16:25, ken edward wrote: > > Hello, > > > > When I deploy my war it produces the below error message, telling > > me to pass the "--enable-preview". I can add the > > "--enable-preview" to my tomcat start.sh script dev environment to > > resolve the problem. However, if I launch the production tomcat > > using the jsvc binary (to bind to port 443 instead of 8443), the > > JSVC binary doesn't seem to pass the "--enable-preview" parameter. > > > > What must I do to allow JSVC to accept and pass the > > "--enable-preview" parameter? > > > > apache-tomcat-9.0.27 jdk-13.0.1 > > > > 18-Mar-2020 15:38:27.659 SEVERE [main] > > org.apache.catalina.core.StandardContext.filterStart Exception > > starting filter [FrameSecurityFilter] > > java.lang.UnsupportedClassVersionError: Preview features are not > > enabled for com/marsh/div/rock/emp/FrameSecurityFilter (class file > > version 57.65535). Try running with '--enable-preview' (unable to > > load class ......) > > > > BUT then if I try to add --enable-preview to the production JSVC > > script environment: "Invalid option --enable-preview Cannot parse > > command line arguments" > > Have you tried "-X--enable-preview"? > > Most Java-related binaries which call through to the JVM (e.g. javac) > offer an option to pass JVM parameters using "-J[foo]". I don't see a > mirror of that for jsvc unless maybe -X is intended to provide that > facility. > > I would suggest that you ask the jsvc folks if they would consider > adding a -J alias to -X if indeed that's what it's for. If -X is > different than -J, then they should probably introduce a new -J option > to support such things. > > - -chris > -----BEGIN PGP SIGNATURE----- > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5zw8UACgkQHPApP6U8 > pFgBnBAAmTZhyH/xSO2Nwtn0pYz3ddG1L6uvqfi1CVH0SxOZuf0MLzvxwtLAkgNU > eqH72v8wXc0yBUm62Phphb/YtG2jhesOIKS2X8Tr33gYS9XNV8wkhfRMB/4/k295 > 2tkdydVgTezI3jXOG/ONA1kHVIEcuhxQWcdHJuYK2oFqGn559bHOj+SQB+FMPdLE > BQNc5ZAFt20o05Q0Bx9Nsv69tlZPkaCc28DiQlinGFvPVqE4j/0M5VIxlc8uR3KR > FbharaHsnMs0RIesec3+ITSyv7Vz16AQEPlEaNBuhSEN8e4S4Pk8xS7VGDbh/N7z > J3pTWxi/VDoEunioqjr6KxIrzlSVF+KrNpIpJWUtT+k2if8CzvztkLDW9HoSdj3o > GsMoSf1Pr4Jj5hHdr/MvmBthJ3d4BxD92iS1ADB2hinfu28mEPHiLRBWLd2GICOH > zCKDTGfe9w+7y1kYcvz9Mf4nm0vnGE7/iaTZ3ZKJRLAHwJC6xQksA0S/OavmCsrx > CtqHnzZoWZo2hXB4GoyK92qmy5iihfxyMHaQ5fADcQ7Kn+xPqv6DxEnASLqV/pj5 > ZZCBfgJYAo/6IOYpte1MJ8AVAAwDvLIlsWcNpIF2Cfdu5vwHwh+9wSnM3eqGHznP > 4FYdaRuuQIqKZS4VOdE6GTDzm2SloZGYWGx7fYuVlUaszflWzF0= > =Z/9B > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >