Web services not working after upgrading from mx 6.1 tomx 7

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Web services not working after upgrading from mx 6.1 tomx 7

    Hihi,

    We have some Web services codes written in Java, running in a Web application
    together ColdFusion and JRun4. Previously, we have deployed ColdFusion MX 6.1
    as an enterprise application in JRun4 and the Web services code worked fine.
    After upgrading to MX 7, the Web services code do not work at all.

    We use server-config.wsdd to deploy the Web services, using
    provider="java:RPC". The wsdl file is accessed in a manner similar to
    [url]http://localhost/services/MyService?wsdl[/url] . In MX 7, a 404 error occurs.

    We compared the MX 7 and 6.1 configuration and found some differences. Most
    notably is that the servlet definition and mapping for AxisServlet are missing
    in web.xml in MX 7. We added them into the web.xml in MX 7.
    <servlet id="macromedia_servlet_8">
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>coldfusion.bootstrap.BootstrapServlet</servlet-class>
    <init-param id="InitParam_1034013110658x">
    <param-name>servlet.class</param-name>
    <param-value>org.apache.axis.transport.http.AxisServlet</param-value>
    </init-param>
    </servlet>

    <servlet-mapping id="macromedia_mapping_6">
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>servlet/AxisServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping id="macromedia_mapping_7">
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>*.jws</url-pattern>
    </servlet-mapping>
    <servlet-mapping id="macromedia_mapping_8">
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
    </servlet-mapping>

    But it still didn't work. the same 404 error occurs. We tested with a simple
    ..jws, and it works fine. This seems to tell us that only the last mapping (for
    /services/*) is not working properly. When accessing
    [url]http://localhost/servlet/AxisServlet[/url] , we could even see AxisServlet responding
    with:

    And now... Some Services
    MyService (wsdl)
    ....

    It seems that AxisServlet has found the Java class for the Web Service, since
    it has correctly printed the list of all methods exposed, which was not
    specified in server-config.wsdd (we only specify allowedMethods"*" ).

    In the JRun4 installation from MX 7, there is a sample application
    ws-ear/ws-war, we copied ws-war to our own ear and it didn't work either.
    However, ws-war did work in ws-ear/ws-war, but that was without ColdFusion MX 7
    ear codes..

    Does anyone encounter similar problems before?


    Thanks,

    Zehua

    liuzh Guest

  2. Similar Questions and Discussions

    1. web services - not working
      hi all, i am using a web service to retrieve city names by country but it is not working it throws an error - Error opening URL...
    2. Web Services not working on new MX7 install
      We are busy rolling out a new application for a customer. A couple of other apps use webservices in this app. It was all working 100% on MX6.1,...
    3. Terminal Services still not working on Win2003
      Hello, I have set up a Terminal Server role in Windows 2003 Standard and registered the 5 user CAL. However, when I connect from a different...
    4. VBA web services call not working in office XP
      Hi I am calling a web service call from VBA and it is working good with the machines having office 2003. I tried to run the same excel template...
    5. DNS not working after upgrading to OS X 10.2 (Wallstreet PB)
      DNS does not work, but TCP/IP is functioning - I can do anything by IP Address, but nothing by domain name. I ran 10.1.5 with no problems....
  3. #2

    Default Re: Web services not working after upgrading from mx 6.1 to mx 7

    Note that the Axis engine in ColdFusion is Axis 1.2 RC2 and the Axis engine
    in JRun is Axis 1.1.

    They may not play well together in the same web application.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139