I am developing a Java EE project in Eclipse, and deploying it on Apache Tomcat. (Inside Eclipse, I right-click the project, and then “Run as” -> “Run on Server”.)
For some reason however (my guess is Eclipse misconfiguration), the browser cannot locate any JavaScript or CSS files. For instance, the web page has this code:
<link rel="stylesheet" style="text/css" type="text/css" href="generated-res/css/main.css">
<script src="generated-res/scripts/all.js" type="text/javascript" ></script>
Clicking them in Firefox source view, however, just opens up a blank page. My Eclipse project has a WebContent directory, which contains, among other things, generated-res directory. I uploaded an image (about Eclipse Web Deployment Assembly) on http://imagepaste.nullnetwork.net/viewimage.php?id=4185 . Can anyone spot what is causing this problem?
I have Eclipse “Indigo Service Release 2,” which contains Apache Tomcat v6.0.
Much oblige!
This seems to be a molgenis specific issue. In the molgenis.properties file you should add the service that is responsible for delivering the files (this is done in a seperate service to allow for application level security rules). The service you need is ‘core.servlets.FileService’
In your molgenis.properties a typical set of services would look as follows:
This includes:
– the user interface
– services for Ajax based lookups
– captcha service for new registrations
– tmp files
– the files in WebContent