Search code examples
intellij-ideaivy

Intellij unable to find classes while running Ivy Project


I have imported an Ivy Project in Intellij. I am using IvyIdea plugin. I also have ivy-settings.xml in place. I am able to successfully build the project. When I am deploying my application on jetty server, I am getting this error. Basically it's unable to find all my libraries.

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

I guess, this means that my libaries are not present in the classpath and I confirmed in "Project Structure" -> Dependencies -> IvyIdea and I can see all the jars there.

What am I missing here?


Solution

  • For Maven projects artifacts with the dependencies are generated automatically, while for the projects created manually or using dependencies provided by the IvyIDEA plug-in you will have to configure the artifacts manually and ensure that all the required dependencies are added to the artifact that is deployed on the server.