[{"data":1,"prerenderedAt":349},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2008\u002F07\u002F11\u002Fmigrating-jira-and-confluence-from-tomcat-to-glassfish\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":330,"date":331,"description":213,"embedImage":330,"extension":332,"image":330,"intro":330,"meta":333,"navigation":334,"path":335,"seo":336,"series":330,"sitemap":337,"stem":338,"tags":339,"__hash__":348},"content\u002F2008\u002F07\u002F11\u002Fmigrating-jira-and-confluence-from-tomcat-to-glassfish.md","Migrating Jira and Confluence from Tomcat to Glassfish",{"type":208,"value":209,"toc":327},"minimark",[210,214,217,233,236,255,258,261,264,272,275,278,281,284,287,296,299,302,312,315,321,324],[211,212,213],"p",{},"I have had jira and confluence running under tomcat 5.5.23 (behind apache over AJP13\u002Fmod_jk) for a while now. The aim is to migrate them over to glassfish (behind the same apache but with mod_proxy).",[211,215,216],{},"Software versions:",[218,219,220,224,227,230],"ul",{},[221,222,223],"li",{},"Atlassian Jira 3.12.2",[221,225,226],{},"Atlassian Confluence 2.8.0",[221,228,229],{},"Apache Tomcat 5.5.23",[221,231,232],{},"Glassfish 2.1 build 39",[211,234,235],{},"First - some links I found useful:",[218,237,238,249],{},[221,239,240],{},[241,242,243],"a",{"href":243,"rel":244,"target":248},"http:\u002F\u002Fblogs.steeplesoft.com\u002Fjira-and-glassfish\u002F",[245,246,247],"nofollow","noopener","noreferer","_blank",[221,250,251],{},[241,252,253],{"href":253,"rel":254,"target":248},"http:\u002F\u002Fjava.stake-online.com\u002Fblog\u002F2007\u002F04\u002Fglassfish-v2-and-atlassians-jira-and.html",[245,246,247],[211,256,257],{},"So - what changes had to be made?",[211,259,260],{},"###Jira",[211,262,263],{},"In the jira download area (where you build the war) - I had only one file in edit-webapp from when building for tomcat - edit-webapp\u002FWEB-INF\u002Fclasses\u002Fentityengine.xml. In this file I had to change the JNDI names for UserTransaction and the datasource - removing java:comp\u002Fenv (this seems to be a difference between tomcat and glassfish, tomcat wants the whole path where glassfish assumes you are in the env section of the JNDI tree - affects confluence too - see below).",[211,265,266,267,271],{},"Then a simple ",[268,269,270],"code",{},".\u002Fbuild.sh war"," and a new war was generated. I deployed the dist-generic rather than the dist-tomcat war file to glassfish using the GUI.",[211,273,274],{},"###Confluence",[211,276,277],{},"Easier than JIRA - just deploy the same expanded directory that tomcat was using (I had confluence expanded on disk and had used a config in tomcat\u002Fconf\u002FCatalina\u002Flocalhost to point to it).",[211,279,280],{},"Changes required - in confluence_home there is a confluence.cfg.xml - defines amongst other things the datasource. You need to make the same change here to the JNDI name - remove java:comp\u002Fenv",[211,282,283],{},"###Datasources",[211,285,286],{},"Remember that for both you must have:",[288,289,290,293],"ol",{},[221,291,292],{},"Defined your datasource in glassfish resources (admin GUI)",[221,294,295],{},"Have the correct JDBC driver in glassfish\u002Flib",[211,297,298],{},"###mod_jk -> mod_proxy",[211,300,301],{},"Mod proxy was already available on the server (debian makes it very simple to enable) - so all I had to do was to replace",[303,304,309],"pre",{"className":305,"code":307,"language":308},[306],"language-text","JkMount \u002Fjira tomcat_worker\n","text",[268,310,307],{"__ignoreMap":311},"",[211,313,314],{},"with",[303,316,319],{"className":317,"code":318,"language":308},[306],"ProxyPass \u002Fjira http:\u002F\u002Flocalhost:8080\u002Fjira\nProxyPassReverse \u002Fjira http:\u002F\u002Flocalhost:8080\u002Fjira\n",[268,320,318],{"__ignoreMap":311},[211,322,323],{},"###Other changes",[211,325,326],{},"Both jira and confluence are displayed under https using a self-certified certificate in apache2. The jiraissues macro in confluence will call jira over this. Therefore glassfish JVM must trust the certificate. Under tomcat I had the certificates in the default JVM stores $JAVA_HOME\u002Fjre\u002Flib\u002Fsecurity\u002Fcacerts and jssecerts. Glassfish has its own under domains\u002Fdomain1\u002Fconfig.",{"title":311,"searchDepth":328,"depth":328,"links":329},2,[],null,"2008-07-11 09:21:58 +0200","md",{},true,"\u002F2008\u002F07\u002F11\u002Fmigrating-jira-and-confluence-from-tomcat-to-glassfish",{"title":206,"description":213},{"loc":335},"2008\u002F07\u002F11\u002Fmigrating-jira-and-confluence-from-tomcat-to-glassfish",[340,341,342,343,344,345,346,347],"apache","tomcat","jira","confluence","atlassian","glassfish","mod-jk","mod-proxy","1eB29UMcctR3-KuGBp4zZZQmjK3Tm3S46VdL2FODXKY",1775293014739]