xwss
  1. xwss
  2. XWSS-16

XWSS 3.0 does not work correctly with Jaxws 2.1's simple endpoint feature

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Using xwss 3.0 and jaxws 2.1 (not 2.1.1 RC1!) we get a NPE using the simple
      endpoint (J2SE Enpdoints) feature, as soon as xwss is in the classpath:

      java.lang.NullPointerException
      at
      com.sun.xml.xwss.XWSSPipelineAssemblerFactory$XWSSPipelineAssembler.isSecurityConfigPresent(XWSSPipelineAssemblerFactory.java:111)
      at
      com.sun.xml.xwss.XWSSPipelineAssemblerFactory$XWSSPipelineAssembler.createServer(XWSSPipelineAssemblerFactory.java:76)
      at
      com.sun.xml.ws.api.pipe.TubelineAssemblerFactory$TubelineAssemblerAdapter.createServer(TubelineAssemblerFactory.java:104)
      at com.sun.xml.ws.server.WSEndpointImpl.<init>(WSEndpointImpl.java:121)
      at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:199)
      at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:420)
      at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:439)
      at
      com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:208)
      at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:138)
      at
      com.o2.portal.fss.jaxwsutil.server.ServerUtils.createServer(ServerUtils.java:143)

      Seems that the servlet context is null, like described in
      http://forums.java.net/jive/thread.jspa?threadID=24510.

      For clarification:

      • We do not use the spring integration nor do we use wsit mentioned in the forum
        thread
      • I had to add the lib servlet-api (2.4) so that I reach to the above exception.
        (otherwise you get a ClassNotFound-Ex

      We are using the simple endpoint feature (as a mock server) in our testcases for
      our ws-client code. My first idea was to run the testcases against the j2se
      simple endpoint mock without any security features which is impossible because
      of the NPE above.

      Adding a security-config-xml to the classpath surely does not help, because the
      servlet-context (which is null) is asked to resolve it.

        Activity

        Hide
        kumarjayanti added a comment -

        This is a known issue. XWSS 3.0 does not yet support the JAXWS EndPoint Feature.
        There is a hard assumption in the XWSS <-> JAXWS integration layer where we
        assume that the server side security configuration is located inside a WAR file.

        The ServletContext is being used in this case to locate the security
        configuration insided the WAR file.

        Till we find an alternative way to locate the Security Configuration on the
        Server Side for the J2SE EndPoint feature we will be unable to support this
        combination. We will try to fix this soon...

        Till then i have written down an alternative way to accomplish this using
        Handler(s). Please take a look :

        https://xwss.dev.java.net/Securing_JAVASE6_WebServices.html

        Thanks.

        Show
        kumarjayanti added a comment - This is a known issue. XWSS 3.0 does not yet support the JAXWS EndPoint Feature. There is a hard assumption in the XWSS <-> JAXWS integration layer where we assume that the server side security configuration is located inside a WAR file. The ServletContext is being used in this case to locate the security configuration insided the WAR file. Till we find an alternative way to locate the Security Configuration on the Server Side for the J2SE EndPoint feature we will be unable to support this combination. We will try to fix this soon... Till then i have written down an alternative way to accomplish this using Handler(s). Please take a look : https://xwss.dev.java.net/Securing_JAVASE6_WebServices.html Thanks.
        Hide
        kumarjayanti added a comment -

        This issue is not relevant for WSIT 1.0 FCS.

        Show
        kumarjayanti added a comment - This issue is not relevant for WSIT 1.0 FCS.
        Hide
        rameshm added a comment -

        This issue is not relevant for WSIT 1.0 FCS.
        -Kumar

        Show
        rameshm added a comment - This issue is not relevant for WSIT 1.0 FCS. -Kumar
        Hide
        rameshm added a comment -

        Added keyword ( as91-na)

        Show
        rameshm added a comment - Added keyword ( as91-na)
        Hide
        kumarjayanti added a comment -

        Fixed the issue.

        A complete sample that shows how to use JDK6 and XWSS 2.0 style security can be
        downloaded from here :

        https://xwss.dev.java.net/servlets/ProjectDocumentList?folderID=7894&expandFolder=7894&folderID=7894

        Show
        kumarjayanti added a comment - Fixed the issue. A complete sample that shows how to use JDK6 and XWSS 2.0 style security can be downloaded from here : https://xwss.dev.java.net/servlets/ProjectDocumentList?folderID=7894&expandFolder=7894&folderID=7894

          People

          • Assignee:
            xwss-issues
            Reporter:
            breadfan_de
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: