-
1. Re: java.lang.ClassNotFoundException: No ClassLoaders found
starksm64 Dec 31, 2004 9:55 AM (in response to bwtoh)The depends tag does not handle class level dependencies. It only delays when services are started. In general you should not be using the deploy/scheduler-service.xml because of this. You should be adding a myscheduler-service.xml to your own deployments to ensure that the classes will be available.
-
2. Re: java.lang.ClassNotFoundException: No ClassLoaders found
bwtoh Jan 2, 2005 8:25 PM (in response to bwtoh)Dear Stark,
Thanks for the reply.
Are there any docs or manual where I can learn how to use a Schedulable class, schedule a service and solve my problem above ?
Thanks again,
bwtoh -
3. Re: java.lang.ClassNotFoundException: No ClassLoaders found
genman Jan 3, 2005 1:09 AM (in response to bwtoh)I don't know if there are any docs for this specific case. But in short the lesson is this: Classes in your .ear are only available (usually I suppose) to components deployed from the .ear. Add a myscheduler.sar to your .ear, and add the .sar to your application.xml.
Example in ant:<jar jarfile="${ear.dir}/myscheduler.sar"> <manifest> <attribute name="Class-Path" value="lib/myclasses.jar"/> </manifest> <metainf dir="conf" includes="jboss-service.xml"/> </jar>