Eclipse and import of web projects running on the server are missing!

I recently installed STS 2.5.1RELEASE and wanted to import the SVN project to continue the development process ... But I can not run it on my Tomcat v6 server! This is what I did:

  • Imported project from SVN (OK)
  • New server added: Tomcat v6.0 (OK)
  • Modified project faces, so I now noted: Dynamic Web Module (2.5) and Java (1.5) with Apache Tomcat v6.0 run time selected.

So, when I select "Run on Server ..." and add the project resource to the server, it launches Tomcat perfectly, but my application never loads!

It’s rare that in my previous version of STS I had "Java 5" as a project facet instead of Java 1.x ... Maybe this is a problem ... Any idea ??? How to add the Java 5 facet? Thanks!

+4
source share
2 answers

Check the project PropertiesTargeted runtimes . You may have selected the wrong value.

+3
source

I had the same problem and the problem was in the project properties.

Make sure you cannot see the server properties. To make them available, you can use “run as”, you need to access the project properties (right-click on the project), the project faces and select the dynamic web module.

In my case, after adding, everything worked fine. It is added to my build path (project properties / path / Java build libraries), web application libraries

0
source

All Articles