• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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
 
Something about .... going for a swim. With this tiny ad ...
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic