私はWildfly 9を使って2つのWebアプリケーション(戦争)を同時に展開しています。私は最近、アプリケーションのいずれかで使用される石英のバージョンをアップグレードし、私が展開するときに、今、私は次のエラーを取得しています:Wildfly 9 - Quartzの依存関係を除いた問題
Caused by: org.quartz.SchedulerConfigException: Unable to instantiate InstanceIdGenerator class: org.quartz.simpl.SimpleInstanceIdGenerator cannot be cast to org.quartz.spi.InstanceIdGenerator [See nested exception: java.lang.ClassCastException: org.quartz.simpl.SimpleInstanceIdGenerator cannot be cast to org.quartz.spi.InstanceIdGenerator]
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:814)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1519)
at org.springframework.scheduling.quartz.SchedulerFactoryBean.createScheduler(SchedulerFactoryBean.java:597)
at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
... 42 more
Caused by: java.lang.ClassCastException: org.quartz.simpl.SimpleInstanceIdGenerator cannot be cast to org.quartz.spi.InstanceIdGenerator
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:811)
... 47 more
私の知る限り、Wildflyはそれをしない(石英を使用していませんか? )ので、他のアプリケーションからのクォーツの依存関係を持つクラスローディングconfilctがあると仮定します。私はJboss-deployment-structureにクォーツ除外を追加しようとしましたが、この矛盾はそのまま残ります。これは私のJBossの展開構造である:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<dependencies>
<module name="deployment.urtdsm-historian"/>
<!-- ANTLR -->
<module name="org.antlr" />
<!-- ASM -->
<module name="asm.asm" />
<!-- APACHE COMMONS -->
<module name="org.apache.commons.beanutils" />
<module name="org.apache.commons.codec" />
<module name="org.apache.commons.collections" />
<module name="org.apache.commons.io" />
<module name="org.apache.commons.pool" />
<!-- JAVAX.VALIDATION -->
<module name="javax.validation.api" />
<!-- DOM4J -->
<module name="org.dom4j" />
<!-- JTA -->
<module name="javax.transaction.api" />
<!-- WOODSTOX -->
<module name="org.codehaus.woodstox" />
<!-- JETTISON -->
<module name="org.codehaus.jettison" />
<!-- JACKSON -->
<module name="org.codehaus.jackson.jackson-core-asl" />
<module name="org.codehaus.jackson.jackson-mapper-asl" />
<!-- JAVASSIST -->
<module name="org.javassist" />
<!-- APACHE NEETHI -->
<module name="org.apache.neethi" />
</dependencies>
<exclusions>
<module name="org.hibernate" />
<module name="org.hibernate.validator" />
<module name="org.slf4j" />
<module name="org.slf4j.impl" />
<module name="org.apache.commons.logging" />
<module name="org.apache.log4j" />
<module name="org.jboss.logging" />
<module name="org.jboss.logging.jul-to-slf4j-stub" />
<module name="org.jboss.logmanager" />
<module name="org.jboss.logmanager.log4j" />
<module name="com.sun.xml.bind" />
<module name="org.quartz-scheduler" />
</exclusions>
<exclude-subsystems>
<subsystem name="webservices" />
<subsystem name="weld" />
</exclude-subsystems>
</deployment>
<module name="deployment.urtdsm-historian">
<dependencies>
<module name="deployment.urtdsm-historian-0.1-SNAPSHOT.war">
<exports>
<exclude path="org/hibernate/**" />
<exclude path="org/springframework/orm/**" />
<exclude path="org/springframework/transaction/**" />
<exclude path="org/quartz-scheduler/**" />
<include path="com/tdf/**" />
<include path="com/psymetrix/**" />
<include path="org/springframework/**" />
<include path="org/aopalliance/**" />
<include path="org/aspectj/**" />
<include path="org/postgresql/**" />
</exports>
</module>
</dependencies>
</module>
</jboss-deployment-structure>
私は2つの展開大戦間の競合をクラスローディング上のドキュメントの方法で多くを見つけることができません。私はここで何か間違っていますか?どんな助けもありがとう。ありがとう。
クォーツ - 2.2.1
Wildfly - 9.0.1
石英ライブラリはどのように設定されていますか?それはWildFlyモジュールとして作成されるのでしょうか、それとも直接戦争に居住していますか? – Quincy
それは戦争に住んでいる – user3029642