Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getServerInfo() returning Apache Tomcat/5.0.28 for JBOSS4.0.0 version, why is it returning Apache?

 
Anjali Raman
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have installed JBoss 4.0.0 version and was trying out some simple servlet programs using JBoss for the first time.
I have been more familiar to Tomcat and so JBoss is kind of new to me.
When I wrote a simple Servlet program for displaying the output of getServerInfo() I got "Apache Tomcat/5.0.28" when I was actually expecting "JBoss 4.0.0"
Could someone please let me know why there is a connection between Apache and JBoss?
I was using the program example in LearnNowJava, ofourse the instructor used JBoss 5.x version she was getting Jboss as output and I was expecting something similar.

I have attached the code below as well.


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss AS 4.0.0? That is ancient! Or is that a typo?

JBoss AS uses Tomcat (or a variation of Tomcat) as its web server, so the response you are getting identifies the web server.
 
Anjali Raman
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree that I am using quite an old version of JBOSS, but was puzzled as to why it was pointing to Apache.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic