You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

myeclipseide.html 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <html>
  2. <body>
  3. <!-- @author Wes Isberg -->
  4. <!-- START-SAMPLE j2ee-myeclipseide-generally Using MyEclipseIDE to develop AspectJ programs for J2EE -->
  5. MyEclipseIde
  6. (<a href="http://www.myeclipseide.com/">http://www.myeclipseide.com</a>)
  7. aims to make it easy to develop J2EE applications using Eclipse.
  8. AJDT
  9. (<a href="http://eclipse.org/ajdt">http://eclipse.org/ajdt</a>)
  10. is an Eclipse plug-in that supports AspectJ.
  11. <ul>
  12. <li>To install AJDT with MyEclipseIDE, direct the Eclipse update manager to
  13. <a href="http://download.eclipse.org/technology/ajdt/dev/update">
  14. http://download.eclipse.org/technology/ajdt/dev/update</a>,
  15. install the plug-in, and follow any post-install instructions.
  16. </li>
  17. <li>To enable a project to use aspects, first
  18. select <code>Convert to AspectJ project</code>
  19. from the project's context menu (select project, right click).
  20. (XXX Bug: AJDT reverts perspective to Java; go back to MyEclipseIDE)
  21. Note that you must convert each project;
  22. converting the master J2EE project will not affect
  23. the child components (XXX RFE: option to convert child if parent).
  24. </li>
  25. <li>To build, select the menu item <code>Project &gt; Rebuild Project</code>.
  26. AJDT creates <code>default.lst</code> which lists all source files and
  27. compiles them.
  28. You can also recompile by clicking the AJDT build button.
  29. (XXX Bug: only available in the Java perspective)
  30. </li>
  31. <li>To deploy, first add <code>aspectjrt.jar</code> to the project's
  32. library directory.
  33. For servlets and JSP's, that is in <code>{Web Root}/WEB-INF/lib</code>.
  34. For EJB's, it's XXX todo.
  35. Then deploy as usual for your application server.
  36. </li>
  37. <li>If you are using AspectJ in more than one project,
  38. you might instead deploy <code>aspectjrt.jar</code>
  39. whereever shared libraries belong for your server.
  40. </li>
  41. </ul>
  42. <!-- END-SAMPLE j2ee-myeclipseide-generally -->
  43. <!-- TODO-SAMPLE j2ee-myeclipseide-tomcat4Servlets Running AspectJ servlets in Tomcat 4.x using MyEclipseIDE -->
  44. <h3>Bugs in MyEclipseIDE</h3>
  45. <ol>
  46. <li>After refactoring to rename a servlet, have to manually update web.xml</li>
  47. <li>Silent failure when unable to delete a duplicate resource during deployment.</li>
  48. <li>Annoyingly modal UI for deployment. Use a view.</li>
  49. <li>Need validation on saving Web.xml. E.g., servlet mapping names validated with declared servlet names.</li>
  50. <li>Deployment dirty flag not working; not updated after editing web.xml or rebuilding project.</li>
  51. <li>Apparantly false JSP error? using Sun page and template page,
  52. got:
  53. "Fatal error - The markup in the document preceding the root element
  54. must be well-formed."
  55. Error persisted even after replacing the entire contents of the file
  56. with the template which worked by default.
  57. </li>
  58. <li>When using the exact template page, get no MyEclipseIDE error,
  59. but do get compile errors in Tomcat. Using Javac, get compile-failed
  60. stack trace with initial line number. Using ajc, just get stack trace.
  61. But precompiling using Ant seems to work.
  62. </li>
  63. <li>Precompiling JSP's:
  64. <ul>
  65. <li>MyEclipseIDE has a command to compile all JSP's, but
  66. I don't see (where or how) the updated servlet mappings
  67. get into the deployed web.xml.
  68. It would be great to get this working with AJDT.
  69. </li>
  70. <li>I adapted the Tomcat precompile script to use AspectJ's iajc.
  71. This works fine, but like all Jasper2 solutions required the
  72. generated servlet mappings be copied manually into the web.xml file.
  73. See <a href="#j2ee-tomcat4-precompileJsp">the Ant build script</a>
  74. </li>
  75. </ul>
  76. </li>
  77. </ol>
  78. </body>
  79. </html>