aspose file tools*
The moose likes JSP and the fly likes output Oracle JServ version dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "output Oracle JServ version dynamically" Watch "output Oracle JServ version dynamically" New topic
Author

output Oracle JServ version dynamically

John Bonifas
Greenhorn

Joined: Nov 01, 2003
Posts: 1
Hello, All
I'd like to display the current version of the installed JServ container
in a JSP.
I've gotten this far:
Object objJServ = new org.apache.jserv.JServ();

...but when I try this:
objJServ.version();
I get a No Method Found error.
I looked in the JServ javadocs for my version, and it says that the version method is implemented as a method in the JServ() class.
How can I call the version() method so that it works?
Thanx in advance for all who reply,
deck

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

One thing to check is to be sure that you are running against the same version of the class as the one you compiled against.
On a different track, you may also be able to get the info you are looking for in a container-generic manner with a call to servletContext.getServerInfo().
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: output Oracle JServ version dynamically
 
Similar Threads
JServ to tomcat migration : j..l..IllegalStateException: Response has already bee
latest version of Linux
Servlets on Apache Web Server
Dynamic Class [Un]loading
apache and jserv problem~~help me~~~thanks