DevelopmentEnvironmentSetup

!! moved to http://code.google.com/p/webical/wiki/DevelopmentEnvironmentSetup !!

Default setup

  • First follow MavenSetup to get the sources and dependencies
  • Copy the mysql-connector-j to your TOMCAT_DIR/common/lib.
    • You can copy it from your M2_REPO/repository/mysql/mysql-connector-java/5.0.3/ or download it from the mysql website
  • Create a database and user for de webical data:
    • databasename: webical
    • databaseuser: webical
    • databasepasswd: webical
  • Create a authentication database:
    • databasename: authenticationdb
    • databaseuser: authuser
    • databasepasswd: authpasswd
    • dump this data in the database
  • Login to the webapp with: webical:webical

Change authentication realm implementation

  • The realm is defined in src/main/webapp/META-INF/context.xml. Change this to your needs, see the tomcat documentation for all possibilities.
  • The required roles are defines in src/main/webapp/WEB-INF/web.xml. You must specify a list of roles in:
<security-role>
      <description>Webical User</description>
      <role-name>webicaluser</role-name>
</security-role>
  • To protect the webapp with form based authentication change the role to your new role:
<security-constraint>
        ...
   <auth-constraint>
      <role-name>webicaluser</role-name>
   </auth-constraint>
</security-constraint>

-- IvoVanDongen - 28 Sep 2006

Topic attachments
I Attachment Action Size Date Who Comment
elsesql authenticationdb.sql manage 1.0 K 28 Sep 2006 - 07:36 IvoVanDongen  
Topic revision: r3 - 28 Jan 2008 - 10:19:12 - MattijsHoitink
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback