[ http://issues.apache.org/jira/browse/GERONIMO-1703?page=all ]

Vamsavardhana Reddy updated GERONIMO-1703:
------------------------------------------

    Attachment: ServerInfoWebApp.war

ServerInfoWebApp.war:  Deploy this war and access 
http://localhost:8080/ServerInfoWebApp/ServerInfoServlet to verify the issue.

The servlet doGet() has the following code.

                response.setContentType("text/plain");
                
                PrintWriter out = response.getWriter();
                
                Kernel kernel = KernelRegistry.getSingleKernel();
                KernelManagementHelper mgr = new KernelManagementHelper(kernel);
                J2EEDomain domain = mgr.getDomains()[0];
                J2EEServer server = mgr.getServers(domain)[0];
                ServerInfo serverInfo = mgr.getServerInfo(server);
                
                out.println(serverInfo);
                out.println("Version = "+serverInfo.getVersion());
                out.println("BuildDate = "+serverInfo.getBuildDate());
                out.println("BuildTime = "+serverInfo.getBuildTime());
                out.println("Copyright = "+serverInfo.getCopyright());
                out.println("BaseDirectory = "+serverInfo.getBaseDirectory());


> ServerInfo.getBaseDirectory() returns null
> ------------------------------------------
>
>          Key: GERONIMO-1703
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1703
>      Project: Geronimo
>         Type: Bug
>     Versions: 1.0, 1.1, 1.2
>  Environment: Sun JDK 1.4.2_08, Win XP, Geronimo-Tomcat
>     Reporter: Vamsavardhana Reddy
>     Priority: Minor
>      Fix For: 1.2
>  Attachments: ServerInfoWebApp.war
>
> Calling getBaseDirectory on org.apache.geronimo.system.serverinfo.ServerInfo 
> returned by KernelManagementHelper.getServerInfo() returns null instead of 
> Geronimo Base Directory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to