facebook

Problem using Struts in Design View [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #224793 Reply

    I’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-b03

    Let me know if you need more information.

    #224795 Reply

    Brian Fernandes
    Moderator

    First 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.

    #224868 Reply

    Ok, 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.

    #224893 Reply

    Brian Fernandes
    Moderator

    Good 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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Problem using Struts in Design View [Closed]

You must be logged in to post in the forum log in