索引页面呈现为xml而不是html [英] index page rendered as xml instead of html
问题描述
我有一个web应用程序,我已经在本地进行了测试,并且在Glassfish 3.1.2上部署到生产服务器(手动无netbeanside)时工作正常,但它已成功部署,但运行我的url时看到xhtml内容而不是应用程序登录页面。我可能会错过什么。如果我已经尝试重新部署战争文件没有运气。
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
而不是实际的html标记
instead of the actual html markup
推荐答案
我发现问题是我的netbeans IDE使用的是GlassFish4,生产是3.1.2,在生产版上安装和配置v4后,一切正常。
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.
这篇关于索引页面呈现为xml而不是html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!