ggeorg / gwt-mosaic

Automatically exported from code.google.com/p/gwt-mosaic
1 stars 0 forks source link

persistence.xml in mosaic.jar leads to deployment errors on EE5 servers #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. package and deploy mosaic onto jboss
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.1.9

Please provide any additional information below.

The mosaic jar contains a 'persistence.xml' used with JPA environments:

Bonanova:~ hbraun$ jar -tf ~/.m2/repository/com/googlecode/gwtmosaic/gwt-
mosaic/0.1.9/gwt-mosaic-0.1.9.jar | grep META-INFMETA-INF/
META-INF/MANIFEST.MF
META-INF/persistence.xml

On JBoss 5.x this leads to a deployment error when the GWT app build on mosaic 
is deployed:

11:48:42,603 INFO  [PersistenceUnitDeployment] Starting persistence unit 
persistence.unit:unitName=#samplePU
11:48:42,628 ERROR [AbstractKernelController] Error installing to Start: 
name=persistence.unit:unitName=#samplePU state=Create

persistence.unit:unitName=#samplePU -> java.lang.RuntimeException: 
Specification violation 
[EJB3 JPA 6.2.1.2] - You have not defined a non-jta-data-source for a 
RESOURCE_LOCAL 
enabled persistence context named: samplePU

IMO there is no reason to keep that descriptor within the jar. Can it be 
removed in subsequent 
releases?

Original issue reported on code.google.com by myownwas...@googlemail.com on 7 May 2009 at 9:56

GoogleCodeExporter commented 9 years ago
Hi,

yes its for the showcase demo only, I will fix the ant file, just remove it 
from the
jar for now (sorry).

thanks,
George.

Original comment by georgopo...@gmail.com on 7 May 2009 at 12:51

GoogleCodeExporter commented 9 years ago
Hi,

already done for the GWT 1.6 branch:

http://code.google.com/p/gwt-mosaic/source/detail?r=818

Is that OK? if you are not going to upgrade to GWT 1.6.4 please let me know.

Kind Regards,
George.

Original comment by georgopo...@gmail.com on 7 May 2009 at 1:00

GoogleCodeExporter commented 9 years ago
Yes, thanks. I did remove it manually.

Original comment by myownwas...@googlemail.com on 7 May 2009 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by georgopo...@gmail.com on 8 May 2009 at 2:00