Unable to Change JIRA's URL (EAR WAR installation)
When configuring the EAR-WAR installation, after changing the URL in jira.xml, the new url is not working. The following error is thrown in the logs:
09:52:01,706 ERROR [ManagerBase:372\] IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2228) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:761) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277) at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:5
In addition to changing the context path, you must rename the file jira.xml to reflect your new url. For example, if you changed your url from http://mycompany.com/jira to http://mycompany.com/omgbugs then you need to rename jira.xml to omgbugs.xml. If you haven't done this, your new url will not work.
Whenever Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions to a disk file located via the pathname attribute. All such saved sessions will then be deserialized and activated (assuming they have not expired in the mean time) when the application reload is completed.
- Stop the tomcat server.
- Delete the deployed "jira" folder in $CATALINA/webapps
- Rename the $CATALINA/conf/Catalina/localhost/jira.xml to $CATALINA/conf/Catalina/localhost/omgbugs.xml
- Rename the context path in the $CATALINA/conf/Catalina/localhost/omgbugs.xml as following:
- Modify the configuration in $CATALINA/conf/Catalina/localhost/omgbugs.xml from:
... <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/> ...
... <Manager pathname=""/> ...
For more information, please refer to these pages: