论坛首页 入门讨论版 Java

geronimo1.1.1安装jira 3.6.5成功

浏览 857 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
时间:2007-04-20
在http://cwiki.apache.org/GMOxDOC11/configuring-geronimo-as-a-windows-service.html的说明下安装成为NT 服务,参考jira  在tomcat上的安装

使用mysql5.0.27


使用jetty版本的geronimo启动jira没有警告。

jira的web.xml中加入:

 
java 代码
  1. <resource-ref>  
  2.   <res-ref-name>jdbc/JiraDS</res-ref-name>  
  3.   <res-type>javax.sql.DataSource</res-type>  
  4.   <res-auth>Container</res-auth>  
  5.   <res-sharing-scope>Shareable</res-sharing-scope>  
  6. </resource-ref>  

 


geronimo-web.xml为


java 代码
 
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <web-app  
  3.     xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">  
  4.     <environment>  
  5.         <moduleId>  
  6.             <groupId>IssueTracking</groupId>  
  7.             <artifactId>jira</artifactId>  
  8.              <version>3.6.5</version>  
  9.              <type>war</type>  
  10.         </moduleId>  
  11.         <dependencies>  
  12.             <dependency>  
  13.                 <groupId>console.dbpool</groupId>  
  14.                 <artifactId>JIRAPool</artifactId>  
  15.             </dependency>  
  16.         </dependencies>  
  17.     </environment>  
  18.   
  19.     <context-root>/jira</context-root>  
  20.   
  21.     <!-- security settings, if any, go here -->  
  22.   
  23.     <resource-ref>  
  24.         <ref-name>jdbc/JiraDS</ref-name>  
  25.         <resource-link>JIRAPool</resource-link>  
  26.     </resource-ref>  
  27. </web-app>  



其中 JIRAPool是mysql 的数据库连接

至于 jndi-name="java:comp/UserTransaction"所绑定的东西在geronimo 中不用管,已经存在了(tomcat中要改名字并手工配置)


  • 87e6cad3-001e-40fa-b1de-1582a9c1a6d7-thumb
  • 描述:
  • 大小: 266.9 KB
  • 查看次数: 14
   
论坛首页 入门讨论版 Java

跳转论坛:
JavaEye推荐