Is it possible to deploy JIRA 3.14 in Tomcat 6.0.20 version?

I tried to deploying JIRA 3.14 in Tomcat 6.0.20 version. Upon starting, i am facing the following exception. Please guide me to deploy JIRA 3.14 in Tomcat 6 version.

2013-02-21 10:00:15,038 main ERROR [com.atlassian.jira.ComponentManager] An exception occurred while ComponentManager was initialising. JIRA not start ed properly. java.lang.NoClassDefFoundError: javax/transaction/Status at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.ofbiz.core.entity.jdbc.SQLProcessor.getConnection(SQLProcessor.java:226) at org.ofbiz.core.entity.jdbc.SQLProcessor.prepareStatement(SQLProcessor.java:318) at org.ofbiz.core.entity.GenericDAO.selectListIteratorByCondition(GenericDAO.java:1024) at org.ofbiz.core.entity.GenericDAO.selectByAnd(GenericDAO.java:595) at org.ofbiz.core.entity.GenericHelperDAO.findByAnd(GenericHelperDAO.java:134) at org.ofbiz.core.entity.GenericDelegator.findByAnd(GenericDelegator.java:792) at org.ofbiz.core.entity.GenericDelegator.findByAnd(GenericDelegator.java:777) at org.ofbiz.core.entity.GenericDelegator.findByAnd(GenericDelegator.java:754) at com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.getKeys(OFBizPropertySet.java:87) at com.opensymphony.module.propertyset.AbstractPropertySet.getKeys(AbstractPropertySet.java:292) at com.atlassian.jira.propertyset.PropertySetCache.bulkLoad(PropertySetCache.java:301) at com.atlassian.jira.propertyset.JiraCachingPropertySet.init(JiraCachingPropertySet.java:834) at com.opensymphony.module.propertyset.PropertySetManager.getInstance(PropertySetManager.java:45) at com.opensymphony.module.propertyset.PropertySetManager.getInstance(PropertySetManager.java:22) at com.atlassian.jira.config.properties.PropertiesManager.loadPropertySet(PropertiesManager.java:82) at com.atlassian.jira.config.properties.PropertiesManager.<init>(PropertiesManager.java:28) at com.atlassian.jira.config.properties.PropertiesManager.getInstance(PropertiesManager.java:38) at com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getPropertiesManager(ApplicationPropertiesImpl.java:48) at com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getString(ApplicationPropertiesImpl.java:96) at com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getDefaultBackedString(ApplicationPropertiesImpl.java:122) at com.atlassian.jira.ComponentManager.registerExtensions(ComponentManager.java:783) at com.atlassian.jira.ComponentManager.initialise(ComponentManager.java:662) at com.atlassian.jira.ComponentManager.<init>(ComponentManager.java:648) at com.atlassian.jira.ComponentManager.<clinit>(ComponentManager.java:632) at com.atlassian.jira.upgrade.ConsistencyLauncher.contextInitialized(ConsistencyLauncher.java:42) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.ClassNotFoundException: javax.transaction.Status at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) ... 57 more 2013-02-21 10:00:15,148 main FATAL [atlassian.jira.upgrade.ConsistencyLauncher] A RuntimeException occurred during ConsistencyLauncher servlet context initialisation - null. java.lang.NullPointerException at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:690) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:675) at com.atlassian.jira.upgrade.ConsistencyLauncher.contextInitialized(ConsistencyLauncher.java:42) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

4 answers

1 accepted

This widget could not be displayed.

Jira 3.13 (and 3.14) is been tested on Tomcat 6.0, so I'm not sure about its performace on Tomcat 6.0.20.

Please check this documentation about how to run Jira over Tomcat 6:

http://www.atlassian.com/software/jira/docs/v3.13/servers/tomcat60.html

Hope it helps!

Hi Bruna,

Currently i am facing the following exception upon Tomcat startup. Please give some tips or guidance to overcome this issue.

thank you

vanchin
===

----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@61a116c9 ]. log4j:ERROR Could not instantiate appender named "console". log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@61a116c9] whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader context: /workflow delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@61a116c9 ]. log4j:ERROR Could not instantiate appender named "console". log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@61a116c9] whereas object of type log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [WebappClassLoader context: /workflow delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@61a116c9 ]. log4j:ERROR Could not instantiate appender named "e2filelog".

This widget could not be displayed.

That looks like you have not installed the additional libraries that Tomcat needs to support Jira.

Could you confirm that you've actually followed the documentation Bruna pointed you at? (Especially the "update tomcat libraries" part)

Hi Nic,

All the jars that are from the zip file are added to the tomcat/lib folder. The list jars are:

  • carol.jar
  • carol-properties.jar
  • commons-logging.jar
  • hsqldb.jar
  • jonas_timer.jar
  • jotm.jar
  • jotm-iiop_stubs.jar
  • jotm-jrmp_stubs.jar
  • jta.jar
  • log4j.jar
  • objectweb-datasource.jar
  • ots-jts.jar
  • xapool.jar

thank you

vanchin

Ok, good. Did you remove the log4j file from the 3.14 build? (It may not be there, depending on how you're doing this).

Could you confirm your versions?

  • Jira 3.14 does not exist, so I'm a bit stuck on what you're actually doing
  • Tomcat - you've said 6.0.20 and I've had problems with that one - could you use a later one? Or are we stuck on 6.0.20?
  • And Java? Which JDK is it and what version?


Also, could you take another look at your datasource config - it doesn't feel right to me.

This widget could not be displayed.

Hi Nic,

As per the documentation , the log4j has to be removed from the webapp/WEB-INF/lib folder. Hence i removed it.

the JIRA version is : 3.13.3

the Tomcat is : 6.0.20, i will upgrade to Tomcat 7 and try the same and update the thread.

the JDK is : jdk1.6.0_30

regarding the datasource, i think you are refering to

&lt;Context path="/workflow" docBase="/"&gt;

    &lt;!-- NOTE: If you use a database other than hsqldb:
    * delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis attributes
    * change the database type in atlassian-jira/WEB-INF/classes/entityengine.xml
    --&gt;
    &lt;Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
            username="sa"
            password=""
            driverClassName="org.hsqldb.jdbcDriver"
            url="jdbc:hsqldb:../../platform/database/jiradb"
            minEvictableIdleTimeMillis="4000"
            timeBetweenEvictionRunsMillis="5000"
            antiJARLocking="true"/&gt;

    &lt;Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
    factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/&gt;
    &lt;Manager pathname=""/&gt;

&lt;/Context&gt;

thank you,

vanchin

:

Tomcat 7 isn't likely to work with this old version of JIRA. I would stick with trying to work it out on Tomcat 6.

I really doubt Jira 3.x will work at all with Tomcat 7, you'll be much better off sticking with Tomcat 6.0.20

Your build does look good to me though, I can't see what's wrong from these snippets. Could you explain your overall process? Give us a brief overview of what you're doing? (e.g. "download Tomcat 6, expand it, put additional jars in, download jira war version, expand it, modify files, build it, put it in Tomcat")

This widget could not be displayed.

Hi Nic and Harry,

Thanks for the reply.

In our web app, we have a plugin (custom) that uses slf4j jars. This was placed in the web application lib folder, which had problem while startup. Then we moved these jars to the 'tomcat\lib' folder. The error for the log4j stopped occuring. Other than this there is no change, i just followed the documentation given by Bruna.

Thank you for the support :)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

150 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you