Giter Site home page Giter Site logo

Missing requirement: org.eclipse.rap.rwt.osgi 3.22.0.20220708-1200 requires 'java.package; javax.servlet [4.0.0,5.0.0)' but it could not be found about org.eclipse.rap HOT 3 CLOSED

eclipse-rap avatar eclipse-rap commented on September 22, 2024
Missing requirement: org.eclipse.rap.rwt.osgi 3.22.0.20220708-1200 requires 'java.package; javax.servlet [4.0.0,5.0.0)' but it could not be found

from org.eclipse.rap.

Comments (3)

mknauer avatar mknauer commented on September 22, 2024

I've never tested these Jetty Docker images myself, but that seems to be a pretty nice idea.
Although...

Eclipse Jetty maintains a good list with their version numbers and the provided/supported API levels: www.eclipse.org/jetty/download.php

You were testing RAP 3.22 which requires a Servlet level 4.0 that is provided by Eclipse Jetty 10, but you are using a Docker image that includes only a Jetty 9 (probably a Jetty 9.4 which provides Servlet 3.1) in your command line.

In my test runs with the RAP demo applications everything started to work after switching to the jetty:10-jre17 Docker image. Eclipse Jetty version 10 is exactly the version that we are using for our own tests, and what we provide as part of our p2 repositories.

(And please keep in mind that Eclipse Jetty 11 with Servlet 5.0 is a change to the JakartaEE namespace, an incompatible switch of the API, and therefore is not expected to work #73.)

from org.eclipse.rap.

peat78 avatar peat78 commented on September 22, 2024

thanks for your answer, but the above error message (Missing requirement: org.eclipse.rap.rwt.osgi ...) comes from maven tycho build. So I cannot build my stuff anymore ... I guess I need to include a p2 repo + deps but could not figure out which one. Is there a reference project somewhere to look up?

from org.eclipse.rap.

mknauer avatar mknauer commented on September 22, 2024

Ah, yes, there is a Tycho build example, in fact it is the one I used for creating the .war files that I used for testing the above Jetty Docker images.

In the releng project org.eclipse.rap.examples.build you'll find instructions on how to run the build itself. It also contains the pom files for the three demo war projects in subdirectories, and I'd suggest you look into org.eclipse.rap.examples.build/rapdemo.

There you'll find the pom.xml, and especially the product definition in org.eclipse.rap.examples.rapdemo.product with all the dependencies, and assembly.xml that explicitly excludes the API bundles when assembling the final war file.

The idea of the Eclipse RAP p2 repositories is that they are self-contained, i.e. https://download.eclipse.org/rt/rap/3.22/R-20220906-0913/ is expected to contain everything you'll need (unless we do miss something by accident).

I hope that helps...

from org.eclipse.rap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.