How to specify Java Option (System Property) for embedded Tomcat while running Grails App?
Posted
by hko19
on Stack Overflow
See other posts from Stack Overflow
or by hko19
Published on 2010-03-24T00:47:03Z
Indexed on
2010/03/24
0:53 UTC
Read the original article
Hit count: 568
Specifically, I want to have my grails app under development to connect to an Oracle db defiined by an tnsnames.ora file. I have the tnsnames.ora file located in c:\drivers\Network\ on my PC. When I run the grails app via "grails run-war", the db connection string defined in the tnsnames.ora file doesn't seem to be picked up:
grails prod run-war -Dserver.port=62215 -Doracle.net.tns_admin=C:\drivers\Netowrk\
It seems the name-value pair of oracle.net.tns_admin is not being passed to the JVM used by the the embedded Tomcat that comes with Grails 1.2.0. If not, what is the proper way of specify it, or pass any JAVA_OPTS to the underlying JVM?
© Stack Overflow or respective owner