Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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>


Back to the top