Installation Webmill portal in Tomcat 5.5
1. Install Tomcat 5.5
2. Change file %TOMCAT_HOME%\conf\server.xml, configure DataSource, "family" of DB and add parameters of conntection (useBodyEncodingForURI, URIEncoding, emptySessionPath).
Config of DataSource
<Resource name="jdbc/webmill" auth="Container" scope="Shareable"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/test?useUnicode=true&characterEncoding=utf8" username="sa"
password="" maxActive="100" maxIdle="30" maxWait="10000"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
removeAbandoned="true"
removeAbandonedTimeout="60"
logAbandoned="true"
/>
"family" of DB:
<Environment name="dbFamily" type="java.lang.String" value="mysql"/>
<Environment name="hibernate_family" value="org.hibernate.dialect.MySQLDialect" type="java.lang.String"/>
Connection config:
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
emptySessionPath="true"
useBodyEncodingForURI="true" URIEncoding="UTF-8"
/>
Full server.xml file
3. Add in file %TOMCAT_HOME%/conf/tomcat-users.xml a role 'webmill-init' and bind this role to user. For example:
<role rolename="webmill-init"/> <user username="admin" password="" roles="admin,manager,webmill-init"/>
4. Download file with Webmill portal from sourceforge.net site
File releases on sourceforge.net5. Install portlet container. Copy files of portlet container to %TOMCAT_HOME%\shared\lib. Portlet containers files are stored in 'lib' folder in archive webmill-portal-x.x.x.zip
6. Delete directory %TOMCAT_HOME%\webapps\ROOT
7. Unpack portal files in %TOMCAT_HOME%\webapps. Portal files there are files *.war and packed in webmill-portal-x.x.x.zip
8. startup Tomcat
9. Launch admin console of Webmill portlal http://localhost/webmill-admin
10. Create DB structure by invoke 'Structure'
11. Create company. Information of campany at this step not important and can be changed later.
12. Create new site at 'Manage sites'
13. Create admin user at 'Portal users'
14. Launch created site at address http://localhost