GoogleCloudPlatform / google-cloud-eclipse

Google Cloud Platform plugin for Eclipse
Apache License 2.0
86 stars 49 forks source link

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

Open WilliamRisser opened 2 years ago

WilliamRisser commented 2 years ago

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

chanseokoh commented 2 years ago

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.

elefeint commented 2 years ago

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

nbartels commented 1 year ago

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.

TheodorStorm commented 1 year ago

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.

hugopascual commented 11 months ago

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?

mh114 commented 11 months ago

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? 🤔

Shutterst0ck commented 8 months ago

I can confirm that it works with 4.15

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