I am currently working on a Java EE project.
I have successfully developed a web service and deployed it under the build-in Apache server of Eclipse, for test purpose.
I have now split my project into 2 projects : A master one and a dependency one (let’s say “Utils”).
When developing, eclipse doesn’t complain about compilation problems, since I have added the “Utils” project as a dependency in my “build path” setup.
However, when launching Tomcat (as a embedded server), it complains about not finding the classes of “Utils” project.
I was expecting eclipse to copy the “Utils/bin” into WebContent/WEb-INF/classes, but it does not. How do I automate that ? So that “Utils/bin” gets deployed into the WebFolder whenever a change occurs ?
FYI, I do not use Maven yet (but I plan to).
Thanks in advance for your help,
Kind regards,
Raphael
You can do this by adding the Utils project as a module to your ‘Master’ project. I assume the master project is a web or ear application. Right click on the project -> properties -> Java EE module Dependencies. Add the Utils project to it. Eclipse will include the Utils project in the deployment.