De Lima, Claude wrote:

I'm trying to run Merlin-3.2-RC2 on a Sun Solaris 5.7 host and get the
following exception when starting up:

org.apache.avalon.util.env.EnvAccessException: Failed to access null
environment variable - User cdelima does not seem to exist in /etc/passwd
        at org.apache.avalon.util.env.Env.getUnixUserShell(Env.java:373)
        at org.apache.avalon.util.env.Env.getUnixShellVariable(Env.java:413)
        at org.apache.avalon.util.env.Env.getEnvVariable(Env.java:119)
        at
org.apache.avalon.merlin.cli.Main.getMerlinHomePath(Main.java:553)
        at org.apache.avalon.merlin.cli.Main.getMerlinHome(Main.java:542)
        at
org.apache.avalon.merlin.cli.Main.getMerlinSystemRepository(Main.java:532)
        at org.apache.avalon.merlin.cli.Main.main(Main.java:235)
---- runtime exception report
--------------------------------------------------
Exception: java.lang.RuntimeException
Message: ---- runtime exception report
--------------------------------------------------
Internal error while attempting to access MERLIN_HOME environment.

Tracking through the org.apache.avalon.util.env.Env.getUnixUserShell code,
it looks like
is won't work on systems like Solaris which use NIS for the password file,
where users
are not kept in the /etc/passwd file.

Is there a workaround for this?  Perhaps Merlin shouldn't attempt to read
the MERLIN_HOME
environment variable if the System property "merlin.home" is set.


That's possible but it only really works in the command line scenarios - in things like the test cases and other enbedded scenarios we really need to resolve env variables independenly of system properties. The best solution is to fix the problem at the Env layer.


Alex .. any thoughts?

Stephen.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to