Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: ClassNotFoundException:org.springframework.web.con text.ContextLoaderListener

  1. #11
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    Hi

    Much has changed since March Now all works when you use M2E (1.0.100.201108040103) + M2E-WTP (0.13.1.20110728-1800)

    See:


    Almost everything works out of the box (the only thing left - for me - is overlay filtering)

    regards
    Grzegorz Grzybek

  2. #12
    Join Date
    Oct 2010
    Posts
    2

    Cool

    For what it's worth, running a spring app from within eclipse can be a very frustrating experience, especially when insisting on the latest and greatest + maven. I found that the Maven dependencies are not included in WEB-INF/lib unless the project is configured as shown in the attached screenie. May it save you precious development time! Happy Hacking!!!

    Screen shot 2011-09-09 at 11.56.58.jpg
    Attached Images Attached Images
    Last edited by npg; Sep 9th, 2011 at 05:59 AM.

  3. #13
    Join Date
    Nov 2010
    Posts
    2

    Default

    If you correctly created your project from a Maven pom.xml file, then you should be able to add the Maven Dependencies this way:
    Deployment Assembly / Add... / Java Build Path Entries / (select Maven Dependencies)

  4. #14
    Join Date
    Feb 2012
    Posts
    2

    Default

    Having the same problem in a project set on flash builder. How can I add Maven support to solve this problem?

    class org.springframework.web.context.ContextLoaderListe ner not found.

    Thanks

    Paolo

  5. #15
    Join Date
    Jul 2010
    Posts
    1

    Default

    Hi ,
    You can add maven dependency and for deployment using maven add the dependency in pom.xml

  6. #16
    Join Date
    Mar 2013
    Posts
    1

    Default

    Quote Originally Posted by Basu View Post
    When im trying to integrate JSF and SPring 2.5.0 RC1 im getting the below error.
    SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListe ner
    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe ner
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1386)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1232)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3743)
    التسويق
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:740)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:831)
    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:720)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:490)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1150)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1022)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:448)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)

    Wht could be the prob for the following? Any help is appreciated....
    Thanks in advance

    Basu
    As I mention put spring.jar that come with the dist in the coresponding spring version.

  7. #17
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    @remas2010

    Can you look at the application in Tomcat's "webapp" directory? look into WEB-INF/lib - is the spring.jar deployed there? What are the other libs?

    regards
    Grzegorz Grzybek

  8. #18
    Join Date
    Apr 2013
    Posts
    1

    Default Thanks mcgin!!

    It's worked!
    Quote Originally Posted by mcgin View Post
    I fixed the error with Maven by going to project properties -> Deployment Assembley and adding the Maven Dependency Build Path entry

  9. #19

    Default

    Quote Originally Posted by twkim View Post
    Hi guys

    I'm newbie and study springframework webservice(with Apache CXF)

    I have some questions about 'ContextLoaderListener '

    in web.xml

    Code:
    <context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>classpath:beans.xml</param-value>
    	</context-param>
    
    	<listener>
    		<listener-class>
    			org.springframework.web.context.ContextLoaderListener
    		</listener-class>
    	</listener>
    then, these ERRORs are shown
    Code:
    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:1358)
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3773)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    شركة تسويق

    about tutorial..
    cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html

    help me plz guys..TT
    any one help this

  10. #20
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    429

    Default

    Check whether spring-*.jars are present in WEB-INF/lib in Tomcat's webapp/application_name directory. I'm almost sure their not there.

    regards
    Grzegorz Grzybek

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •