tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Rozhdestvensky <>
Subject JAX-RS @Context is null when @ApplicationPath used
Date Tue, 16 Aug 2016 09:16:30 GMT
I try get ServletContext in my custom application scope which extends But in any case ServletContext field is null:

public class CApplication extends Application {
    private ServletContext context;

Such problem doesn't have place in GlassFish and when @Context used inside
service too:

@Path(value = "/test")
public class CService {
    private ServletContext context;
    public Response store(InputStream inputStream) {

Can anyone help?

View this message in context:
Sent from the TomEE Users mailing list archive at

View raw message