Skip to main content

Source code revision

svn

summary: V3 assumes that the "root directory" of the StartupContext object is really this:
revision: 24478
author: bnevins
date: 2009-01-27 21:29:44 UTC (6 years)
message: V3 assumes that the "root directory" of the StartupContext object is really this:

/modules

At runtime the startup code gets this root dir and then calls getParentFile() on it. It then sets that
parent file to be the official com.sun.aas.installRoot System Property

Naturally -- this makes all sorts of things break in Embedded -- because it is setting installroot to the parent of our install root!!

FIX:

Now I create a fake "modules" directory and send that into the ctor for StartupContext. At runtime V3 gets the parent dir, as usual,
and now install root is set correctly.

A more satisfyiung solution is to change both HK2 and V3 startup code and classes but there is no time now.
I will post a bug against v3 with my findings for future cleanup...



-
M embedded/api/src/main/java/org/glassfish/embed/Server.java
M embedded/api/src/main/java/org/glassfish/embed/LocalStrings.properties
M embedded/api/src/main/java/org/glassfish/embed/EmbeddedFileSystem.java
Change Path Actions
M branches/embedded_v3_prelude_release/embedded/api/src/main/java/org/glassfish/embed/EmbeddedFileSystem.java
M branches/embedded_v3_prelude_release/embedded/api/src/main/java/org/glassfish/embed/LocalStrings.properties
M branches/embedded_v3_prelude_release/embedded/api/src/main/java/org/glassfish/embed/Server.java
 
 
Close
loading
Please Confirm
Close