We are utilizing a Tomcat6 server to host our application and have placed our WAR file within the webapp directory. Unfortunately, Tomcat is unable to locate our JAR file at the following location:
C:\Program Files\Atlassian\JIRA\webapps\MYSITE\WEB-INF\lib\myawesomejar.jar
However, when we move the JAR file to:
C:\Program Files\Atlassian\JIRA\lib
Tomcat identifies it without any issues, and everything functions correctly. The error message we encounter after deployment is:
"noclassdeffounderror could not initialize class"
Do we need to adjust the classpaths? If so, where can these be found? We are using JIRA.exe for version 4.4 on a Windows machine.
It sounds like your issue might be related to classloader hierarchy in Tomcat. In Tomcat, libraries placed in the WEB-INF/lib directory should be accessible to your web application. However, if the application server itself needs access to some classes (especially if they are part of the JIRA or Tomcat internal workings), placing them in C:\Program Files\Atlassian\JIRA\lib makes them available to the shared class loader. You might want to check if the JAR file’s classes are being referenced by any server-level configurations or JIRA itself. Otherwise, ensure that there are no syntax issues in the web.xml or other deployment descriptors that could interfere with Tomcat’s deployment process.