5 Replies Latest reply on Apr 8, 2009 7:32 AM by Ilya Shaikovsky

    Getting started with RichFaces

    Alex Cougarman Apprentice

      Hi, all. I'm pulling my hair out trying to get the first example working from here in Eclipse: http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html_single/index.html

      I create a JSF project in Eclipse, then modify everything as indicated under Section 3.2. I've copied the 3 RichFaces JAR files into the lib folder and changed the configuration files.

      Then I right-click on the JSP page and say Run As > Run On Server. It brings up an error page. I've even renamed the file to index.jsf to no avail.

      HTTP Status 404 - /sched/index.jsf
      
      --------------------------------------------------------------------------------
      
      type Status report
      
      message /sched/index.jsf
      
      description The requested resource (/sched/index.jsf) is not available.
      
      
      --------------------------------------------------------------------------------
      
      JBossWeb/2.0.1.GA


      What am I doing wrong? Help please!!!!

        • 1. Re: Getting started with RichFaces
          Nick Belaevski Master

          Hello,

          Are there any error messages seen in server log?

          • 2. Re: Getting started with RichFaces
            Alex Cougarman Apprentice

            Thanks, nbelaevski. In the project's workspace\.metadata\.log file, there's the following exceptions multiple times:

            !ENTRY org.eclipse.jdt.core 4 4 2009-04-06 16:36:01.995
            !MESSAGE Invalid ZIP archive: WebContent/index.jsp [in sched]
            !STACK 1
            org.eclipse.core.runtime.CoreException: I/O exception
             at org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(JavaModelManager.java:2209)
             at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getJar(JarPackageFragmentRoot.java:152)
             at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:78)
             at org.eclipse.jdt.internal.core.JavaProjectElementInfo.initializePackageNames(JavaProjectElementInfo.java:251)
             at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:224)
             at org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:288)
             at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2197)
             at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2207)
             at org.eclipse.jdt.internal.core.JavaProject.findType(JavaProject.java:1230)
             at org.eclipse.jdt.internal.core.JavaProject.findType(JavaProject.java:1137)
             at org.eclipse.jdt.internal.core.manipulation.JavaElementPropertyTester.test(JavaElementPropertyTester.java:155)
             at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
             at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:91)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:150)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:53)
             at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:287)
             at org.eclipse.debug.ui.actions.ContextualLaunchAction.isApplicable(ContextualLaunchAction.java:287)
             at org.eclipse.debug.ui.actions.ContextualLaunchAction.fillMenu(ContextualLaunchAction.java:217)
             at org.eclipse.debug.ui.actions.ContextualLaunchAction$1.menuShown(ContextualLaunchAction.java:136)
             at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:235)
             at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
             at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
             at org.eclipse.jface.action.ActionContributionItem.copyMenu(ActionContributionItem.java:1267)
             at org.eclipse.jface.action.ActionContributionItem.handleShowProxy(ActionContributionItem.java:1247)
             at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:1236)
             at org.eclipse.jface.action.ActionContributionItem$8.handleEvent(ActionContributionItem.java:1209)
             at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
             at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4111)
             at org.eclipse.swt.widgets.Control.windowProc(Control.java:3815)
             at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
             at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
             at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
             at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
             at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
             at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:250)
             at org.eclipse.swt.widgets.Display.runPopups(Display.java:3849)
             at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3416)
             at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
             at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
             at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
             at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
             at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
             at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
             at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
             at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
             at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
             at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
             at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
             at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
             at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
             at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
             at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
            Caused by: java.util.zip.ZipException: error in opening zip file
             at java.util.zip.ZipFile.open(Native Method)
             at java.util.zip.ZipFile.<init>(Unknown Source)
             at java.util.zip.ZipFile.<init>(Unknown Source)
             at org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(JavaModelManager.java:2203)
             ... 68 more
            !SUBENTRY 1 org.eclipse.jdt.core 4 -1 2009-04-06 16:36:01.995
            !MESSAGE I/O exception
            !STACK 0
            java.util.zip.ZipException: error in opening zip file
             at java.util.zip.ZipFile.open(Native Method)
             at java.util.zip.ZipFile.<init>(Unknown Source)
             at java.util.zip.ZipFile.<init>(Unknown Source)
             at org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(JavaModelManager.java:2203)
             at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getJar(JarPackageFragmentRoot.java:152)
             at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:78)
             at org.eclipse.jdt.internal.core.JavaProjectElementInfo.initializePackageNames(JavaProjectElementInfo.java:251)
             at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:224)
             at org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:288)
             at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2197)
             at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2207)
             at org.eclipse.jdt.internal.core.JavaProject.findType(JavaProject.java:1230)
             at org.eclipse.jdt.internal.core.JavaProject.findType(JavaProject.java:1137)
             at org.eclipse.jdt.internal.core.manipulation.JavaElementPropertyTester.test(JavaElementPropertyTester.java:155)
             at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
             at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:91)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:150)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72)
             at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
             at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:53)
             at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:287)
             at org.eclipse.debug.ui.actions.ContextualLaunchAction.isApplicable(ContextualLaunchAction.java:287)
             at org.eclipse.debug.ui.actions.ContextualLaunchAction.fillMenu(ContextualLaunchAction.java:217)
             at org.eclipse.debug.ui.actions.ContextualLaunchAction$1.menuShown(ContextualLaunchAction.java:136)
             at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:235)
             at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
             at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
             at org.eclipse.jface.action.ActionContributionItem.copyMenu(ActionContributionItem.java:1267)
             at org.eclipse.jface.action.ActionContributionItem.handleShowProxy(ActionContributionItem.java:1247)
             at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:1236)
             at org.eclipse.jface.action.ActionContributionItem$8.handleEvent(ActionContributionItem.java:1209)
             at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
             at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4111)
             at org.eclipse.swt.widgets.Control.windowProc(Control.java:3815)
             at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
             at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
             at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
             at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
             at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
             at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:250)
             at org.eclipse.swt.widgets.Display.runPopups(Display.java:3849)
             at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3416)
             at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
             at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
             at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
             at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
             at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
             at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
             at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
             at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
             at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
             at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
             at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
             at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
             at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
             at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
             at org.eclipse.equinox.launcher.Main.run(Main.java:1236)


            • 3. Re: Getting started with RichFaces
              Nick Belaevski Master

              I see:

              !MESSAGE Invalid ZIP archive: WebContent/index.jsp [in sched]
              , so looks like IDE treats you file as web application distribution archive. I do not use "run on server" feature, just add project to the server and then start the server. Consult Eclipse documentation for more.

              • 4. Re: Getting started with RichFaces
                Alex Cougarman Apprentice

                It's also giving this error when the server is coming up:

                2009-04-07 09:59:43,794 WARN [javax.enterprise.resource.webcontainer.jsf.config] Unable to process deployment descriptor for context '/sched'


                The project is called "sched". I searched on the error and it said that something's missing or wrong in the web.xml or faces-config.xml files describing the index.jsp page. Does that page need to be described in either of those files?

                Thanks.

                • 5. Re: Getting started with RichFaces
                  Ilya Shaikovsky Master

                  as Nick told you - just concrete IDE deployment problem not influenced by RF anyhow..