0 Replies Latest reply on Jun 6, 2006 4:14 AM by Peter Poo

    Problem with jboss and quartz

    Peter Poo Newbie

      Hello,

      since I upgraded from jboss 4.0.3SP1 to 4.0.4 I'm having problems
      using the quartz scheduler. If I try to load a Javabean within
      a scheduled job:

      InitialContext ctx = new InitialContext();
      Test t = (Test) ctx.lookup("Test/remote");

      the following exception gets thrown:

      14:29:55,518 ERROR [ErrorLogger] Job (XX.X threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: Invalid use of destroyed classloader, UCL destroyed at: (no security manager: RMI class loader disabled)]]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      * Nested Exception (Underlying Cause) ---------------
      java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: Invalid use of destroyed classloader, UCL destroyed at: (no security manager: RMI class loader disabled)]
      at viola.argon.unibonn.test.TestJob.execute(TestJob.java:23)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      Caused by: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: Invalid use of destroyed classloader, UCL destroyed at: (no security manager: RMI class loader disabled)]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at viola.argon.unibonn.test.TestJob.execute(TestJob.java:19)
      ... 2 more
      Caused by: java.lang.ClassNotFoundException: Invalid use of destroyed classloader, UCL destroyed at: (no security manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
      at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
      at org.jboss.system.JBossRMIClassLoader.loadProxyClass(JBossRMIClassLoader.java:82)
      at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
      at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
      at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
      ... 5 more
      Caused by: java.lang.Exception
      at org.jboss.mx.loading.RepositoryClassLoader.unregister(RepositoryClassLoader.java:249)
      at org.jboss.mx.loading.UnifiedClassLoader.unregister(UnifiedClassLoader.java:195)
      at org.jboss.deployment.DeploymentInfo.cleanup(DeploymentInfo.java:399)
      at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:720)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:626)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:609)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      at $Proxy6.undeploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:364)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:498)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:218)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:197)


      Is this a problem in jobss or quartz?

      TIA, Lutz