Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring app won't deploy because ApplicationContext class is not found  RSS feed

 
P Remec
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to deploy Spring app, packaged as EAR, on Wildfly 10 server, but there's a 'ClassNotFoundException' thrown:



I assume there's a problem with packaging / class loading or there's some configuration file missing, but I can't find out what's wrong since I don't have a lot of experience with deployment configuration.

Anyway, my EAR structure looks like that:



What am I missing?

Any help would be much appreciated. Let me know if some additional info is required.

EDIT: Tried to deploy it on Glassfish 4.1.1 and it worked without any problems, so it must be some Wildfly specific thing.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you confirm that your manifest.mf file mentions the spring jars?
 
P Remec
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Can you confirm that your manifest.mf file mentions the spring jars?


Manifest.mf file of war mentions the spring jars. Is that ok? Maybe I don't understang the whole packaging thing...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!