Hi I haven't added the ResteasyWadlServlet explicitly in the web.xml file indeed I currently have no web.xml.My application is responding to/application.xmlWith the following response<application xmlns="http://wadl.dev.java.net/2009/02 "/>So this makes me think that the wadl servlet is activated. So possibly I don't need to add the servlet to web.xml?
However this response does not include the details of the RESTful endpoints I have set up.Thanks for any help,SimonOn 27 March 2018 at 05:08, Wei Nan Li <weli@redhat.com> wrote:To use RESTEasy WADL into Wildfly, you may need to use ResteasyWadlServlet:On Tue, Mar 27, 2018 at 12:18 AM, Simon Poet <spoet@wav2.com> wrote:______________________________Hi,I have started putting together some JAX-RS endpoints for my app. I would like to have a WADL for the whole app.So following the User Guide I have added the following dependencies to my pom<dependency><groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-jaxrs</artifactId> <version>3.0.24.Final</version> <scope>provided</scope></dependency><dependency><groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-wadl</artifactId> <version>3.0.24.Final</version> </dependency><dependency><groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-wadl-undertow-connector</artifactId> <version>3.0.24.Final</version> </dependency><dependency><groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-undertow</artifactId> <version>3.0.24.Final</version> </dependency>I have put in place a simple class to enable the JAX-RS endpoints@ApplicationPath("/")public class RestApp extends Application {}The JAX-RS end points are working as expected. When I try the wadl endpoint /application.xml. I get the following :<application xmlns="http://wadl.dev.java.net/2009/02 "/>So it looks like I am missing the endpoints from the WADLI have overridden the json serialization/deserialization so that it uses GsonI see a code example in the user guideUndertowJaxrsServer server = new UndertowJaxrsServer().start();WadlUndertowConnector connector = new WadlUndertowConnector();connector.deployToServer(server, MyApp.class); Do I need to add this code somewhere?Thanks in advanceCheers, Simon--Simon PoetSoftware DeveloperMiles33_________________
resteasy mailing list
resteasy@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/resteasy
--Cheers,Weinan | JBoss--Simon PoetSoftware DeveloperMiles33