0

私は過去 2 週間、依存関係を管理するために Apache Ivy と格闘していますが、誰もが Web 上で話している (DM に maven/gradle/apache-ivy が使用されると) 明らかに使いやすいとは思いませんでした。誰かが助けて、私が間違っていることを見てもらえますか? 本当に感謝します。

既存の Spring/JPA-Hibernate アプリケーションを最新の Spring および Hibernate ディストリビューションに移行しようとしています。

Spring 3.1.2
Spring Security 3.1.1
Hibernate 4.1

私の環境:

Eclipse Helios
Tomcat 7.23

アイビー.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">    <info
    organisation=""
    module="FocusIvy"
    status="integration">
</info>
<dependencies>  
    <dependency org="org.hibernate" name="com.springsource.org.hibernate.ejb" rev="4.1.0.Final" />
    <dependency org="org.hibernate" name="com.springsource.org.hibernate.annotations" rev="3.4.0.GA-A" />
    <dependency org="org.hibernate.common" name="com.springsource.org.hibernate.annotations.common" rev="4.1.0.Final" />
    <dependency org="org.hibernate" name="com.springsource.org.hibernate" rev="4.1.0.Final" />
    <dependency org="org.hibernate" name="com.springsource.org.hibernate.core" rev="4.1.0.Final" />
    <dependency org="org.hibernate" name="com.springsource.org.hibernate.validator" rev="4.2.0.Final" /> 

    <dependency org="org.springframework" name="org.springframework.core" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.beans" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.context" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.context.support" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.transaction" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.jdbc" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.expression" rev="3.1.2.RELEASE" />  
    <dependency org="org.springframework" name="org.springframework.aop" rev="3.1.2.RELEASE" />
    <dependency org="org.springframework" name="org.springframework.web" rev="3.1.2.RELEASE" /> 
    <dependency org="org.springframework" name="org.springframework.web.servlet" rev="3.1.2.RELEASE" /> 
    <dependency org="org.springframework" name="org.springframework.orm" rev="3.1.2.RELEASE" />

    <dependency org="org.springframework.security" name="org.springframework.security.core" rev="3.1.1.RELEASE" />      
    <dependency org="org.springframework.security" name="org.springframework.security.aspects" rev="3.1.1.RELEASE" />
    <dependency org="org.springframework.security" name="org.springframework.security.taglibs" rev="3.1.1.RELEASE" />
    <dependency org="org.springframework.security" name="org.springframework.security.web" rev="3.1.1.RELEASE" />
    <dependency org="org.springframework.security" name="org.springframework.security.annotation" rev="2.0.6.RELEASE" />

    <dependency org="javax.activation" name="com.springsource.javax.activation"
            rev="1.1.1" />
    <dependency org="net.sourceforge.cglib" name="com.springsource.net.sf.cglib" rev="2.2.0" />             
</dependencies> 
</ivy-module>

ivysettings.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<ivysettings>
<settings defaultResolver="defaultChain"
    defaultConflictManager="all" />

<resolvers>
    <url name="com.springsource.repository.bundles.release">
        <ivy
            pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
        <artifact
            pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
    </url>

    <url name="com.springsource.repository.bundles.external">
        <ivy
            pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
        <artifact
            pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
    </url>
    <chain name="defaultChain" returnFirst="true">
        <resolver ref="com.springsource.repository.bundles.release" />
        <resolver ref="com.springsource.repository.bundles.external" />
    </chain>
</resolvers>
</ivysettings>

Tomcat サーバーの起動 (およびアプリケーションの展開) により、多数のエラーが発生します。

 WARNING: Unable to load class     [org.springframework.instrument.classloading.jboss.JBossMCAdapter] to check against the     @HandlesTypes annotation of one or more ServletContentInitializers.
 java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2823)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1988)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1951)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1840)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1808)
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1794)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1214)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:828)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5148)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
 Oct 16, 2012 2:31:42 PM org.apache.catalina.startup.ContextConfig checkHandlesTypes
 WARNING: Unable to load class      [org.springframework.instrument.classloading.jboss.JBossModulesAdapter] to check against   the @HandlesTypes annotation of one or more ServletContentInitializers.
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2823)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1988)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1951)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1840)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1808)
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1794)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1214)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:828)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5148)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
   Oct 16, 2012 2:31:44 PM org.apache.catalina.startup.ContextConfig checkHandlesTypes
4

1 に答える 1

0

警告: クラス [org.springframework.instrument.classloading.jboss.JBossMCAdapter] をロードして、1 つ以上の ServletContentInitializers の @HandlesTypes アノテーションをチェックできません。java.lang.IncompatibleClassChangeError: クラスを実装しています

完全に要約すると、Apache Tomcat サーバーは JBoss サーバーではありません

次に、Spring フレームワーク内で合理的に問題が発生しているように見えるため、Spring が JBoss ではなく Tomcat にロードするために必要な設定を確認する時間です。

于 2012-10-16T19:03:58.320 に答える