Hello all.
I've been playing around with merlin as a service and I'm _still_ having issues. I initially explained my situation in:
http://marc.theaimsgroup.com/?l=avalon-users&m=107487565732550&w=2
Well, I now know that part of the issue is due to my firewall. I finally got some info from the system event log (see attached event.txt file) and apparently Merlin is trying to download jars from dpml.net and ibiblio.org even though my kernel.xml file does not have these hosts listed (I have my own internal repository).
So two questions:
1. Why isn't avalon-repository picking up my repository hosts?
Based on the following exception:
> Exception: org.apache.avalon.repository.RepositoryException
> Message: None of the repositories
[http://dpml.net/,http://ibiblio.org/maven,] contained the metadata
properties for [jar: avalon-repository:avalon-repository-impl;1.2]What is happening is the the repository is bootstrapping itself together. At this stage is have located the definition of the package that will properly implement the repository API - but it has to load that package from somewhere.
Under 3.2.5 the DefaultInitialContext is passed a null String[] for the initial hosts. This means that the context implementation will callback to the defaults declared under system properties. Now here is the catch - we are still in avalon-repository bootstrap phase (not merlin). The DefaultInitialContext will attempt to locate the property named "avalon.repository.hosts" from the following ordered sources:
1. System property
2. from a properties file in ${user.dir}/avalon.properties
3. from a properties file in ${user.home}/avalon.properties
4. from a properties file in ${avalon.home}/avalon.propertiesThe value of the property is a comma separated sequence of hosts.
However - something is not completely clear to me. The DefaultInitialContext is supplied by the merlin cli a cache directory that will be checked before falling back to remote hosts. The value of the cache directory supplied to the DefaultInitialContext is ${merlin.home}/system (or anything you specify with the -system command line option).
So the question is the following - does ${merlin.home}/system contain the file avalon-repository/jars/avalon-repository-impl-1.2.jar/meta? If the DefaultInitialContext does not locate this file it will go hunting on the declared remote repositories.
Stephen.
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
