open-liberty

How to copy external dependency to Open Liberty during maven build

我们两清 提交于 2020-02-24 11:58:06
问题 I need to copy derby.jar into Open Liberty shared directory ${project.build.directory}/liberty/wlp/usr/shared/resources/ . I have the following setup in the pom.xml file: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <id>copy-derby-dependency</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <includeArtifactIds>derby</includeArtifactIds>

Websphere Liberty: How to specify log4j2 configuration location?

不羁的心 提交于 2020-01-24 17:27:25
问题 I'm trying to tell Websphere Liberty where is located my log4j2.xml file, but it isn't working. In my file jvm.options I configure: -Dlog4j.configurationFile=file:///${server.config.dir}/log4j2.xml but it looks like Liberty does not understand the variable ${server.config.dir} in the jvm.options file. The file is in the same directory of the server.xml file. How would I specify the log4j2.xml location for Liberty? 回答1: I think it should be possible by creating a Library entry in your server

SSL config for outbound connections doesn't work in websphere-liberty 17.0.0.2

江枫思渺然 提交于 2019-12-25 11:20:51
问题 I'm trying to configure websphere-liberty server to use default keystore and trustore for all outbound connections (actually REST calls) and for inbound use a custom key and trust stores. But it fails with SSLHandshakeException when try to make a call to external REST service. In logs I can see that it uses my custom truststore instead of default one. Below is my server.xml <?xml version="1.0" encoding="UTF-8"?> <server description="Default server"> <featureManager> <feature>appSecurity-2.0<

SSL config for outbound connections doesn't work in websphere-liberty 17.0.0.2

可紊 提交于 2019-12-25 11:19:30
问题 I'm trying to configure websphere-liberty server to use default keystore and trustore for all outbound connections (actually REST calls) and for inbound use a custom key and trust stores. But it fails with SSLHandshakeException when try to make a call to external REST service. In logs I can see that it uses my custom truststore instead of default one. Below is my server.xml <?xml version="1.0" encoding="UTF-8"?> <server description="Default server"> <featureManager> <feature>appSecurity-2.0<

HTTP/2 Support on Open Liberty

限于喜欢 提交于 2019-12-24 10:28:47
问题 Does Open Liberty support HTTP/2, or does it need a setting on server.xml? Ive had a look around but cant find anything relating to this I have a push servlet at the moment - public class PushServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PushBuilder pushBuilder = req.newPushBuilder(); pushBuilder.path("push.css").push(); try (PrintWriter respWriter = resp.getWriter();) { respWriter.write("

Webpshere Liberty support for Java 9

非 Y 不嫁゛ 提交于 2019-12-19 10:28:07
问题 Does Webpshere Liberty support for Java 9? as of latest beta it is mentioned fully compatible with Java 8 but there is not mentioning about upgrade. Whether Java 9 Module path can be supported with Websphere liberty? 回答1: Websphere Liberty mostly works with Java 9 in "toleration mode", meaning that Liberty and apps can run on Java 9, but you can't take advantage of Java 9 modularity yet. You can find more detailed progress of OpenLiberty (an open-source subset of Websphere Liberty) support

What is the difference between OpenLiberty and WebSphere Liberty? [closed]

ぃ、小莉子 提交于 2019-12-19 05:46:23
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Recently IBM created a new open source project called "OpenLiberty" that is largely shared with the codebase for WebSphere Liberty. What is the difference between OpenLiberty vs. WebSphere Liberty? What features do I get with the free open source version, and what extra features

Best way to package liberty app with default java truststore (cacerts)

自闭症网瘾萝莉.ら 提交于 2019-12-13 15:17:40
问题 I'm packaging a liberty application which works with Db2. When we run locally, we configure certificates to secure the connection from app to db. Now I'm trying to package the same application for use with the Db2 on Cloud service, and I'm having trouble with the SSL configuration. I think I could create a truststore and add the digicert root CA to it and package that with the app, but instead I was leaning toward just using the JDK's built-in cacerts (because we also have restrictive