6 Replies Latest reply on May 26, 2010 4:26 AM by Paul Illingworth

    Excluding persistance.xml from deployment

    Paul Illingworth Newbie

      I have deployed the Apache Roller war file within JBoss but I am getting an error as JBoss is finding the persistance.xml in the roller jars and trying to deploy them and failing.


      java.lang.RuntimeException: Specification violation [EJB3 JPA] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: RollerPU
          at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:124)
          at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


      This doesn't stop the application from running, roller is handling the JPA itself - it is just noise in the log file.


      Is there a way to stop JBoss from deploying the persistance.xml from these jars?


      It seems that the jboss-ignore.txt should do the trick




      but this doesn't seem to work (or actually implemented?)


      Is there another way or getting JBoss to ignore these files? Is ignoring them the right approach?


      Paul I.