Hi all,
Sorry if this is in the wrong forum - I'm not sure what this should fall under. I have a Maven-based WTP web app using
struts 2 / Sitemesh / EXT-JS.
When I run the project using a
Tomcat 6 embedded server in Eclipse (3.4) and inspect using Firebug, I am being told that various decorator-related css files and EXT-JS JavaScript could not be found (404). I can also see that files are not loaded as my Sitemesh decorator is not applied and the EXT-JS Javascript is not executed (see below). In fact, my Struts 2 internationalisation is not being applied from my package_<country_code>.properties files, so I suspect something is very wrong with the project structure:
I have triple-checked the URLs - they appear fine to me. The web app is deployed in it's entirety on to the Eclipse-based local Tomcat server and I can see all the files including the 'missing' ones within the <ContextPath>/static/css and <ContextPath>/static/ext directories. I have also tried deleting and adding a new Tomcat server in Eclipse.
Here is my project structure.
This is what my project looked like prior to the EXT-JS - in fact, I had some EXT-JS functioning so something has broken since:
Tomcat server context.xml:
Tomcat server server.xml:
extTest.jsp:
Does anyone have any ideas or pointers at all? I noticed I had a context element with a docRoot parameter in one of the deployment descriptors once but now it has gone...