0 Replies Latest reply: Jan 22, 2013 4:23 PM by 671103 RSS

    Endpoint.publish() gives a HTTP:101221 error

    671103
      Hi,

      I'm stuck on a very simple piece of functionality and need help. I'm trying to publish an web services endpoint in weblogic. This code works perfectly well on Tomcat. I know that weblogic has its own implementation of JAXWS classes, so it's understandable that the behaviour differs, but I don't understand why it fails. Using weblogic 10.3.0.0.

      Endpoint endpoint = Endpoint.create(MyWebservice.class);
      endpoint.publish("http://rd032:9998/ExampleWebServices");

      When I execute the code above, weblogic gives the following error:

      java.lang.IllegalArgumentException: [HTTP:101221]The url-pattern is empty or null for url-pattern weblogic.servlet.internal.WebAppServletContext@6ba26eb1 - appName: 'testApp', name: '/ExampleWebServices', context-path: '/ExampleWebServices', spec-version: 'null' in .
      at weblogic.servlet.internal.WebAppServletContext.registerServletMap(WebAppServletContext.java:1706)
      at weblogic.servlet.internal.WebAppServletContext.registerServletMapping(WebAppServletContext.java:1514)
      at weblogic.servlet.internal.WebAppServletContext.registerServlets(WebAppServletContext.java:1409)
      at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletContext.java:1185)
      at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1120)

      Thanks.

      Edited by: k-fi on Jan 22, 2013 2:23 PM