- This topic has 6 replies, 2 voices, and was last updated 18 years, 10 months ago by markjohansson.
-
AuthorPosts
-
markjohanssonMemberHi
I’ve added JSF capabilities to my Web Project following the link
‘http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/jsf/index.html’However my project layout is different from that in Figure 4.5
When I created jsp files and use <f:view>, there is no code assist and I got the error message “no tag ‘view’ defined in tag library imported with prefix “f”” when my mouse cursor hovers on the red cross mark.
The myfaces *.jar are in WebRoot/lib but they’re not shown in the Project build path. I had to add them manually for the completion to work.
Referring to ‘http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251’ I should not need to add the taglib attribute to my web.xml since the myfaces-all.jar contains the necessary .tld in the MANIFEST directory.
Is this a known bug?
Below is the required information:
1. No relevant error in the log
2.
*** Date: Tue Jan 24 15:43:54 SGT 2006*** System properties:
OS=Linux
OS version=2.6.10
Java version=1.5.0_02*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.200 M2
Build id: 20051205-4.1-Milestone2*** Eclipse details:
Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-launcher
/opt/tools/eclipse/eclipse
-name
Eclipse
-showsplash
600
-exitdata
3f38001
-vm
/opt/sdks/jdk1.5.0_02/bin/java
Riyad KallaMemberI’m not sure I follow what you are reporting. It sounds like you did add JSF capabilities, and original the jARs weren’t automounted, but once you added them autocomplete started working as well. Please restate what the exact problem is.
markjohanssonMemberHi Riyad
That’s the problem: I’ve added JSF capabilities but the *.jar files were not auto-mounted. I’ve tried with new projects and on different machines – problem is consistent.
Riyad KallaMemberIf you navigate to Window > Prefs > MyEclipse > J2EE > Web Project > Build path, is the first option selected? “Automatically add…”
If not, select it, that’s the problem.
If it is, open up your log file (<workspace dir>\.metadata\.log) and look near the bottom for exceptions pertaining to JAR files.
markjohanssonMemberHi Riyad,
Thanks for the prompt reply, that’s the cause.
Now I’ve have these *.jar in both my WEB-INF/lib and WEB-INF/
commons-beanutils-1.6.1.jar
commons-codec-1.2.jar
commons-collections-3.0.jar
commons-digester-1.5.jar
commons-el.jar
commons-fileupload-1.0.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jsp-2.0.jar
jstl.jar
myfaces-all.jaris this the known behavior? this duplication is unnecessary since it won’t happen if I do it manually. Is this potentially a bug or should I move this thread to another forum?
/Mark
Riyad KallaMemberMark,
Switch to your navigator view to look at what files are where. The package explorer will display contents depending on what they are, so they make “look” like they are in different locations than they really are.;If you do have all those JARs in your WEB-INF directory, you can erase them and just keep the ones in your /lib directory.
markjohanssonMemberHi Riyad,
I’ve removed them. Seems OK. Thanks
-
AuthorPosts