3

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

desertnaut
  • 57,590
  • 26
  • 140
  • 166
kojh
  • 269
  • 1
  • 6
  • 15

6 Answers6

3

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

  • 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
2

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

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

change Dynamic web module version 6.0 to 5.0 . It works fine.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
0

I am creating Dynamic web project for first time but same error also there.

My issue was resolved when i followed these steps:

  1. Connect tomcat with eclipse.

  2. Create new Dynamic web project. When creating new project, select "target runtime" as "<none>", and "Configuration" as "Default Configuration".

  3. After creating project, right click on project, select "Run as" > "Run on server" .

  4. You will able to see a pop up window like this: click to see the image

  1. Select the server and click finish.
0

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

0

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

Yokesh M
  • 1
  • 1