You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Andrew (JIRA)" <ji...@apache.org> on 2010/02/12 00:09:33 UTC

[jira] Issue Comment Edited: (SMXCOMP-714) installation issue: db-clustered quartz No ClassLoaders found for: org.apache.servicemix.quartz.support.ServiceMixJob

    [ https://issues.apache.org/activemq/browse/SMXCOMP-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57536#action_57536 ] 

Andrew edited comment on SMXCOMP-714 at 2/11/10 11:08 PM:
----------------------------------------------------------

I tried heinous things like putting 'servicemix-quartz-2009.01.jar' in the/lib directory of my server.
This resulted in errors like 'No quartz JBI component for key: servicemix-quartz, Bad job data map'.

Yet, i still see my debug code from both my scheduled jobs, as if it's executing anyway.  That error seems to happen every other execution.

Sorry to sound like a confused idiot, but right now I am.  I'm sure you've seen it before ( people confused ).

My cron triggers are defined as:
<quartz:endpoint service="elvis:service" endpoint="runIt" targetService="elvis:PollMessageBean">
  <quartz:trigger>
         <quartz:cron cronExpression="0/100 * * * * ?" />
  </quartz:trigger>
</quartz:endpoint>
<quartz:endpoint service="elvis:ReSendService" endpoint="resendIt" targetService="elvis:ResendMessageBean">
  <quartz:trigger>
         <quartz:cron cronExpression="0 0/5 * * * ?" />
  </quartz:trigger>
</quartz:endpoint>

It's not clear to me that the tasks are running both in-memory triggers and from the database driven triggers, or whether the triggers from the db are firing, the tasks are running and this strange error comes regardless.

      was (Author: andrew_yaweb):
    I tried heinous things like putting 'servicemix-quartz-2009.01.jar' in the/lib directory of my server.
This resulted in errors like 'No quartz JBI component for key: servicemix-quartz, Bad job data map'.

Yet, i still see my debug code from both my scheduled jobs, as if it's executing anyway.  That error seems to happen every other execution.

Sorry to sound like a confused idiot, but right now I am.  I'm sure you've seen it before.

My cron triggers are defined as:
<quartz:endpoint service="elvis:service" endpoint="runIt" targetService="elvis:PollMessageBean">
  <quartz:trigger>
         <quartz:cron cronExpression="0/100 * * * * ?" />
  </quartz:trigger>
</quartz:endpoint>
<quartz:endpoint service="elvis:ReSendService" endpoint="resendIt" targetService="elvis:ResendMessageBean">
  <quartz:trigger>
         <quartz:cron cronExpression="0 0/5 * * * ?" />
  </quartz:trigger>
</quartz:endpoint>

It's not clear to me that the tasks are running both in-memory triggers and from the database driven triggers, or whether the triggers from the db are firing, the tasks are running and this strange error comes regardless.
  
> installation issue: db-clustered quartz No ClassLoaders found for: org.apache.servicemix.quartz.support.ServiceMixJob
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-714
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-714
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-quartz
>    Affects Versions: servicemix-quartz-2009.01
>         Environment: jboss 4.3.2, service mix 3.3.1, default jboss quartz looks like 1.5.2
>            Reporter: Andrew
>            Priority: Critical
>
> While trying to transition from in-memory to clustered quartz, I'm encountering a hiccup.
> I'm seeing a stack in the logs:
> 14:05:00,017 ERROR [JobStoreTX] Error retrieving job, setting trigger state to ERROR.
> org.quartz.JobPersistenceException: Couldn't retrieve job because a required class was not found: No ClassLoaders found
> for: org.apache.servicemix.quartz.support.ServiceMixJob [See nested exception: java.lang.ClassNotFoundException: No Clas
> sLoaders found for: org.apache.servicemix.quartz.support.ServiceMixJob]
>         at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1031)
>         at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:1818)
>         at org.quartz.impl.jdbcjobstore.JobStoreTX.triggerFired(JobStoreTX.java:1286)
>         at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:308)
> * Nested Exception (Underlying Cause) ---------------
> I'm using service mix installer 2009.01 in my deploy directory, which seems to read as service mix 3.3.1 for the jars in my lib directory ( I inheritted this app )
> Tried tricks referred to on partially related google results, like putting this in my xbean.xml:
> <classpath inverse="true">
>     <location>.</location>
> </classpath>
> and using this class loading on my POM:
>       <plugin>
>       <groupId>org.apache.servicemix.tooling</groupId>
>       <artifactId>jbi-maven-plugin</artifactId>
>       <configuration>
>         <classLoaderDelegation>self-first</classLoaderDelegation>
>       </configuration>
>     </plugin>
> But, no joy yet.
> I'm guessing I'm just not understanding how to enable clustered quartz on jboss...haven't found docs that covered this issue, yet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.