title: REST WS GeneXus 16 U8 Java Enviroment
body: <p>I'm trying to create a REST WS in GeneXus 16 U8 on Java Enviroment, deploying the application on WebLogic 12c, but when I'm trying to consume the service it shows me the following error:</p>
  
  <pre><code>java.lang.ClassCastException: org.glassfish.jersey.server.ResourceConfig$WrappingResourceConfig cannot be cast to org.glassfish.jersey.server.ResourceConfig
      at org.glassfish.jersey.servlet.internal.Utils.retrieve(Utils.java:90)
      at org.glassfish.jersey.servlet.WebComponent.createResourceConfig(WebComponent.java:565)
      at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:356)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)
      at javax.servlet.GenericServlet.init(GenericServlet.java:244)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:356)
  </code></pre>
  
  <p>I have configured the properties like the documentation said: <a href="https://wiki.genexus.com/commwiki/servlet/wiki?21467,Procedures+as+Rest+web+services+in+GeneXus" rel="nofollow noreferrer">https://wiki.genexus.com/commwiki/servlet/wiki?21467,Procedures+as+Rest+web+services+in+GeneXus</a>, but the result is always the same.</p>
  
  <p>Also, I have the following web.xml configuration:</p>
  
  <pre><code>    &lt;servlet&gt;
          &lt;servlet-name&gt;JerseyListener&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
              &lt;param-value&gt;com.main.GXApplication&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;com.sun.jersey.spi.container.ContainerRequestFilters&lt;/param-name&gt;
              &lt;param-value&gt;com.sun.jersey.api.container.filter.GZIPContentEncodingFilter&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;com.sun.jersey.spi.container.ContainerResponseFilters&lt;/param-name&gt;
              &lt;param-value&gt;com.sun.jersey.api.container.filter.GZIPContentEncodingFilter&lt;/param-value&gt;
          &lt;/init-param&gt;
      &lt;/servlet&gt;
      &lt;servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;JerseyListener&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>I appreciate the help.</p>