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
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:
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.
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.
Joined: Oct 10, 2007
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.