[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: filihc  XML
Profile for filihc -> Messages posted by filihc [3]
Author Message


I use URL object to call servlet an execute it.
Hi all,

I am new in this skill,

I've the next problem,
My app send me this trace: Not in an application scope - start OC4J with the

This is when i want get the Datasource of my app

I have this config:
SchedulerServlet -> JobExecute -> ClassBusiness that call datasource, but the Context is lost and I cant Instanciated My EJB Session.

What/How can i do?

tks



Hi

I am new in this skill and my appWeb send this trace
Code:
 ERROR [com.interp.wimslive.servlet.LanzaQuartzScheduler] - Error al inicializar el scheduller
 org.quartz.SchedulerException: ThreadPool class not specified. 
 	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:789)
 	at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1465)
 


My servlet
Code:
     @Override
     public void init(ServletConfig config) {
         log.info("------- Initializing quartzScheduler -------------------");
 
 
         try {
             // First we must get a reference to a scheduler
             SchedulerFactory sf = new StdSchedulerFactory();
 
             sched = sf.getScheduler();
 
             log.info("------- Initialization Complete --------");
 
             log.info("------- Scheduling Jobs ----------------");
 
             // jobs can be scheduled before sched.start() has been called
 
             // job 1 will run every 20 seconds
             JobDetail job = new JobDetail("job1", "group1", SeguimientoSiniestrosJob.class);
             CronTrigger trigger = new CronTrigger("trigger1", "group1", "job1", "group1", INTERVALO_QUARTZ_SCHEDULER);
             sched.addJob(job, true);
             Date ft = sched.scheduleJob(trigger);
             log.info(job.getFullName() + " has been scheduled to run at: " + ft + " and repeat based on expression: " + trigger.getCronExpression());
             log.info("------- Starting Scheduler ----------------");
             // All of the jobs have been added to the scheduler, but none of the
             // jobs
             // will run until the scheduler has been started
             sched.start();
             log.info("------- Started Scheduler -----------------");
 
         } catch (ParseException e) {
             log.error("Error parsear la fecha", e);
         } catch (JobExecutionException e) {
             log.error("Error en la ejecución del job", e);
         } catch (SchedulerException e) {
             log.error("Error al inicializar el scheduller", e);
         }
 
     }
 

Please any help me!
 
Profile for filihc -> Messages posted by filihc [3]
Go to:   
Powered by JForum 2.1.7 © JForum Team