Community
Participate
Working Groups
JPA: deploy failure on SE Persistence unit connect using dual SE/EE PU app on WebSphere >Issue is that the 2nd PU fails to deploy because the secondary direct connect fails on password property >However this failure is not really the cause of the problem - it was the previous DriverManager connect >In public Connection connect(Properties properties, Session session) throws DatabaseException { >if the following try/catch block fails using a DriverManager if (this.shouldUseDriverManager(properties, session)) { try { return DriverManager.getConnection(this.getConnectionString(), properties); >We try a direct connection try { // A return of null indicates wrong type of driver, an SQLException means connection problems Connection directConnection = this.directConnect(properties); >The issue may be specifying a server platform via "target-server" in an SE PU when the persistence.xml is on the ejb tier but used from the war. >reproduction logs and simplified source pending
>fails only on IBM J9 JVM under non-windows Linux OS >Verifying that the following fix in bug# 313583 erradicates the cause http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7272
>The fix in bug# 313583 fixes this issue The change in rev# 7272 from return super.getProperty(key, defaultValue); to String val = getProperty(key); return (val == null) ? defaultValue : val; *** This bug has been marked as a duplicate of bug 313583 ***
Created attachment 171823 [details] 313582 rev 7272 null getProperty() on IBM J9 JVM only on Linux/AIX
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink