Tuesday, May 27, 2014

weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

Eclipse Maven and Weblogic:
As I tried to deploy my web app into a remote Weblogic server, I got this kind of error:
weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

My app just ran fine the other day and I just made one single change on a file related to spring bean. And this error made me think that the root cause of the problem was the change I had just made. However, it turned out that the Maven dependencies were not included in the project class path. This is an Eclipse defect, I guess! Sometime it does include, other time it doesn't

Solution: to fix it error:  Right click on the project > Properties > Deployment Assembly > Add > Java Build Path Entries > Maven Dependencies

Monday, May 19, 2014

Weblogic Install: Files was unexpected at this time!

As trying to install the newest Weblogic version 12g 1.20 on my Windows machine, I ran into the weird error that I haven't seen before. And it's called "Files was unexpected at this time"!

It took me like to 2 days to figure out! The root cause of this error is that the system variable PATH contains double quote such as "C:\Program Files(x86)\someprogram".

Solution: just remove the double quote!

My guess is that when I tried to execute configure.cmd, it tried to set up my local machine environment for Weblogic installation/launching. In doing so, it had to parse and add elements to the system variable PATH. Since my PATH contained double quote, it failed to parse it. And that's the reason it threw the error: "Files was unexpected at this time"!

Hope it save you some time when running to this issue!