Optional java VM arguments
Hi all,
I am runnig one application from Eclipse IDE with tomcat5.5.when configuring the server I mentiond Optional java VM arguments like below
-Durcl.package.base=com.mycomp
-Durcl.verbose=false
-Durcl.default.domain=mycomp
-Djava.system.class.loader=com.mycopm.UnifiedResourceClassLoader
-Dhyperwallet.jvm=jvm-1
-Xdebug -Xnoagent
-Djava.compiler=NONE
and I am adding some lidrary files to pathhs.
But Now when its going to production mechine there is no eclipse so I have to give this optional arguments when starting the tomcat server.How to give this to tomcat server which file I have to modify Please help me regarding this.
Thanks and Regards
# 1
there's a startup script for tomcat you can edit the JVM args there.
it's called startup.bat or catalinastart.bat or someting.
there's probably already a placeholder there to enter/add your args.
# 4
HI SoulTech2012 ,
I got solution for above problem in windows.
By modifying the catalina.bat and setclasspath.bat like below
catalina.bat
set CATALINA_OPTS=-Durcl.package.base=com.twinlion -Durcl.verbose=false -Durcl.default.domain=myCitadel -Djava.system.class.loader=com.twinlion.util.UnifiedResourceClassLoader -Dhyperwallet.jvm=jvm-1
setclaspath.bat
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\classLoader.jar;%JAVA_HOME%\lib\cryptix-openpgp-provider.jar;%JAVA_HOME%\lib\cryptix-message-api.jar;%JAVA_HOME%\lib\cryptix-pki-api.jar;%JAVA_HOME%\lib\certpath-compat-api.jar;%JAVA_HOME%\lib\cryptix-jce-provider.jar;%JAVA_HOME%\lib\certpath-compat-api.jar;cryptix-jce-api.jar
I did the same thing in linux instead of bat files i did modifications in .sh files but its not working can you help me regarding this issue.
Thanks in advance
Chinna