facebook

Struts config editor has some bugs [Closed]

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

    Robert Varga
    Participant

    There are a couple of problems with the Struts config editor:

    1. You cannot select Struts config editor to edit Struts module configurations. Only the struts-config.xml can be opened with it.

    2. The Struts config editor is supposed to have wizards to create this or that kind of things. However I have been able to get the controls for that only once, and could not reproduce it.

    3. At one point it gave me an error message something like “cannot find <default> module.”, even though the struts-config.xml created by “Add Struts capabilities” was there.

    4. New Struts module overwrites existing config files without a warning!

    5. I get the following exceptions in Eclipse log:

    !ENTRY org.eclipse.ui 4 4 Jan 14, 2004 14:00:27.921
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectrevert
    !ENTRY org.eclipse.ui 4 4 Jan 14, 2004 14:00:27.937
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectconvert

    #201872 Reply

    support-michael
    Keymaster

    Can you provide your configuration information?
    http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=394

    1. You cannot select Struts config editor to edit Struts module configurations. Only the struts-config.xml can be opened with it.

    This problem has already been fixed and will be available in the next release via context menu “Open with”.

    2. The Struts config editor is supposed to have wizards to create this or that kind of things. However I have been able to get the controls for that only once, and could not reproduce it.

    Presently you can only access the Struts element wizards from the Struts Editor’s outline view. The upcoming GA version of MyEclipse 2.7/3.7 will provide access to the Struts element wizards from the context menu of the outline view, the Struts flow view, and the Struts XML src view.

    3. At one point it gave me an error message something like “cannot find <default> module.”, even though the struts-config.xml created by “Add Struts capabilities” was there.
    Did the situation resolve itself? I’ve entered an issue report to have research this further.

    4. New Struts module overwrites existing config files without a warning!

    I’ve entered a problem report on this behavior. It should be easily fixed by the GA release of 2.7/3.7.

    5. I get the following exceptions in Eclipse log:
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectrevert

    Do you have other struts plugins installed in your Eclipse instance? This looks like a context problem where the project is not a proper Web Project. Did it cause any noticable problems?

    Michael
    MyEclipse Support

    #201875 Reply

    Riyad Kalla
    Member

    In addition to Michael’s comments, you might want to right click on the root of your project and go down to the MyEclipse option and make sure that “Add Web Capabilities” isn’t enabled and that “Add Struts Capabilities” isn’t enabled. One time I had ME drop my settings for a project and it seemed like all the struts/web stuff broke, but actually what happened is that ME had forgotten my web/struts capability settings.

    NOTE: The dropping of the config isn’t an issue, I was upgrading/downgrading/creating/moving projects so something god lost along the way. Everything works fine under normal use.

    #201885 Reply

    Robert Varga
    Participant

    @support-michael wrote:

    Can you provide your configuration information?

    – System Setup ——————————-
    Operating System and version: Windows XP Professional SP1
    Eclipse version: 3.0M6 no other plugins, only MyEclipse
    Eclipse build id: 200312182000
    MyEclipse version: 3.7RC2
    Eclipse JDK version: Sun 1.4.2-b28
    Application Server JDK version: not applicable, haven’t yet configured appservers.

    – Message Body ——————————-

    @support-michael wrote:

    @robvarga wrote:

    2. The Struts config editor is supposed to have wizards to create this or that kind of things. However I have been able to get the controls for that only once, and could not reproduce it.

    Presently you can only access the Struts element wizards from the Struts Editor’s outline view. The upcoming GA version of MyEclipse 2.7/3.7 will provide access to the Struts element wizards from the context menu of the outline view, the Struts flow view, and the Struts XML src view.

    I found that out since after browsing the newsgroups 🙂

    @support-michael wrote:

    @robvarga wrote:

    3. At one point it gave me an error message something like “cannot find <default> module.”, even though the struts-config.xml created by “Add Struts capabilities” was there.

    Did the situation resolve itself? I’ve entered an issue report to have research this further.

    It did, I had that only once and not ever since.

    @support-michael wrote:

    @robvarga wrote:

    5. I get the following exceptions in Eclipse log:
    !MESSAGE Invalid Menu Extension (Path is invalid): com.genuitec.myeclipse.webproject.action.projectrevert

    Do you have other struts plugins installed in your Eclipse instance? This looks like a context problem where the project is not a proper Web Project. Did it cause any noticable problems?

    I don’t know whether this has anything to do with the following problem which was appearing:

    There was a problem when I deleted a web module project. It led to the Enterprise project it was in having an error indicated by the red-x decorator in the Navigator view. I was not able to resolve it from inside Eclipse. The problem was caused by .mymetadata still containing a reference to the already deleted web module.

    The related exception is the following, I think:

    com.genuitec.eclipse.core.R: Resource /Test 3.7 Other Web does not exist.
    at com.genuitec.eclipse.j2eedt.core.J2EEProject.removeDependentProjects(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.EARProject.�(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.EARProject.�(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.EARProject.removeDependentProject(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.EARProject.projectDeleted(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.J2EECore.projectDeleted(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.ResourceChangeVisitor.�(Unknown Source)
    at com.genuitec.eclipse.j2eedt.core.ResourceChangeVisitor.visit(Unknown Source)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
    at com.genuitec.eclipse.j2eedt.core.ResourceEventProcessor.resourceChanged(Unknown Source)
    at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:255)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:813)
    at org.eclipse.core.runtime.Platform.run(Platform.java:457)
    at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:248)
    at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:142)
    at org.eclipse.core.internal.events.AutoBuildJob.broadcastChanges(AutoBuildJob.java:62)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:87)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:114)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)

    This problem is reproducible, whenever you delete a web module with contents deleted as well, project which is added to an enterprise project, you will get this error, but you will not be able to correct it from inside Eclipse (except for directly editing the .mymetadata file in an Eclipse editor). Sometimes an error description is indicated inside problems, sometimes not.

    I also sometimes was not able to delete a web module project, because it complained about not being able to delete the Struts jar files in the project (I guess they were locked because classes were loaded from them).

    I managed to reproduce it in the following scenario:

    0. Open Outline view.
    1. Create a web module project.
    2. Add Struts capabilities to it.
    3. Add the web module to an already existing enterprise project.
    4. Create a form bean and action with the wizards and save struts-config.xml
    5. Look at flow view.
    6. Delete the web module project with contents deleted as well.

    It will not delete the struts-capability jars.

    The following exceptions was taken after this from eclipse log:

    !ENTRY org.eclipse.ui.ide 4 4 Jan 15, 2004 11:00:12.955
    !MESSAGE Exception in org.eclipse.ui.actions.DeleteResourceAction.run: org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
    !ENTRY org.eclipse.core.resources 4 4 Jan 15, 2004 11:00:12.971
    !MESSAGE Problems encountered while deleting resources.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: /Outline.
    !STACK 1
    org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
    at org.eclipse.core.internal.localstore.FileSystemResourceManager.delete(FileSystemResourceManager.java:169)
    at org.eclipse.core.internal.resources.ResourceTree.standardDeleteProject(ResourceTree.java:770)
    at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1427)
    at org.eclipse.core.internal.resources.Resource.delete(Resource.java:649)
    at org.eclipse.core.internal.resources.Project.delete(Project.java:289)
    at org.eclipse.ui.actions.DeleteResourceAction.delete(DeleteResourceAction.java:309)
    at org.eclipse.ui.actions.DeleteResourceAction.delete(DeleteResourceAction.java:296)
    at org.eclipse.ui.actions.DeleteResourceAction$2.execute(DeleteResourceAction.java:388)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1555)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    !ENTRY org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Problems encountered while deleting resources.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-beanutils.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-collections.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-digester.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-fileupload.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-lang.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-logging.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-validator.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\jakarta-oro.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\struts-legacy.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\struts.jar.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF.
    !SUBENTRY 1 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-beanutils.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-collections.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-digester.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-fileupload.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-lang.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-logging.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\commons-validator.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\jakarta-oro.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\struts-legacy.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.971
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib\struts.jar.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.986
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF\lib.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.986
    !MESSAGE Could not delete: c:\work\test\outline\web\WEB-INF.
    !SUBENTRY 2 org.eclipse.core.resources 4 273 Jan 15, 2004 11:00:12.986
    !MESSAGE Could not delete: c:\work\test\outline\web.

    Also when you delete the web module project and its content as well, it does not close the editor containing struts-config.xml.

    #201886 Reply

    Robert Varga
    Participant

    @support-rkalla wrote:

    In addition to Michael’s comments, you might want to right click on the root of your project and go down to the MyEclipse option and make sure that “Add Web Capabilities” isn’t enabled and that “Add Struts Capabilities” isn’t enabled. One time I had ME drop my settings for a project and it seemed like all the struts/web stuff broke, but actually what happened is that ME had forgotten my web/struts capability settings.

    NOTE: The dropping of the config isn’t an issue, I was upgrading/downgrading/creating/moving projects so something god lost along the way. Everything works fine under normal use.

    The projects was always newly created with New Web Module project.

    Struts capabilities was always added by the menu item, I never put any Struts related stuff there manually when I tried 3.7RC2.

    I did however at one or another point overwrite the defaultly generated struts-config.xml with one generated with Add Struts module, with filename explicitly given as struts-config.xml.

    Now that I think, the cause of the may be, that that feature generates a DOCTYPE with reference to the 1.0 struts-config dtd (I don’t know why, modules were introduced in 1.1). If you have a check that the wizards add stuff only in struts-config.xmls referring only on the 1.1 dtd, that may have been the cause of the problem. Or possibly that verified with the 1.0 dtd, the defaultly generated module config xml was not necessarily valid with the new section tags not being there in the 1.0 dtd. These are of course only guesses.

    #201890 Reply

    support-michael
    Keymaster

    There was a problem when I deleted a web module project. It led to the Enterprise project it was in having an error indicated by the red-x decorator in the Navigator view.

    The module project is recorded in the EAR project’s .metadata and is apparently not be removed during the module project’s deletion. You can manually resolve any errors related to this using the “Add/Remove Module” dialog on the EAR project. I’ve added an enhancement request in our problem tracking system to query the user about cleaning up EAR project dependencies when a module project is deleted.

    I also sometimes was not able to delete a web module project, because it complained about not being able to delete the Struts jar files in the project (I guess they were locked because classes were loaded from them).

    You are correct. We have a proposed fix already queued for the next internal QA pass. Try closing this project then delete it.

    when you delete the web module project and its content as well, it does not close the editor containing struts-config.xml.

    I have added this issue in our problem tracking system for research and resolution.

    I did however at one or another point overwrite the defaultly generated struts-config.xml with one generated with Add Struts module, with filename explicitly given as struts-config.xml.

    I have added problem report for the module creation wizard to verify that the file it will generate is uniquely named.

    Lastly, I will research that Struts 1.1 wizards are not available for Struts 1.0 config files.

    Your feedback is excellent and much appreciated. I expect that all of these issues will be resolved by the ME 2.7/3.7 GA releases.

    Michael
    MyEclipse Support

    #201895 Reply

    Robert Varga
    Participant

    @support-michael wrote:

    There was a problem when I deleted a web module project. It led to the Enterprise project it was in having an error indicated by the red-x decorator in the Navigator view.

    The module project is recorded in the EAR project’s .metadata and is apparently not be removed during the module project’s deletion. You can manually resolve any errors related to this using the “Add/Remove Module” dialog on the EAR project.

    No, you cannot, because the module does not turn up in the added modules dialog of the enterprise project anymore. But this taking out the module from the added modules is not written back to the disk. So if you don’t want to add or remove additional modules from the enterprise application, you are not able to write the in-memory state of the module list to the disk, because the dialog data is not marked as dirty.

    @support-michael wrote:

    Your feedback is excellent and much appreciated. I expect that all of these issues will be resolved by the ME 2.7/3.7 GA releases.

    Michael
    MyEclipse Support

    You’re welcome.

    When can the GA be expected? :-)))

    Regards,

    Robert Varga

    #201901 Reply

    Riyad Kalla
    Member

    Robert your feedback is fantastic, thank you for taking the time to troubleshoot/explain in detail what is going on to help the ME refine the project.

    #204421 Reply

    Riyad Kalla
    Member

    Rob/Michael,
    Were these issues resolved in 2.7 GA?

    #204447 Reply

    Scott Anderson
    Participant

    Should all have been addressed in 2.7GA.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Struts config editor has some bugs [Closed]

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