[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jersey-dev] [External] : how do I get these features when using Glassfish (payara)
|
- From: Ed Bratt <ed.bratt@xxxxxxxxxx>
- Date: Fri, 30 Apr 2021 15:59:07 -0700
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/664y74gUmmviLq7OhmCX4dc4J7yf8WgOhNMEbnK5Rs=; b=HE6PBIi7TDuqu9s+oxRmqI/1wI1h3i9dlTRZlGRzTjcL679m69veZ9/9vGZHXajsPZa4UeK/7jm4Va8Nc62FdiNUTh09+mAfJ/bxUb6ZfruRRVaqslwHT/QTlpN8Iv4euI0CiHsv6uYTZ8CYUjXfJKUXRmDl9G03wg+STs1x7F+QkbpM++lCGSY0LC1IMzn/S+GJuCi92ZiFsElvun7z227efEfdYviZ+masgFfbu/ZVPbJn0Xu/upKosONhRYwWQ4COT2BqG9nt7umvgwR3RH8eRkeeny4WldFFD/K5sKuYQywEfnVGs97MByT6QPVL1kn28bLzGbMqJMhTNQtAbA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NrNZ3vwUvViGvd95ZPARD8jX76jIxLGSnz6puAZhGzJF8wiSiXF3cMLc3GhcTXo3BO1Tg+9yq5SCDA5f2Mg1aW0Wk0rMHFg9krrhx2rLvK5P3RMUmNXOd48LuT2E1ObhrXD6PdlIy/ZpFCgyW+PkgMeDl50ZhVZ2UarlvgpwRdemfVXwovwlPRm3gFO5s8tfyOM8tk3xKfLi3119hmky5GWQQo9Z0cvToz/DBkh+HQxpc7MGKXZAGWh/rozm5SY+RpvORStWMiVlxpavZaJ/DbyMz01I69WAmIfHxvEWGs9Pdot18+WbhCEB0hZ5EiEq2+7GgXKejqFBhLEIgopVTw==
- Delivered-to: jersey-dev@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
- List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
Brian,
Someone here may be able to help you but, if you have not, you might try
asking on the Payara Forum: https://groups.google.com/g/payara-forum?
-- Ed
On 4/30/2021 2:24 PM, Brian E. Lavender wrote:
I am using Payara server(payara-5.2020.7) . The thing is, this application is an old Ant
application and we have just copied additional jar dependencies in the
lib section for the ejb app.
I successfully built a stand alone jersey-client application of the
client. Now, I am trying to integrate that logic into the ejb app. Thing
is, I seem to have a couple pieces of code for which there seems to be
a missing dependency.
One, is using the HttpAuthentication feature. These are the pieces that
show errors when I try to use them with my Payara app server.
HttpAuthentication Feature.
```
HttpAuthenticationFeature feature =
HttpAuthenticationFeature.basic(user, pass);
client.register(feature);
```
Use the client builder to build the client. Is there a different method
for build the client when using Glassfish?
```
client = ClientBuilder.newBuilder()
.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY_CLIENT,
LoggingFeature.Verbosity.PAYLOAD_ANY)
.property(LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_CLIENT,
"INFO").build();
```
The following are the missing imports when using Glassfish.
```
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
import org.glassfish.jersey.logging.LoggingFeature;
```
Any tips on this?
Brian