tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (TOMEE-1262) JAX RS Autoscanning from Web XML
Date Tue, 01 Jul 2014 11:07:24 GMT

     [ https://issues.apache.org/jira/browse/TOMEE-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau reassigned TOMEE-1262:
-----------------------------------------

    Assignee: Romain Manni-Bucau

> JAX RS Autoscanning from Web XML
> --------------------------------
>
>                 Key: TOMEE-1262
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1262
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.6.0.2
>            Reporter: Amol Khanolkar
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.7.0
>
>
> As per java specs when If i dont have subclass of Application class I can place the below
snippet in web.xml and it should scan all the classes for @Path and rest services should be
deployed
> <servlet>
>     <servlet-name>javax.ws.rs.core.Application</servlet-name>
> </servlet>
> <servlet-mapping>
>      <servlet-name>javax.ws.rs.core.Application</servlet-name>
>      <url-pattern>/myresources/*</url-pattern>
> </servlet-mapping>
> But same things works if I make empty class subclassing Application class and annotate
it with @ApplicationPath or Dont annotate the class but add it in web.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message