2017-03-23 6 views
0

こんにちは、私はプラグインをweceem使用しようとしているが、私が得たエラー: メッセージ:がweceemプラグインでアプリケーションを実行することはできません

私はそれのようなプラグインを設定したすべての
Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: java.util.Set 
    Line | Method 
->> 262 | run  in java.util.concurrent.FutureTask 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 745 | run  in java.lang.Thread 
Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: java.util.Set 
->> 262 | run  in java.util.concurrent.FutureTask 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 745 | run  in java.lang.Thread 
Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: java.util.Set 
->> 262 | run  in java.util.concurrent.FutureTask 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 745 | run  in java.lang.Thread 
Caused by MappingException: Association references unmapped class: java.util.Set 
->> 45 | buildSessionFactory ............................. 

がドキュメントに言った:http://jcatalog.github.io/weceem-plugin/guide/2.ConfigurationAndInstallation.html をし、私はまた、https://github.com/julyantonicheva/weceem-appからweceemappのデモを実行し、うまくいきました。 それは、誰かがこのエラーをmettしたことがあるかもしれないと言うような、マップされていない参照クラスを表示していません。

アプリケーションをプラグインする前に、少し精度が(最終的にはプラグインの競合のため)だけでなく のGrails 2.4.4 のWindows 7 Builconfigを実行していた

plugins { 
     // plugins for the build system only 
     build ":tomcat:7.0.55" 
     // plugins for the compile step 
     compile ":scaffolding:2.1.2" 
     compile ':cache:1.1.8' 
     compile ":asset-pipeline:1.9.9" 
     // plugins needed at runtime but not for compilation 
     // runtime ":hibernate4:4.3.6.1" // or ":hibernate:3.6.10.18" 
     runtime ":hibernate:3.6.10.19"//for multi tenant 
     runtime ":database-migration:1.4.0" 
     runtime ":jquery:1.11.1" 
     //new 
     compile ":i18n-templates:1.1.0.1" 
     compile ":ckeditor:4.4.1.0" 
     // Uncomment these to enable additional asset-pipeline capabilities 
     //compile ":sass-asset-pipeline:1.9.0" 
     //compile ":less-asset-pipeline:1.10.0" 
     //compile ":coffee-asset-pipeline:1.8.0" 
     //compile ":handlebars-asset-pipeline:1.3.0.3" 
     //security 
     compile "org.grails.plugins:spring-security-core:2.0.0" 
     compile "org.grails.plugins:spring-security-ui:1.0-RC3" 
     compile "org.grails.plugins:mail:1.0.7" 

     //multi societe0.9.0-SNAPSHOT" 
     compile "org.grails.plugins:multi-tenant-single-db:0.8.3" 
     //excel import 
     compile ":excel-import:2.0.0.BUILD-SNAPSHOT" 
     //audit log 
     compile "org.grails.plugins:audit-logging:1.1.1" 
     //test weceem 
     compile ':weceem:1.4.1' 
     compile ":weceem-spring-security:1.4" 
    } 

TKSはFinnaly私は解決策を見つける

+0

新しいアプリケーションを作成している場合は、私はそれを使用しないように助言します –

+0

こんにちは、それは新しいアプリケーションのためです、私は私の会社の時間情報のWebポータルを作成するのは面白いです。あなたが私に助言することができるもののために何か良いことがありますか? – idiagne

答えて

0

について。 実際に私のユーザークラスを更新することによって、weceem.springsecurity.details.mapperのautoritiesフィールドを追加すると、自分のクラスから2つのautoritiesフィールド1とプラグインから1つ作成されました。 私は自分のクラスのために変更し、autoritiesの代わりにrautoritiesを置く今それは解決されたアプリが実行されています。 視聴者のためのtks

+0

あなたは自分自身をプラグインを維持しない限り、あなたはweeceemを使用して自分の足を撃っている、プラグインは死んでいる、誰もそれを維持していない、 –

+0

私が思うように進化させることができなければ真実私はあきらめます ウェブポータル – idiagne

関連する問題