Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tyrus-dev] [External] : requirements?
  • From: Jan Supol <jan.supol@xxxxxxxxxx>
  • Date: Wed, 23 Apr 2025 20:29:43 +0000
  • Accept-language: en-US
  • 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=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UHQg80zozK5eI5/u6/eahZ9YIUrPgAJaydoWyZQlXWo=; b=e5cS3mRiUkSCtm/uyKS9XhopJLlIfNBahSnlGHQtCCFA8E82SoeG6KXFiSxPWvZhVacIqLbgnnr06KivkJln9HbNHLn3nWzmLo95YLBg8lsoH4B4Tzt+Y9EYnwUvqVC/f7cPHAMmbcPKHyGGalvrg7Q23BsHe5CVZf5HtmY1zoG+vZuIOmXMQzKuAsWHJRDZH88//pNm3b/EOtntkmdk+H6HJ3lu/gKb1PlnYKBZ8YHnxYU7b9nZ0zDRqRG2Cl75gk4Uya07fC4CyjOCVds2Bj/9rTgpunLSh8Q/Jf7LmVv7Z7PVN6QRR6BW4ZUOCHIxePUT31JppkDqEZFjMMzwbQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f5W3Lw0KvgZza0XbdgXj1g+4fvUhX9VMUv/RDOZe+ZqNgB7s0VM5sj6qwYA0X2SES4RUG9rogMSomRewrf/7uu4jp1dZyXC4kHpk+rfIO4Vq+j5ZXsVRwSZADBM/DJF/dFZoULrbaWzhDakeIGHD7+KWKvo8+Fcj9nEqT8AiAgHX50hRbmyaQTwKF4Q0k7E3/V8Ki1ZKcMmg72BGODHMO8xDTFF8UTtBVNa5D5qdErhRzgltDzaxXW00+uMuSL09On4JXDJX2TXVXTm9JLfZrdZroV8a9wSNW2vKZKU6xPGmn2sgxSvvup4vyJRuoLbJWMgVl1aOkLmPiSIberaQiA==
  • Delivered-to: tyrus-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tyrus-dev/>
  • List-help: <mailto:tyrus-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tyrus-dev>, <mailto:tyrus-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tyrus-dev>, <mailto:tyrus-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHbsJ3W+cxq+pi7tk2G1fyolcwqg7OxtbGC
  • Thread-topic: [External] : [tyrus-dev] requirements?

Hi,
These two bundles are composed from the dependencies for the two options the Tyrus client has:
Using either the JDK classes for the HTTP/WebSocket request (No Grizzly Needed), or using Grizzly (which is bundled in the tyrus-standalone-client). These two bundles should contain all the dependencies necessary.

The other option is to use just the Tyrus jars without included dependencies 
(org.glassfish.tyrus:tyrus-container-jdk-client vs tyrus-container-grizzly-client),
org.glassfish.tyrus:tyrus-client
jakarta.websocket:jakarta.websocket-client-api
And for Grizzly extra dependencies
org.glassfish.grizzly:grizzly-framework
org.glassfish.grizzly:grizzly-http-server

The grizzly variant is used in the Glassfish/Payara application server, the JDK variant in WebLogic application server.

What confuses me is that in your env, the tyrus-standalone-client-jdk throws exception from the org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer.

The deployment exception is usually thrown when some criteria are not met for the endpoint. There are multiple conditions described in the WebSocket Specification document: https://jakarta.ee/specifications/websocket/2.2/jakarta-websocket-spec-2.2#deployment-errors resulting in the DeploymentException.

HTH,
Jan




From: tyrus-dev <tyrus-dev-bounces@xxxxxxxxxxx> on behalf of Guy McArthur via tyrus-dev <tyrus-dev@xxxxxxxxxxx>
Sent: Friday, April 18, 2025 10:09 PM
To: tyrus-dev@xxxxxxxxxxx <tyrus-dev@xxxxxxxxxxx>
Cc: Guy McArthur <guymac@xxxxxxxxx>
Subject: [External] : [tyrus-dev] requirements?
 
What are the additional requirements for tyrus-standalone-client-jdk
vs tyrus-standalone-client? I don't see this information in the online
docs. I am using the following imports

import org.glassfish.tyrus.client.ClientManager;
import org.glassfish.tyrus.client.ClientProperties;
import org.glassfish.tyrus.client.auth.Credentials;

tyrus-standalone-client-jdk 2.2.0 throws this exception:

Exception in thread "main" java.lang.RuntimeException:
jakarta.websocket.DeploymentException:
org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer

        at org.glassfish.tyrus.client.ClientManager.<init>(ClientManager.java:256)
        at org.glassfish.tyrus.client.ClientManager.createClient(ClientManager.java:222)
        at org.glassfish.tyrus.client.ClientManager.createClient(ClientManager.java:198)
        at org.uahirise.starapp.StarwebClient.connectWS(StarwebClient.java:139)
        at org.uahirise.starapp.StarwebClient.openWS(StarwebClient.java:129)
        at org.uahirise.starapp.StarwebClient.main(StarwebClient.java:261)
Caused by: jakarta.websocket.DeploymentException:
org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer

        at org.glassfish.tyrus.core.ErrorCollector.composeComprehensiveException(ErrorCollector.java:60)
        ... 6 more

I tried adding tyrus-container-grizzly-client 2.2.0 but received the
same exception. I am using Java 21.
_______________________________________________
tyrus-dev mailing list
tyrus-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/tyrus-dev__;!!ACWV5N9M2RV99hQ!OKjcY__7OlLXBneYT506rh38CtNBW9VtULO66YMXmqg38meKkxU1DfDolTn3uNAczxebBSwQ4u-z0LvZigr9$

Back to the top