1.Uncaught TypeError: Cannot read property ‘msie’ of undefined
A:The $.browser method has been removed as of jQuery 1.9.
The jQuery.browser() method has been deprecated since jQuery 1.3 and is removed in 1.9. If needed, it is available as part of the jQuery Migrate plugin. We recommend using feature detection with a library such as Modernizr.
— jQuery Core 1.9 Upgrade Guide.
As stated in the Upgrade Guide you can try using the jQuery Migrate plugin to restore this functionality and let jQuery Tools work.
2.The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path in Eclipse
A:To include http-servlet into your class path, you have two options:
1. In this solution, you can add desired server runtime into your application as project facet. As runtime servers have already servlet runtime dependencies, they get included into your project and hence error is gone. 2. Another option is include the servlet dependency through maven itself. This will also fix the error.
1 2 3 4 5
3.Dynamic Web Module 3.1 requires Java 1.7 or newer
Make sure your Java Project is configured probably to use Java 1.7. Right click your project > Properties > Java Compiler and set “Compiler compliance level” to 1.7
Java Build Path. Click “Edit“. And change it to “Java 7”
Next from the menu on the left select Project Facets > Java and set its version to 1.7
If you have maven project try updating source and target version of java compiler to 1.7 in pom.xml file.
4.How to display available goals of maven plugin?
Recent Maven plugins have generally an help goal to have in the command line the description of the plugin, with their parameters and types. For instance, to understand the javadoc goal, you need to call:
It works of course for Maven core plugins. to list all goals of the archetype plugin :
And it works also for third party plugins. For example, to display all goals of the spring-boot plugin :
5.Not a java source folder
A:以 maven-archetype-webapp 为原型新建工程，建好的工程没有 java 目录，于是在 src/main 下新建 java 目录，之后新建 Filter 或 Servlet 时提示 Not a java source folder.尝试右击 java 目录 > Build Path > Use as Source Folder 依然未生效，只得将目录删除恢复原状想其他办法。
于是选中工程 > Properties > Java Build Path > Source， 里面提示 src/main/java build path entries are missing, 嗯，有了新的线索，于是将这些丢失的入口都删除了，再重新创建 java source folder, 这样问题得到了解决，感觉这个问题像是 eclipse 的一个 bug.继续阅读