Confluence not starting with the error ClassNotFoundException

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

Confluence fails to start with a ClassNotFoundException.

The following appears in the catalina.out log file:


Error: Could not find or load main class type
Caused by: java.lang.ClassNotFoundException: type


原因


This is generally caused by missing opening or closing tags ( "<" or ">") in place in the <Confluence Install Directory>/conf/server.xml file.


例:  

The closing tag ">" is missing at the end of the In below connector definition: 

 <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                   maxThreads="48" maxPostSize="16777216" minSpareThreads="10"
                   enableLookups="false" acceptCount="10" URIEncoding="UTF-8"
                   protocol="org.apache.coyote.http11.Http11NioProtocol"
                   scheme="https" secure="true" proxyName="test.test.com" proxyPort="443"/ 

The missing closing tag ">" will cause ClassNotFoundException. Therefore we need to add ">" like below:


 <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                   maxThreads="48" maxPostSize="16777216" minSpareThreads="10"
                   enableLookups="false" acceptCount="10" URIEncoding="UTF-8"
                   protocol="org.apache.coyote.http11.Http11NioProtocol"
                   scheme="https" secure="true" proxyName="test.test.com" proxyPort="443"/>



ソリューション

Make sure your <Confluence Install Directory>/conf/server.xml file doesn't have any missing opening "<" or closing ">"  tags as shown in the above example. Fix the missing tags, save the server.xml file, and start Confluence once again. 

最終更新日 2023 年 5 月 1 日

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

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