Skip to content

Commit 72faafe

Browse files
committed
MyFaces doesn't work with an empty faces-config.xml
1 parent 87eddc8 commit 72faafe

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎config-prettyfaces-tests/src/test/java/org/ocpsoft/rewrite/prettyfaces/PrettyFacesTestBase.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public abstract class PrettyFacesTestBase extends RewriteTest
3838
public static WebArchive getDeployment()
3939
{
4040
return RewriteTest.getDeploymentWithCDI()
41-
.addAsWebInfResource(EmptyAsset.INSTANCE, "faces-config.xml")
41+
.addAsWebInfResource("faces-config.xml")
4242
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
4343
.addAsLibraries(getPrettyFacesArchive())
4444
.addAsLibraries(getRewriteFacesArchive())
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" version="2.0">
4+
</faces-config>

0 commit comments

Comments
 (0)