Target runtime JBoss v4.2 is not defined

Johnny picture Johnny · Nov 4, 2013 · Viewed 18.8k times · Source

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.

enter image description here

What other libraries do I miss to add?

Answer

Johnny picture Johnny · Nov 4, 2013

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.