You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by "Farr, Aaron" <Aa...@am.sony.com> on 2004/02/03 16:29:17 UTC

[merlin] NT Service Issues Behind a Firewall

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?

2. Do we have plans to eventually reduce dependency on non-ASF sites?

I've also attached my wrapper.conf file which I've played around with a lot
trying to figure this out.  I'm going to keep working at it, but if anyone
can point out the obvious trick I'm missing, I'd love to know.

Thanks.

J. Aaron Farr
� SONY ELECTRONICS
� DDP-CIM
� (724) 696-7653




Re: [merlin] NT Service Issues Behind a Firewall

Posted by Stephen McConnell <mc...@apache.org>.
Farr, Aaron wrote:

> 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.properties

The 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: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org