Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.springframework.web.context.ContextLoaderListener not found / IntelliJ and Glassfish

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

In the past, I have developed Spring apps using IntelliJ and Glassfish, yet I still am rather new to this. I am currently running up against an error that is driving me nuts a bit.

When attempting to run an app in Glassfish via the IntelliJ interface, I receive the following error:

[#|2009-11-02T18:14:54.322-0500|SEVERE|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=11;_ThreadName=Thread-1;|WebModule[/util/UserManager]PWC1257: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2009)

I have confirmed that the spring.jar is in fact ending up in the .war filed generated from the build.

My web.xml file contains the following listener configuration:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

I am not sure how to proceed, as I have confirmed that the spring.jar is in fact ending up in the compiled .war file, located here: out\Web.war\WEB-INF\lib\

Attached is the list of lib files.

Any help or troubleshooting suggestions would be greatly appreciated.




lib.jpg
[Thumbnail for lib.jpg]
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, not a GlassFish user, but does GlassFish have a working directory where it expands the WAR file? Could it be a mismatch between the deployed (exploded) WAR and the WAR you are putting into the directory for deployment? Just a guess, but if you put the new WAR in, then go and delete the application's working directory structure it might solve the problem. Also, I think GlassFish has a manual deployment page where you can redeploy an app from a web interface. Try using that and/or restarting the application or the entire GlassFish server.
 
J Krewson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I appreciate the input. I believe my problem(s) stem from the fact that I don't understand why Glassfish needs various jars that my app has already bundled. It seems, at first try, that using the IDE helper simply allows one to create a config for app deployment and doesn't check to make sure Glassfish has the .jars needed to deploy the app.

Thanks again
 
Lookout! Runaway whale! Hide behind this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic