IllegalArgumentException: No Container Provider Supports the Type Class org.glassfish.grizzly.http.server.HttpHandler' When Using com.tangosol.coherence.rest.server.GrizzlyHttpServer

(Doc ID 1518898.1)

Last updated on FEBRUARY 01, 2013

Applies to:

Oracle Coherence - Version 3.7.1 and later
Information in this document applies to any platform.

Symptoms

When using com.tangosol.coherence.rest.server.GrizzlyHttpServer get the following error:



Caused by: java.lang.IllegalArgumentException: No container provider supports the type class org.glassfish.grizzly.http.server.HttpHandler
       at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:196)
       at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:134)
       at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:242)
       at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:136)
       at com.tangosol.coherence.rest.server.GrizzlyHttpServer.start(GrizzlyHttpServer.java:35)
       ... 12 more



For an example Proxy config is defined as follows :

 <proxy-scheme>
        <service-name>ExtendHttpProxyService</service-name>
        <thread-count>5</thread-count>
        <acceptor-config>
           <http-acceptor>
              <class-name>com.tangosol.coherence.rest.server.GrizzlyHttpServer
              </class-name>
              <local-address>
                 <address>localhost</address>
                 <port>48020</port>
              </local-address>
              <resource-config>
                 <instance>
                    <class-name>
                       com.tangosol.coherence.rest.server.DefaultResourceConfig
                    </class-name>
                 </instance>
              </resource-config>
           </http-acceptor>
        </acceptor-config>
        <autostart system-property="tangosol.coherence.proxy">false</autostart>
   </proxy-scheme>


Coherence proxy server's CLASSPATH is with the below libraries:

 

CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/jersey-grizzly2-1.14.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/grizzly-http-2.1.9.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/grizzly-http-server-2.1.9.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/grizzly-framework-2.1.9.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/coherence.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/coherence-rest.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/jersey-server-1.8.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/jersey-core-1.8.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/jersey-json-1.8.jar
CLASSPATH=$CLASSPATH:$COHERENCE_HOME/lib/jackson-all-1.8.1.jar

 


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms