Confluence, slow and many startup errors


I am running 5.3.4, and when the app starts, I have errors such as these:

java.lang.NoClassDefFoundError: javax/servlet/ServletContext

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(

at java.lang.Class.privateGetPublicMethods(

at java.lang.Class.getMethods(

Which should prevent it from working I would expect, and these:

2014-06-03 19:04:18,623 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.3.4 [build 4532 based on commit hash e44e912a19b4356578af38c61df778d5fda2d014]

Exception in thread "ThreadPoolAsyncTaskExecutor::Thread 5" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handler' defined in URL [bundle://27.0:0/META-INF/spring/web-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/ServletContext



at Method)

There were other errors such as JSP compilation or other problems, with Soy ...
I have not gone too far into this, should I try a re-install ?

2 answers

0 votes

Hey Peter,

Could you confirm which Apache Tomcat version you are using?

Also, have a look on the following link to be sure that you are running your instance with the right java, tomcat and database versions:

Best regards,

Eduardo Mallmann

Atlassian Support

Hi Eduardo,

Java version is 1.7.0_51 and it is running on Tomcat 7. I have Jira running without issue on the same server. MySQL is the latest version as well ... so thinking it is solely a Confluence issue -- you tell me.


Hey Peter,

I see. Well, Tomcat 7 is not supported for your current Confluence version, so I'd recommend you to downgrade your Tomcat to version 6.

The following answer thread is related to a similar issue, with very similar error messages you are facing:

He was running Tomcat 7 with a Confluence version that did not support Tomcat 7. When he downgraded to Tomcat 6 the error messages stopped.

Please, let me know if it fixes your issue as well.

Best regards,

Eduardo Mallmann

Atlassian Support


Great suggestion - put it on Tomcat 6 and no issues, faster and no errors !

Now ... what is the easiest way to upgrade to the latest version ?

Hey Peter,

That's awesome! :)

Well, before jumping to the standard procedures to perform an upgrade, we suggest the users to check the plugin compatibility with the next versions to avoid further issues. Having that in mind, you can start the upgrade process by following the standard procedures:

1. Go to http://atlassian.comand download Confluence.

2. Extract the zip/tar.gz file of the latest version of Confluence on the place you choose.

3. Into the extracted folder, open the file, which is located at <confluence-install-folder>\confluence\web-inf\classes and edit the line: confluence.home=/usr/local/confluence/home to point to the path where your old home folder of your Confluence current version is.

4. Now start Confluence through your new installation folder.

We also have a documentation about the procedures:

Hope it helps :)

Best regards,

Eduardo Mallmann

Atlassian Support

I performed the upgrade and it went well. Now, for setting up mail - set it up per my provider - and I still get mail errors when sending test message:

An error has occurred with sending the test email:

com.atlassian.mail.MailException: javax.mail.MessagingException: Could not connect to SMTP host:, port: 587;

nested exception is: Network is unreachable

at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport

Also, with the version before the upgrade and now after, I am not able to connect to the Marketplace - could this be related to mail - some connectivity issue from Confluence ?

Both those problems suggest that Confluence is on a machine that cannot reach the network it's supposed to be connected to

"Network is unreachable" really does mean "I can't reach a network to talk to", and not being able to reach the marketplace is probably the same problem.

0 votes

Hi Peter,

I believe that the Soy renderer might be having some problems as we can see in this KB.

The Kb is not the same behaviour but it's similar. I recommend to check the KB and try to reset the plugins to default as well.



Eduardo's suggestion above fixed all issues - thanks for your help.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,426 views 3 13
Read article

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