Tomcat: How to find out running tomcat version

前端 未结 27 1776
臣服心动
臣服心动 2020-11-30 16:18

I\'m trying to get Appfuse + tomcat + jRebel working.

Appfuse by default uses Cargo to download tomcat (ver. 7.0.33) and deploy the application to it. I wish to use

相关标签:
27条回答
  • 2020-11-30 17:08

    Windows task manager > Processes > find tomcat > right click > open file location > if you run Tomcat7w.exe it is visible at description.

    Tomcat should running to be visible at Processes if not at Windows Vista/7 go to task manager > tab (services) find tomcat start it and then processes.

    0 讨论(0)
  • 2020-11-30 17:10

    If Tomcat is installed as a service, try:

    sudo /etc/init.d/tomcat version
    

    Swap out "tomcat" with the actual name of the service.

    0 讨论(0)
  • 2020-11-30 17:11

    In Linux to check the tomcat version

    cd /opt/tomcat/bin
    
    ./catalina.sh version
    
    0 讨论(0)
  • 2020-11-30 17:12
    1. Try parsing or executing the Tomcat_home/bin directory and look for a script named version.sh or version.bat depending on your operating system.
    2. Execute the script ./version.sh or version.bat

    If there are no version.bat or version.sh then use a tool to unzipping JAR files (\tomcat\server\lib\catalina.jar) and look in the file org\apache\catalina\util\lib\ServerInfo.properties. the version defined under "server.info=".

    0 讨论(0)
  • 2020-11-30 17:13

    Another option is view release notes from tomcat,applicable to linux/window

    {Tomcat_home}/webapps/ROOT/RELEASE-NOTES.txt
    
    0 讨论(0)
  • 2020-11-30 17:15

    I know it is maybe too late for this, but this could be usefull: If you try to know Apache Tomcat Server version from Java code, you can use:

    from a HttpServlet:

    protected void doGet(HttpServletRequest request, HttpServletResponse response) {
        getServletContext().getServerInfo()
    }
    

    from a ServletContextListener:

    public void contextInitialized(ServletContextEvent event)  { 
        event.getServletContext().getServerInfo();      
    }
    
    0 讨论(0)
提交回复
热议问题