Changes between Version 1 and Version 2 of MolgenisDeployUnderOtherName


Ignore:
Timestamp:
2010-09-28T15:40:48+02:00 (14 years ago)
Author:
jvelde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MolgenisDeployUnderOtherName

    v1 v2  
    22This 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.
    33
    4 There are two solution flavours, depending on the situation you can make a choice:''''
     4There are two solution flavours, depending on the situation you can make a choice:''''''''''
    55
    66 * ''Permanent solution:'' This change __persists__, but will __only take place__ when you re-generate your project.
     
    99
    1010== 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";`
    1212
    1313== Database name ==
    14 ''Permanent solution:'' Change db 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"`
    1515
    1616== Deploy name ==
     
    2020Add or enable to WEB-INF/web.xml the properties <security-constraint>, <login-config>, <security-role>. For example:
    2121
    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-->
    2323
    2424== Final note ==