It seems in screenshot that the included config files are inserted in
your test-classpath when building the ipodstore-jpa project.
It also seems that the persistence.xml is not in your classpath.
There are some reasons that cause this :
- the persistence.xml files is not located in src/main/resources
- that file belongs to the ipodstore project and maybe is the parent
project and therefore can not be set a dependency of the -jpa project.
Some solutions :
- move the persistence.xml file in the proper directory and move that
directory in the -jpa project
- create a shared project on which -jpa depends (if the persistence.xml
file is shared between projects)
Hope this helps.
To the community : if i'm wrong please feel free to correct.
Raphaël
Serge Emmanuel Pagop a écrit :
Thank u Raphael,
yes you are right the all the test resources are in
target/test-classes. But my problem is that, I want that the the
directory and the file in main/resources "META-INF/persistence.xml"
and also all the configuration files in test/resources "
embedded-jboss-beans.xml, ..." to be set in class path and also
available during the running of test class or testcase in the proper
format of setting. Let take a look of the screenshot of an example for
setting this configs with the Java Build Path in Eclipse.
Thanks
--
----------------------------------
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Skype-Name: sisepago
Cell : +49-172-8552687
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]