File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes getServerInfo() returning Apache Tomcat/5.0.28 for JBOSS4.0.0 version, why is it returning Apache? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "getServerInfo() returning Apache Tomcat/5.0.28 for JBOSS4.0.0 version, why is it returning Apache?" Watch "getServerInfo() returning Apache Tomcat/5.0.28 for JBOSS4.0.0 version, why is it returning Apache?" New topic
Author

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

Anjali Raman
Ranch Hand

Joined: Nov 28, 2007
Posts: 57
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

Joined: May 14, 2008
Posts: 5812
    
    7

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.


JBoss In Action
Anjali Raman
Ranch Hand

Joined: Nov 28, 2007
Posts: 57
I agree that I am using quite an old version of JBOSS, but was puzzled as to why it was pointing to Apache.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getServerInfo() returning Apache Tomcat/5.0.28 for JBOSS4.0.0 version, why is it returning Apache?
 
Similar Threads
problem while executing the JAR written using ANT
display the log/output in JSP or HTML page
Confused about Life cycle of Servlets
Unable to get property values using jsp:getProperty
Error to import javax.servlet.*