JIRA+SQLServer2000
发布时间:2020-12-12 15:45:28 所属栏目:MsSql教程 来源:网络整理
导读:JIRA Standalone版本转移到SQLServer2000 and Above数据库 Author : jiracn Create Date :2006.04.17. 环境 :windows,Tomcat5.5.4,MS SQLServer2000 1.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!); 2.运行JIRA的启动脚本文件:
JIRA Standalone版本转移到SQLServer2000 and Above数据库 Author: jiracn Create Date:2006.04.17. 环境:windows,Tomcat5.5.4,MS SQLServer2000 1.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!); 2.运行JIRA的启动脚本文件:windows平台上就是运行bin目录下的startup.bat 文件; 以上就可以启动JIRA了,通过http:/localhost:8080/就可以访问JIRA了! 这时候的JIRA使用了Standalone版本中集成的Tomcat和HSQL数据库(轻量级的数据库)。 如果用作商业使用,应该将JIRA安装到企业级的外部数据库上!以下介绍JIRA的Standalone版本在外部MS SQLServer2000上的安装过程: 1.安装MS SQLServer2000数据库,记着要安装MS SQLServer2000的Service Pack4; ??1.1安装过程要自定义,选择chinese_RPC排序方式,语言为simple chinese; ??1.2身份验证选择混合模式; 2.然后创建jiradb和jirauser,创建jirauser的过程中要先创建一个登录名jirauser;把public和db_owner 角色赋给jirauser,不要将jirauser作为database owner; 3. 确认在SQL Server的配置中没有设置 NOCOUNT 选项: 3.1 对于MSSQL Server 2005,打开SQL Server 的管理控制台窗口再找到工具菜单-> 选项 -> 查询执行-> SQL Server -> 高级. 如下图: 3.2 对于MSSQL Server 2000,打开SQL Server 的管理控制台窗口再找到工具菜单 -> SQL Server 配置属性-> 连接. 如下图: 3.编辑conf/server.xml 文件,将<Context ... .../>中的内容,修改为: [Copy to clipboard] [ - ] CODE: ? ?? ???<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false"> ? ?? ?? ? <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" ? ?? ?? ?? ?username="jirauser" ? ?? ?? ?? ?password="123456" ? ?? ?? ?? ?driverClassName="net.sourceforge.jtds.jdbc.Driver" ? ?? ?? ?? ?url="jdbc:jtds:sqlserver://localhost:1433/jiradb" /> 4.编辑 atlassian-jira/WEB-INF/classes/entityengine.xml文件,修改field-type-name 的属性值为mssql(field-type-name="mssql"); 删除 schema-name="PUBLIC" 参数. 5.下载连接MS SQLServer数据库的JDBC Driver,推荐使用JTDS( http://jtds.sourceforge.net/ ),将jtds-[version].jar文件拷贝到common/lib目录下; 可从本站下载jtds-1.2.jar文件: 6.运行bin目录下的startup.bat,启动JIRA; 7.通过浏览器地址http://localhost:8080/访问JIRA,根据向导配置JIRA. Ref: https://www.atlassian.com/software/jira/docs/latest/databases/sqlserver.html ? ? ? JIRA WAR/EAR 版本在Tomcat和MS SQLServer2000上的安装过程 Author: jiracn Create Date:2006.04.17. 环境:windows,MS SQLServer2000,Tomcat5.5.4 0.安装JDK,配置java运行环境; 1.安装MS SQLServer2000数据库,记着要安装MS SQLServer2000的Service Pack4; ??1.1安装过程要自定义,语言为simple chinese; ??1.2身份验证选择混合模式; 2.然后创建jiradb和jirauser,创建jirauser的过程中要先创建一个登录名jirauser;把public和dbo角色赋给jirauser,不要将jirauser作为dbower; 3.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!); 4.编辑edit-webapp/WEB-INF/classes/entityengine.xml文件,将<datasource>标签内的field-type-name属性的值设置为mssql; [code:1]? ?? ?? ? <datasource name="defaultDS" ? ?? ?? ? helper-class="org.ofbiz.core.entity.GenericHelperDAO" ? ?? ?? ? field-type-name="mssql" ? ?? ?? ? check-on-start="true" ? ?? ?? ? use-foreign-keys="false" ? ?? ?? ? use-foreign-key-indices="false" ? ?? ?? ? check-fks-on-start="false" ? ?? ?? ? check-fk-indices-on-start="false" ? ?? ?? ? add-missing-on-start="true"> ? ?? ?? ? <jndi-jdbc jndi-server-name="default" ? ?? ?? ? jndi-name="java:comp/env/jdbc/JiraDS" /> ? ?? ???</datasource>[/code:1] 然后,找到: [code:1]<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"> <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> <transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> </transaction-factory>[/code:1] 修改为: [code:1]<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"> ? ?? ???<user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/> ? ?? ?<transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/> ? ? </transaction-factory>[/code:1] ? ? 5.编译 JIRA 6.更新 Tomcat 库,下载 jira-jars-tomcat5.zip ,解压缩后将jar文件拷贝到Tomcat的 common/lib/ 目录下; 7.Configure Tomcat ??7.1. Copy dist-tomcat/tomcat-5.5/jira.xml from the built JIRA distribution to your Tomcat's conf/Catalina/localhost/ directory; ??7.2. 修改jira.xml文件内容: [code:1]? ?? ?<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" ? ?? ?? ?? ?username="jirauser" ? ?? ?? ?? ?password="123456" ? ?? ?? ?? ?driverClassName="net.sourceforge.jtds.jdbc.Driver" ? ?? ?? ?? ?url="jdbc:jtds:sqlserver://localhost:1433/jiradb"/>[/code:1] 8. Modify Tomcat server.xml ? ?In order for JIRA to correctly display internationalized characters in user and group names you need to modify your Tomcat distributions conf/server.xml file. You need to set the property useBodyEncodingForURI="true" within the connector definition for your http protocol. The connector block should look very much like this: [code:1]<Connector port="8080" maxHttpHeaderSize="8192" ? ? maxThreads="150" minSpareThreads="25" maxSpareThreads="75" ? ? enableLookups="false" redirectPort="8443" acceptCount="100" ? ? connectionTimeout="20000" disableUploadTimeout="true"/> 修改为: <Connector port="8080" maxHttpHeaderSize="8192" ? ? maxThreads="150" minSpareThreads="25" maxSpareThreads="75" ? ? enableLookups="false" redirectPort="8443" acceptCount="100" ? ? connectionTimeout="20000" disableUploadTimeout="true" useBodyEncodingForURI="true"/>[/code:1] 9. Start Tomcat ? ?JIRA should now be ready to run in Tomcat. To start using JIRA,first start (or restart) the Tomcat server with Tomcat's bin/startup.(sh|bat) scripts,and point your browser to http://localhost:8080/jira You should now see the Setup Wizard,which will take you through the brief setup procedure. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读