Changes between Version 1 and Version 2 of MolgenisDeployUnderOtherName
- Timestamp:
- 2010-09-28T15:40:48+02:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MolgenisDeployUnderOtherName
v1 v2 2 2 This manual explains how you can succesfully deploy a MOLGENIS project under a different name and database. For example, ''''animaldb'''' instead of ''''xgap_1_4_distro''''. This means you do not have to copy your project in order to set up a new instance with another name. 3 3 4 There are two solution flavours, depending on the situation you can make a choice:'''' 4 There are two solution flavours, depending on the situation you can make a choice:'''''''''' 5 5 6 6 * ''Permanent solution:'' This change __persists__, but will __only take place__ when you re-generate your project. … … 9 9 10 10 == Project name == 11 ''Permanent solution:'' Change the property 'molgenis name' in the last MOLGENIS XML file that is loaded by the parser. For example: molgenis name="'''animaldb'''" and run !MolgenisGenerator.java''.[[BR]]Temporary solution: C''hange 'getMolgenisVariantID()' in !MolgenisServlet. For example: return "'''animaldb'''";.11 ''Permanent solution:'' Change the property 'molgenis name' in the last MOLGENIS XML file that is loaded by the parser. For example: `molgenis name="animaldb"` and run !MolgenisGenerator.java''.[[BR]]Temporary solution:'' Change 'getMolgenisVariantID()' in !MolgenisServlet. For example: `return "animaldb";` 12 12 13 13 == Database name == 14 ''Permanent solution:'' Change d b name in 'molgenis.properties'. For example: db_uri= !jdbc:mysql://localhost/'''animaldb'''?innodb_autoinc_lock_mode=2 and run !MolgenisGenerator.java.''[[BR]]Temporary solution: ''Change 'url' in META-INF/context.xml. For example: url="!jdbc:mysql://localhost/'''animaldb'''?innodb_autoinc_lock_mode=2".14 ''Permanent solution:'' Change database name in 'molgenis.properties'. For example: `db_uri = jdbc:mysql://localhost/animaldb?innodb_autoinc_lock_mode=2` and run !MolgenisGenerator.java.''[[BR]]Temporary solution: ''Change 'url' in META-INF/context.xml. For example: `url="jdbc:mysql://localhost/animaldb?innodb_autoinc_lock_mode=2"` 15 15 16 16 == Deploy name == … … 20 20 Add or enable to WEB-INF/web.xml the properties <security-constraint>, <login-config>, <security-role>. For example: 21 21 22 <!--security-constraint>[[BR]] <web-resource-collection>[[BR]] <web-resource-name>!MolgenisServlet</web-resource-name>[[BR]] <url-pattern>*.do</url-pattern>[[BR]] </web-resource-collection>[[BR]] <auth-constraint><role-name>'''animaldb'''</role-name></auth-constraint>[[BR]] </security-constraint>[[BR]][[BR]] <login-config>[[BR]] <auth-method>BASIC</auth-method>[[BR]] <realm-name>MOLGENIS</realm-name>[[BR]] </login-config>[[BR]][[BR]] <security-role>[[BR]] <description>[[BR]] The role that is required to log in to the application.[[BR]] </description>[[BR]] <role-name>'''animaldb'''</role-name>[[BR]]</security-role-->22 <!--security-constraint>[[BR]] <web-resource-collection>[[BR]] <web-resource-name>!MolgenisServlet</web-resource-name>[[BR]] <url-pattern>*.do</url-pattern>[[BR]] </web-resource-collection>[[BR]] <auth-constraint><role-name>'''animaldb'''</role-name></auth-constraint>[[BR]] </security-constraint>[[BR]][[BR]] <login-config>[[BR]] <auth-method>BASIC</auth-method>[[BR]] <realm-name>MOLGENIS</realm-name>[[BR]] </login-config>[[BR]][[BR]] <security-role>[[BR]] <description>[[BR]] The role that is required to log in to the application.[[BR]] </description>[[BR]] <role-name>'''animaldb'''</role-name>[[BR]] </security-role--> 23 23 24 24 == Final note ==