when i try to run my jsp files in eclipse bundle with glass fish, this error prompt out, what is the problem?
6 Answers
today; this error wasted my time among 10 hours... Its just because of Dynamic web module version 6.0 !!! change that to 5.0
press file > new > Dynamic Web project > in that page change Dynamic web module version to 5.0 > next > finish
then create jar file and be ready to work

- 31
- 2
-
tutorial for anyone [change version of project facet Dynamic Web Module](https://stackoverflow.com/a/18361713/4573839) – yu yang Jian May 19 '23 at 10:17
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

- 1,262,500
- 529
- 4,410
- 5,250
change Dynamic web module version 6.0 to 5.0 . It works fine.

- 57,590
- 26
- 140
- 166

- 11
- 2
I am creating Dynamic web project for first time but same error also there.
My issue was resolved when i followed these steps:
Connect tomcat with eclipse.
Create new Dynamic web project. When creating new project, select "target runtime" as "<none>", and "Configuration" as "Default Configuration".
After creating project, right click on project, select "Run as" > "Run on server" .
You will able to see a pop up window like this: click to see the image
- Select the server and click finish.
step 1: right click to your project
Step 2: Go to properties
Step 3: search project Facets click on that then
step 4: you can see Dynamic Web Module 6.0 ---> change it to 5.0 Then your problem will resolved

- 3
- 3
To run the JSP file which shows this error "the selection is not within a valid module" step 1: right click to your project
Step 2: Go to properties
Step 3: search project Facets click on that then
step 4: you can see Dynamic Web Module 6.0 ---> change it to 5.0 Then your problem will resolved

- 1
- 1