google-cloud-eclipse icon indicating copy to clipboard operation
google-cloud-eclipse copied to clipboard

Cannot Install Cloud Tools for Eclipse - javax.servlet 2.5.0 could not be found

Open WilliamRisser opened this issue 3 years ago • 7 comments

I am following the instructions on https://cloud.google.com/eclipse/docs/quickstart

When I attempt to install the Cloud Tools for Eclipse from the Eclipse Marketplace, I encounter the error:

Cannot complete the install because one or more required items could not be found. Software being installed: Google Cloud Platform for Eclipse 1.8.5.202108061424 (com.google.cloud.tools.eclipse.suite.feature.feature.group 1.8.5.202108061424) Missing requirement: Cloud Tools for Eclipse App Engine Local Server 0.1.0.202108052157 (com.google.cloud.tools.eclipse.appengine.localserver 0.1.0.202108052157) requires 'osgi.bundle; javax.servlet 2.5.0' but it could not be found Cannot satisfy dependency: From: Google Cloud Platform for Eclipse 1.8.5.202108061424 (com.google.cloud.tools.eclipse.suite.feature.feature.group 1.8.5.202108061424) To: org.eclipse.equinox.p2.iu; com.google.cloud.tools.eclipse.appengine.localserver [0.1.0.202108052157,0.1.0.202108052157]

I am running Eclipse Version: 2022-06 (4.24.0) Build id: 20220609-1112

Running Eclipse with vm jdk-11.0.15. Windows 10.

How do I get Cloud Tools for Eclipse to install?

Thanks

WilliamRisser avatar Jun 25 '22 20:06 WilliamRisser

The error says the Cloud Tools for Eclipse (CT4E) requires Servlet 2.5.0, and it doesn't seem available in newer Eclipse versions. Admittedly, 2.5.0 is super old.

In any case, people reported that CT4E doesn't work with recent Eclipse versions.

chanseokoh avatar Jun 27 '22 13:06 chanseokoh

We've seen Eclipse remove old versions of Hamcrest from current repos, too, causing similarish issues.

elefeint avatar Jun 27 '22 18:06 elefeint

We solved this using Eclipse 2021-09, install the Cloud Tools and update Eclipse afterwards. So I have 2022-12 with cloud tools running. Maven had some problems with this, but they are gone for now.

nbartels avatar Jan 04 '23 09:01 nbartels

Installing Eclipse 2021-09 does no longer seem to be a solution. After installing Eclipse 2021-09 and trying to install Google Cloud Tools, an error message appears:

An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Result of processing steps. OK OK Public key not found for 8122282445186051625. OK Result of processing steps. OK OK Public key not found for 8074478291308066379. OK

Tested on Windows 11 and MacOS 13.4 with the same results.

TheodorStorm avatar Aug 29 '23 07:08 TheodorStorm

Results the same to me. I install the 2021-09 version of eclipse but the instalation of Google Cloud Tools give me the same error. An error occurred while collecting items to be installed

session context was:(profile=_home_hugo_eclipse_jee-2021-09_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Result of processing steps. OK OK Public key not found for 6640597757109451687. OK Result of processing steps. OK OK Public key not found for -8587782299385769255. OK Result of processing steps. OK OK Public key not found for -8587782299385769255. OK Result of processing steps. OK OK Public key not found for -3201949265353332372. OK Result of processing steps. OK OK Public key not found for 6640597757109451687. OK Result of processing steps. OK OK Public key not found for -5034155639734203956. OK Result of processing steps. OK OK Public key not found for 8074478291308066379. OK Result of processing steps. OK OK Public key not found for 6640597757109451687. OK

Someone knows how to solve it?

hugopascual avatar Oct 05 '23 09:10 hugopascual

Same here, with Eclipse 2021-09:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Result of processing steps.
OK
OK
Public key not found for 6640597757109451687.
OK

What gives? 🤔

mh114 avatar Oct 26 '23 10:10 mh114

I can confirm that it works with 4.15

https://github.com/GoogleCloudPlatform/google-cloud-eclipse/issues/3720#issuecomment-1478039423

Shutterst0ck avatar Jan 02 '24 16:01 Shutterst0ck