Search code examples
eclipseglassfish

error: Selection is not within a valid module


when i try to run my jsp files in eclipse bundle with glass fish, this error prompt out, what is the problem?


Solution

  • As mentioned in this thread, this could be relate to bug 154833:

    The current handling of project modules is such that the project name must match the deploy-name in the .settings/org.eclipse.wst.common.component for "everything" to work correctly.
    If they don't match, I believe the symptom you are experiencing is one of the "things" that goes wrong.

    That's it.
    I was able to work around this problem by checking out the shared project into a project with the identical name as the original.
    I no longer get the error