my dog learned polymorphism*
The moose likes IDEs, Version Control and other tools and the fly likes Trouble opening project in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Trouble opening project in Eclipse" Watch "Trouble opening project in Eclipse" New topic
Author

Trouble opening project in Eclipse

santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
I was trying to open a project in Eclipse. When i pen the Build.xml file, i get the following error:
Could not open the editor: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

How can i fix this issue?
Brian Burress
Ranch Hand

Joined: Jun 30, 2003
Posts: 122
Can you clarify - do you get this error when opening the project or when opening the build.xml file in the project? If the latter, can you verify what tool is being used to open the build.xml -- I am wondering if it is being opened by something other than a text editor which is triggering some parsing/validation you do not want.
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
Brian Burress wrote:Can you clarify - do you get this error when opening the project or when opening the build.xml file in the project?


The Project opens in the workspace. But when i try to open the build file, i get the error. I'm not sure if any other tool is being used to open the file.
Brian Burress
Ranch Hand

Joined: Jun 30, 2003
Posts: 122
Try right clicking the build.xml file, select "Open With" and see what has the "dot" by it. If it isn't the text editor, try selecting text editor and see if that helps.
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
Yes that did help. But the problem is, it still does not open with Ant editor. It'd be very helpful if i could use syntax highlighting.
Here is what i get if i open it with Ant Editor:


and thanks for your replies
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
I am using Eclipse Indigo on windows 7 by the way.
Brian Burress
Ranch Hand

Joined: Jun 30, 2003
Posts: 122
santoshkumar savadatti wrote:
and thanks for your replies


You are welcome, sorry I have not really solved the root of your issue but just gotten you to a work around state.

I do see a similar discuss on nabble. Not sure that it will help, but there are some suggestions about cleaning/rebuilding the project & looking into the possibilitity that you may have more than one Xerces jar and the wrong one is "first" in the classpath.

If none of these pan out, I'll need to punt and hope someone else can field the question. I have not worked with the ANT editor myself and not encountered this exact scenario.

Good luck!
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
I downloaded Helios package and its working fine now.
 
 
subject: Trouble opening project in Eclipse
 
Similar Threads
How to open a file in eclipse
A good java editor equivalent to JCreator
war file
migrate from netbeans to eclipse