[forge-issues] [JBoss JIRA] (FORGE-522) faces setup ERROR: null without explanation

George Gastaldi (JIRA) jira-events at lists.jboss.org
Tue Apr 3 13:20:47 EDT 2012


    [ https://issues.jboss.org/browse/FORGE-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681386#comment-12681386 ] 

George Gastaldi commented on FORGE-522:
---------------------------------------

This test case should reflect this scenario:

{code:java}

package org.jboss.forge.spec.javaee.jsf;

import junit.framework.Assert;

import org.jboss.forge.project.Project;
import org.jboss.forge.test.AbstractShellTest;
import org.junit.Test;

public class FacesPluginTest extends AbstractShellTest
{

   @Test
   public void testFacesConfig() throws Exception
   {
      Project project = initializeJavaProject();
      queueInputLines("Y", "Y", "Y");
      getShell().execute("faces setup");
      Assert.assertTrue(project.getProjectRoot().getChild("src/main/webapp/WEB-INF/web.xml").exists());
   }

}
{code}
                
> faces setup ERROR: null without explanation
> -------------------------------------------
>
>                 Key: FORGE-522
>                 URL: https://issues.jboss.org/browse/FORGE-522
>             Project: Forge
>          Issue Type: Bug
>          Components: Java EE APIs
>    Affects Versions: 1.0.1.Final
>         Environment: Ubuntu 11.10 64-bit, JBoss AS 7.1.1
>            Reporter: Hendy Irawan
>
> Faces setup not working without any error message :
> {code}
> [dsembed] dsembed $ faces setup
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
>  ? Do you also want to install the Faces servlet and mapping? [y/N] y
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
> ***ERROR*** [faces setup] null
> {code}
> The project to reproduce is here: https://github.com/soluvas/dsembed/zipball/faces-setup-bug
> The problem is...... I exited Forge then restarted it then I try 'faces setup' again and now it works:
> {code}
>                     faces setup
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
>  ? Do you also want to install the Faces servlet and mapping? [y/N] y
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
> Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
> ***SUCCESS*** JavaServer Faces is installed.
> Wrote /home/ceefour/git/dsembed/src/main/webapp/WEB-INF/web.xml
> {code}
> So what was it..?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list