Eclipse dynamic web project 'class not found' error accessing classes in secondary 'common' project
Kevin P Smith
posted 4 years ago
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:
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