It sounds weird.
I have you tried to deploy the same SA in servicemix standalone after
installing the saxon SE ?

On 5/16/07, Jevgeni Holodkov <[EMAIL PROTECTED]> wrote:


Hello,

   I am trying to setup servicemix-quartz component and create a
configuration for it. For this I have created the service-unit with
xbean.xml file in the resources folder. The content of this file is the
following:


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:quartz="http://servicemix.apache.org/quartz/1.0";
xmlns:my="http://my.com/timer";>
    <quartz:endpoint service="my:timer" endpoint="timerEndpoint"
targetService="my:trace">
        <quartz:trigger>
            <quartz:cron cronExpression="0/5 * * * * ?" />
        </quartz:trigger>
    </quartz:endpoint>
</beans>


I am running tomcat 5.5 on Java 6 with servicemix-web on the board.
Servicemix version is 3.1-incubating. I have successfully deployed
servicemix-quartz service engine by using this application. After creating
a
service assembly with my service unit, I had tried to deploy it as well,
but
got the "no class found" error:


nested exception is java.lang.NoClassDefFoundError: org/quartz/JobDetail
        at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(
ServiceManagerRegistry.java:424)
        at
org.apache.xbean.kernel.standard.StandardKernel.registerService(
StandardKernel.java:220)
        at
org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java
:154)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(
AbstractXBeanDeployer.java:79)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(
BaseServiceUnitManager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(
BaseServiceUnitManager.java:69)
        at

org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly
(DeploymentService.java:527)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deploy(
DeploymentService.java:203)
        at

org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly
(AdminCommandsService.java:233)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)


If I put quartz-1.5.2.jar under servicemix-web\WEB-INF\lib, then it works
perfectly, but, I have a stomach feeling, that this is not the best
solution
for the case. I have checked
%tomcat_home%\data\smx\components\servicemix-quartz\version_1\lib\ and
see,
that the quartz library is there. Service assembly does not contain any
libraries, and, actually, it doesn't matter as well. If I add manually it
there, it still cannot find it.

So, the question is - how to overcome this problem and make servicemix use
component's existing libraries?

Thanks,

With best regards,
Jevgeni
--
View this message in context:
http://www.nabble.com/NoClassDefFoundError-exception-when-using-servicemix-quartz-configuration-with-servicemix-web-%283.1%29-tf3765326s12049.html#a10644247
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Reply via email to