2017-05-30 17 views
-3

eclipse Marsを使用して、HibernateとJspで動的Webアプリケーションを作成しています。私は、エラーAnnotations jsp、hibernate、mysql、eclipse marsを使用したWebアプリケーションでのコミュニケーション

An AnnotationConfiguration instance is required to use <mapping class="com.hibernate.bean.User"/> 
error 

これは私が私のプログラムで使用されるコードのlinkあるを取得しています。コードを参照するにはこのリンクを参照してください

誰か問題を解決できますか?

ありがとうございます。

UPDATE

java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I) 
(…) 
Caused by: java.lang.IllegalStateException: 
ContainerBase.addChild: 
start: LifecycleException: 
java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I) 

今私は、私は休止状態のためにjarファイルを追加する逃した例外

+0

Googleはあなたの友人です:https://www.mkyong.com/hibernate/hibernate-error-an-annotationconfiguration-instance-is-required-to-use/ – Jens

+1

[AnnotationConfigurationインスタンスを取得する理由は何ですか] AnnotationConfigurationが推奨されていない場合に必要ですか?](https://stackoverflow.com/questions/19038907/whyam-i-getting-annotationconfiguration-instance-is-required-when-annotationcon) –

+0

ここでは@IDを使用しませんでした。任意の注釈、上記のリンクで注釈を使用しました –

答えて

0

のこれらのタイプを取得しています。今私はすべての例外をクリアしました。私はこのwebsiteから答えを得ました。

関連する問題