Re: JSVC bug or developer oversight?

2020-03-20 Thread Bernd Eckenfels
Hello,

Seems not possible to pass options beside the known ones:

https://gitbox.apache.org/repos/asf?p=commons-daemon.git;a=blob;f=src/native/unix/native/arguments.c;h=8160c72944a7d7dae9cc8d43ec244f43a664a82f;hb=HEAD#l425

One option is to pass all unknown options to java, another is to pass only the 
missing --enable-preview and lastly an repeatable option  --add-jvm-arg 
"--enable-preview". I think passing the options might be most flexible, but it 
needs to make sure to correctly detect spaces

--start --enable-preview -splash:"/Home/Insane User/foto.jpg"

Maybe adding the one missing option is fastest.

As a workaround, maybe you can use environment variable JDK_JAVA_OPTIONS?

Bernd
--
http://bernd.eckenfels.net

Von: ken edward 
Gesendet: Friday, March 20, 2020 9:12:57 PM
An: Commons Users List 
Betreff: JSVC bug or developer oversight?

Hello,

How do you pass a command line parameter such as --enable-preview while
using JSVC?

jsvc -help  shows -X and -D but neither of these are appropriate for an
openjdk command line parameter like --enable-preview ?!?!?!?

-D=
set a Java system property
-X
set Virtual Machine specific option

Ken


JSVC bug or developer oversight?

2020-03-20 Thread ken edward
Hello,

How do you pass a command line parameter such as --enable-preview while
using JSVC?

jsvc -help  shows -X and -D but neither of these are appropriate for an
openjdk command line parameter like --enable-preview ?!?!?!?

-D=
set a Java system property
-X
set Virtual Machine specific option

Ken


Re: How to pass the --enable-preview tomcat parameter with JSVC?

2020-03-20 Thread ken edward
 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 
wrote:

> Le ven. 20 mars 2020 à 18:40, ken edward  a écrit :
> >
> > Yes, I did. Neither of these work:
> >
> >  -D=
> > set a Java system property
> >  -X
> > 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  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: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: How to pass the --enable-preview tomcat parameter with JSVC?

2020-03-20 Thread Gilles Sadowski
Le ven. 20 mars 2020 à 18:40, ken edward  a écrit :
>
> Yes, I did. Neither of these work:
>
>  -D=
> set a Java system property
>  -X
> 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  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: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: How to pass the --enable-preview tomcat parameter with JSVC?

2020-03-20 Thread ken edward
Yes, I did. Neither of these work:

 -D=
set a Java system property
 -X
set Virtual Machine specific option

-X--enable-preview
-D--enable-preview


On Fri, Mar 20, 2020 at 1:19 PM Mark Thomas  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: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>

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



Re: How to pass the --enable-preview tomcat parameter with JSVC?

2020-03-20 Thread Mark Thomas
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: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



How to pass the --enable-preview tomcat parameter with JSVC?

2020-03-20 Thread ken edward
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?

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 ..)

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