Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
recategorized by

I am trying to get the Appfuse + tomcat + jRebel working.

Appfuse by default use Cargo to download the tomcat (ver. 7.0.33) and deploy an application to it. I wish to use the already installed tomcat (ver. 7.0.27) instead of a downloaded one. I made this change following the appfuse FAQ.

After deploying with the mvn cargo: run, how can I know that the actual running tomcat is indeed 7.0.27?

I used to type a wrong URL (ex. localhost:8080/dfsfsdf) to see it on this error page, but now it shows nothing.

My $CATALINA_HOME points to my own tomcat 7.0.27. sorry forgot to mention, it's for Windows

Update:

Since that question had become somehow popular, I would like to read why that received an answer. simple, it was the first one that solved my problem.

looking at this title of the question, @Tech Junkie and @CPU 100 really have the best answer, but not for the scenario I was found. (I was needing to know if mvn cargo: run runs my installed tomcat or a "project embedded" tomcat

1 Answer

0 votes
by (36.8k points)

If you can upload the JSP file you may print out some info like in the example: bestdesigns.co.in/blog/check-jsp-tomcat-version

Save this code into the file called tomcat_version.jsp:

    Tomcat Version : <%= application.getServerInfo() %><br>    

    Servlet Specification Version : 

<%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> <br>    

    JSP version :

<%=JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>

When you access the, http://example.com/tomcat_version.jsp, the output I should look similar to:

Tomcat Version : Apache Tomcat/5.5.25

Servlet Specification Version : 2.4

JSP version: 2.0

Want to be a Linux expert? Come and join this linux course

 

Related questions

0 votes
1 answer
0 votes
2 answers
0 votes
1 answer
asked Nov 28, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...