Search code examples
javaintellij-ideaejbapache-tomee

Intellij tomee set tomee.serialization.class.whitelist


How to setup in IntelliJ IDEA VM options.

I need to setup

set JAVA_OPTS="-Dtomee.serialization.class.whitelist=" 
set CATALINA_OPTS="-Dtomee.serialization.class.blacklist=-"

In run/debug configuration for my local tomee server I pass into VM options

-tomee.serialization.class.whitelist=*
-tomee.serialization.class.blacklist=-

also tried without *. It still giving me "invalid arguments" error after run/debug the server. How to set it properly?

ps.If I run the server manually everything works correct.


Solution

  • You need to specify the two properties as Java system properties (-D) in the VM options of your run configuration:

    -Dtomee.serialization.class.whitelist=*
    -Dtomee.serialization.class.blacklist=-