• 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Eclipse WTP is driving me nuts :)

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Settings :
- Eclipse Europa JEE 3.3.1
- JDK 6
- Tomcat 6.0

In my workspace I have 2 projects :
- a simple java project with my domain objects and my services.
- a WTP web project with my web presentation layer.

My web project has an eclipse dependency to my pojo project.
I added my web project to the WTP tomcat 6.0 server settings so I can start and stop my server from Eclipse.

As long as I don't refer to any pojo in my pojo project everything works well.
But as soon as I try to use a class from my pojo project in my web project, even if I have no classpath problem while editing my webView class, I get a ClassNotFound exception when deployed in tomcat.

I tried :
- MyWebProject -> properties -> J2EE Module dependencies -> select myPojo project => doesn't work
- MyWebProject -> properties -> project references -> select myPojo project => doesn't work either.

did anybody outhere have the same problem as I did ?

thanks in advance because I'm sticked.
 
Saloon Keeper
Posts: 28820
212
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat doesn't know anything about your Eclipse settings. If you want to include parts of one project inside another, you still have to install them into the web application you're building in the exact same way you would if you didn't have Eclipse at all.
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic