Yeah, this use case does not work well. The problem is that the
maven plugin which creates the final zip excludes jars from the
components afaik. I'm not sure if there is an easy workaround.
I guess you could not use the jbi maven plugin and build the zip
using another way (assembly plugin for example). Another solution
would be to write a patch against the JBI maven plugin so that we
can force inclusion of such artifacts.
What kind of improvements / changes are you working on for
servicemix-quartz ? Maybe we could simply include those in the
existing component ?
On Tue, Apr 15, 2008 at 11:00 AM, wuwei <[EMAIL PROTECTED]> wrote:
>
> Thank you, gnodet, Yes, I developed a se which use the classes of
> servicemix-quartz. So when I build the project as a install jar. I want
> servicemix-quartz-*.jar would be included in it, but it wasn't. Then I
> deploy my jar into servicemix, it show the noclassfound error. thanks.
>
>
>
> gnodet wrote:
> >
> > Could you explain what you mean by "developping a SE based on
> > servicemix-quartz" ?
> > servicemix-quartz is already a SE so I don't really understand.
> >
> > On Tue, Apr 15, 2008 at 1:53 AM, wuwei <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Thank you very much, Chris, I develop a SE base on the
> servicemix-quartz,
> >> yes, when I deploy it to servicemix, it show the error,
> >>
> >> I use the code to import the servicemix-* jar:
> >> ...
> >> <dependency>
> >> <groupId>org.apache.servicemix</groupId>
> >> <artifactId>servicemix-common</artifactId>
> >> <version>${servicemix-version}</version>
> >> </dependency>
> >> <dependency>
> >> <groupId>org.apache.servicemix</groupId>
> >> <artifactId>servicemix-quartz</artifactId>
> >> <version>${servicemix-version}</version>
> >> </dependency>
> >> ...
> >>
> >> but just servicemix-common could be import, not servicemix-quartz, and
> I
> >> tried all the scope of maven: compile and others, but not work. Why?
> >> Thanks,
> >> have a good day.
> >>
> >>
> >>
> >> Chris Custine (Apache) wrote:
> >> >
> >> > So you are saying that the servicemix-quartz component is deploying
> >> > properly
> >> > on servicemix startup, but when you deploy your SA, you get
> >> > NoClassDefFoundError? I checked the distributions for 3.2 and 3.2.1
> >> and
> >> > everything seemed to work properly for me. Are you using a default
> >> > configuration from the servicemix distribution?
> >> >
> >> > Thanks,
> >> > Chris
> >> >
> >> > On Mon, Apr 14, 2008 at 8:06 AM, wuwei <[EMAIL PROTECTED]> wrote:
> >> >
> >> >>
> >> >> Thank you.
> >> >> But the servicemix-quartz-3.2-installer.zip has existed under
> >> /hotdeploy
> >> >> folder. If I do not copy the serviceMix-quartz-3.2.jar to /lib, it
> >> would
> >> >> show the error:
> >> >>
> >> >> Caused by: java.lang.NoClassDefFoundError:
> >> >> org/apache/servicemix/quartz/QuartzComponent
> >> >>
> >> >> Why does serviceMix does not import the Class from
> >> >> hotdeploy/servicemix-quartz-3.2-installer.zip
> >> >>
> >> >> did anyone meet this error?
> >> >>
> >> >>
> >> >>
> >> >> Chris Custine (Apache) wrote:
> >> >> >
> >> >> > The required quartz dependencies are already packaged in the
> quartz
> >> >> > component that ships with ServiceMix. In the binary distribution
> it
> >> is
> >> >> in
> >> >> > the hotdeploy/servicemix-quartz-3.2.1-installer.zip file and it
> >> should
> >> >> > deploy automatically at startup. As long as this component is
> >> >> installed
> >> >> > your SU should work just fine.
> >> >> >
> >> >> > Chris
> >> >> >
> >> >> > On Sun, Apr 13, 2008 at 9:10 PM, wuwei <[EMAIL PROTECTED]> wrote:
> >> >> >
> >> >> >>
> >> >> >> Hi, I use the servicemix 3.2, and in a maven project, I configure
> >> >> like:
> >> >> >>
> >> >> >> ....
> >> >> >> <dependency>
> >> >> >> <groupId>org.apache.servicemix</groupId>
> >> >> >> <artifactId>servicemix-common</artifactId>
> >> >> >> <version>${servicemix-version}</version>
> >> >> >> </dependency>
> >> >> >> <dependency>
> >> >> >> <groupId>org.apache.servicemix</groupId>
> >> >> >> <artifactId>servicemix-quartz</artifactId>
> >> >> >> <version>${servicemix-version}</version>
> >> >> >> </dependency>
> >> >> >> ...
> >> >> >>
> >> >> >> and the "mvn clean install" is successful, and the
> >> >> >> servicemix-common-3.2.jar exists in the *-installer.jar, but I
> >> can't
> >> >> find
> >> >> >> the servicemix-quartz-3.2.jar in the jar. which one could tell me
> >> how
> >> >> to
> >> >> >> fix
> >> >> >> it, except copy the servicemix-quartz-3.2.jar into
> >> >> %SERVICEMIX_HOME%/lib.
> >> >> >> Thanks.
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/Where-is-the-servicemix-quartz-3.2.jar-in-the-*-installer.jar-tp16670464p16670464.html
> >> >> >> Sent from the ServiceMix - User mailing list archive at
> Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Where-is-the-servicemix-quartz-3.2.jar-in-the-*-installer.jar-tp16670464p16678092.html
> >> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Where-is-the-servicemix-quartz-3.2.jar-in-the-*-installer.jar-tp16670464p16692393.html
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Where-is-the-servicemix-quartz-3.2.jar-in-the-*-installer.jar-tp16670464p16697986.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/