• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41502
881
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
reply
    Bookmark Topic Watch Topic
  • New Topic