The server info returned by
java.servlet.ServletContext.getServerInfo() is going to change from
Sun-Java-System/Application-Server
to
Sun Java System Application Server Platform Edition 9.0
for SJSAS 9.0 PE/Glassfish, and
Sun Java System Application Server Enterprise Edition 9.0
for SJSAS 9.0 EE.
This is in response to
[Issue 20] New - ServletContext.getServerInfo() doesn't include version
(
https://glassfish.dev.java.net/issues/show_bug.cgi?id=20)
As part of this change, the "product.name" system property will be
removed (it seems no module other than the webcontainer has been
depending on it). See attached launcher.xml.DIFFS.
Instead, the webcontainer will get the server name from
com.sun.appserv.server.util.Version (thanks, Abhijit!),
which reads it from the
com/sun/enterprise/ee/server/Version.properties
or
com/sun/enterprise/server/Version.properties
resources, in this order (Version.java is hard-coding the
version string to "9.0").
The contents of the former resource (located in the
appserv-core-ee module) are:
product.name=Sun Java System Application Server Enterprise Edition
abbrev.product.name=sun-appserver-ee
whereas the latter resource seems to be missing!
The attached Version.properties adds corresponding info for 9.0 PE
and will be stored as
com/sun/enterprise/server/Version.properties
in appserv-core.
Please let me know if you have any issues.
Thanks,
Jan
ld.so.1: /usr/bin/sparcv9/uptime: warning: libsocks5_sh.so: open failed: No such file in secure directories
Index: launcher.xml
===================================================================
RCS file: /cvs/glassfish/appserv-core/misc/launcher/launcher.xml,v
retrieving revision 1.3
diff -u -r1.3 launcher.xml
--- launcher.xml 12 Jul 2005 21:23:25 -0000 1.3
+++ launcher.xml 3 Aug 2005 23:45:35 -0000
@@ -81,8 +81,6 @@
value="com.sun.enterprise.server.logging.ServerLogManager"/>
<sysproperty key="com.sun.enterprise.overrideablejavaxpackages"
value="javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help,javax.portlet"/>
- <sysproperty key="product.name"
- value="Sun-Java-System/Application-Server"/>
<classpath>
<fileset dir="${com.sun.aas.installRoot}/lib"
product.name=Sun Java System Application Server Platform Edition
abbrev.product.name=sun-appserver-pe