I did try -Denable-preview=true -- BUT while that does allow "something"
to pass through jsvc parsing, it is not passed to the booting jsvm/tomcat
in any meaningful way. IE, the application fails to load with this error
still:
20-Mar-2020 14:03:25.804 SEVERE [main]
org.apache.catalina.core.StandardContext.filterStart Exception starting
filter [FrameSecurityFilter]
java.lang.UnsupportedClassVersionError: Preview features are not
enabled for com/bus/itm/empbc/FrameSecurityFilter (class file version
57.65535). *Try running with '--enable-preview*' (una
ble to load class [com.bus.itm.empbc.FrameSecurityFilter])
On Fri, Mar 20, 2020 at 1:52 PM Gilles Sadowski <[email protected]>
wrote:
> Le ven. 20 mars 2020 à 18:40, ken edward <[email protected]> a écrit :
> >
> > Yes, I did. Neither of these work:
> >
> > -D<name>=<value>
> > set a Java system property
> > -X<option>
> > set Virtual Machine specific option
> >
> > -X--enable-preview
> > -D--enable-preview
>
> Did you try
> -Denable-preview=true
> ?
> [Would be the expected syntax (IMHO).]
>
> Regards,
> Gilles
>
>
> >
> > On Fri, Mar 20, 2020 at 1:19 PM Mark Thomas <[email protected]> wrote:
> > >
> > > On 20/03/2020 13:50, ken edward wrote:
> > > > Hello,
> > > >
> > > > When I deploy my tomcat war it produces the below error message,
> telling me
> > > > to pass the "--enable-preview". I can add the "--enable-preview" to
> > > > my non-jsvc dev tomcat start.sh script to resolve the problem fine.
> > > > BUT, 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.
> > > >
> > > > If I try to add --enable-preview to the production JSVC
> > > > script environment:
> > > > "Invalid option --enable-preview
> > > > Cannot parse command line arguments"
> > > >
> > > > What must I do to allow JSVC to accept and pass the
> "--enable-preview"
> > > > parameter?
> > >
> > > Have you tried looking at the JSVC documentation?
> > >
> > > http://commons.apache.org/proper/commons-daemon/jsvc.html
> > >
> > > Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>