Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] SVN Commit (main): Bug#247351 - Spring test failures

SVN Commit (main): Bug#247351 - Spring test failures

 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=247351

 

Issues were:

- Spring automatically ignores classes in provider's package in its temp-class loader, so our tests in org.eclipse.persistence.testing never got weaved, so tests failed.  Not exactly sure why Spring does this, or how to make them stop doing this.  I logged a bug on Spring's website, but not sure what will come of it.  I think they put this in for us initially, when our annotation processing was not working correctly, but that was fixed in EclipseLink, so is no longer required.

--For now I renamed the test package to test.eclipse..., but any test or example we make using our packages (or even oracle. (not sure why Spring excluded this as well)), will not work.

--If we remove our dependency on the temp class loader, then this issue will go away.

 

- Native query test required to be executed in a transaction.

 

- JTA test uses JOTM TX manager, but jars were not on test path.  Jars must be added to test path, download from, http://forge.ow2.org/projects/jotm/

-- Need jotm-client.jar, xapool.jar, jars on the classpath

-- Also we did not have JTA integration with JOTM, so tests would fail, so I added JOTM support, useful as Spring ships this, and uses in JONAS app server (maybe others).  There has been requests for this made on forums.


Back to the top