- This topic has 3 replies, 2 voices, and was last updated 20 years, 1 month ago by
Brian Fernandes.
-
AuthorPosts
-
David GoodineMemberI’m getting the following error trying look at “struts-config.xml” in Design view:
“Unable to access Struts Flow View due to XML and Struts validation errors detected in source. Please make corrections and try again.”
The strange thing is I’ve validated every file in the system, and the appropriate struts files manually using the MyEclipse menu validator and no problems are found. Nothing is showing up in the MyEclipse log or in the problems area of Eclipse.
Relevant Info:
OS: Windows XP/SP2
Eclipse: Version: 3.0.1 Build id: 200409161125
MyEclipse: 3.8.4
Java: 1.4.2_06-b03Let me know if you need more information.
Brian FernandesModeratorFirst off – not being able to view the Design becuase of errors in your source only pertains to errors in the particular config file you are editing, so you don’t need to consider the validity of other files.
Now, besides the explicit validation that you may run on the files, a separate validation phase for the struts config file is run just before you switch to the Design view. This phase will mark out any and all the errors it discovers in the source file.
Are you sure you can’t see any error markers? If you fix those errors, you will be able to go into design view just fine.
You can verify this by setting up a dummy struts project and checking out the design view.
Let us know if you’re still stuck,
Brian.
David GoodineMemberOk, didn’t see any errors in the source view, but I created a dummy project, copied over the struts-config.xml there and then an error (duplicate form-bean name) was shown correctly in the source view.
It still wasn’t showing the error in the original project, so I copied it (the copy) back to the original project, then it showed up. Must have been a UI glitch or something.
Thanks for the help.
Brian FernandesModeratorGood deal, glad you got it sorted out.
The glitch is definitely weird, certainly haven’t come across something like that happening before.
Thanks for reporting your progress back here,
Regards,
Brian. -
AuthorPosts