Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » JSF & Eclipse project
JSF & Eclipse project [message #474288] Thu, 07 June 2007 17:55 Go to next message
Eclipse User
Originally posted by: killahyo.gmail.com

Hello everybody! I'm trying to write a web application using JSF (my first
time using JSF) and I'm currently unable to configure the project in
Eclipse.

When I select JavaServer Faces in the "Project Facets" dialog I get an
error and taking a look at the project's log file I can see this:

!SESSION 2007-06-07 18:50:11.958
-----------------------------------------------
eclipse.buildId=M20070212-1330
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ca_ES
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.wst.common.project.facet.core 2 0 2007-06-07
18:51:56.228
!MESSAGE The ">", ">=", "<", and "<=" notation in version expressions has
been deprecated. It used in plugin org.eclipse.wtp.jsf.core. Note that the
angle brackets are represented via "&lt;" and "&gt;" in the plugin.xml
files. The functionality has been replaced with range notation. For
instance "[X-Y)" means all versions greater or equals to X and less than
Y. Open ranges such as "(X" or "Y]" are also allowed.

!ENTRY org.eclipse.wtp.jsf.core 1 0 2007-06-07 18:53:04.436
!MESSAGE Could not load JSF Library Registry; creating new registry
!STACK 0
java.io.FileNotFoundException:
C:\PresentacioExemple\.metadata\.plugins\org.eclipse.wtp.jsf .core\JSFLibraryRegistry.xml
(El sistema no puede hallar la ruta especificada)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createF ileInputStream(URIConverterImpl.java:469)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createI nputStream(URIConverterImpl.java:431)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:897)
at
org.eclipse.wtp.jsf.core.internal.JSFCorePlugin.loadJSFLibra ryRegistry(JSFCorePlugin.java:126)
at
org.eclipse.wtp.jsf.core.internal.JSFCorePlugin.start(JSFCor ePlugin.java:83)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:342)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:88)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:334)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:347)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:278)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.wst.common.project.facet.core.internal.FacetCore Plugin.instantiate(FacetCorePlugin.java:139)
at
org.eclipse.wst.common.project.facet.core.internal.ActionDef inition.createConfigObject(ActionDefinition.java:126)
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetVersion.createActionConfig(ProjectFacetVersion.java:277)
at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelF acetWizard.getConfig(NewProjectDataModelFacetWizard.java:475 )
at
org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d$WizardContext.getConfig(AddRemoveFacetsWizard.java:569)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.createAction(FacetsSelectionPanel.java:655)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.updateValidationDisplay(FacetsSelectionPanel.java: 1076)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.checkStateChanged(FacetsSelectionPanel.java:1043)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.access$15(FacetsSelectionPanel.java:978)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$8.checkStateChanged(FacetsSelectionPanel.java:379)
at
org.eclipse.jface.viewers.CheckboxTreeViewer$1.run(CheckboxT reeViewer.java:133)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.CheckboxTreeViewer.fireCheckStateC hanged(CheckboxTreeViewer.java:131)
at
org.eclipse.jface.viewers.CheckboxTreeViewer.handleSelect(Ch eckboxTreeViewer.java:267)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1154)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:213)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:207)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:374)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.jface 4 2 2007-06-07 18:53:04.446
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.IllegalArgumentException: Project facet has not been defined.
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetsManagerImpl.getProjectFacet(ProjectFacetsManagerImpl.jav a:195)
at
org.eclipse.wst.common.project.facet.core.ProjectFacetsManag er.getProjectFacet(ProjectFacetsManager.java:81)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.getValidPropertyDescriptors(FacetInstallDat aModelProvider.java:76)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:56)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.frameworks.datamodel.AbstractDataMode lProvider.setProperty(AbstractDataModelProvider.java:234)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:65)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.componentcore.datamodel.FacetDataMode lConfigAdapter.setVersion(FacetDataModelConfigAdapter.java:4 0)
at
org.eclipse.wst.common.project.facet.core.internal.ActionDef inition.createConfigObject(ActionDefinition.java:146)
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetVersion.createActionConfig(ProjectFacetVersion.java:277)
at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelF acetWizard.getConfig(NewProjectDataModelFacetWizard.java:475 )
at
org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d$WizardContext.getConfig(AddRemoveFacetsWizard.java:569)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.createAction(FacetsSelectionPanel.java:655)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.updateValidationDisplay(FacetsSelectionPanel.java: 1076)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.checkStateChanged(FacetsSelectionPanel.java:1043)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.access$15(FacetsSelectionPanel.java:978)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$8.checkStateChanged(FacetsSelectionPanel.java:379)
at
org.eclipse.jface.viewers.CheckboxTreeViewer$1.run(CheckboxT reeViewer.java:133)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.CheckboxTreeViewer.fireCheckStateC hanged(CheckboxTreeViewer.java:131)
at
org.eclipse.jface.viewers.CheckboxTreeViewer.handleSelect(Ch eckboxTreeViewer.java:267)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1154)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:213)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:207)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:374)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2007-06-07 19:12:27.659
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2007-06-07 19:12:27.719
!MESSAGE Project facet has not been defined.
!STACK 0
java.lang.IllegalArgumentException: Project facet has not been defined.
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetsManagerImpl.getProjectFacet(ProjectFacetsManagerImpl.jav a:195)
at
org.eclipse.wst.common.project.facet.core.ProjectFacetsManag er.getProjectFacet(ProjectFacetsManager.java:81)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.getValidPropertyDescriptors(FacetInstallDat aModelProvider.java:76)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:56)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.frameworks.datamodel.AbstractDataMode lProvider.setProperty(AbstractDataModelProvider.java:234)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:65)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.componentcore.datamodel.FacetDataMode lConfigAdapter.setVersion(FacetDataModelConfigAdapter.java:4 0)
at
org.eclipse.wst.common.project.facet.core.internal.ActionDef inition.createConfigObject(ActionDefinition.java:146)
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetVersion.createActionConfig(ProjectFacetVersion.java:277)
at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelF acetWizard.getConfig(NewProjectDataModelFacetWizard.java:475 )
at
org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d$WizardContext.getConfig(AddRemoveFacetsWizard.java:569)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.createAction(FacetsSelectionPanel.java:655)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.updateValidationDisplay(FacetsSelectionPanel.java: 1076)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.handlePresetSelected(FacetsSelectionPanel.java:164 7)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.access$21(FacetsSelectionPanel.java:1602)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$19.handleEvent(FacetsSelectionPanel.java:1280)
at
org.eclipse.wst.common.project.facet.ui.internal.AbstractDat aModel.notifyListeners(AbstractDataModel.java:54)
at
org.eclipse.wst.common.project.facet.ui.internal.AddRemoveFa cetsDataModel.setSelectedPreset(AddRemoveFacetsDataModel.jav a:84)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$20.widgetSelected(FacetsSelectionPanel.java:1308)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.jface 4 2 2007-06-07 19:12:35.440
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.IllegalArgumentException: Project facet has not been defined.
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetsManagerImpl.getProjectFacet(ProjectFacetsManagerImpl.jav a:195)
at
org.eclipse.wst.common.project.facet.core.ProjectFacetsManag er.getProjectFacet(ProjectFacetsManager.java:81)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.getValidPropertyDescriptors(FacetInstallDat aModelProvider.java:76)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:56)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.frameworks.datamodel.AbstractDataMode lProvider.setProperty(AbstractDataModelProvider.java:234)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:65)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.componentcore.datamodel.FacetDataMode lConfigAdapter.setVersion(FacetDataModelConfigAdapter.java:4 0)
at
org.eclipse.wst.common.project.facet.core.internal.ActionDef inition.createConfigObject(ActionDefinition.java:146)
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetVersion.createActionConfig(ProjectFacetVersion.java:277)
at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelF acetWizard.getConfig(NewProjectDataModelFacetWizard.java:475 )
at
org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d$WizardContext.getConfig(AddRemoveFacetsWizard.java:569)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.createAction(FacetsSelectionPanel.java:655)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.updateValidationDisplay(FacetsSelectionPanel.java: 1076)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.checkStateChanged(FacetsSelectionPanel.java:1043)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.access$15(FacetsSelectionPanel.java:978)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$8.checkStateChanged(FacetsSelectionPanel.java:379)
at
org.eclipse.jface.viewers.CheckboxTreeViewer$1.run(CheckboxT reeViewer.java:133)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.CheckboxTreeViewer.fireCheckStateC hanged(CheckboxTreeViewer.java:131)
at
org.eclipse.jface.viewers.CheckboxTreeViewer.handleSelect(Ch eckboxTreeViewer.java:267)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1154)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:213)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:207)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:374)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2007-06-07 19:12:38.524
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2007-06-07 19:12:38.534
!MESSAGE Project facet has not been defined.
!STACK 0
java.lang.IllegalArgumentException: Project facet has not been defined.
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetsManagerImpl.getProjectFacet(ProjectFacetsManagerImpl.jav a:195)
at
org.eclipse.wst.common.project.facet.core.ProjectFacetsManag er.getProjectFacet(ProjectFacetsManager.java:81)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.getValidPropertyDescriptors(FacetInstallDat aModelProvider.java:76)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:56)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.frameworks.datamodel.AbstractDataMode lProvider.setProperty(AbstractDataModelProvider.java:234)
at
org.eclipse.wst.common.componentcore.datamodel.FacetInstallD ataModelProvider.propertySet(FacetInstallDataModelProvider.j ava:65)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.internalSetProperty(DataModelImpl.java:182)
at
org.eclipse.wst.common.frameworks.internal.datamodel.DataMod elImpl.setProperty(DataModelImpl.java:172)
at
org.eclipse.wst.common.componentcore.datamodel.FacetDataMode lConfigAdapter.setVersion(FacetDataModelConfigAdapter.java:4 0)
at
org.eclipse.wst.common.project.facet.core.internal.ActionDef inition.createConfigObject(ActionDefinition.java:146)
at
org.eclipse.wst.common.project.facet.core.internal.ProjectFa cetVersion.createActionConfig(ProjectFacetVersion.java:277)
at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelF acetWizard.getConfig(NewProjectDataModelFacetWizard.java:475 )
at
org.eclipse.wst.common.project.facet.ui.AddRemoveFacetsWizar d$WizardContext.getConfig(AddRemoveFacetsWizard.java:569)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.createAction(FacetsSelectionPanel.java:655)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.updateValidationDisplay(FacetsSelectionPanel.java: 1076)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.handlePresetSelected(FacetsSelectionPanel.java:164 7)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel.access$21(FacetsSelectionPanel.java:1602)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$19.handleEvent(FacetsSelectionPanel.java:1280)
at
org.eclipse.wst.common.project.facet.ui.internal.AbstractDat aModel.notifyListeners(AbstractDataModel.java:54)
at
org.eclipse.wst.common.project.facet.ui.internal.AddRemoveFa cetsDataModel.setSelectedPreset(AddRemoveFacetsDataModel.jav a:84)
at
org.eclipse.wst.common.project.facet.ui.internal.FacetsSelec tionPanel$20.widgetSelected(FacetsSelectionPanel.java:1308)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

