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: Maxim Nesen <maxim.nesen@xxxxxxxxxx>
  • Date: Tue, 6 Apr 2021 12:14:42 +0000
  • Accept-language: cs-CZ, 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=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o8Ztv2S22rMvlc6yLumcK3rlAaf3hFl9hf134tX5Oq0=; b=XftKfvADVU/XPAYykR72skjAC42/tFjRbrT2XZG0gaQYfqbjrswe44MVDB7Wc7K6MlSYHnPjz6A79uqKzYKJgPtzdajGeiKDI+glX56F8Cr7osCmmXYPIUT9adKSefFVrsWIG+NffjetkriETtOj4nFivP+5N3C81pFvpMiOYODAvwEMwPUtC4h41lTHVRJgiK3FzTqwDAqBkRbtCbjjlULjaXQMO0Lf/dQZNuKUyntiB5GGVFVAteyAT1cfFLPnRPo/bJVaGk+BS1hsV5AkGnNEJu7aNiQjYrbGZmrrKxSYLN+yRETRlD8Uujc2aqWlHln9FfUm7jySPXABL7ABLw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XveuDOts12QFOq+C6nUbO4JF8M9fl7J0OcPQ4xeT24y5rnWH2muTwe6V/jz/TpoSxDDs6II/PGQlK8I+RdygFfx15WGvXVYsB/4khu5Mw2ESknc5Fu6f+Iu4Tjn/hlg91ZC+qqO5thkuyE9LPVVJF35HZb7vHvygFexqTIYA6embUxOdWKNzBN/8EUdo+uTIKTYdEpZEIKoMZoP9Apk20l9YZKsk+Kz1ZoAoWLfaO0AWkd55TcfxXinXkIBGSFaDxgbF2YTtoHgGGAR6/AMwg9XnU53jn0C8fka3IAIfnwDSybtY+3+qA8XcSnN+B4bzZtXBZbwpllTuS8iktbPGYw==
  • 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>
  • Thread-index: AQHXKtYXCEM8t8xNfEGw/yRzEKatGqqnYiaAgAAErSE=
  • Thread-topic: [jersey-dev] [External] : Fixed needed for http://localhost:8080/myapp/application.wadl

Hi Som,

every note is important, I'm doing some collection from your informations to fix all at once.

Thanks for reporting
Regards,
Maxim

Od: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> za uživatele Som Lima <somplasticllc@xxxxxxxxx>
Odesláno: úterý 6. dubna 2021 13:56
Komu: jersey developer discussions <jersey-dev@xxxxxxxxxxx>
Předmět: Re: [jersey-dev] [External] : Fixed needed for http://localhost:8080/myapp/application.wadl
 
Thanks 
I thought nobody was taking any notice of my contribution. 

On Tue, 6 Apr 2021, 12:14 Jan Supol, <jan.supol@xxxxxxxxxx> wrote:
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.

Thanks,
-- 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
 
Hi,

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
is
*   Trying 127.0.0.1:8080...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) 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.
4d3
<
6c5
< <artifactId>simple-service-grizzly</artifactId>
---
> <artifactId>simple-service</artifactId>
9c8
< <name>simple-service-grizzly</name>
---
> <name>simple-service</name>
16d14
<
44,50d41
<
< <dependency>
< <groupId>org.glassfish.jaxb</groupId>
< <artifactId>jaxb-runtime</artifactId>
< <version>3.0.0</version>
< </dependency>
<
74c65
< <version>1.2.1</version>
---
> <version>3.0.0</version>


The result of the fixed app is

curl http://0.0.0.0:8080/myapp/application.wadl
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://wadl.dev.java.net/2009/02">
   <doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 3.0.1 2021-01-26 17:49:29"/>
   <doc xmlns:jersey="http://jersey.java.net/" 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: http://0.0.0.0:8080/myapp/application.wadl?detail=true"/>
   <grammars/>
   <resources base="http://0.0.0.0:8080/myapp/">
       <resource path="myresource">
           <method id="getIt" name="GET">
               <response>
                   <representation mediaType="text/plain"/>
               </response>
           </method>
       </resource>
   </resources>
</application>

_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jersey-dev

Back to the top