• 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

Eclipse dynamic web project 'class not found' error accessing classes in secondary 'common' project

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have Dynamic Web Project (web-app) and standard java Project (common-app)

What I was hoping to do, I get web project to use the standard project as a location for all common classes, so if I have multiple web-apps they can all access classes from this common location

I have set-up a the Projects link in ‘Configure Build Path > Projects’ in my web-app to use the common-app, and this works as development; but as soon as I deploy I get a ‘Class not found’ on any class from the common-app which is used in the web-app.

The problems are thrown on sever start-up in my application-context.xml where I have things like:

Or

How can I set up my web-app so it uses the common-app, as I don’t particularly want to replicate things like my ‘model’ package if I can avoid it

Cheers in advance
 
reply
    Bookmark Topic Watch Topic
  • New Topic