How to start tomcat with jsvc?

故事扮演 提交于 2019-12-31 01:24:06

问题


I'm trying to start tomcat with jsvc but it gives me this strange error

JSVC re-exec requires execution with an absolute or relative path

using

jsvc -debug -cp ./bin/bootstrap.jar:bin/tomcat-juli.jar \
     -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
     org.apache.catalina.startup.Bootstrap

回答1:


Just ran into this error myself. In my case, using the absolute path to jsvc --- /usr/bin/jsvc on my machine --- fixed it.




回答2:


I run Tomcat by double-click startup.sh file on $CATALINA_HOME/bin folder. After that, I enter this URL http://localhost:8080/ in the browser and it runs.



来源:https://stackoverflow.com/questions/12136348/how-to-start-tomcat-with-jsvc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!