Eclipse problem

Hey all. I have a bean class by the name of LoginBean and i have a jsp file (login.jsp). Now in eclipse i am using the dynamic web project wizard so under my webcontent folder i see faces-config-xml. I double clicks on it and then i click on managed bean tab so then i can add the class. But for some reason whenever i add my loginbean class in the managedbean(faces-congi.xml) it gives me an error

An error has occured. see error log for more details.

and here is my stack trace.

Problems occurred when invoking code from plug-in:"org.eclipse.jface".

java.lang.NullPointerException

at org.eclipse.jst.jsf.facesconfig.ui.section.InitializationSection.refreshAll(InitializationSection.java:338)

at org.eclipse.jst.jsf.facesconfig.ui.section.AbstractFacesConfigSection.setInput(AbstractFacesConfigSection.java:170)

at org.eclipse.jst.jsf.facesconfig.ui.section.InitializationSection.setInput(InitializationSection.java:331)

at org.eclipse.jst.jsf.facesconfig.ui.page.detail.FacesConfigDetailsPage.selectionChanged(FacesConfigDetailsPage.java:93)

at org.eclipse.ui.forms.DetailsPart$1.run(DetailsPart.java:277)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

at org.eclipse.ui.forms.DetailsPart.showPage(DetailsPart.java:264)

at org.eclipse.ui.forms.DetailsPart.update(DetailsPart.java:237)

at org.eclipse.ui.forms.DetailsPart.selectionChanged(DetailsPart.java:222)

at org.eclipse.jst.jsf.facesconfig.ui.page.FacesConfigMasterDetailPage.selectionChanged(FacesConfigMasterDetailPage.java:245)

at org.eclipse.jst.jsf.facesconfig.ui.section.ManagedBeanMasterSection.selectionChanged(ManagedBeanMasterSection.java:211)

at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)

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:149)

at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)

at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1976)

at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1128)

at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1154)

at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:213)

at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:207)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.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.java:3348)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)

at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.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(EclipseStarter.java:400)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

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

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

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)

Session Data

eclipse.buildId=M20060921-0945

Thanks

[4511 byte] By [schumachera] at [2007-11-27 8:28:40]
# 1
Where in your code are you adding this stuff in? Let's see the spot in your code where the error originates (if possible).
petes1234a at 2007-7-12 20:18:43 > top of Java-index,Java Essentials,New To Java...
# 2

no petes. i am not adding anything in my code. all i am trying to do is using JSF tags in the jsp page. You know about managed bean tab in faces-config.xml? that is where i am having problem. I try to add my login bean class, when i do that it generates an error log file.

if you want i can post my code but the code has nothing to do with it.

schumachera at 2007-7-12 20:18:43 > top of Java-index,Java Essentials,New To Java...
# 3

> no petes. i am not adding anything in my code. all i

> am trying to do is using JSF tags in the jsp page.

> You know about managed bean tab in faces-config.xml?

Nope, I don't, and my ignorance shows. Sorry.

> that is where i am having problem. I try to add my

> login bean class, when i do that it generates an

> error log file.

>

> if you want i can post my code but the code has

> nothing to do with it.

Got it. Good luck.

petes1234a at 2007-7-12 20:18:43 > top of Java-index,Java Essentials,New To Java...
# 4
Phew. I got it. installed the wrong tag libraries.
schumachera at 2007-7-12 20:18:43 > top of Java-index,Java Essentials,New To Java...