> -----Original Message-----
> From: Stephen McConnell [mailto:[EMAIL PROTECTED]
> Sent: Sunday, September 07, 2003 6:46 AM
>
> Proxy related code is in both 20030901 and CVS.
> Code relating to instantiation of the proxy is in the merlin/kernel/impl
> DefaultKernelContext.java source.
>
> ! Repository createRepository( File root, Configuration config )
>
> This establishes a ProxyContext instance which is passed to the
> DefaultFileRepository implementation in the merlin/repository/impl
package.
>
> ! proxy = new ProxyContext( host, port, authenticator );
> ! return new DefaultFileRepository( base, proxy, list );
>
> Cheers, Steve.
>
Sorry it took me so long to do more testing on this:
Uh, looks like credentials are required, but that shouldn't be the case:
---- report -------------------------------------------------------
Exception: org.apache.avalon.merlin.kernel.KernelException
Message: Credentials configuration does not contain the required 'username'
elem
ent.
<credentials/>
---- stack trace ---------------------------------------------------
org.apache.avalon.merlin.kernel.KernelException: Credentials configuration
does
not contain the required 'username' element.
<credentials/>
at
org.apache.avalon.merlin.kernel.impl.DefaultKernelContext.createRepos
itory(DefaultKernelContext.java:469)
at
org.apache.avalon.merlin.kernel.impl.DefaultKernelContext.<init>(Defa
ultKernelContext.java:340)
at
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.createContext(CL
IKernelLoader.java:378)
at
org.apache.avalon.merlin.kernel.impl.CLIKernelLoader.<init>(CLIKernel
Loader.java:127)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at Merlin.main(Merlin.java:272)
-------------------------------------------------------------------
FROM:
<repository>
<proxy>
<host>xxx.xxx.xxx.xxx</host>
<port>80</port>
</proxy>
<hosts>
<host>http://myServer.com/repository/</host>
<host>http://www.ibiblio.org/merlin/repository/</host>
<host>http://www.ibiblio.org/maven/</host>
</hosts>
</repository>
This can be troublesome if your proxy server does not require
authentication.
Even
<proxy>
<host>xxx.xxx.xxx.xxx</host>
<port>80</port>
<credentials>
<username></username>
<password></password>
</credentials>
</proxy>
Throws the same error.
Also, it took me a while to realize that the kernel.xml file I needed to
edit was:
Kernel Path: file:/${merlin.home}/repository/merlin/xmls/kernel.xml
Not:
${merlin.home}/config/kernel.xml
jaaron
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]