开发者

HOW to Pass parameters to tomcat in ubuntu?

I am trying to configure cruisecontrol to use Tomcat rather than Jetty as its servlet engine. I am following a tutorial on this and I'm stuck at the point where it says:

Pass startup parameter to tomcat.

-Ddashboard.config=/home/cruisecontrol/work/dashboard-config.xml

Which file do I put this in in my Tomc开发者_开发知识库at installation? Is it the startup.sh file in the Tomcat directory?

The tutorials are here.


This probably needs to go in the JAVA_OPTS variable, in the catalina.sh file.


You have to have config.xml with every appserver like tomcat and weblogic. You can pass the startup parameters as mentioned there in config.xml of tomcat server.


With Tomcat 7, this should be set in $CATALINA_BASE/bin/setenv.sh as stated in the catalina.sh script.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