geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: loading plugin dependencies from ibiblio
Date Wed, 23 Aug 2006 20:19:31 GMT
Oversight.  The Maven guys have suggested that they have some code we
could reuse to execute the downloads, but I've never been able to beat
it out of them.  It would be nice to switch over to theirs, but in the
mean time, it should be easy enought o add the SNAPSHOT support to our
download code.  Have you put in a Jira for that?

Thanks,
     Aaron

On 8/23/06, Guillaume Nodet <gnodet@gmail.com> wrote:
> Btw, the PluginInstallerGBean is unable to download snapshots artifacts.
> The problem is that when snapshots are deployed to a m2 repo,
> you don't have a jar named -SNAPSHOT, but rather timestamped jars,
> where the last one is given in the maven-metadata.xml in the -SNAPSHOT
> directory (not the one in the parent dir used to know which versions are
> available).
>
> Is this an oversight or a feature ?
>
>
> On 8/23/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
> > I'm able to use ibiblio to install the Directory plugin which has
> > loads of dependencies.  But maybe this has one more than that one.
> > You could try putting a small delay between downloads in the
> > PluginInstallerGBean if you think that would help.
> >
> > I did have trouble with ibiblio once when I requested files but closed
> > the connection without actually completing the download, so there does
> > seem to be some DoS protection.  (That was fixed by using HEAD instead
> > of GET to check whether the file exists.)
> >
> > Thanks,
> >      Aaron
> >
> > On 8/23/06, Joe Bohn <joe.bohn@earthlink.net> wrote:
> > >
> > > I created a new geronimo assembly (mini-g) without the tomcat or
> > > tomcat-deploy modules.   Then I used a geronimo tomcat j2ee assembly
> > > admin console to create a plugin for the tomcat module.  I then
> > > attempted to deploy the tomcat plugin into my mini-g assembly.  I should
> > > also note that when I created the tomcat plugin I included
> > > http://www.ibiblio.org/maven2/ as a source repository so that the
> > > various tomcat and other necessary jars could be downloaded as
> necessary.
> > >
> > > The plug had the following 2 dependencies:
> > > - rmi-naming (which was already included in my mini-g assembly
> > > - geronimo-tomcat jar   I manually included this jar into
> > > repository\org\apache\geronimo\modules\ prior to my
> attempt to install
> > > the plugin because I knew this version of the jar would not be available
> > > on GeronimoPlugins.com or ibiblio.
> > >
> > > When I attempt to install the plugin I get a 503 on the geronimo cmd
> > > console on the 9th tomcat jar it attempts to download from ibiblio.  I
> > > can access the jar just fine outside of the deploy.
> > >
> > > Am I doing something wrong?  Do you think there is there some type of
> > > denial of service protection on ibiblio that only lets me get 8 of the
> > > tomcat jars before shutting me down on the ninth?  I saw the ibiblio
> > > reference in another plugin so I assumed that this could be used to
> > > download these dependencies when I created the tomcat plugin.
> > >
> > > Here's the error on the server:
> > >
> > > 12:40:03,437 INFO  [AbstractRepository] Installed module configuration;
> > > id=org.apache.geronimo.configs/tomcat/1.2-SNAPSHOT/car;
> > > location=C:\g-images\trunk\geron
> > >
> imo-framework-1.2-SNAPSHOT\repository\org\apache\geronimo\configs\tomcat\1.2-SNAPSHOT\tomcat-1.2-SNAPSHOT.car
> > > 12:40:03,453 WARN  [ConfigurationStoreUtil] Checksum file not found:
> > > C:\g-images\trunk\geronimo-
> framework-1.2-SNAPSHOT\repository\org\apache\geronimo\configs\to
> > >
> mcat\1.2-SNAPSHOT\tomcat-1.2-SNAPSHOT.car\META-INF\config.ser.sha1
> > > 12:40:04,547 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > >
> C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-plugin-download-30936.tmp
> > > 12:40:05,094 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > > C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-
> plugin-download-30937.tmp
> > > 12:40:06,031 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > >
> C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-plugin-download-30938.tmp
> > > 12:40:06,547 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > >
> C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-plugin-download-30939.tmp
> > > 12:40:07,000 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > > C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-
> plugin-download-30940.tmp
> > > 12:40:07,734 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > >
> C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-plugin-download-30941.tmp
> > > 12:40:08,391 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > >
> C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-plugin-download-30942.tmp
> > > 12:40:09,297 WARN  [PluginInstallerGBean] Unable to delete temporary
> > > download file
> > > C:\DOCUME~1\bohn\LOCALS~1\Temp\geronimo-
> plugin-download-30943.tmp
> > > 12:40:09,516 WARN  [PluginInstallerGBean] Unable to read from
> > > http://www.ibiblio.org/maven2/
> > > java.io.IOException
> > >          at
> > >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.connect(PluginInstallerGBean.java:990)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.findArtifact(PluginInstallerGBean.java:1075)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.findArtifact(
> PluginInstallerGBean.java:1034)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.openStream(PluginInstallerGBean.java:924)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact
> (PluginInstallerGBean.java:676)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:749)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact
> (PluginInstallerGBean.java:749)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:444)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.install
> (PluginInstallerGBean.java:600)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean$2.run(PluginInstallerGBean.java:545)
> > >          at
> org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java
> :172)
> > >          at
> > >
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:289)
> > >          at
> > >
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> > >          at java.lang.Thread.run(Thread.java:534)
> > > Caused by: java.io.IOException: Server returned HTTP response code: 503
> > > for URL:
> > >
> http://www.ibiblio.org/maven2/tomcat/jasper-runtime/5.5.15/jasper-runtime-5.5.1
> > > 5.jar
> > >          at
> > >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
> > >          at
> > >
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
> > >          at
> > >
> org.apache.geronimo.system.plugin.PluginInstallerGBean.connect(PluginInstallerGBean.java:965)
> > >          ... 13 more
> > >
> > >
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet

Mime
View raw message