Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble opening project in Eclipse

 
santoshkumar savadatti
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclipse Indigo on windows 7 by the way.
 
Brian Burress
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded Helios package and its working fine now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic