Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » Cannot add web project to Tomcat
Cannot add web project to Tomcat [message #1858140] Fri, 17 March 2023 07:08 Go to next message
Paco Pil is currently offline Paco PilFriend
Messages: 2
Registered: March 2023
Junior Member
Hello.

I just updated to Eclipse 2023-03. and now I cannot add my existing web project to my Tomcat.
In first instance I left Eclipse to migrate my workspace, but once I saw the problem I regenerated it with the new version.

I was using 2022-12 before and I could add the same web project to my tomcat without issues.

When I try to add my project to the server I get the message: "There are no resources that can be added or removed from server".

I'm using Java17, JSF4 and Tomcat 10.1.5 (I also tried with 10.1.7).

I attached an screenshot with my web project facets, where you can see that it is a Dynamic web module 6.0 (I also tried to switch to 6.1).

This is the content of my org.eclipse.wst.common.project.facet.core.xml file:

<faceted-project>
<runtime name="Apache Tomcat v10.1"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="17"/>
<installed facet="jst.jsf" version="2.3"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.web" version="6.0"/>
</faceted-project>

I don't see anything wrong with my settings, what am I missing?

Cheers.
Re: Cannot add web project to Tomcat [message #1858156 is a reply to message #1858140] Fri, 17 March 2023 14:24 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

It's unclear why that's happening. Please open a bug report. The workaround is to change the jst.web version down to 5.0--for now, they are functionally identical
when working with Tomcat.


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Cannot add web project to Tomcat [message #1858191 is a reply to message #1858156] Wed, 22 March 2023 05:49 Go to previous message
Paco Pil is currently offline Paco PilFriend
Messages: 2
Registered: March 2023
Junior Member
Thanks for your reply.
With 5.0 it works, however as soon as I update my project (I'm using Maven), it keeps switching to 6.0 and the problem is back again.
I will open the ticket.
Cheers.
Previous Topic:Run on Server
Next Topic:Cannot invoke CXFInstall.getLocation() because cxfInstall is null
Goto Forum:
  


Current Time: Mon May 06 06:17:48 GMT 2024

Powered by FUDForum. Page generated in 0.02716 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top