Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030920 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | have not tried | 2015-09-24 12:22 | 2015-10-02 07:39 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | platform | |||||||
Priority | immediate | Resolution | open | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | 3.0PR15Q3.3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2011-01-19 | |||||||
Regression introduced in release | 3.0RC4 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/7fc34fd92373 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030920: can't use DB connection defined as JNDI service | |||||||
Description | It is not possible to use DB connection defined as JNDI service because even having it configured, direct connection is tried to be created in some places. The behavior is different depending on OB version: * 3.0RC4-current pi (pre PR15Q4), this error is risen: [main] ERROR org.openbravo.database.ConnectionProviderImpl - Error getting connection java.sql.SQLException: No suitable driver found for null/null at java.sql.DriverManager.getConnection(DriverManager.java:689) at java.sql.DriverManager.getConnection(DriverManager.java:270) at org.openbravo.database.OpenbravoDriverManagerConnectionFactory.createConnection(OpenbravoDriverManagerConnectionFactory.java:55) * current pi (pre PR15Q4), in same place a ClassCastException is thrown trying to cast JNDIConnectionProvider to ConnectionProviderImpl Additionally, when it is combined with JdbcExternalConnectionPool: * it tries to create two pools: one for DAL and another one for xsql connections * DAL connections try to use direct DB connection rather than JNDI resulting in NPE if those properties are not set | |||||||
Steps To Reproduce | * Configure Openbravo to use JNDI (removing the rest of direct DB connection settings) [1] removing from Openbravo.properties settings to use direct DB connection * Start Tomcat [1] follow documentation in http://wiki.openbravo.com/wiki/Projects:JNDI_Service/Technical_Documentation [^] until 0030918 is fixed | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0080795) alostale (manager) 2015-10-02 07:39 |
It won't be fixed as backport due the risk it would add and the low usage of this feature. |
Issue History | |||
Date Modified | Username | Field | Change |
2015-09-24 12:39 | alostale | Type | defect => backport |
2015-09-24 12:39 | alostale | Target Version | => 3.0PR15Q3.3 |
2015-10-02 07:39 | alostale | Note Added: 0080795 | |
2015-10-02 07:39 | alostale | Status | scheduled => closed |
Copyright © 2000 - 2009 MantisBT Group |