facebook

Adding Struts Capability to existing project [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #216433 Reply

    nklein
    Member

    I checked out an existing Struts-based project from CVS, and was trying to figure out how to get MyEclipse to understand it as a Web-based project with Struts capabilities

    Do I need to first “Create a New Web-based Project” and then “Add Struts Capabilities” and then perform “Checkout As” into an existing project, or is there a straightforward way to add these capabilities afterwards.

    #216449

    Riyad Kalla
    Member

    If its a normal Java Project, you can right click, go down to MyEclipse then “Add Web Project Capabilities”, then after that, “Add Struts Capabiltiies” and you’re all set.

    #217064

    rnadella
    Member

    I have tried this with WorkBench 3.8.1 and everything looked fine. MyEclipse displayed the number for form beans and actions. When I click on struts-config.xml, I was prompted “Error has occured. Please check the log”. Can you specify where and what is the log. I tried searching in MyEclipse installation folder and eclipse workspace folder. No luck.

    Thanks
    rn

    #217066

    rnadella
    Member

    More Info:

    I think Eclipse erroring out while creating outline view. I don’t see anything in this view. When switched to Resource perspective here is the error displayed in Outline View: “An error has occurred when creating this view”

    To replicate the error, here is what I did in a fresh project:
    1)Create a Java Project
    2) Select MyEclipse->Add WebCapabilites
    3) Created new folder with link to my JSP/WEB-INF stuff
    4) Select MyEclipse->Add Struts Capabilites(without creating web.xml)
    Now displays the number of form beans and Actions
    5) Clicking on Struts-config.xml in WEB-INF directory complians with error.
    6) No Outline View is displayed except for a vertical line in the Editor.

    Thanks
    rn

    #217072

    Riyad Kalla
    Member

    rn,
    Can you upgrade to MyEclipse 3.8.2? I know that we found this bug late in the 3.8.1 release cycle and had to push it back to 3.8.2, hoping not many people would be effected by it.

    #217144

    MCI-GA
    Member

    Ok, upgraded to MyEclipse 3.8.2 (Eclipse 3.0, same as before). This time I am getting error dialog box: “unable to create part: “. And the editor is empty with error: “An error has occurred when creating this editor”.

    rn

    #217150

    Riyad Kalla
    Member

    This is one of the most commonly reported problems and is usually caused by:
    1) Corrupt configuration info
    2) Corrupt workspace
    3) Manually updated/replaced plugins that MyEclipse relies on (e.g. Draw2D, GEF)

    Try and shut down Eclipse, then restart it with the -clean argument in the command line. Did that fix it? If not, try and create a new work space, then a new demo Web Module App, did that fix it? If not, did you manually update any of the plugins in your Eclipse install? Try a fresh download/unzip of Eclipse 3.0.1 and use Help > Software Updates > Manage Configs to add the MyEclipse extension to that install, did it work fine?

    #217165

    MCI-GA
    Member

    I guess something was corrupt. I reinstalled Eclipse 3.0 and MyEclipse 3.8.2 and it is working now. Thanks for the help

    rn

    #217166

    Riyad Kalla
    Member

    Thank you for following up.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Adding Struts Capability to existing project [Closed]

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