Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8029995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:37:08+00:00 2026-06-05T00:37:08+00:00

I have a job with name Myjob.java under package com.example.jobs . This class is

  • 0

I have a job with name Myjob.java under package com.example.jobs. This class is in a war: example.war.

I have used following config in jboss in file quartz-service.xml present in deploy folder:

<?xml version="1.0" encoding="UTF-8"?> 

<server> 
<mbean code="org.quartz.ee.jmx.jboss.QuartzService" name="user:service=QuartzService,name=QuartzService"> 
<depends>jboss.web.deployment:war=/example</depends> 
<attribute name="JndiName">Quartz</attribute> 
<attribute name="Properties"> 
org.quartz.scheduler.instanceName = DefaultQuartzScheduler 
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool 
org.quartz.threadPool.threadCount = 5 
org.quartz.threadPool.threadPriority = 4 
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore 
org.quartz.plugin.jobInitializer.class = org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin 
org.quartz.plugin.jobInitializer.fileNames = ${jboss.server.home.dir}/conf/quartz-jobs.xml 
org.quartz.plugin.jobInitializer.scanInterval = 120 
</attribute> 
</mbean> 
</server> 

and under conf i have quartz-jobs.xml file having following:

<job-scheduling-data version="1.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData" xsi:schemalocation="http://www.quartz-scheduler.org/xml/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_1_8.xsd"> 

<pre-processing-commands><delete-jobs-in-group>*</delete-jobs-in-group> 
<delete-triggers-in-group>*</delete-triggers-in-group> 
</pre-processing-commands><processing-directives> 
<overwrite-existing-data>true</overwrite-existing-data> 
<ignore-duplicates>false</ignore-duplicates> 
</processing-directives> 

<schedule> 
<job> 
<name>TestJob</name> 
<job-class>com.example.jobs.Myjob</job-class> 
</job> 

<trigger> 
<cron> 
<name>TestCronTrigger</name> 
<job-name>TestJob</job-name> 
<cron-expression>* * * * * ?</cron-expression> 
</cron> 
</trigger> 
</schedule> 

</job-scheduling-data> 

On running jboss I get following:

2012-05-29 16:10:38,527 INFO [main] [org.quartz.core.QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v2.1.5) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED' 
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. 
NOT STARTED. 
Currently in standby mode. 
Number of jobs executed: 0 
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 5 threads. 
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. 

followed by:

java.lang.ClassNotFoundException: com.example.jobs.Myjob from BaseClassLoader@7aeb46d{VFSClassLoaderPolicy@5ec7640b{name=vfsfile:/D:/Datatocopy/openlogic-jboss-5.0.1.GA-all-bin-1/jboss-5.0.1.GA/server/slim/deploy/quartz-service.xml domain=ClassLoaderDomain@c4ce427{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@7e5a9de6} roots=[MemoryContextHandler@            1954102985      [path= context=vfsmemory://5c4o2zz-ms2vbd-h2su3au9-1-h2su3igd-t real=vfsmemory://5c4o2zz-ms2vbd-h2su3au9-1-h2su3igd-t]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}} 
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:422) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:248) 
at org.quartz.simpl.InitThreadContextClassLoadHelper.loadClass(InitThreadContextClassLoadHelper.java:72) 
at org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:114) 
at org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:138) 
at org.quartz.xml.XMLSchedulingDataProcessor.process(XMLSchedulingDataProcessor.java:653) 
at org.quartz.xml.XMLSchedulingDataProcessor.processFile(XMLSchedulingDataProcessor.java:503) 
at org.quartz.xml.XMLSchedulingDataProcessor.processFileAndScheduleJobs(XMLSchedulingDataProcessor.java:886) 
at org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin.processFile(XMLSchedulingDataProcessorPlugin.java:330) 
at org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin.start(XMLSchedulingDataProcessorPlugin.java:257) 
at org.quartz.plugins.SchedulerPluginWithUserTransactionSupport.start(SchedulerPluginWithUserTransactionSupport.java:144) 
at org.quartz.core.QuartzScheduler.startPlugins(QuartzScheduler.java:2343) 
at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:527) 
at org.quartz.impl.StdScheduler.start(StdScheduler.java:143) 
at org.quartz.ee.jmx.jboss.QuartzService.startService(QuartzService.java:270) 
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376) 
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322) 
at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) 
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189) 
at $Proxy36.start(Unknown Source) 
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) 
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) 
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) 
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) 
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) 
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) 
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286) 
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) 
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) 
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) 
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) 
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) 
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) 
at org.jboss.system.ServiceController.doChange(ServiceController.java:688) 
at org.jboss.system.ServiceController.start(ServiceController.java:460) 
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163) 
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99) 
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46) 
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) 
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) 
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) 
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) 
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) 
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178) 
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) 
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) 
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) 
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) 
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) 
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) 
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) 
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) 
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) 
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698) 
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304) 
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205) 
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405) 
at org.jboss.Main.boot(Main.java:209) 
at org.jboss.Main$1.run(Main.java:547) 
at java.lang.Thread.run(Thread.java:662)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:37:09+00:00Added an answer on June 5, 2026 at 12:37 am

    Should be a classloader problem; in file

    ${jboss.server}/deploy/jboss-web.deployer/META-INF/jboss-service.xml 
    

    find the line

    <attribute name="UseJBossWebLoader">false</attribute>
    

    and set it to true.

    Note: ${jboss.server} = ${your jboss path}/server/${your server name}

    EDIT for jboss5:

    find the file (the same of your comment):

    deployers/jbossweb.deploy/META-INF/war-deployers-jboss-beans.xml 
    

    and comment out the WarClassLoaderDeployer

    Explanation and an alternative way to fix here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following models class Person(models.Model): name = models.CharField(max_length=100) class Employee(Person): job =
I have a table that looks like this: Name Job Year ImpFile ImpDate ------------------------------------------------
I have an json output of the following (ignore the escape characters) {\sEcho\:1,\iTotalRecords\:10,\iTotalDisplayRecords\:10,\aaData\:[{\Job\:\developer\,\Name\:\kurt\},{\Job\:\plumber\,\Name\:\john\}]} which
I have the following model: class JobApplication(models.Model): profile = models.ForeignKey(UserProfile) job = models.ForeignKey(JobPost) def
I have a job on SQL Server 2005 running a ssis package. The package
I have a mysql table jobs . This is the basic structure of jobs
I have this small code using SQL Server Agent to Run a Remote Package
Let's say I have Person class Person{ @Id Integer id; @OneToOne @JoinColumn(name = person_id)
I have been working on this project for my job, which involves backing up
I've got the following query: SELECT name, GROUP_CONCAT(job SEPARATOR ','), count(*) FROM users GROUP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.