geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Cartier" <dennis.cart...@gmail.com>
Subject Re: Using a Repository with Geronimo Plugins
Date Tue, 01 Aug 2006 14:30:33 GMT
I will enter a JIRA as soon as I have isolated the exact combination
that seems to be failing. I tried performing the same operation using
IE rather than Firefox and it works.

Dennis

On 8/1/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
> OK, can you enter a new Jira describing the problems with the database
> pool screen?  I thought it would only try to connect if you told it to
> download a driver, but perhaps it's being too aggressive in trying to
> retrieve the driver config file.
>
> As a workaround, you can configure the pool on your development
> machine, use the "Show Plan" option instead of deploying it directly,
> and then save the plan and deploy it on your server using the
> instructions on the "show plan" page.
>
> Thanks,
>      Aaron
>
> On 8/1/06, Dennis Cartier <dennis.cartier@gmail.com> wrote:
> > Just to update my progress here.
> >
> > When I added the proxy setting to my live servers using G1.1, the
> > plugin section in the console now operates correctly.
> >
> > I was hoping that this would fix the database pool creation/editing
> > that does not work on my Linux servers. Sadly it had no effect. The
> > database pool part of the console remains non-functional for me even
> > using the proxy settings. I was hoping it was due to the firewalled
> > nature of the LAN segment these machines exist on, and that a proxy
> > might rectify it, but this was not the case.
> >
> > Why the database pool part of the console does not work, remains
> > unresolved. I can the JIRA site but did not see anything that seemed
> > related (in 1.1).
> >
> > The exact symptoms of what I am seeing is that after entering a name
> > and selecting the DB type, I click next and the browser just spins.
> > Nothing is ever returned and no error is thrown in Geronimo's log.
> > Oddly this works fine on my development machines under windows? The
> > same thing occurs if I click to Edit an existing pool.
> >
> > The JDK I am using on the Linux boxes is 1.5.0_06, but I plan on
> > updating to test newer versions.
> >
> > Dennis
> >
> > On 7/31/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
> > > On 7/31/06, Dennis Cartier <dennis.cartier@gmail.com> wrote:
> > > > Thank you so much for the response Aaron. Right after I sent the
> > > > message I stumbled on the config option you mentioned, which is
> > > > usually how it goes :)
> > > >
> > > > The file:// URL should prove to be handy as well, and the JVM proxy
> > > > option has been an issue for me for quite awhile as it affects the
> > > > downloading of common libs as well.
> > > >
> > > > I have tested the setting of the proxy through the JVM and found that
> > > > the following works when included in the JAVA_OPTS environment
> > > > variable:
> > > >
> > > > -DproxySet=true -DproxyHost=proxy.local -DproxyPort=8080
> > >
> > > Great!
> > >
> > > > I will explore the cmdline deployer in this regard as well. I am
> > > > curious if Geronimo will download the dependant common libs, as well
> > > > as the plugins, considering the libs would not appear in the
> > > > geronimo-plugins.xml, as they are not plugins per se.
> > >
> > > When you install a plugin via the command line or via the console, it
> > > will try to download any dependencies (JARs or other Geronimo plugins)
> > > from the repositories listed in the plugin metadata.  So it's always
> > > the server VM that does the download, and starting it with those proxy
> > > options should let it get online.  But if you just list your local
> > > repository, it will try to "download" the dependencies from there.
> > > It's only plugins that need to be listed in geronimo-plugins.xml, it
> > > should be able to find regular JARs if their names are
> > > fully-specified.
> > >
> > > The one problem with a local repository is that it doesn't have the
> > > maven-metadata.xml files that Maven creates in regular web-based
> > > repositories.  The plugin installer relies on those, particularly when
> > > you use a dependency with no version number (meaning, "take the
> > > latest").  This is the only problem I think you might have using your
> > > local repository.
> > >
> > > Thanks,
> > >     Aaron
> > >
> > > > On 7/31/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
> > > > > Is the situation that you have a plugin and are just trying to install
> > > > > it?  If so...
> > > > >
> > > > > The normal "Deploy New" screen won't deploy plugins properly.  You
can
> > > > > use the Plugin Create/Install screen or the command-line deploy tool.
> > > > > More on these in a minute.
> > > > >
> > > > > If your machine is behind a proxy, can you use the JVM startup
> > > > > argument to provide the proxy server?  I'm not sure what the name
of
> > > > > the setting is, but I've seen it before -- something like
> > > > > -Dhttp.proxy.server=hostname -Dhttp.proxy.port=8080.  Can you try
to
> > > > > identify and use this setting and report back whether it works for
> > > > > you?
> > > > >
> > > > > If you want to add a new repository to the plugin repository list,
you
> > > > > currently need to add it in config.xml -- there is a Jira to correct
> > > > > this (adding the ability to add repositories via the console).  In
the
> > > > > mean time, make sure the server is down, and look for <attribute
> > > > > name="userRepositories">[]</attribute> in the config.xml
and add a
> > > > > comma-separated list of URLs between the brackets.  FYI, you should
be
> > > > > able to use a file:/ URL to access your local repository (you don't
> > > > > need to run it through a web server).
> > > > >
> > > > > However, the repository must have a geronimo-plugins.xml file in
the
> > > > > root that is basically the consolidation of the geronimo-plugin.xml
> > > > > files for all the plugins in the repository (it uses a different
root
> > > > > tag, but includes all the plugin metadata as-is).  This is used so
the
> > > > > client doesn't need to crawl the whole repository in order to identify
> > > > > available plugins.  The format of this is described in the plugin
> > > > > schema at http://geronimo.apache.org/schemas-1.1/plugins-1.1.xsd
and
> > > > > for an example, you can see
> > > > > http://geronimoplugins.com/repository/geronimo-1.1/geronimo-plugins.xml
> > > > >
> > > > > Finally, if you have a plugin file, you can install it at the command
> > > > > line using the "install-plugin" command for the deploy tool.  That
> > > > > command will download dependencies from whatever repositories are
> > > > > listed in your geronimo-plugin.xml file for the plugin you're
> > > > > installing, and you don't typically need the top-level metadata file
> > > > > since you're not browsing.  So you could save a lot of steps by just
> > > > > putting the file:/ URL in your plugin metadata and installing the
> > > > > plugin with the command-line tool.
> > > > >
> > > > > Thanks,
> > > > >      Aaron
> > > > >
> > > > > On 7/31/06, Dennis Cartier <dennis.cartier@gmail.com> wrote:
> > > > > > I decided to try out the plugin packager and deployer in G 1.1
> > > > > >
> > > > > > From what I can glean, the new capabilities of G 1.1 should
allow
> > > > > > Geronimo to download applications and dependencies from a local
> > > > > > repository just using a plugin created from an existing  deployment.
> > > > > > Unfortunately I have been unable to get this to work and just
need a
> > > > > > push to get me over the hump.
> > > > > >
> > > > > > What I have done so far:
> > > > > >
> > > > > > 1. Exposed my local repository through Apache to be accessed
over HTTP
> > > > > >
> > > > > > 2. Included the URL for the repository when creating the plugin
as
> > > > > > indicated in the 'Create and Install Plugins' page.
> > > > > >
> > > > > > I am not sure of the format of the mentioned 'geronimo-plugins.xml'
> > > > > > file that is required to be in the root of the repository. In
any
> > > > > > case, I do not see any attempt to access the repository when
the
> > > > > > plugin is deployed. This may be because I have been trying to
deploy
> > > > > > the plugin through the 'Deploy New' under Applications. I suspect
that
> > > > > > the deployment should be done under the plugin page, but I have
found
> > > > > > that there does not appear to be anyway to edit the available
> > > > > > repositories, and if you are behind a firewall that requires
a proxy
> > > > > > server to be used, then the repository interface is completely
> > > > > > non-functional.
> > > > > >
> > > > > > Can anyone give me a push in the right direction?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > Dennis
> > > > > >
> > > > > > --
> > > > > >
> > > > > > "The music business is a cruel and shallow money trench, a long
> > > > > > plastic hallway where thieves and pimps run free, and good men
die
> > > > > > like dogs. There's also a negative side. "
> > > > > >
> > > > > > Hunter S. Thompson, US journalist (1939 – 2005)
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > "It is impossible to design fool proof systems, because fools are so clever."
> > > >
> > > > Authour unknown
> > > > --
> > > >
> > > > "The music business is a cruel and shallow money trench, a long
> > > > plastic hallway where thieves and pimps run free, and good men die
> > > > like dogs. There's also a negative side. "
> > > >
> > > > Hunter S. Thompson, US journalist (1939 – 2005)
> > > >
> > >
> >
> >
> > --
> > "It is impossible to design fool proof systems, because fools are so clever."
> >
> > Authour unknown
> > --
> >
> > "The music business is a cruel and shallow money trench, a long
> > plastic hallway where thieves and pimps run free, and good men die
> > like dogs. There's also a negative side. "
> >
> > Hunter S. Thompson, US journalist (1939 – 2005)
> >
>


-- 
"It is impossible to design fool proof systems, because fools are so clever."

Authour unknown
--

"The music business is a cruel and shallow money trench, a long
plastic hallway where thieves and pimps run free, and good men die
like dogs. There's also a negative side. "

Hunter S. Thompson, US journalist (1939 – 2005)

Mime
View raw message