Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Deploying remote web resources
Deploying remote web resources [message #684268] Wed, 15 June 2011 06:10 Go to previous message
ziggy  is currently offline ziggy
Messages: 11
Registered: February 2010
Junior Member
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.

Now the problem i am having is with the web resources folder (c:\myfiles\app\webapp) which includes all the jsp, javascript, css etc. I had a look around and found that it was possible to link to the web content folder via Properties>Deployment Assembly.

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
/               /WebContent
/WEB-INF/classes    /src
/WEB-INF/classes    /remote.trunc/app/java
/               /remote.trunc/app/java/webapp


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.

Any ideas?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Run an Applet from Dynamic Web Project
Next Topic:Publish working sporadically
Goto Forum:
  


Current Time: Thu May 23 08:24:22 EDT 2013

Powered by FUDForum. Page generated in 0.01925 seconds