11-08-2013 04:26 AM
11-11-2013 12:41 PM
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/workdesk" debug="100" privileged="true" reloadable="true">
<Resource name="java:/MySQLDS"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
username="owd"
password="abs"
driverClassName="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost:5432/alfresco?autoReconnect=true"
maxWait="1000"
removeAbandoned="true"
maxActive="30"
maxIdle="10"
removeAbandonedTimeout="60"
logAbandoned="true"
validationQuery="select 1"/>
</Context>
<DefaultDataSource>
<JNDIName>java:/MySQLDS</JNDIName>
</DefaultDataSource>
commons-collections-3.2.1.jar
mysql-connector-java-5.1.25-bin.jar
commons-pool-1.5.4.jar
commons-dbcp-1.3.jar
drop schema owdemo;
== This lines I have done myself, I don´t know if there is necessary to give all privileges but I don´t mind because it´s a demo ==
create database owdemo default character set utf8 collate utf8_bin;
grant all on owdemo.* to 'owdemo'@'localhost' identified by 'owdemo' with grant option;
grant all on owdemo.* to 'owdemo'@'localhost.localdomain' identified by 'owdemo' with grant option;
== Create_MySQL_Database.sql ==
GRANT USAGE ON *.* TO 'owdemo'@'localhost';
DROP USER 'owdemo'@'localhost';
DROP DATABASE IF EXISTS owd;
CREATE USER 'owdemo'@'localhost' IDENTIFIED BY 'owdemo';
GRANT ALL PRIVILEGES ON *.* TO 'owdemo'@'localhost' WITH GRANT OPTION;
CREATE DATABASE owd;
== OwMySQL_CreateAttributeBagTable.sql ==
DROP TABLE IF EXISTS `owd`.`OW_ATTRIBUTE_BAG`;
CREATE TABLE `owd`.`OW_ATTRIBUTE_BAG` (
`UserName` varchar(128) NOT NULL,
`BagName` varchar(128) NOT NULL,
`AttributeName` varchar(256) NOT NULL,
`AttributeValue` varchar(1024) NOT NULL,
PRIMARY KEY (`UserName`,`BagName`,`AttributeName`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
== OwMySQL_CreateDBHistoryManagerTable.sql==
DROP TABLE IF EXISTS `owd`.`OW_HISTORY`;
CREATE TABLE `owd`.`OW_HISTORY` (
`EventIndex` int(10) unsigned NOT NULL AUTO_INCREMENT,
`OW_HIST_Type` int(10) unsigned NOT NULL,
`OW_HIST_ID` varchar(128) NOT NULL,
`OW_HIST_Status` int(10) unsigned DEFAULT NULL,
`OW_HIST_Time` datetime DEFAULT NULL,
`OW_HIST_User` varchar(255) NOT NULL,
`OW_HIST_Summary` varchar(2048) DEFAULT NULL,
`ObjectDMSID` varchar(255) DEFAULT NULL,
`ObjectName` varchar(1024) DEFAULT NULL,
`ParentDMSID` varchar(255) DEFAULT NULL,
`ParentName` varchar(1024) DEFAULT NULL,
`Custom1` varchar(2048) DEFAULT NULL,
`Custom2` varchar(2048) DEFAULT NULL,
`Custom3` varchar(2048) DEFAULT NULL,
PRIMARY KEY (`EventIndex`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
== OwMySQL_CreateDBRoleManagerTable.sql
DROP TABLE IF EXISTS `owd`.`OW_ROLE`;
CREATE TABLE `owd`.`OW_ROLE` (
`ROLE_ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ROLE_NAME` varchar(255) NOT NULL,
`ROLE_RESOURCE` varchar(255) NOT NULL,
`ROLE_ACCESS` int(11) NOT NULL DEFAULT '-1',
`ROLE_ACCESS_MASK` int(11) NOT NULL DEFAULT '-1',
`CATEGORY` int(10) unsigned NOT NULL,
PRIMARY KEY (`ROLE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
11-12-2013 03:10 AM
url="jdbc:mysql://localhost:5432/alfresco?autoReconnect=true"<— DB connection to "alfresco"
GRANT USAGE ON *.* TO 'owdemo'@'localhost';
DROP USER 'owdemo'@'localhost';
DROP DATABASE IF EXISTS owd;<— DB of script is "owd"
CREATE USER 'owdemo'@'localhost' IDENTIFIED BY 'owdemo';<— look also on the user name
GRANT ALL PRIVILEGES ON *.* TO 'owdemo'@'localhost' WITH GRANT OPTION;
CREATE DATABASE owd;
11-12-2013 03:55 AM
11-13-2013 08:45 AM
log4j.rootLogger=ERROR,workdesk_console,workdesk_file_rolling
log4j.appender.workdesk_console=org.apache.log4j.ConsoleAppender
log4j.appender.workdesk_console.layout=org.apache.log4j.PatternLayout
log4j.appender.workdesk_console.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c [%x] - %m%n
log4j.appender.workdesk_console_detailed=org.apache.log4j.ConsoleAppender
log4j.appender.workdesk_console_detailed.layout=org.apache.log4j.PatternLayout
log4j.appender.workdesk_console_detailed.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c [%x] {%C{2}.%M} - %m%n
log4j.appender.workdesk_file.File=C:/DN/ALFRESCO-SHARE/logs/workdesk/workdesk-opencmis.log
log4j.appender.workdesk_file.layout=org.apache.log4j.PatternLayout
log4j.appender.workdesk_file.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c [%x] - %m%n
log4j.appender.workdesk_file_rolling.File=C:/DN/ALFRESCO-SHARE/logs/workdesk/workdesk-opencmis-rolling.log
log4j.appender.workdesk_file_rolling.MaxFileSize=8KB
log4j.appender.workdesk_file_rolling.MaxBackupIndex=4
log4j.appender.workdesk_file_rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.workdesk_file_rolling.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c [%x] - %m%n
log4j.category.org.perf4j.TimingLogger=OFF
log4j.category.org.apache=WARN
log4j.category.org.springframework=WARN
11-13-2013 09:02 AM
11-13-2013 10:20 AM
<DefaultDataSource>
<JNDIName>java:/MySQLDS</JNDIName>
</DefaultDataSource>
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/workdesk" debug="100" privileged="true" reloadable="true">
<Resource name="java:/MySQLDS"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
username="owd"
password="abs"
driverClassName="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost:5432/owd?autoReconnect=true"
maxWait="1000"
removeAbandoned="true"
maxActive="30"
maxIdle="10"
removeAbandonedTimeout="60"
logAbandoned="true"
validationQuery="select 1"/>
</Context>
<param-value>deploy#WEB-INF/conf/opencmis</param-value>
11-13-2013 11:11 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.