Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7926557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:49:28+00:00 2026-06-03T18:49:28+00:00

I have several Maven projects in eclipse that depends on each other. Some of

  • 0

I have several Maven projects in eclipse that depends on each other. Some of these have dependencies in the Spring libraries (Spring core, Spring MVC etc).

When i build the project using ‘mvn clean install’, maven generates a war file and places it in the ./target/ folder. I can then take this war file and deploy it on any running application server. I have tested the war file on both Tomcat 7 and Jboss 7.1.0 and it works fine.

I have a problem though if i try and run the project directly from eclipse. I would like to be able to debug the server code and the only way i know that this is possible is to run the project in an appserver running within eclipse.

I configured the Tomcat application Server on Eclipse. When i then select the Maven project and right click on it and select ‘Run on Server’, the project deploys on the running Tomcat instance but for some reason it produces the following error:

12-May-2012 15:48:22 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
12-May-2012 15:48:22 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)

I tried the same, i.e. run the project on a Jboss instance in Eclipse and it also complains that it cannot find several libraries. Most of the libraries it complains about are those referred to as dependencies in the Maven POM file.

I suspect that when i deploy the project to Tomcat or Jboss (Using Jboss tools), the dependencies are not being deployed hence the errors. Do i need any other configuration to instruct Eclipse to deploy all dependencies as well?

Note that if i deploy the war file manually it works. It just doesnt work if i deploy it using the ‘Run on Server’ option in eclipse.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:49:30+00:00Added an answer on June 3, 2026 at 6:49 pm

    I assume that you have a WEB-INF folder in your project somewhere. Does this have a subfolder named lib that contains all the jars your project depends on?

    If not, you should make sure that they are copied there. You can do this with the maven dependency plugin like this:

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>2.4</version>
    <executions>
        <execution>
            <phase>process-resources</phase>
            <goals>
                <goal>copy-dependencies</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <outputDirectory>${project.basedir}/src/main/webapp/WEB-INF/lib</outputDirectory>
    </configuration>
    

    If the location of you WEB-INF-folder is not the same as above, remember to change it.
    You should also configure the clean plugin to empty this dir when you clean. Otherwise, if you remove dependencies, the jar-files will still be in the lib-folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several Maven projects that each have some common functionality or at least
Across several projects I have some resources (specifically Flyway database migration scripts) that I'd
We have several c# projects, libraries and solutions (a few asp.net applications, a few
I have maven parent project with several child projects. On deploy I want to
I have two projects in eclipse: framework: A general library used in several projects.
I've got an eclipse project with several libraries, each containing a significant number (35-40)
we have several projects in our company with many dependencies among them. we have
I have maven project that consists of several modules. I want to add an
I'm facing a problem with maven build. I have several ejb projects. After maven
I have following Maven projects set up: PM-Core PM-Web (with a dependency to PM-Core)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.