index page rendered as xml instead of html [duplicate]

≡放荡痞女 提交于 2019-12-13 04:38:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!