html - CSS not found for web app using Apache Tomcat 7.0 -


i have web app have been developing within eclipse ide , have been testing using tomcat sever, within eclipse. throughout development i've had no issues css files being inaccessible.

now i'm @ point i'm using standalone instance of apache tomcat , css files not found? when try access them via url 404 error produced. location of css file within project appears make no difference; have tried in css/ folder , in root folder of unfiltered pages.

i don't believe issue link i'm referring files with.

css & page location

-- opportunitytracking (unpacked .war)    -- webapps       -- login.xhtml       -- bootstrap.css 

css reference in login.xhtml

<link rel="stylesheet" type="text/css" href="/opportunitytracking/bootstrap.css" /> 

web.xml

<display-name>opportunitytracking</display-name> ... <mime-mapping>     <extension>css</extension>     <mime-type>text/css</mime-type> </mime-mapping> 

this project set maven project however, javax.faces jar added dependency outside of maven. originally, javax.faces-2.1.26.jar included referenced library in eclipse project.

when faced unrelated issue, removed reference , included javax.faces-2.2.13.jar maven dependency. in doing this, appeared resolve original issue of css , images not being found.

update: suffered issue again , explored issue further. creating 'resources' folder in 'webapps' folder, , referencing css files here, found access issues resolved


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -