History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QUARTZ-61
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: James House
Reporter: Patrick Burleson
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Quartz Scheduler

Inclusion of quartz-service.xml annoying

Created: 03/Sep/04 09:29 AM   Updated: 23/Nov/04 11:34 AM
Component/s: Core
Affects Version/s: 1.4.1, 1.4.2
Fix Version/s: 1.4.3

Environment: Jboss 3.2.5 (probably other Jboss versions)


 Description  « Hide
Since Quartz includes a quartz-service.xml in the jar file, Jboss finds it when Quartz is used and throws an annoying message that the service isn't correctly configured and is awaiting further MBean definitions even though the way I am using Quartz (via Spring) everything is actually configured correctly. Personally, I'm never going to use the JBoss service MBean. I find it very annoying that I get an error message for something I didn't want.

I also don't want to tell other developers to "oh, just ignore that", because that means we get in the habit of potentially ignoring real messages.

I would agrue that if you want to provide a example quartz-services.xml, please do so in a directory of the distribution (such as the docs directory or an examples directory) and not in the jar itself.

 All   Comments   Change History      Sort Order:
Patrick Burleson - [15/Nov/04 04:29 PM ]
This also seems to cause a further issue for us. We are deploying more than one web app that has quartz in the WEB-INF/lib directory. Having the service.xml file in the jar causes a very nasty exception to be thrown that halts all deployments:

17:15:17,767 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
17:15:17,768 ERROR [MainDeployer] could not create deployment: file:/opt/jboss-3.2.5/server/storm/tmp/deploy/tmp47758quartz-1.4.2.jar-contents/org/quartz/ee/jmx/jboss/doc-files/quartz-service.xml
org.jboss.deployment.DeploymentException: create operation failed for package file:/opt/jboss-3.2.5/server/storm/tmp/deploy/tmp47758quartz-1.4.2.jar-contents/org/quartz/ee/jmx/jboss/doc-files/quartz-service.xml; - nested throwable: (org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: user:service=QuartzService,name=QuartzService)
        at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
        at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy7.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:367)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
        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:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
        at org.jboss.Main.boot(Main.java:145)
        at org.jboss.Main$1.run(Main.java:399)
        at java.lang.Thread.run(Thread.java:534)