Skip to main content

How to control ServletContainerInitializer

2 replies [Last post]
sad_dok
Offline
Joined: 2012-03-05
Points: 0

hi,

I am creating REST service with glassfish and jersey.

I want to perform my original ServletContainerInitializer and it work.

but, both JerseyServletContainerInitializer and My ServletContainerInitializer performes in random order then service registration is conflicted for jax-rs annotated services.

I don't want to describe jersey dependent configuration in codes and configuration like web.xml.

Because I don't want to make dependency to espesiol REST implements on my project as a promise.

How can I disable to perform JerseyServletContainerInitializer in glasfish server?

Or, how can I specify performing order for there initializers?

Please suggest me a solution. Thanks in advance.

Regards.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sad_dok
Offline
Joined: 2012-03-05
Points: 0

I didn't notice a glassfish forum.
I mistook that all of this forum is for glassfish.
I feel that this theme is unfitted this forum after posting.
back this away from this forum.
I will go to Glassfish forum.

thank you.

sad_dok
Offline
Joined: 2012-03-05
Points: 0

I mistook.

wrong : "Or, how can I specify performing order for there initializers?"

correct : "Or, how can I specify performing order for these initializers?"

Regards.