MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ssquire
Post subject: Javadoc could not be found issue  PostPosted: Sep 15, 2011 - 11:36 PM
Registered Member
Registered Member


Joined: Aug 09, 2010
Posts: 89

I have used the JSF Tutorial to build a project of my own. When i added the imports to support the pasted code for the loginUser Method I got the following error message:


javax.faces.context.FacesContext


Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.

This same error occurs for the FacesMessage class.

I have attached my Build information and a screen shot. I have seen several of the other posts for this but they seem a bit confusing and I am still not an expert MyEclipse IDE user.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Sep 16, 2011 - 08:54 AM



Joined: Nov 11, 2010
Posts: 2499

ssquire ,

Sorry that you are seeing this issue.

1) What JavaEE libraries are you using ?

2) We could replicate the issue with JavaEE 6 libraries on 9.1 release and you can see the fix in MyEclipse 10 release.

3) As a workaround, you can attach the Javadoc to the jsf jars under the JavaEE libraries and give the URL for this particular API. Right click on the jsf jar > properties > Javadoc location.

Attached is the screenshot for your reference along with the URL for this API.

API javadocs are available via URLs linked here: http://www.oracle.com/technetwork/java/javaee/documentation/apis-139520.html

Let us know how this works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
ssquire
Post subject:   PostPosted: Sep 16, 2011 - 09:44 PM
Registered Member
Registered Member


Joined: Aug 09, 2010
Posts: 89

Swapna,
I did exactly as you said (see my attachments), and I still get the same error. As far as I can tell, they're set the same way as the Java 6 jar files are. This is really frustrating. I felt like I had finally began to cruise too :-)
 
 View user's profile Send private message  
Reply with quote Back to top
ssquire
Post subject:   PostPosted: Sep 17, 2011 - 12:30 AM
Registered Member
Registered Member


Joined: Aug 09, 2010
Posts: 89

Swapna,
Is there a way to change my project from a Java EE 5.0 to Java EE 6.0 project?
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Sep 20, 2011 - 10:40 AM



Joined: Nov 11, 2010
Posts: 2499

ssquire ,

Apologize for the delay. Sorry that you are seeing this issue.

1) Were you able to see the Java Doc displayed when you hover over the import javax.faces.context.FacesContext statement after using the workaround ?

2) From the screenshot it looks like an error in the project. If this is a separate error, please post it on a separate thread.

3) Here are the steps to convert a Java EE 5 project to Java EE 6 :

a. For the Java EE 5 project, right click on the project and go to properties window.
b. Reset the Java Compiler level to 1.6
c. This will prompt to rebuild project. Click on [Yes]
d. Go to Java Build Path. Remove Java EE 5 Libraries
e. Click [Add Library]> MyEclipse Library and select Java EE 6 Libraries and click on [Finish] and [OK]
f. Refresh Project
g. Right click on the project and click on MyEclipse > Open in Explorer.
h. Edit mymetadata file and change j2ee-spec to "6.0" save and close this file.
i. Next right click on the project and click on [close project]
j. Next right click on the project and click on [open project]

Let us know if you have any other issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
ssquire
Post subject:   PostPosted: Sep 20, 2011 - 12:59 PM
Registered Member
Registered Member


Joined: Aug 09, 2010
Posts: 89

1) Were you able to see the Java Doc displayed when you hover over the import javax.faces.context.FacesContext statement after using the workaround ?

No, after I performed the designated fix, when I would hover over the import I received the same error message that the JavaDoc could not be found. The curious thing was that I had both a Java EE 5 & a Java EE 6 in my project path and the jsf jar files were in the Java EE5 section. I figured going forward I would like to keep everything Java EE 6 so once I change that I will try your strategy again on the Java EE 6 side.
 
 View user's profile Send private message  
Reply with quote Back to top
ssquire
Post subject:   PostPosted: Sep 20, 2011 - 03:02 PM
Registered Member
Registered Member


Joined: Aug 09, 2010
Posts: 89

Swapna,
After updating from Java EE 5 to Java EE 6, I got the following errors:

Can not find the tag library descriptor for "http://java.sun.com/jsf/html"
Can not find the tag library descriptor for "http://java.sun.com/jsf/core"

I know this worked in a previous project I compiled, so it must have been the update from EE5 to EE6 that caused the problem.

Other than this, the update worked just fine.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits