I have an eclipse dynamic web project in the following folder
c:\documents and settings\me\My Documents\eclipse\workspace\myProject
The project is a web project using struts and jsp files and i would like it to refer to source files that are in the following locations
Java source files - c:\myfiles\app\java\com
Libraries - c:\myfiles\app\java\lib
Web resources - c:\myfiles\app\java\webapp
To achieve the above i created a linked folder that links to c:\myfiles\app.
I then changed the build path to include c:\myfiles\app\java\com as the source folder (with lib & webapp excluded). I also created a user library that points to all jar files in c:\myfiles\app\javalib and added the user library in the project.
I set up the "Deployment Assembly" to point to the c:\myfiles\app\webapp so now the deployment assembly setup looks like this
Deploy Path Source
remote.trunc is the linked folder that points to c:\myfiles\app.
The WebContent folder is the web folder configured by eclipse. My project does not use this as the web resources i want to use are in /remote.trunc/app/java/webapp
I run the application via Eclipse's tomcat and i can get to the index.jsp file that is at the top level of webapp folder. This means that the remote web resources folder is also deployed. But when i click on any link i get the following error
The requested resource (/myProject/findUser) is not available.
The difference between the index.jsp is that the index.jsp is called directly and does not go via any struts. Any of the links are struts actions. My guess is that something is not being deployed correctly in the libraries etc.
I had a look at the eclipse deployment folder in eclipse.metadata.plugins\org.eclipse.wst.server.core\tmp0 and everything appears to be in place.