2012년 2월 21일 화요일

Target runtime GlassFish 3.1.1 is not defined.


Don't show the error message beneath on Eclipse Problems Pane.

Target runtime GlassFish 3.1.1 is not defined.

Project > Properties > Project Facets > Runtimes > uncheck

2012년 2월 19일 일요일

Kill Tomcat process at port 8080


Kill Tomcat process at port 8080

Occasionally the Tomcat server doesn't shutdown in a clean way when using Eclipse. What happens is that port 8080 stays in use and the server can't restart. Exiting Eclipse is not sufficient in this case and a restart of Mac OSX is needed.

So, how to kill the running Tomcat and free port 8080.
Open the terminal window and execute the following commands.

  • sudo lsof -w -n -i tcp:8080
This will give you the pidnumber of the process that runs at 8080. You can then go ahead and kill it.


  • sudo kill -9 pidnumber

2012년 2월 17일 금요일

Eclipse “Errors occurred during the build. Errors running builder ‘JavaScript Validator’ on project ‘some-project’. java.lang.NullPointerException”


“Errors occurred during the build.
Errors running builder ‘JavaScript Validator’ on project ‘some-project’.
java.lang.NullPointerException”
At a first sight it seems that a Javascript validator is throwing a NullPointerException, so probably you will try to disable ‘Client-side Javascript’ validation from Project->Properties->Validation… but I tell you that the problem is not there, you must go to Project->Properties->Builders then disable ‘Javascript Validator’.
Problem solved. Indeed is not a real problem, but the message is a bit annoying because it happens in every build so….