open-liberty | Open Liberty | Microservice library

 by   OpenLiberty Java Version: gm-22.0.0.4 License: EPL-1.0

kandi X-RAY | open-liberty Summary

kandi X-RAY | open-liberty Summary

open-liberty is a Java library typically used in Architecture, Microservice applications. open-liberty has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has high support. However open-liberty build file is not available. You can download it from GitHub, Maven.

A lightweight open framework for building fast and efficient cloud-native Java microservices:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              open-liberty has a highly active ecosystem.
              It has 939 star(s) with 494 fork(s). There are 36 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1630 open issues and 7076 have been closed. On average issues are closed in 111 days. There are 466 open pull requests and 0 closed requests.
              It has a positive sentiment in the developer community.
              The latest version of open-liberty is gm-22.0.0.4

            kandi-Quality Quality

              open-liberty has no bugs reported.

            kandi-Security Security

              open-liberty has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              open-liberty is licensed under the EPL-1.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              open-liberty releases are available to install and integrate.
              Deployable package is available in Maven.
              open-liberty has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed open-liberty and discovered the below as its top functions. This is intended to give you an instant insight into open-liberty implemented functionality, and help decide if they suit your requirements.
            • Logs the web context params .
            • Gets a user property by name .
            • Populate the options .
            • Add a method to the stub .
            • Add EJB Method .
            • Sends a message to the exception destination .
            • This method is called when a message is delivered .
            • Load implementation classes .
            • Internal search implementation .
            • Create a connection to the MCWrapper .
            Get all kandi verified functions for this library.

            open-liberty Key Features

            No Key Features are available at this moment for open-liberty.

            open-liberty Examples and Code Snippets

            No Code Snippets are available at this moment for open-liberty.

            Community Discussions

            QUESTION

            OpenLiberty JakartaEE 9: access TransactionManager
            Asked 2022-Mar-15 at 15:47

            On Docker Image open-liberty:22.0.0.1-full-java17-openj9 with the following activated features:

            ...

            ANSWER

            Answered 2022-Feb-14 at 14:26

            The problem here is that the API and SPI bundles that start with io.openliberty have not been publishing to DHE and maven as part of the Liberty publishing tasks that run when a new version is released. We are looking to have this resolved with 22.0.0.2 which is scheduled to be available tomorrow if we don't run into any additional snags and the io.openliberty publishing goes well.

            Source https://stackoverflow.com/questions/71112630

            QUESTION

            Share sessions data between different apps using httpSessionCache and HazelCast in OpenLiberty
            Asked 2021-Nov-22 at 12:08

            Usings the OpenLiberty sessionCache-1.0 feature with HazelCast enables you to easily persist and share session data in a HazelCast in-memory cluster as explained here: https://openliberty.io/guides/sessions.html.

            However in this setup session data is stored internally in the maps named: com.ibm.ws.session.attr.[app-context-root] & com.ibm.ws.session.meta.[app-context-root] as indicated here (I don't see the OpenLiberty docs clearly specifying this though)

            This prevents different apps (with different context-roots) to share session data since they are writing and reading session data from different named maps.

            Is there a way to overwrite this name to enable apps with different context-roots to read write from the same map to share session data?

            I was going over the httpSession- and httpSessionCache-properties in the OpenLiberty docs but could not find any attribute supporting such a thing.

            ...

            ANSWER

            Answered 2021-Nov-19 at 15:06

            To share session between different Web apps within the same EAR, you can use shared-session-context in ibm-application-ext.xml to enable all Web apps use the same session context-root.

            https://www.ibm.com/docs/en/was-liberty/base?topic=configuration-osgiapplication#application-ext

            Here's an example:

            Source https://stackoverflow.com/questions/70027454

            QUESTION

            JPA: How to specify tables from different DB2 schemas using @NamedQuery. Schema.Table cannot be the first declaration of the FROM clause
            Asked 2021-Nov-02 at 00:37

            I encountering a problem when sending a GET request from Postman to test my endpoints. The same NamedQueries worked before with Derby with just the one Schema, so no need to differentiate then. I have now changed to DB2 running in a local Docker instance and am using Maven to run Open-Liberty Framework to create the endpoints. I am receiving the below error. Do I need to create a orm.xml file with entity-mappings, or do something else to resolve this? I would prefer to do this without more xml files if possible.

            Postman:

            Error 500: java.lang.NullPointerException: Cannot invoke >"javax.persistence.EntityManager.createNamedQuery(String, java.lang.Class)" because "this.em" is null

            Maven:

            [INFO] [ERROR ] CWWJP0015E: An error occurred in the org.eclipse.persistence.jpa.PersistenceProvider persistence provider when it attempted to create the container entity manager factory for the jpa-unit persistence unit. The following error occurred: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.7.9.v20210604-2c549e2208): org.eclipse.persistence.exceptions.EntityManagerSetupException

            [INFO] Exception Description: Deployment of PersistenceUnit [jpa-unit] failed. Close all factories for this PersistenceUnit.
            [INFO] Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.7.9.v20210604-2c549e2208): org.eclipse.persistence.exceptions.JPQLException
            [INFO] Exception Description: Problem compiling [SELECT u FROM Sankofa.Users u].
            [INFO] [14, 29] 'Sankofa.Users u' cannot be the first declaration of the FROM clause.

            UserDao

            ...

            ANSWER

            Answered 2021-Nov-01 at 15:34

            How to specify tables from different DB2 schemas using @NamedQuery

            AFAIK, you cannot configure the schema value at the query level. All the named queries defined under the Entity at expected to be executed against the same schema.

            1. The database schema can be set at the persistence-unit level via orm.xml mapping file:

              orm.xml

            Source https://stackoverflow.com/questions/69797754

            QUESTION

            liberty:devc: not being honored
            Asked 2021-Jun-11 at 00:28

            I observe that the element, though it points to a valid Dockerfile is not honored by liberty:devc.

            Consider this output from mvn help:effective-pom:

            ...

            ANSWER

            Answered 2021-Jun-11 at 00:28
            SOLUTION: Use plugin-level configuration (not execution-level)

            You need to add your configuration at the plugin level rather than the execution level.

            So it should look more like:

            Source https://stackoverflow.com/questions/67929205

            QUESTION

            Injection of bean inside ClientHeadersFactory doesn't work
            Asked 2020-Oct-02 at 22:45

            I'm building a Quarkus app which handles http requests with resteasy and calls another api with restclient and I need to propagate a header and add another one on the fly so I added a class that implements ClientHeadersFactory.

            Here's the code:

            ...

            ANSWER

            Answered 2020-Oct-02 at 22:45

            This issue has finally been solved in Quarkus 1.8.

            Source https://stackoverflow.com/questions/62770757

            QUESTION

            Ignore LtpaToken in WebSphere Liberty
            Asked 2020-Jul-06 at 14:22

            My organization already has some web applications deployed on a liberty server, using its SSO, which sets an LtpaToken cookie for the entire intranet domain.

            Now we are switching to openidconnect authenticated, sessionless (with JWT) secured web applications.

            Authentication is working fine - only the browser is involved - and authorization is also working fine (with feature mpJwt-1.1).

            But when the user comes from another web application (within the same session), the browser sends LtpaToken2 cookie and liberty rejects the request with 401 (unauthorized).

            I'd like to:

            1. completely ignore whichever LtpaToken cookie happens to come in the request (yes, completely ignore, as if it was never there, either valid or invalid, or expired or whatever, our new applications could never care less for the older SSO scheme);
            2. never ever generate an LtpaToken once the first request with a valid JWT token comes in.

            EDIT

            The 2nd point above is not really happening (to be clear, this new liberty server is not generating an LtpaToken).

            I've managed to create a MWE, comprising (in fact so minimal that you only need the server.xml and any index.html):

            (server.xml)

            ...

            ANSWER

            Answered 2020-Jul-06 at 14:22

            QUESTION

            OpenLiberty throws javax.net.ssl.SSLHandshakeException
            Asked 2020-May-13 at 15:24

            I try to run a microservice (based on Eclipse Microprofile) on OpenLiberty (v20.0.0.1/wlp-1.0.36.cl200120200108-0300) on Eclipse OpenJ9 VM, version 1.8.0_242-b08 (en_US))

            I run the server as the official Docker image (open-liberty:kernel)

            In my service I try to connect to another rest service via HTTPS

            ...

            ANSWER

            Answered 2020-May-10 at 19:19

            Liberty doesn't trust anything over ssl by default, so unless the service you are connecting to uses an identical keystore/truststore file, or you've otherwise configured your service to trust the microservice in some way, you can get that exception. If this is the problem, something like this will probably be seen in messages.log as well:

            com.ibm.ws.ssl.core.WSX509TrustManager E CWPKI0823E: SSL HANDSHAKE FAILURE: A signer with SubjectDN [CN=localhost, OU=oidcdemo_client, O=ibm, C=us] was sent from the host [localhost:19443]. The signer might need to be added to local trust store [/Users/tester/tmp/liberty/20003wlp/wlp/usr/servers/urlcheck/resources/security/key.p12], located in SSL configuration alias [defaultSSLConfig]. The extended error message from the SSL handshake exception is: [PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target].

            How to manually patch up the truststore is documented here,

            https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_add_trust_cert.html

            but what you will probably want to do in a docker environment is modify your images to either include a common keystore/truststore, or read one from outside somewhere (such as a kubernetes secret). By default, each docker image creates it's own unique key/truststore, and they won't be able to "talk" over ssl.

            If you only need to communicate with services that have a certificate signed by a well-known authority, you can add

            ENV SEC_TLS_TRUSTDEFAULTCERTS=true

            to your Dockerfile (20.0003+) to enable that.

            Source https://stackoverflow.com/questions/61681065

            QUESTION

            webprofile 6 missing in openliberty but not in websphere liberty
            Asked 2020-May-07 at 13:48

            Currently we are trying to build a docker image with openliberty 20.0.0.3 with webprofile6 with java 8, we were able to do this with websphere liberty full profile image but not with the full profile image from open-liberty.

            Is this something expected?

            There is a way to have availble it in open-liberty?

            Thanks

            Michele

            ...

            ANSWER

            Answered 2020-May-07 at 13:48

            This is expected, some older versions of jee features are available in websphere liberty only. You could move to a later version like webProfile-8.0 which is available in open liberty.

            Source https://stackoverflow.com/questions/61659231

            QUESTION

            Open Liberty inside Eclipse: publishing results in an JMX connection error
            Asked 2020-Apr-14 at 12:05

            I configured the Open Liberty server inside Eclipse 2020-03 using the Eclipse Developer Tools from https://openliberty.io/downloads/#eclipse_developer_tools.

            I can add my .war project and start the server without problem, but publishing on the running server results in an Error:

            Also at startup there is an error in the server console:

            ...

            ANSWER

            Answered 2020-Apr-14 at 12:05

            The localConnector-1.0 feature is required by the tools in order to connect to the server. If it is not there you will get that error message about the JMX connection failure and the tools will keep trying to add it back to the server.xml. Are you using a minimized server with only a specific subset of features? You could install the localConnector-1.0 feature using the installUtility that comes with Liberty. It is found in the bin directory:

            Source https://stackoverflow.com/questions/61197358

            QUESTION

            OpenLiberty Docker image with *all* features enabled
            Asked 2020-Feb-11 at 15:06

            The OpenLiberty Docker Images tagged as full contain a server.xml that only enables the javaee-8.0 feature. Those tagged as microProfile3 only enable microProfile-3.0.

            I want both... even better: I'd like to have just all features enabled while I'm developing; I'll optimize for performance when I need it, i.e. maybe not at all.

            Is there an easier way than to build another image with both features enabled?

            ...

            ANSWER

            Answered 2020-Feb-11 at 14:21

            It isn't possible to enable all features at once in Liberty because many of the features intentionally conflict with one another. For example, you can't load two different versions of the same feature at the same time (e.g. servlet-3.1 and servlet-4.0)

            You can pretty concisely enable all of the latest JavaEE and MicroProfile features at once by doing this:

            Source https://stackoverflow.com/questions/60167220

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install open-liberty

            Clone the repository to your system. Run a gradle build. Run the unit or FAT tests. ./gradlew test for unit tests. ./gradlew build.example_fat:buildandrun to run a FAT project. NOTE: ./gradlew build runs the assemble and test tasks. Perform a local release. NOTE: This task releases all projects to the local releaseRepo. The final openliberty zip can be found in.
            Clone the repository to your system. git clone git@github.com:OpenLiberty/open-liberty.git
            Run a gradle build. cd open-liberty/dev ./gradlew cnf:initialize ./gradlew assemble
            Run the unit or FAT tests. ./gradlew test for unit tests ./gradlew build.example_fat:buildandrun to run a FAT project NOTE: ./gradlew build runs the assemble and test tasks
            Perform a local release ./gradlew releaseNeeded NOTE: This task releases all projects to the local releaseRepo. The final openliberty zip can be found in open-liberty\dev\cnf\release\dev\openliberty\<version>\openliberty-xxx.zip

            Support

            Our CONTRIBUTING document contains details for submitting pull requests. FYI: The project recently renamed master branch to release. More info here: https://github.com/OpenLiberty/open-liberty/wiki/Master-rename-to-Release.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link