| 1 | = i2b2 Gotchas Name Not Found Exception |
| 2 | |
| 3 | When first using the workbench, get javax.naming.!NameNotFoundException for two datasources: |
| 4 | !QueryToolDemo2DS and !WorkplaceDemo2DS |
| 5 | |
| 6 | I cannot remember these datasources during the install. A grep of the data sql, however, reveals: |
| 7 | |
| 8 | INSERT INTO CRC_DB_LOOKUP |
| 9 | |
| 10 | (c_domain_id, c_project_path, c_owner_id, c_db_fullschema, c_db_datasource, c_db_servertype, c_db_nicename, c_db_tooltip, c_comment, c_entry_date, c_change_date, c_status_cd) |
| 11 | |
| 12 | VALUES('i2b2demo', '/Demo2/', '@', 'i2b2demodata2', 'java:QueryToolDemo2DS', 'ORACLE', 'Demo2', NULL, NULL, NULL, NULL, NULL); |
| 13 | |
| 14 | There is a similar insert for project Demo. |
| 15 | |
| 16 | __NB__: that there is a value of ORACLE for c_db_servertype, which implies the particular RDBMS system is __not__ transparent. |
| 17 | |
| 18 | '''__Clue__''' |
| 19 | Looks like I've made a mistake on the data install. In "Data Installation Guide_1-5-1.pdf" within section 2.5 entitled "Create Demodata tables and load data", it appears I've skipped the part of the procedure for Demo2. It states within subsections 6 and 7: |
| 20 | {{{ |
| 21 | 6. Edit the db.properties file for the user/password i2b2demodata2 and project demo2. |
| 22 | 7. Repeat steps 3, 4 and 5 (Create demodata tables, stored procedures and load data). |
| 23 | }}} |
| 24 | This I have not done. And there are similar sections for Demo2 concerning metadata and workdata within the same guide. Having altered the install procedures to cover demo2 correctly (plus the following points regarding extra datasources) and then undertaken a re-install, the workbench ran correctly without a !NameNotFoundException. |
| 25 | |
| 26 | __NB__: I'm pretty sure there also is an assumption within the 5 cell install guides that the demo data details are (by implication) replicated and changed for demo2. I have not done this either, so the guides need a careful examination with this in mind. Now corrected. It only touched upon installs of the ontology, crc and workplace cells. I needed to add an extra datasource to each of the *-ds.xml files to cover 'demo2'. |
| 27 | |
| 28 | One thing I still find confusing, however... |
| 29 | |
| 30 | Each of these installs has a etc/spring/something.properties file with something like the following entries: |
| 31 | {{{ |
| 32 | workplace.ws.pm.url=http://localhost:9090/i2b2/rest/PMService/getServices |
| 33 | workplace.ws.pm.webServiceMethod=Rest |
| 34 | # Flag to bypass project management cell |
| 35 | workplace.ws.pm.bypass=false |
| 36 | workplace.ws.pm.bypass.role=ADMIN |
| 37 | workplace.ws.pm.bypass.project=Demo |
| 38 | }}} |
| 39 | Notice the last property. What does it mean? Why does it say 'Demo'? Should there be a 'Demo2'? |
| 40 | |
| 41 | [[BackLinks]] |