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.

tip/resting Created with Sketch.

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.

ソリューション

  1. Stop the tomcat server.
  2. Delete the deployed "jira" folder in $CATALINA/webapps
  3. Rename the $CATALINA/conf/Catalina/localhost/jira.xml to $CATALINA/conf/Catalina/localhost/omgbugs.xml
  4. Rename the context path in the $CATALINA/conf/Catalina/localhost/omgbugs.xml as following:
    
          <Context path="/omgbugs"
    
  5. Modify the configuration in $CATALINA/conf/Catalina/localhost/omgbugs.xml from:
    
          ...
          <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
          ...
    
    to:
    
          ...
          <Manager pathname=""/>
          ...
    

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.