Red Hat Bugzilla – Bug 963487
Missing dependencies to Quartz and Common Pools
Last modified: 2013-07-31 09:55:33 EDT
Description of problem:
The class org.springframework.scheduling.quartzCronTriggerBean in spring-context-support depends on Quartz and
the class org.springframework.aop.target.CommonsPoolTargetSource in spring-aop has also a dependency org.apache.commons.pool.PoolableObjectFactory
These dependecies are also documented in Maven central.
Version-Release number of selected component (if applicable):
WFK 2.2 / Snowdrop 2.0.5
Steps to Reproduce:
1. Install Snowdrop according to Spring Installation Guide (https://access.redhat.com/site/documentation/en-US/JBoss_Web_Framework_Kit/2.2/html-single/Spring_Installation_Guide/index.html)
2. Try to deploy a spring-context that contains CronTriggerBean
<property name="jobDetail" ref="runMeJob" />
<property name="cronExpression" value="0/5 * * * * ?" />
No ClassNotFound exceptions
I think that all transitive dependencies which Spring modules require in the case of installing Spring in EAP is a user responsibility.
On the other hand if you bundle all spring jars and its dependencies in your application you will do it yourself anyway.
So your issue title "Missing dependencies to Quartz and Common Pools" is ambigous.
We need to put into Spring instalation guide reference a reference to Spring documentation where are described all implications when you use a Spring library otherwise we just point to Spring guide.
The bigger question is, what is covered by support?
There is a lot more stuff in spring-context (and spring-context-support) that we do not have in our products, like ehcache. These are mostly transitive dependencies.
AFAIK it is not possible to add transisitive dependencies for the module to the application as this will lead to class-loading issues and so needs to be added to the module.
Updated doc text.
Migrated to JIRA. https://issues.jboss.org/browse/WFK2-75