tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TURPIN Michel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TOMEE-2099) JAX-RS Application#getProperties is never called
Date Wed, 19 Jul 2017 11:41:00 GMT

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

TURPIN Michel updated TOMEE-2099:
---------------------------------
    Attachment: tomee2099.zip

Hi Jonathan,

I cannot access github from my working place so you will find a zip attached with a 5 classes
maven project.

You may launch the project with {{mvn package tomee:run}} and then test the jax rs resource
at {{http://localhost:8080/tomee2099/resources/foo/}}.

The expected behavior would be to find {{Hello world !}} but instead you will find {{Get off
me world !}}.
This is expressed with the different MessageBodyWriter implementations chosen by the NameFormatFeature
class.

> JAX-RS Application#getProperties is never called
> ------------------------------------------------
>
>                 Key: TOMEE-2099
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2099
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.3
>         Environment: $ mvn -version
> Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
> Maven home: D:\tools\apache-maven-3.2.3
> Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_111\jre
> Default locale: fr_FR, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> Running TomEE Plus through the tomee maven plugin
>            Reporter: TURPIN Michel
>            Assignee: Jonathan Gallimore
>              Labels: features
>         Attachments: tomee2099.zip
>
>
> The {{Application#getProperties()}} method is never called / used.
> As a consequence, it is impossible to configure a Feature or DynamicFeature that would
read properties from the context configuration from an Application subclass.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message