Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] [External] : Fixed needed for http://localhost:8080/myapp/application.wadl
  • From: Jan Supol <jan.supol@xxxxxxxxxx>
  • Date: Tue, 6 Apr 2021 11:14:41 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cv/m589O2aFFZfvUAj8R3wl3in3wmRtrjrwpELSAjxs=; b=JESlVQQRsD70kVvi5F9KKO0r2E4gpwWiKL0ad3XTmI6HFYi9DLxHkmYGMgBFmZ4h7idcSaia7NTdyGG7YFLl1JB1PLfH9BaNsQzhloWIveNGTOKB6ne3KAQLp2GnkCsNP3zYj4xyVEtPB9r8+toPOdyJIVyJPM+SK6j+FPojVyYl2jaTBt9TLfPdo+/J0TyVSvAdtpLeK3Dw/OONRae/PK2kyVwBbw3AqBZILAj8bYrMWjqLUt8ciVqsUGrFjLkatuev9Knq94658r3OvxC69Wb1dswEQsgejkA7tEQVRw97uLv5WhwxE9EcWEaskNgYRD51pBY9oZyb+ONGBwO0aw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=IpsCocnB4ICIrPw5H58Gpk12POdwybfKbqftUComHirW7kitdjnYiFJZaBYUt7s+X6xE8V17ngl3itbRac1a9AhhJTr97lVWSzvwrts+70yhGcFJTiq2JpnsNypdTTQ4uVGsKRMGHeil7Cio1eIc+FjNTENuUhNoAt57vbiroXtirJCNOwHQEMwEriTRtd65HPhbSCa6Flpjc1XOIGsH3uFzKD52G4gYIf7JRJBphaxbxOLfDl0hfxEI/VVldeO9O69sndk7cro56pw1Lx8XPaeqTzwaUxCf/daoMZyoOEiQTZQ3d+KafQR5dojz6cns2jl1v957TGc8f3ZqfTObzQ==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHXKIj5rzJNHxIEDUK4VVlEYbPsIaqnV879
  • Thread-topic: [External] : [jersey-dev] Fixed needed for http://localhost:8080/myapp/application.wadl

Hi Som,
The WADL support is dependent on JAX-B. While JAX-B is available with JDK 8 out of the box, it is needed to be added with the JDK 11+. 
Jersey prints the information that the WADL feature is disabled when no JAX-B is present. Currently, the demand seems to be for Jersey to be independent on JAX-B, and Jakarta RESTful WebServices 3.1 is going to drop the dependency on JAX-B. 

That led us to add JAX-B dependency for JDK11 only for examples that do specifically mention WADL, or use JAX-B.

-- Jan

From: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> on behalf of Som Lima <somplasticllc@xxxxxxxxx>
Sent: Saturday, April 3, 2021 2:57 PM
To: jersey developer discussions <jersey-dev@xxxxxxxxxxx>
Subject: [External] : [jersey-dev] Fixed needed for http://localhost:8080/myapp/application.wadl

1.3. Running the Project

Jersey app started with WADL available at http://localhost:8080/myapp/application.wadl
Hit enter to stop it...

Although I get the same message  the result of  curl -v http://localhost:8080/myapp/application.wadl
*   Trying
* Connected to localhost ( port 8080 (#0)
> GET /myapp/application.wadl HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.65.3
> Accept: */*
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 0
* Connection #0 to host localhost left intact

I do have a working version and I have done a diff between the two pom.xml files  so you can see the  fixes needed.
< <artifactId>simple-service-grizzly</artifactId>
> <artifactId>simple-service</artifactId>
< <name>simple-service-grizzly</name>
> <name>simple-service</name>
< <dependency>
< <groupId>org.glassfish.jaxb</groupId>
< <artifactId>jaxb-runtime</artifactId>
< <version>3.0.0</version>
< </dependency>
< <version>1.2.1</version>
> <version>3.0.0</version>

The result of the fixed app is

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="">
   <doc xmlns:jersey="" jersey:generatedBy="Jersey: 3.0.1 2021-01-26 17:49:29"/>
   <doc xmlns:jersey="" jersey:hint="This is simplified WADL with user and core resources only. To get full WADL with extended resources
use the query parameter detail. Link:"/>
   <resources base="">
       <resource path="myresource">
           <method id="getIt" name="GET">
                   <representation mediaType="text/plain"/>

Back to the top