แสดงบทความที่มีป้ายกำกับ eclipse แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ eclipse แสดงบทความทั้งหมด


เมื่อสร้าง web project defalut ใน eclipse จะได้ servlet 2.3
ถ้าเราแก้ web.xml เอง


จะทำให้ เกิด
Cannot change version of project facet Dynamic Web Module to 3.0.
วิธีแก้ไขคือ
1. คลิ๊กขวาที่ eclipse project เลือก properties -> Project facets -> เอาติ๊กถูกที่ Dynamic Web Module ออกกด apply

2. คลิ๊กขวาที่ eclipse project เลือก maven -> Update Project

Key intellj - eclipse cheat sheet

Eclipse Hot Keys


  • Ctrl + Space - content assist
  • Ctrl + Shift + Space - context information
  • Ctrl + Shift + R - open resource
  • Ctrl + Shift + T - open type
  • Ctrl + Shift + G - find references in the workspace
  • Ctrl + H - search
  • Ctrl + L - go to line
  • Ctrl + W - close window
  • Ctrl + Shift + W - close all windows
  • Alt + Left - back history
  • Alt + Right - forward history
  • Ctrl + Shift + divide ('/') - collapse all
  • Ctrl + D - delete line
  • Ctrl + 8 - new editor in the same window, you can have as many as you wish
  • F2 - show tooltip
  • F3 or Ctrl + lmb click - open declaration
  • F4 - open type hierarchy
  • F12 - switch between source and design views
  • Ctrl + Shift + H - open type in hierarchy
  • Ctrl + E and Ctrl + Shift + E - switch to editor
  • Ctrl + Shift + Slash ('/') - add block comment
  • Ctrl + Shift + Backslash('\') - remove block comment
  • Ctrl + 7 or Ctrl + Slash ('/') or Ctrl + Shift + C - add/remove line comment
  • Ctrl + Shift + O - organize imports
  • Ctrl + Shift + F - format
  • Ctrl + Shift + I - inspect (use in debug)
  • Alt + Shift + O - mark occurances
  • Ctrl + O - quick outline
  • Alt + Shift + S - source quick menu
Method 1

As suggested by another developerWorks page, I was able to fix it by:

1) Close the project (Right-click the project, Close Project)
2) Open the project (Right-click, Open Project)
3) Force a full rebuild

And, no, skipping straight to #3 didn’t fix the problem for me. But, these three steps did.

Method 2[Haven't tried this methos
This snippit that was posted to the IBM developer works forum :

I had the same problem, and resolved it by opening the .settings folder of the EAR project and editing the org.eclipse.wst.common.component file. The war module listed in the error message is missing as a dependent module, so I added it:
http://www.blogger.com/img/blank.gif

WebModule_
uses


where
is the generated WebModule value from META-INF/.modulemaps file for the war
is the name of the war project in the workspace


ref : link
top