0 Replies Latest reply on Sep 15, 2011 6:06 PM by Michael Dress

    Hello World! (well, actually "Hello from Facelets")

    Michael Dress Newbie

      Hi folks,

       

      I asked this question the other day and it got 42 views with no replies. Maybe I did not ask it right because this seems so basic I feel I must apologize for such a rudimentary task.

       

      I am getting a build error just by adding the four RichFaces 4 jars to the Netbeans 7 Faces default faces project, which give you the "Hello from Facelets" page and without adding any of my own code.

       

      In-place deployment at D:\dev\java\learn\WebApplication36\build\web

      Initializing...

      deploy?DEFAULT=D:\dev\java\learn\WebApplication36\build\web&name=WebApplication36&force=true failed on GlassFish Server 3.x

      Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:

        Source Document: jar:file:/D:/dev/java/learn/WebApplication36/build/web/WEB-INF/lib/richfaces-core-impl-4.0.0.Final.jar!/META-INF/faces-config.xml

        Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl': java.lang.reflect.InvocationTargetException. Please see server.log for more details.

      D:\dev\java\learn\WebApplication36\nbproject\build-impl.xml:730:

      The module has not been deployed.

                at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)

                at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)

                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

                at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:601)

                at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

                at org.apache.tools.ant.Task.perform(Task.java:348)

                at org.apache.tools.ant.Target.execute(Target.java:390)

                at org.apache.tools.ant.Target.performTasks(Target.java:411)

                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

                at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

                at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

                at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

                at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)

                at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)

                at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

      BUILD FAILED (total time: 3 seconds)

       

      If I click the link for line 730 it takes me to the build-impl.xml file with line:

       

              <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>

       

       

      Again - this is reproducible by just adding the RichFaces 4 jar files to the default project without adding any custom source code. Can someone please try this and determine the solution!.

       

      Thanks!

       

      Mike