• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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: 28323
210
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.
 
Slime does not pay. Always keep your tiny ad dry.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic