I have imported a project and got the error "Target runtime JBoss v4.2 is not defined". I have added the JBoss 4.2 Runtime library. However, the error is still there.
In my Java Build Path, I have the followling libraries added already.
What other libraries do I miss to add?
Have found the solution from net.
Right click on your project -> "Properties" -> "Project Facets" -> "runtimes" ->
uncheck your JBoss v4.2 and v5.0 check the new Jboss
But for my case, "uncheck JBoss 4.2 and check JBoss v4.2" for the last step.