2011-12-20 22 views
0
私は今働いているWebアプリケーションからこのエラーを取得しています

:ここはInvalidMappingExceptionを修正する方法

Initial SessionFactory creation failed.org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mygwtapp/shared/DTO/Account.hbm.xml 
Starting Jetty on port 8888 
    [WARN] Exception while dispatching incoming RPC call 
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.mygwtapp.client.service.UserService.createUser(com.mygwtapp.shared.DTO.Account)' threw an unexpected exception: java.lang.ExceptionInInitializerError 

はここに私のAccount.java

あるAccount.hbm.xml and hibernate.cfg.xml

+0

uが例外を拡張することができますか?それはログからすべて得られますか? –

+0

私は解決策を見つけました。私は以下に投稿しました。 – xybrek

答えて

0

これは、というのが私の判明していますそれはJARファイルがありません:mysql-connector-java-5.1.18-bin.jar

/WEB-INF/libフォルダにある必要があります

そしてAccount.hbm.xmlクラス名タグもの:

<class name="com.mygwtapp.DTO.Account" table="account"> 

は次のようになります。

<class name="com.mygwtapp.shared.DTO.Account" table="account"> 
+0

あなたの答えを受け入れる... –

関連する問題