Hi James,

On Thu, Sep 1, 2016 at 2:36 PM, James H. H. Lampert <
jam...@touchtonecorp.com> wrote:

> Ladies and Gentlemen:
>
> One of our Tomcat servers (refreshed from 
> apache-tomcat-7.0.67-windows-x86.zip)
> is running AS A SERVICE on a Windows box.
>
> And we need to set JVM Options of
>  -Djavax.servlet.request.encoding=UTF-8
>  -Dfile.encoding=UTF-8
>  -Djava.awt.headless=true
>
> Unlike IBM Midrange boxes, on which I can, with a simple OS command, list
> all the JVMs currently running on the system, and look up the arguments,
> environment variables, system properties, &c, I can't find any way to
> verify the JVM arguments (this box has only a JRE, not a JDK), other than
> what gets sent to the log file. I even tried installing a trial of
> JProfiler, but if checking arguments is in there, it's well-hidden!
>
> I just tried adding a "setenv.bat" to the "bin" directory, containing
>
> SET CATALINA_OPTS=-Djava.awt.headless=true 
> -Djavax.servlet.request.encoding=UTF-8
>> -Dfile.encoding=UTF-8
>>
>
> and after stopping and starting the service, even after rebooting the
> Windows box, "headless" cannot be found in the log file, and neither can I
> find "UTF."
>
> WHAT COULD BE GOING WRONG HERE?
>
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
I don't run Tomcat on Windows so there might be a typo in this line here
but in your setenv.bat have you tried something like:

SET JAVA_OPTS="%JAVA_OPTS% -Djava.awt.headless=true
-Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8"

instead of using CATALINA_OPTS? We use JAVA_OPTS in our setenv.sh file for
Linux, perhaps it will work for Windows as well ...

- Jim

Reply via email to