JIRA和MSSQL2000的配置

JIRA和MSSQL2000的配置
     整了老半天,发现用的自带的那数据库不稳定,只好把数据库换成MSSQL2000
     问题也找不到文档,只好摸索了,我先试着把server.xml的数据库连接改为下面的值
 <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
            username="sa"
            password="sa"
            driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
            url="jdbc:microsoft:sqlserver://127.0.0.1:1433;SelectMethod=cursor;DatabaseName=jiradb"
             />

启动,找不到com.microsoft.jdbc.sqlserver.SQLServerDriver,把SQL2000的驱动msbase.jar mssqlserver.jar msutil.jar放在了atlassian-jira-enterprise-3.6.5-standalone\common\lib

这个地方是过了,但是数据库里面建的表全乱了,连SEQUENCE_VALUE_ITEM这样的表里面的字段长度全是1位的,手工改动肯定不行的,用IE进入http//127.0.0.1:8080,居然提示entityengine.xml里面陪着的数据库是HSQL,不能用SQL2000,于是我真于找到原因了,打开atlassian-jira-enterprise-3.6.5-standalone\atlassian-jira\WEB-INF\classes下的entityengine.xml,把
<datasource name="defaultDS" field-type-name="hsql"
        helper-class="org.ofbiz.core.entity.GenericHelperDAO"
      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"
      check-indices-on-start="true">

改为

<datasource name="defaultDS" field-type-name="mssql"
        helper-class="org.ofbiz.core.entity.GenericHelperDAO"
      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"
      check-indices-on-start="true">


启动TOMCAT,一切顺利

你可能感兴趣的:(JIRA和MSSQL2000的配置)