wood burning stoves 2.0*
The moose likes Java in General and the fly likes Eclipse dynamic web project 'class not found' error accessing classes in secondary 'common' project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Eclipse dynamic web project Watch "Eclipse dynamic web project New topic
Author

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

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
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
 
Consider Paul's rocket mass heater.
 
subject: Eclipse dynamic web project 'class not found' error accessing classes in secondary 'common' project
 
Similar Threads
Problem with database timeout using Hibernate
Struts Validation in Spring Context
getHibernateTemplate redux
Spring DAO and applicationConfig
HTTP Status 404 - Servlet action is not available