Testing JPA java.lang.ClassNotFoundException: play.db.jpa.JPABase

前提是你 提交于 2019-12-11 15:55:30

问题


Im trying to test my JPA entities and have been following this tutorial:

http://eskatos.wordpress.com/2007/10/15/unit-test-jpa-entities-with-in-memory-database/

I have a tests running so far and they are all passing, however i get the exception:

java.lang.ClassNotFoundException: play.db.jpa.JPABase

at runtime (for each of my tests )even though the tests run fully and pass,

Im using maven with JBOSS 7.1 and tried importing play-db 1.1 but this hasn't helped,

Can anybody help me out here?

Cheers


回答1:


If you want to use tools with external librarys you need to put this librarys into your lib/ folder inside your jboss directory or ear/war archive.



来源:https://stackoverflow.com/questions/16199147/testing-jpa-java-lang-classnotfoundexception-play-db-jpa-jpabase

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!