wood burning stoves*
The moose likes JSF and the fly likes All of a sudden many of my imports are underlined in red, that goes away when I retype them.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "All of a sudden many of my imports are underlined in red, that goes away when I retype them.." Watch "All of a sudden many of my imports are underlined in red, that goes away when I retype them.." New topic
Author

All of a sudden many of my imports are underlined in red, that goes away when I retype them..

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

All of the org.richfaces imports are all of a sudden underlined in red, and of course any thing in the code that uses them. So of course my jsf pages that use these beans will not load. When i tried to load one I see:



Is my prject broken now, do I need to recreate everything, or is there a way to fix this...I really have no idea what is going on here.

All I did was add in httpclient-commons jar to get some httpclient stuff working, restarted eclipse a few times, and upon about third time restarting this happens all of a sudden. ANy ideas?


True wisdom is in knowing you know nothing - Socrates
Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

Hmm, I was able to retype everything that was in red, and the errrs went away, but when tryint o run a page I stil see that error stack.
Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

and now this



man...
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

I've seen stuff like that happen when source control is turned on and the files are read only. Any chance?

-Cameron McKenzie
Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

I dont even know how to do that lol.
but its moot now, I made a newe project and it is working betetr than that one so Im happy with it
Moh Afifi
Greenhorn

Joined: Jun 01, 2009
Posts: 7
please note that, if you are using eclipse, and this happens when you use source control, there is a fiile in the project root folder that doesn't appear in the workspace called classpath.
if this is not correct then the project doesn't execute correctly.
this can also be checked in the build path in the project properties
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Moh Afifi wrote:please note that, if you are using eclipse, and this happens when you use source control, there is a fiile in the project root folder that doesn't appear in the workspace called classpath.
if this is not correct then the project doesn't execute correctly.
this can also be checked in the build path in the project properties


A small clarification. The file in question is named ".classpath". The dot at the beginning is part of the Unix convention that filenames beginning with a dot are "hidden" files. Unlike Windows, the Unix filesystems didn't invest very heavily in file attributes like the System bit.

Although the Eclipse Java explorer doesn't show this file or its partner in crime ".project", you can see them when using the Resource view. Normally you won't edit the raw text, however, since the GUI editors in Project Properties will do the job for you.


Customer surveys are for companies who didn't pay proper attention to begin with.
Moh Afifi
Greenhorn

Joined: Jun 01, 2009
Posts: 7
Tim Holloway wrote:A small clarification.

thanks for clearing it out. that's actually what i meant.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: All of a sudden many of my imports are underlined in red, that goes away when I retype them..
 
Similar Threads
hibernate exception thrown from @Factory method
Needing some help fixing this error stack (error occurred performing resource injection)
check box in simple html tag in jsf
Jsf DropDown menu "java.util.NoSuchElementException"
The connection does not exist + as400 + hibernate