What can I do? please help me.


Thank you very much
Re: JSF & Eclipse project [message #474289 is a reply to message #474288] Thu, 07 June 2007 23:28 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
What version of WTP and JSF tools are you using? Also, are you adding a
new JSF facet to an old project or workspace? If the workspace was
created with a newer version of Eclipse/WTP but you are opening in it an
older version, that may cause such and issue.


--Cam
Re: JSF & Eclipse project [message #474290 is a reply to message #474289] Fri, 08 June 2007 09:26 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

I'm using, Eclipse 3.2, WTP 1.5.4, JSF 1.1.01 and Apache Tomcat 5.5.23

Well, at first I was trying to add a new JSF facet to an old project as
you've said but then I tried to make a brand new project and I get the
same error... I don't know what to do...
Re: JSF & Eclipse project [message #474295 is a reply to message #474290] Fri, 08 June 2007 10:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

It would be very useful to know which combination of versions works fine,
I mean which version of WTP, version of Apache Tomcat, JSF, etc., and how
to install JSF (where to copy its *.jar file, etc.)... like an
installation manual.
Re: JSF & Eclipse project [message #474296 is a reply to message #474290] Fri, 08 June 2007 17:30 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> I'm using, Eclipse 3.2, WTP 1.5.4, JSF 1.1.01 and Apache Tomcat 5.5.23
> you've said but then I tried to make a brand new project and I get the

That combination should be okay. Can you try a new project in a new
*workspace*?


--Cam
Re: JSF & Eclipse project [message #474622 is a reply to message #474296] Fri, 08 June 2007 18:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

I've tried creating a new project in a new workspace and I get the same
errors...

I'll explain you how I create my projects (maybe I'm missing something):
- Once I've launched Eclipse and created a new workspace, I do
File->New->Project then I choose Web->Dynamic Web Project and I hit Next.
As a target runtime I choose Apache Tomcat v5.5 and I specify the path and
the JRE in my case jre1.6.0_01, I think I didn't tell you this in the last
letter...
Well, now I'm in the "Project Facets" dialog, I've got 4 checkboxes, if I
select
JavaServer Faces v1.1 Project, three options are selected:
1) Dynamic Web Module v2.3
2) Java v1.4 (I don't know why this changes automatically)
3) JavaServer Faces v1.1

I hit "Next" again and then "Finish".

It seems that the project I've created is OK, it has all the folders
"WebContent", etc. but the log file is telling me the same as always...
JSFLibraryRegistry.xml is missing...

Another question, when you correctly create the project a faces-config.xml
file is created in "WebContent/web-inf" folder, isn't it? I only have the
web.xml file...

Thanks again Cameron
Re: JSF & Eclipse project [message #474627 is a reply to message #474622] Sat, 09 June 2007 17:46 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

Another thing, if I try to register JSF libraries ("Windows->Preferences"
and in the Preferences dialog "Web and XML->JSF Libraries") before
creating any project, the JSF Librraries option doesn't appear...
Re: JSF & Eclipse project [message #474629 is a reply to message #474627] Sun, 10 June 2007 18:03 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

It's me again, I have another question. JSF *.jar files have to be copied
in Eclipse's plugin directory in order to use them or I have to copy them
to somewhere else?

sorry if I'm asking too much questions but I'm desperate... thanks
Re: JSF & Eclipse project [message #474630 is a reply to message #474629] Sun, 10 June 2007 19:12 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
JSF can be enabled for your project in 2 different ways:
1. provide JSF implementation with your project. It that case all
necessary JSF libraries should be copied to WEB-INF/lib folder of your
project
2. install JSF directly on the web server. Refer to you server's
documentation on that issue.

When you create dynamic web project and add JSF facet to is, you will be
asked which JSF implementation/additional libraries to use. In that dialog
you can select weather JSF implementation will be already installed on
server or will be supplied with the project (with a selection of which
library to use). JSF Tooling will copy necessary jars to WEB-INF/lib
folder itself.
Re: JSF & Eclipse project [message #474631 is a reply to message #474630] Mon, 11 June 2007 15:27 Go to previous messageGo to next message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
I see there are another way to add the JSF lib.
Usually if you look the tutorial of the help file, you may use the add
JSF implements. ( all these can be define on the [Preference]->[web
and xml] -> [jsf librares]
but I find some problem of this way, you can NOT add the apidoc to
the jsf implements lib of this way.

Below is what I do
1. define a new jsf implements lib use the[Java] -> [buid path] ->
[User Lib]. The lib defined under the user lib can be easy add the
api-doc or src.

2. you can add this lib by using [context menu] ->[build path] -[user
lib ] of your project.

3. most important this is you SHOULD check the user lib from the
project properties (alt+enter). In the [j2ee module dependency]
you should choose the user lib that you add. The selected lib will add
to the web-inf/lib folder.


BTW. I hope the JSF implements lib can be add api-doc.
I think this maybe a bug.


On Sun, 10 Jun 2007 19:12:44 +0000 (UTC), dmgloss@mail.ru (Vadim
Dmitriev) wrote:

>JSF can be enabled for your project in 2 different ways:
>1. provide JSF implementation with your project. It that case all
>necessary JSF libraries should be copied to WEB-INF/lib folder of your
>project
>2. install JSF directly on the web server. Refer to you server's
>documentation on that issue.
>
>When you create dynamic web project and add JSF facet to is, you will be
>asked which JSF implementation/additional libraries to use. In that dialog
>you can select weather JSF implementation will be already installed on
>server or will be supplied with the project (with a selection of which
>library to use). JSF Tooling will copy necessary jars to WEB-INF/lib
>folder itself.
Re: JSF & Eclipse project [message #474632 is a reply to message #474631] Mon, 11 June 2007 20:32 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> Below is what I do
> 1. define a new jsf implements lib use the[Java] -> [buid path] ->
> [User Lib]. The lib defined under the user lib can be easy add the
> api-doc or src.

This mechanism is new in WTP2.0. Starting with the 2.0 release JSF
libraries are now full classpath containers. This was not the case in
1.5.x due to a bug that has since be resolved with J2EE module
dependencies. When you want to add/remove JSF libraries you will be able
to do so in the same way you add/remove things from your project classpath
-- through the Java Build Path options in project properties. You can
still create/add the implementation and components libraries through the
project creation wizard page.


--Cam
Re: JSF & Eclipse project [message #474633 is a reply to message #474632] Tue, 12 June 2007 18:12 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

Hello again, at last I've followed a little tutorial that should work
(with all the project files created, faces-config.xml, etc.), I've created
a Dynamic Web Project without selecting Java Server Faces in the dialogs
and then I've added JSF *.jar files to web-inf/lib folder, this should
work too, isn't it?

Well, when I do "Run On Server" on my "index.jsp" file I get this error:

HTTP Status 500 -

------------------------------------------------------------ --------------------

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsf/html cannot be resolved in either web.xml or the
jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(Defa ultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDis patcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDis patcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLoc ation(TagLibraryInfoImpl.java:317)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parse r.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java :493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java: 1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserCo ntroller.java:212)
org.apache.jasper.compiler.ParserController.parse(ParserCont roller.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.ja va:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 6)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 7)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 5)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.23 logs.


------------------------------------------------------------ --------------------

Apache Tomcat/5.5.23

--------------------------------
It says that the problem can be related with web.xml or the *.jar files
but I don't know how to solve it. If you want, I can send you the project
just to take a look and tell me something, as I said I'm new with JSF and
I'm not an expert Java programmer (I'm a C/C++ programmer, I'm just
learning Java).

Help please, thanks
Re: JSF & Eclipse project [message #474634 is a reply to message #474633] Tue, 12 June 2007 23:34 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
What JSF distibution do you use? And what files have you copied to lib
folder?
Re: JSF & Eclipse project [message #474635 is a reply to message #474634] Wed, 13 June 2007 09:53 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

I'm using Sun's JSF 1.1.01. I've copied all JSF *.jar files contained in
the JSF lib folder to my lib directory:
- commons-beanutils.jar
- commons-collections.jar
- commons-digester.jar
- commons-logging.jar
- jsf-api.jar
- jsf-impl.jar

I've got 2 more *.jar files, jstl.jar and standard.jar, provided with the
project.
Re: JSF & Eclipse project [message #474636 is a reply to message #474632] Wed, 13 June 2007 10:28 Go to previous messageGo to next message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
Hi, Cameron Bateman

I know what you mean, the jsf implent lib can also be added from the
User Lib, this is new feature of wtp2.
But I mean that the jsf impl Lib that you add CAN NOT add the api-doc
or src locally.
When I add the api ,It seems ok. But when you submit the OK button,
then open the buiding path the api that you attached is vanished.


On Mon, 11 Jun 2007 20:32:16 +0000 (UTC), cameron.bateman@oracle.com
(Cameron Bateman) wrote:

>> Below is what I do
>> 1. define a new jsf implements lib use the[Java] -> [buid path] ->
>> [User Lib]. The lib defined under the user lib can be easy add the
>> api-doc or src.
>
>This mechanism is new in WTP2.0. Starting with the 2.0 release JSF
>libraries are now full classpath containers. This was not the case in
>1.5.x due to a bug that has since be resolved with J2EE module
>dependencies. When you want to add/remove JSF libraries you will be able
>to do so in the same way you add/remove things from your project classpath
>-- through the Java Build Path options in project properties. You can
>still create/add the implementation and components libraries through the
>project creation wizard page.
>
>
>--Cam
>
>
Re: JSF & Eclipse project [message #474637 is a reply to message #474636] Wed, 13 June 2007 16:59 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
I need a bit more information here. What version are you working with?
Are you using the JSF Library feature (I *don't* mean the jar files, I
mean the feature called JSF Library)? Can you open a bug with some
screenshots that show where you think the problem is?


--Cam

ginkgo_w wrote:

> Hi, Cameron Bateman

> I know what you mean, the jsf implent lib can also be added from the
> User Lib, this is new feature of wtp2.
> But I mean that the jsf impl Lib that you add CAN NOT add the api-doc
> or src locally.
> When I add the api ,It seems ok. But when you submit the OK button,
> then open the buiding path the api that you attached is vanished.
Re: JSF & Eclipse project [message #474638 is a reply to message #474637] Wed, 13 June 2007 19:28 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

Hi Cameron, in another message I posted an error log
( http://www.eclipse.org/newsportal/article.php?id=596&gro up=eclipse.webtools.jsf#596).
Now I discovered I haven't got "jsf-ri.jar" and I think this can be one of
the reasons of this error... what do you think?
I've been trying to download jsf-ri.jar file but I can't find it, I
downloaded Sun's JWSDP but this file isn't there... where can I find it?

Sorry, but I don't know what do you mean by "JSF Library feature", I've
downloaded JSF 1.1.01 and JavaServer Faces Milestone 1... What do I have
to do/download/install?

Sorry again, as I said before I'm a C/C++ programmer with a little
experience with Java, but none in JSF or Eclipse...
Re: JSF & Eclipse project [message #474639 is a reply to message #474635] Thu, 14 June 2007 05:52 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
At a glance everything looks ok. You should check that deployed war
contains jsf-api.jar and jsf-impl.jar. If those files are there - it
automatically moves that issue out of the JSF Tools scope.
I highly recommend you to download sample application for the jsf
distibution of your choice and to try to successfully run it on the
server. Sometimes little server configuration is required.

Error, you provided, shows that for some reason webserver haven't loaded
jsf jar files from the WEB-INF/lib (otherwise java.sun.com/jsf/core,
java.sun.com/jsf/html would have been found).
Re: JSF & Eclipse project [message #474640 is a reply to message #474638] Thu, 14 June 2007 10:15 Go to previous messageGo to next message
Eclipse User
Originally posted by: killahyo.gmail.com

Well, answering my own last question, I've find that you don't need
jsf-ri.jar if you already have jsf-impl.jar (It's my case), It's a new
implementation or something like this. Another thing, in Eclipse's
Problems tab I get this Warning message:
Implementation of project facet wtp.jsf could not be found. Functionality
will be limited.

I don't know exactly what this means...

Can anybody show/send me a JSF example project with the right Eclipse
configuration? I don't know what I'm doing wrong and I know it has to be
hard for you to help me solve my problems without seeing them in detail...

Thanks for your attention
Re: JSF & Eclipse project [message #474641 is a reply to message #474637] Fri, 15 June 2007 06:14 Go to previous messageGo to next message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
Hi, Cameron Bateman
After see your post, I confirm this by using eclipse 3.3rc4 ,gef
3.3rc2,emf 2.3rc2,and the wtp2 rc2.
I use a screem record soft to generate a flash file.
I upload it to rapidshare, so you can download it from

http://rapidshare.com/files/37294571/wtp2-jsf.zip.html
MD5 : B957970736FCF2B396D99F303DFAF395


On Wed, 13 Jun 2007 16:59:00 +0000 (UTC), cameron.bateman@oracle.com
(Cameron Bateman) wrote:

>I need a bit more information here. What version are you working with?
>Are you using the JSF Library feature (I *don't* mean the jar files, I
>mean the feature called JSF Library)? Can you open a bug with some
>screenshots that show where you think the problem is?
>
>
>--Cam
>
Re: JSF & Eclipse project [message #474644 is a reply to message #474641] Mon, 18 June 2007 18:02 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

Hi again, at last, the problem is solved.

First of all, I've changed "web-inf" and "meta-inf" to "WEB-INF" and
"META-INF" after this, I've found that some libs were missing, after
adding them, the example application works fine.

Thanks for all
Re: JSF & Eclipse project [message #611584 is a reply to message #474288] Thu, 07 June 2007 23:28 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
What version of WTP and JSF tools are you using? Also, are you adding a
new JSF facet to an old project or workspace? If the workspace was
created with a newer version of Eclipse/WTP but you are opening in it an
older version, that may cause such and issue.


--Cam
Re: JSF & Eclipse project [message #611587 is a reply to message #474289] Fri, 08 June 2007 09:26 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

I'm using, Eclipse 3.2, WTP 1.5.4, JSF 1.1.01 and Apache Tomcat 5.5.23

Well, at first I was trying to add a new JSF facet to an old project as
you've said but then I tried to make a brand new project and I get the
same error... I don't know what to do...
Re: JSF & Eclipse project [message #611601 is a reply to message #474290] Fri, 08 June 2007 10:57 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

It would be very useful to know which combination of versions works fine,
I mean which version of WTP, version of Apache Tomcat, JSF, etc., and how
to install JSF (where to copy its *.jar file, etc.)... like an
installation manual.
Re: JSF & Eclipse project [message #611606 is a reply to message #474290] Fri, 08 June 2007 17:30 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> I'm using, Eclipse 3.2, WTP 1.5.4, JSF 1.1.01 and Apache Tomcat 5.5.23
> you've said but then I tried to make a brand new project and I get the

That combination should be okay. Can you try a new project in a new
*workspace*?


--Cam
Re: JSF & Eclipse project [message #611831 is a reply to message #474296] Fri, 08 June 2007 18:13 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

I've tried creating a new project in a new workspace and I get the same
errors...

I'll explain you how I create my projects (maybe I'm missing something):
- Once I've launched Eclipse and created a new workspace, I do
File->New->Project then I choose Web->Dynamic Web Project and I hit Next.
As a target runtime I choose Apache Tomcat v5.5 and I specify the path and
the JRE in my case jre1.6.0_01, I think I didn't tell you this in the last
letter...
Well, now I'm in the "Project Facets" dialog, I've got 4 checkboxes, if I
select
JavaServer Faces v1.1 Project, three options are selected:
1) Dynamic Web Module v2.3
2) Java v1.4 (I don't know why this changes automatically)
3) JavaServer Faces v1.1

I hit "Next" again and then "Finish".

It seems that the project I've created is OK, it has all the folders
"WebContent", etc. but the log file is telling me the same as always...
JSFLibraryRegistry.xml is missing...

Another question, when you correctly create the project a faces-config.xml
file is created in "WebContent/web-inf" folder, isn't it? I only have the
web.xml file...

Thanks again Cameron
Re: JSF & Eclipse project [message #611846 is a reply to message #474622] Sat, 09 June 2007 17:46 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

Another thing, if I try to register JSF libraries ("Windows->Preferences"
and in the Preferences dialog "Web and XML->JSF Libraries") before
creating any project, the JSF Librraries option doesn't appear...
Re: JSF & Eclipse project [message #611852 is a reply to message #474627] Sun, 10 June 2007 18:03 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

It's me again, I have another question. JSF *.jar files have to be copied
in Eclipse's plugin directory in order to use them or I have to copy them
to somewhere else?

sorry if I'm asking too much questions but I'm desperate... thanks
Re: JSF & Eclipse project [message #611854 is a reply to message #474629] Sun, 10 June 2007 19:12 Go to previous message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
JSF can be enabled for your project in 2 different ways:
1. provide JSF implementation with your project. It that case all
necessary JSF libraries should be copied to WEB-INF/lib folder of your
project
2. install JSF directly on the web server. Refer to you server's
documentation on that issue.

When you create dynamic web project and add JSF facet to is, you will be
asked which JSF implementation/additional libraries to use. In that dialog
you can select weather JSF implementation will be already installed on
server or will be supplied with the project (with a selection of which
library to use). JSF Tooling will copy necessary jars to WEB-INF/lib
folder itself.
Re: JSF & Eclipse project [message #611856 is a reply to message #474630] Mon, 11 June 2007 15:27 Go to previous message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
I see there are another way to add the JSF lib.
Usually if you look the tutorial of the help file, you may use the add
JSF implements. ( all these can be define on the [Preference]->[web
and xml] -> [jsf librares]
but I find some problem of this way, you can NOT add the apidoc to
the jsf implements lib of this way.

Below is what I do
1. define a new jsf implements lib use the[Java] -> [buid path] ->
[User Lib]. The lib defined under the user lib can be easy add the
api-doc or src.

2. you can add this lib by using [context menu] ->[build path] -[user
lib ] of your project.

3. most important this is you SHOULD check the user lib from the
project properties (alt+enter). In the [j2ee module dependency]
you should choose the user lib that you add. The selected lib will add
to the web-inf/lib folder.


BTW. I hope the JSF implements lib can be add api-doc.
I think this maybe a bug.


On Sun, 10 Jun 2007 19:12:44 +0000 (UTC), dmgloss@mail.ru (Vadim
Dmitriev) wrote:

>JSF can be enabled for your project in 2 different ways:
>1. provide JSF implementation with your project. It that case all
>necessary JSF libraries should be copied to WEB-INF/lib folder of your
>project
>2. install JSF directly on the web server. Refer to you server's
>documentation on that issue.
>
>When you create dynamic web project and add JSF facet to is, you will be
>asked which JSF implementation/additional libraries to use. In that dialog
>you can select weather JSF implementation will be already installed on
>server or will be supplied with the project (with a selection of which
>library to use). JSF Tooling will copy necessary jars to WEB-INF/lib
>folder itself.
Re: JSF & Eclipse project [message #611859 is a reply to message #474631] Mon, 11 June 2007 20:32 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> Below is what I do
> 1. define a new jsf implements lib use the[Java] -> [buid path] ->
> [User Lib]. The lib defined under the user lib can be easy add the
> api-doc or src.

This mechanism is new in WTP2.0. Starting with the 2.0 release JSF
libraries are now full classpath containers. This was not the case in
1.5.x due to a bug that has since be resolved with J2EE module
dependencies. When you want to add/remove JSF libraries you will be able
to do so in the same way you add/remove things from your project classpath
-- through the Java Build Path options in project properties. You can
still create/add the implementation and components libraries through the
project creation wizard page.


--Cam
Re: JSF & Eclipse project [message #611861 is a reply to message #474632] Tue, 12 June 2007 18:12 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

Hello again, at last I've followed a little tutorial that should work
(with all the project files created, faces-config.xml, etc.), I've created
a Dynamic Web Project without selecting Java Server Faces in the dialogs
and then I've added JSF *.jar files to web-inf/lib folder, this should
work too, isn't it?

Well, when I do "Run On Server" on my "index.jsp" file I get this error:

HTTP Status 500 -

------------------------------------------------------------ --------------------

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsf/html cannot be resolved in either web.xml or the
jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(Defa ultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDis patcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDis patcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLoc ation(TagLibraryInfoImpl.java:317)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parse r.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java :493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java: 1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserCo ntroller.java:212)
org.apache.jasper.compiler.ParserController.parse(ParserCont roller.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.ja va:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 6)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 7)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 5)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.23 logs.


------------------------------------------------------------ --------------------

Apache Tomcat/5.5.23

--------------------------------
It says that the problem can be related with web.xml or the *.jar files
but I don't know how to solve it. If you want, I can send you the project
just to take a look and tell me something, as I said I'm new with JSF and
I'm not an expert Java programmer (I'm a C/C++ programmer, I'm just
learning Java).

Help please, thanks
Re: JSF & Eclipse project [message #611864 is a reply to message #474633] Tue, 12 June 2007 23:34 Go to previous message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
What JSF distibution do you use? And what files have you copied to lib
folder?
Re: JSF & Eclipse project [message #611868 is a reply to message #474634] Wed, 13 June 2007 09:53 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

I'm using Sun's JSF 1.1.01. I've copied all JSF *.jar files contained in
the JSF lib folder to my lib directory:
- commons-beanutils.jar
- commons-collections.jar
- commons-digester.jar
- commons-logging.jar
- jsf-api.jar
- jsf-impl.jar

I've got 2 more *.jar files, jstl.jar and standard.jar, provided with the
project.
Re: JSF & Eclipse project [message #611870 is a reply to message #474632] Wed, 13 June 2007 10:28 Go to previous message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
Hi, Cameron Bateman

I know what you mean, the jsf implent lib can also be added from the
User Lib, this is new feature of wtp2.
But I mean that the jsf impl Lib that you add CAN NOT add the api-doc
or src locally.
When I add the api ,It seems ok. But when you submit the OK button,
then open the buiding path the api that you attached is vanished.


On Mon, 11 Jun 2007 20:32:16 +0000 (UTC), cameron.bateman@oracle.com
(Cameron Bateman) wrote:

>> Below is what I do
>> 1. define a new jsf implements lib use the[Java] -> [buid path] ->
>> [User Lib]. The lib defined under the user lib can be easy add the
>> api-doc or src.
>
>This mechanism is new in WTP2.0. Starting with the 2.0 release JSF
>libraries are now full classpath containers. This was not the case in
>1.5.x due to a bug that has since be resolved with J2EE module
>dependencies. When you want to add/remove JSF libraries you will be able
>to do so in the same way you add/remove things from your project classpath
>-- through the Java Build Path options in project properties. You can
>still create/add the implementation and components libraries through the
>project creation wizard page.
>
>
>--Cam
>
>
Re: JSF & Eclipse project [message #611873 is a reply to message #474636] Wed, 13 June 2007 16:59 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
I need a bit more information here. What version are you working with?
Are you using the JSF Library feature (I *don't* mean the jar files, I
mean the feature called JSF Library)? Can you open a bug with some
screenshots that show where you think the problem is?


--Cam

ginkgo_w wrote:

> Hi, Cameron Bateman

> I know what you mean, the jsf implent lib can also be added from the
> User Lib, this is new feature of wtp2.
> But I mean that the jsf impl Lib that you add CAN NOT add the api-doc
> or src locally.
> When I add the api ,It seems ok. But when you submit the OK button,
> then open the buiding path the api that you attached is vanished.
Re: JSF & Eclipse project [message #611876 is a reply to message #474637] Wed, 13 June 2007 19:28 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

Hi Cameron, in another message I posted an error log
( http://www.eclipse.org/newsportal/article.php?id=596&gro up=eclipse.webtools.jsf#596).
Now I discovered I haven't got "jsf-ri.jar" and I think this can be one of
the reasons of this error... what do you think?
I've been trying to download jsf-ri.jar file but I can't find it, I
downloaded Sun's JWSDP but this file isn't there... where can I find it?

Sorry, but I don't know what do you mean by "JSF Library feature", I've
downloaded JSF 1.1.01 and JavaServer Faces Milestone 1... What do I have
to do/download/install?

Sorry again, as I said before I'm a C/C++ programmer with a little
experience with Java, but none in JSF or Eclipse...
Re: JSF & Eclipse project [message #611878 is a reply to message #474635] Thu, 14 June 2007 05:52 Go to previous message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
At a glance everything looks ok. You should check that deployed war
contains jsf-api.jar and jsf-impl.jar. If those files are there - it
automatically moves that issue out of the JSF Tools scope.
I highly recommend you to download sample application for the jsf
distibution of your choice and to try to successfully run it on the
server. Sometimes little server configuration is required.

Error, you provided, shows that for some reason webserver haven't loaded
jsf jar files from the WEB-INF/lib (otherwise java.sun.com/jsf/core,
java.sun.com/jsf/html would have been found).
Re: JSF & Eclipse project [message #611880 is a reply to message #474638] Thu, 14 June 2007 10:15 Go to previous message
Eclipse User
Originally posted by: killahyo.gmail.com

Well, answering my own last question, I've find that you don't need
jsf-ri.jar if you already have jsf-impl.jar (It's my case), It's a new
implementation or something like this. Another thing, in Eclipse's
Problems tab I get this Warning message:
Implementation of project facet wtp.jsf could not be found. Functionality
will be limited.

I don't know exactly what this means...

Can anybody show/send me a JSF example project with the right Eclipse
configuration? I don't know what I'm doing wrong and I know it has to be
hard for you to help me solve my problems without seeing them in detail...

Thanks for your attention
Re: JSF & Eclipse project [message #612059 is a reply to message #474637] Fri, 15 June 2007 06:14 Go to previous message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
Hi, Cameron Bateman
After see your post, I confirm this by using eclipse 3.3rc4 ,gef
3.3rc2,emf 2.3rc2,and the wtp2 rc2.
I use a screem record soft to generate a flash file.
I upload it to rapidshare, so you can download it from

http://rapidshare.com/files/37294571/wtp2-jsf.zip.html
MD5 : B957970736FCF2B396D99F303DFAF395


On Wed, 13 Jun 2007 16:59:00 +0000 (UTC), cameron.bateman@oracle.com
(Cameron Bateman) wrote:

>I need a bit more information here. What version are you working with?
>Are you using the JSF Library feature (I *don't* mean the jar files, I
>mean the feature called JSF Library)? Can you open a bug with some
>screenshots that show where you think the problem is?
>
>
>--Cam
>
Previous Topic:Firefox working, but not with IE
Next Topic:Validation for keywords contributed by standard variable resolvers
Goto Forum:
  


Current Time: Thu Oct 23 22:16:06 GMT 2014

Powered by FUDForum. Page generated in 0.15233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software