MyEclipse: MyEclipse does not recognize JSF beans in the editor mulpuri - Sep 18, 2008 - 10:53 PM Post subject: MyEclipse does not recognize JSF beans in the editor
In some of the web projects I have, MyEclipse does not recognize the JSF beans. The editor displays warnings where the bean is displayed. When I click on the space bar to list the attributes, the drop down list is not displayed and I get a beep.
It works on a stand alone project that I have which is not stored in Perforce (SCM) and uses Jdk 1.5. The other projects use Jdk 1.4
Both projects use Faces 1.1.5 and NetAdvantage Infragistics 2008 Vol 1. I am using My Eclipse 6.5. But I have had this problem in 6.0 as well.
How does MyEclipse recognize the JSF beans?
Thanks,
Bhaskarsupport-nipun - Sep 19, 2008 - 06:11 PM Post subject: RE: MyEclipse does not recognize JSF beans in the editor
Bhaskar,
What is the warning that the editor displays?
Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.mulpuri - Sep 19, 2008 - 06:17 PM Post subject: RE: MyEclipse does not recognize JSF beans in the editor
The editor gives the typical message i.e., "beanname" cannot be resolved, where "beanname" is the name that we specify such as workitems which is a bean defined in faces-confix.xml.
Here are the installation details.
*** Date:
Friday, September 19, 2008 12:12:05 PM CDT
** System properties:
OS=WindowsVista
OS version=6.0
Java version=1.5.0_11
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\apps\MyEclipse_6.5\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
C:\apps\MyEclipse_6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\apps\MyEclipse_6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
1598_d8
-clean
-vm
C:\apps\MyEclipse_6.5\jre\bin\javaw.exemulpuri - Jan 05, 2009 - 11:30 PM Post subject: RE: MyEclipse does not recognize JSF beans in the editor
I was finally able to nail down what is causing this.
In faces-config.xml file, we define the DTD as follows
<!DOCTYPE faces-config SYSTEM "web-facesconfig_1_1.dtd">
This is because we do not have access to the internet from our QA environment and deploy the web-faces-config_1_1.dtd file in WEB-INF folder.
If I change the DOCTYPE declaration to
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> or