问题
i have a web app which i have tested locally and works fine, on deployment to production server (manually without netbeansIDE) on Glassfish 3.1.2 , it deploys successfully but on running my url i see the xhtml content instead of the applications login page. What could i be missing. If i have tried re-deploying the war file with no luck.
ui:composition xmlns:ui='http://xmlns.jcp.org/jsf/facelets' template='/WEB-INF/templates/temp.xhtml' ui:define name='dynamicContent' ui:composition
instead of the actual html markup
回答1:
I found out the problem was My netbeans IDE was using GlassFish4, and production was 3.1.2, after installation and configuration of v4 on Production everything was ok.
来源:https://stackoverflow.com/questions/17701203/index-page-rendered-as-xml-instead-of-html