0

I have JPA jar with persistence.xml and want to deploy in Jboss7.

Problem is that, i can't put inside WAR file(i know we can load from war file).

I have created module in jboss and placed jar file with including persistence.xml file inside META-INF\ of the jar with ref: http://javahowto.blogspot.sg/2007/06/where-to-put-persistencexml-in-web-app.html Maven/Eclipse: Could not find any META-INF/persistence.xml file in the classpath

After that jar file loaded, but persistence.xml not loaded.

Is it possible to load persistence.xml from jar file ?

if possible, can someone please let me know, where to place inside jar

Thanks

Yugandhar
  • 333
  • 1
  • 4
  • 13

1 Answers1

0

If it is just about the persistence.xml, you could use a deployment-overlay. See e.g. https://docs.jboss.org/author/display/AS72/Deployment+Overlays

Erhard Siegl
  • 557
  • 2
  • 8