hello all .
i reconfigure Jira.war on tomcat 7.0.34 ....
see the following pic .....
the steps i done :
1- this is my directory
http://www.4shared.com/download/vHZ1Uujm/Directory.jpg<br< a="">>
2- esure the edit-webapp/WEB-INF/classes/entityengine.xml contain the 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>
---------------------- the entityengine.xml file------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!--
This file configures the OFBiz Entity Engine which JIRA uses to store persist data in a datasource.
For detailed configuration help see:
http://www.atlassian.com/software/jira/docs/latest/entityengine.html
Or our server specific setup guides (these take you through the setup process for each server):
http://www.atlassian.com/software/jira/docs/latest/servers/
Normally, you will only need to edit the 'field-type-name' attribute of the <datasource> tag, near the bottom of this
file.
Less commonly, you may wish to change then JNDI lookup paths for:
- the Transaction Manager (<transaction-factory> element)
- Database connection (<jndi-jdbc> element).
If you not using the 12 preconfigured DBs, you may also need to add your own field type definition
-->
<entity-config>
<resource-loader name="maincp" class="org.ofbiz.core.config.ClasspathLoader"/>
<!-- TRANSACTION FACTORY - This configures how JIRA finds the application server's transaction management.
The default ('java:comp/env/UserTransaction') is correct for Tomcat 5.5. For details on configuring for other
application servers - see:
http://www.atlassian.com/software/jira/docs/latest/entityengine.html#transactionfactory
-->
<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>
<delegator name="default" entity-model-reader="main" entity-group-reader="main">
<group-map group-name="default" datasource-name="defaultDS"/>
</delegator>
<entity-model-reader name="main">
<resource loader="maincp" location="entitydefs/entitymodel.xml"/>
</entity-model-reader>
<entity-group-reader name="main" loader="maincp" location="entitydefs/entitygroup.xml"/>
<field-type name="cloudscape" loader="maincp" location="entitydefs/fieldtype-cloudscape.xml"/>
<field-type name="firebird" loader="maincp" location="entitydefs/fieldtype-firebird.xml"/>
<field-type name="hsql" loader="maincp" location="entitydefs/fieldtype-hsql18.xml"/>
<field-type name="mckoidb" loader="maincp" location="entitydefs/fieldtype-mckoidb.xml"/>
<field-type name="mysql" loader="maincp" location="entitydefs/fieldtype-mysql.xml"/>
<field-type name="mssql" loader="maincp" location="entitydefs/fieldtype-mssql.xml"/>
<!--
This field type is deprecated, and should ONLY be used with Oracle 8i.
If you are using Oracle 9i or 10g please use Oracle 10g JDBC drivers and the 'oracle10g' field type, which is specified below
-->
<field-type name="oracle" loader="maincp" location="entitydefs/fieldtype-oracle.xml"/>
<!--
Please use this field type for Oracle 9i and 10g. Please ensure that you are using Oracle 10g JDBC drivers which are compatible with Oracle 9i.
The 10g JDBC drivers can be downloaded from here: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
-->
<field-type name="oracle10g" loader="maincp" location="entitydefs/fieldtype-oracle10g.xml"/>
<field-type name="postgres" loader="maincp" location="entitydefs/fieldtype-postgres.xml"/>
<field-type name="postgres72" loader="maincp" location="entitydefs/fieldtype-postgres72.xml"/> <!-- use for postgres 7.2 and above -->
<field-type name="sapdb" loader="maincp" location="entitydefs/fieldtype-sapdb.xml"/>
<field-type name="sybase" loader="maincp" location="entitydefs/fieldtype-sybase.xml"/>
<field-type name="db2" loader="maincp" location="entitydefs/fieldtype-db2.xml"/>
<!--
JRA-4202: FrontBase has 'type' and 'position' as reserved words so make the following changes the entitymodel.xml
<field name="type" type="short-varchar"/> to <field name="type" col-name="TYPE_" type="short-varchar"/>
<field name="type" type="long-varchar"/> to <field name="type" col-name="TYPE_" type="long-varchar"/>
<field name="position" type="integer"/> to <field name="position" col-name="POSITION_" type="integer"/>
-->
<field-type name="frontbase" loader="maincp" location="entitydefs/fieldtype-frontbase.xml"/>
<!--
DATASOURCE
You should no longer define a datasource in this file, the database is now configured through the UI at setup time.
The only time you would want to configure it here is when you migrate from an older version and need to point the
new installation at an existing db. This is considered a legacy method and will not work if dbconfig.xml exists
in the home directory.
-->
</entity-config>
-----------------------------------------------------------------------------------------------
3- at edit-webapp/WEB-INF/classes/jira-application.properties set the jira.home =D://apache-tomcat-7.0.34//JiraApp
4- Build the JiraApp.
then the following error show atthe tomcat consol
http://www.4shared.com/download/7KYuajHq/consol.png
it needs detrmine the MySql Database so ...
5- create mysql database called jiradb by
CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;
Username:root Password:123456
6- copy Mysql Driver to
\apache-tomcat-7.0.34\JiraApp\webapp\WEB-INF\lib
7- add tomcat lib from http://www.atlassian.com/software/jira/downloads/binary/jira-jars-tomcat-distribution-6.2-m04-tomcat-7x.zip
8- ensure the jars file in Tomcat's lib directory.is not in the webapp/jira/WEB-INF/lib
8- add the dbconfig.xml to
\apache-tomcat-7.0.34\JiraApp
whereit contain the following :
----------------------------------------- dbconfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>mysql</database-type>
<jdbc-datasource>
<url>jdbc:mysql://dbserver:3306/jiradb?useUnicode=true&characterEncoding=UTF8&sessionVariables=storage_engine=InnoDB</url><driver-class>com.mysql.jdbc.Driver</driver-class><username>root</username>
<password>123456</password>
<pool-size>20</pool-size>
<min-evictable-idle-time-millis>4000</min-evictable-idle-time-millis><time-between-eviction-runs-millis>5000</time-between-eviction-runs-millis>
</jdbc-datasource>
</jira-database-config>
-------------------------------------------------------------
REBUILD AND BUT THE WAR FILE AT tomcat webapp and named it test.war .
Start tomcat .
the following error show to me at tomcat consol
http://www.4shared.com/download/s9pYBvyx/Unable_to_start_Jira.jpg<br< a="">>and the following at the home page of Jira
http://www.4shared.com/download/WCqkfz-r/Unable_to_start_Jira2.jpg