Add Mavendependecies Problem to Troublehsooting
@@ -358,6 +358,22 @@ and the apache tomcat native library needs to be installed. On Windows, this mea
On linux you might need to build it for yourself, see "Ubuntu Installation Notes - Building TCNative](./ubuntu-installation-notes.md#building-tcnative)
+## Tomcat start fails with ClassNotFoundException: java.lang.ClassNotFoundException:
+
+```
+Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener]
+java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
+```
+
+Reason: The Maven Dependencies are not defined in the Web Deployment Assembly of the Web Application project.
+
+Solution:
+
+1. Right click on `won-owner-webapp` project >> `Properties` >> `Deployment Assembly` >> `Add...` >> `Java Build Path Entries` >> `Maven Dependencies`.
+2. `Project` >> `Clean...` >> select `won-owner-webapp` >> select `Build only the selected projects` >> `Clean`.
+3. Do a maven install
+4. Right click on server >> `Publish` >> `Start`
+
## Maven build fails with NoClassDefFoundException: java/sql/SQLException
Turns out that you need to have a JDK installed. Download a recent JDK and tell eclipse to use that one by default: `Window >> Preferences >> Java >> Installed JREs`. For me, Jdk11 did not work, but Jdk8u202 did.
