java - Glassfish EAR deployment time exception -


i trying deploy ear glassfish uses jsf , war file inside ear have faces-config.xml ie under web-inf. when try deploy glassfish server getting below exception:

java.lang.illegalstateexception: containerbase.addchild: start org.apache.catalina.lifecycleexception: java.lang.runtimeexception:  com.sun.faces.config.configurationexception:  java.util.concurrent.executionexception:  com.sun.faces.config.configurationexception:  unable parse document 'jndi:/server/web-inf/faces-config.xml': null 

i not sure problem, eclipse didn't gave me error while writing faces-config.xml, glassfish giving above error. , yes, have faces-config.xml inside web-inf folder.

here sample of faces-config.xml file:

<?xml version='1.0' encoding='utf-8'?>  <faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" version="2.0"> <!-- there other elements here --> </faces-config> 

i cannot post whole xml file since huge , fyi, trying deploy duke's book store oracle sample java ee app, stuck error. tried searching in google, didn't useful result. can kindly me? if needed can provide more information.

my faces-config.xml can found here: http://temp-share.com/show/gfhkbrxsy

there wrong in faces-config.xml.
maybe missing > or similar.

you'll have post or link file provide more information.

update:

as have linked actual faces-config.xml can see beginning of file not equal 1 you've posted.

in file have:

<?xml version='1.0' encoding='utf-8'?> <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee/"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"     version="2.0"> 

the error in second line...the xml namespace wrong.

you have change to:

<?xml   version='1.0' encoding='utf-8'?> <faces-config version="2.0"     xmlns="http://java.sun.com/xml/ns/javaee"      xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"      xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"> 

actually same you've posted in question :)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -