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: Geronimo Custom Plugin Class loading Issues
Date Mon, 27 Nov 2006 13:00:24 GMT
Unfortunately, XMLBeans is used pretty extensively by the Geronimo
deployment system, so it's not just a matter of avoiding using the web
container's class loader.  More particularly, if your plugin will
include a deployer component, you're working directly with the
Geronimo deployment system (though, not necessarily with any XMLBeans
objects generated by the Geronimo deployment system...).

It's possible that it will work if you add the XMLBeans packages to
the exclude from parent classloader list in the environment entry in
your module's plan, and then add your version as a dependency in the
environment.  That is, "don't use the version from my parent class
loader, use mine instead".  I haven't tried this with XMLBeans myself,
but it's the place I'd start.

Thanks,
      Aaron

On 11/27/06, Lasantha Ranaweera <lasantha@opensource.lk> wrote:
> Kanchana,
>
> The problem is xml beans is a JAR used by Geronimo already (I think with
> Web container). I wanted to use some other version of it rather than the
> existing one in the Geronimo version with my custom GBean. There is no
> such problem with Quartz. So the problem is lot easier with it.
>
> Hope this will clarify my question bit more.
>
> Thanks,
> Lasantha Ranaweera
>
> > Hi Lasantha
> >
> > For an instance if say that your geronimo-service.xml looks like this and
> > which is in the some directory. You may do this by Adding your
> > dependencies
> > to the plan after the last </dependency> tag and before the first <gbean>
> > tag....
> >
> >
> > <dependency>
> >     <uri>opensymphony/jars/quartz-${quartz_version}.jar</uri>
> > </dependency>
> >
> > <dependency>
> >     <uri>geronimo/jars/geronimo-quartz-${geronimo_version}.jar</uri>
> > </dependency>
> >
> > And then you can Add your GBean to the same file. At the bottom of the
> > file,
> > before the final </configuration> tag, add the following line
> >
> > <gbean name="QuartzService"
> > class="org.apache.geronimo.quartz.QuartzGBean"/>
> >
> > This makes the new configuration and updated plan part of the Geronimo
> > server.Would this make sence for your question about xml ?I don't think
> > you
> > will need to rewrite any code.Correct me if I'm wrong.
> >
> > Regards
> > Kanchana
> >
> >
> >
> >
> > On 11/27/06, Lasantha Ranaweera <lasantha@opensource.lk> wrote:
> >>
> >> Hi All,
> >>
> >> I want to write a custom GBean for the Geronimo 1.1. Basically I am
> >> following the Advanced Plugin Sample in the G user documentation. My
> >> custom plug in pretty much the same as Quartz  plug in in the sample. It
> >> has a deployer part and manager part.
> >> In my plugin I want to use xml beans 2.2.0 rather than 2.0.0  which
> >> comes with Geronimo.  So the class loading issues has to be resolved
> >> from my geronimo-service.xml of the manager part. How do I resolve this
> >> issue? Has anybody used xml beans 2.2.0 with their plugin components?
> >> Do I need to write some extra coding in the application manager GBean
> >> side?
> >>
> >> All ideas are well come.
> >>
> >> Thanks,
> >> Lasantha Ranaweera
> >>
> >>
> >>
> >
>
>

Mime
View raw message