You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by Guillaume Nodet <gn...@gmail.com> on 2008/02/26 14:13:45 UTC
Dependencies included in the JBI component
It seems the Ode JBI component expects some dependencies on the
classpath instead of embedding them.
I've found the following one so far:
* derby
* geronimo-connector
* geronimo-transaction
* xerces
I'm wondering about including these in the installed instead, so that
Ode can be deployed seamlessly on JBI containers others than
ServiceMix 3.
Also, I've seen a LinkageError because xmlbeans include some classes
from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
used now.
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: Dependencies included in the JBI component
Posted by Guillaume Nodet <gn...@gmail.com>.
Everything depends on the classloader delegation. We want Ode to use its own
classes instead of the one provided by the container, so we need a
self-first classloader.
The only problem comes with this LinkageError.
On Tue, Feb 26, 2008 at 4:24 PM, Matthieu Riou <ma...@offthelip.org> wrote:
> On Tue, Feb 26, 2008 at 5:13 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>
>
> > It seems the Ode JBI component expects some dependencies on the
> > classpath instead of embedding them.
> > I've found the following one so far:
> > * derby
> > * geronimo-connector
> > * geronimo-transaction
> > * xerces
> > I'm wondering about including these in the installed instead, so that
> > Ode can be deployed seamlessly on JBI containers others than
> > ServiceMix 3.
> >
>
> +1. But will ServiceMix handle the duplication correctly, even if at some
> points it starts relying on more recent versions of these libraries (say
> after your next release)?
>
> Matthieu
>
>
>
>
> >
> > Also, I've seen a LinkageError because xmlbeans include some classes
> > from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
> > used now.
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: Dependencies included in the JBI component
Posted by Matthieu Riou <ma...@offthelip.org>.
On Tue, Feb 26, 2008 at 5:13 AM, Guillaume Nodet <gn...@gmail.com> wrote:
> It seems the Ode JBI component expects some dependencies on the
> classpath instead of embedding them.
> I've found the following one so far:
> * derby
> * geronimo-connector
> * geronimo-transaction
> * xerces
> I'm wondering about including these in the installed instead, so that
> Ode can be deployed seamlessly on JBI containers others than
> ServiceMix 3.
>
+1. But will ServiceMix handle the duplication correctly, even if at some
points it starts relying on more recent versions of these libraries (say
after your next release)?
Matthieu
>
> Also, I've seen a LinkageError because xmlbeans include some classes
> from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
> used now.
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
Re: Accesing servicemix JMX (non-GUI)
Posted by Guillaume Nodet <gn...@gmail.com>.
I've never heard of any command line JMX console, but if you just want
to check a few things,
you could use the servicemix ant tasks, or for some very specific
queries, just write a few lines
to connect to the remote JMX server and query it. Once you're a bit
familiar with the JMX
api, it's not so hard to do.
On Mon, Mar 3, 2008 at 6:08 PM, Wielek, Lukasz
<Lu...@sabre-holdings.com> wrote:
> Hi,
>
> Is there any way to access (list) ServiceMix Mbean objects from shell
> script.
> I can access it via jconsole, however it requires GUI, but I'm looking
> for some commandline.
>
>
> Regards,
> Lukasz Wielek
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Accesing servicemix JMX (non-GUI)
Posted by "Wielek, Lukasz" <Lu...@sabre-holdings.com>.
Hi,
Is there any way to access (list) ServiceMix Mbean objects from shell
script.
I can access it via jconsole, however it requires GUI, but I'm looking
for some commandline.
Regards,
Lukasz Wielek
Re: Dependencies included in the JBI component
Posted by Guillaume Nodet <gn...@gmail.com>.
Yeah, I know that and it works.
The problem is that I'd like to incude xmlbeans (which is required) but without
the org.w3c classes, which causes a LinkageExcpetion.
I guess I could do that myself and include a patched jar instead of the default
xmlbeans one.
On Tue, Feb 26, 2008 at 4:35 PM, Matthieu Riou <ma...@offthelip.org> wrote:
> On Tue, Feb 26, 2008 at 7:25 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>
> > So the exception is still present, unless I turn on parent-first
> > classloading
> > delegation. Which sounds correct, because the org.w3c.* class which
> > is present in
> > xmlbeans is provided by the JRE too. Which leads to me the following
> > solutions:
> > * remove the class from the component somehow
> > * change to parent-first classloader
> > The first one would not work in ServiceMix 3 (I've just tried), so can any
> > rake guru point me to how I could achieve the first one ?
> >
>
> The list of libraries packaged with the JBI zip are listed on line 414 of
> our Rakefile. You'll see a list of constants there, just add the missing
> ones from the list of all our dependencies defined at the beginning of the
> file.
>
> Matthieu
>
>
>
>
> >
> > > > Also, I've seen a LinkageError because xmlbeans include some classes
> > > > from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
> > > > used now.
> > >
> > > To answer this part of my email, xmlbeans is actually used in the
> > deployment.
> > > And the problem was caused by a bug in interpreting the JBI
> > classloader.
> > >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: Dependencies included in the JBI component
Posted by Matthieu Riou <ma...@offthelip.org>.
On Tue, Feb 26, 2008 at 7:25 AM, Guillaume Nodet <gn...@gmail.com> wrote:
> So the exception is still present, unless I turn on parent-first
> classloading
> delegation. Which sounds correct, because the org.w3c.* class which
> is present in
> xmlbeans is provided by the JRE too. Which leads to me the following
> solutions:
> * remove the class from the component somehow
> * change to parent-first classloader
> The first one would not work in ServiceMix 3 (I've just tried), so can any
> rake guru point me to how I could achieve the first one ?
>
The list of libraries packaged with the JBI zip are listed on line 414 of
our Rakefile. You'll see a list of constants there, just add the missing
ones from the list of all our dependencies defined at the beginning of the
file.
Matthieu
>
> > > Also, I've seen a LinkageError because xmlbeans include some classes
> > > from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
> > > used now.
> >
> > To answer this part of my email, xmlbeans is actually used in the
> deployment.
> > And the problem was caused by a bug in interpreting the JBI
> classloader.
> >
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
Re: Dependencies included in the JBI component
Posted by Guillaume Nodet <gn...@gmail.com>.
So the exception is still present, unless I turn on parent-first classloading
delegation. Which sounds correct, because the org.w3c.* class which
is present in
xmlbeans is provided by the JRE too. Which leads to me the following solutions:
* remove the class from the component somehow
* change to parent-first classloader
The first one would not work in ServiceMix 3 (I've just tried), so can any
rake guru point me to how I could achieve the first one ?
> > Also, I've seen a LinkageError because xmlbeans include some classes
> > from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
> > used now.
>
> To answer this part of my email, xmlbeans is actually used in the deployment.
> And the problem was caused by a bug in interpreting the JBI classloader.
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: Dependencies included in the JBI component
Posted by Guillaume Nodet <gn...@gmail.com>.
On Tue, Feb 26, 2008 at 2:13 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> It seems the Ode JBI component expects some dependencies on the
> classpath instead of embedding them.
> I've found the following one so far:
> * derby
> * geronimo-connector
> * geronimo-transaction
> * xerces
> I'm wondering about including these in the installed instead, so that
> Ode can be deployed seamlessly on JBI containers others than
> ServiceMix 3.
>
> Also, I've seen a LinkageError because xmlbeans include some classes
> from org.w3c package. Where is xmlbeans used ? I thought jaxb2 was
> used now.
To answer this part of my email, xmlbeans is actually used in the deployment.
And the problem was caused by a bug in interpreting the JBI classloader.
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/