使用jaxws创建webService所需的全部jar文件


解决参考网上使用myeclipse10开发JAX-WS webService项目报找不到类的异常, 解压文件后把lib下的jar全放到lib目录下即可。这是jaxws-ri-2.2.8版本。
资源截图
代码片段和文件信息
/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
 *
 * The contents of this file are subject to the terms of either the GNU
 * General Public License Version 2 only (“GPL“) or the Common Development
 * and Distribution License(“CDDL“) (collectively the “License“).  You
 * may not use this file except in compliance with the License.  You can
 * obtain a copy of the License at
 * http://glassfish.java.net/public/CDDL+GPL_1_1.html
 * or packager/legal/LICENSE.txt.  See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * When distributing the software include this License Header Notice in each
 * file and include the License file at packager/legal/LICENSE.txt.
 *
 * GPL Classpath Exception:
 * Oracle designates this particular file as subject to the “Classpath“
 * exception as provided by Oracle in the GPL Version 2 section of the License
 * file that accompanied this code.
 *
 * Modifications:
 * If applicable add the following below the License Header with the fields
 * enclosed by brackets [] replaced by your own identifying information:
 * “Portions Copyright [year] [name of copyright owner]“
 *
 * Contributor(s):
 * If you wish your version of this file to be governed by only the CDDL or
 * only the GPL Version 2 indicate your decision by adding “[Contributor]
 * elects to include this software in this distribution under the [CDDL or GPL
 * Version 2] license.“  If you don‘t indicate a single choice of license a
 * recipient has the option to distribute your version of this file under
 * either the CDDL the GPL Version 2 or to extend the choice of license to
 * its licensees as provided above.  However if you add GPL Version 2 code
 * and therefore elected the GPL Version 2 license then the option applies
 * only if the new code is made subject to such option by the copyright
 * holder.
 */

package annotations.client;

public class AddNumbersClient {
    public static void main(String[] args) {
        try {
            AddNumbers port = new AddNumbersImplService().getAddNumbersImplPort();
            int number1 = 10;
            int number2 = 20;

            System.out.printf(“Invoking addNumbers(%d %d)
“ number1 number2);
            int result = port.add(number1 number2);
            System.out.printf(“The result of adding %d and %d is %d.

“ number1 number2 result);

            number1 = -10;
            System.out.printf(“Invoking addNumbers(%d %d)
“ number1 number2);
            result = port.add(number1 number2);
            System.out.printf(“The result of adding %d and %d is %d.
“ number1 number2 result);

        } catch (AddNumbersException_Exception ex) {
                System.out.printf(“Caught AddNumbersException_Exception: %s
“ ex.getFaultInfo().getFaultInfo());
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-04-29 18:51  jaxws-ri
     目录           0  2013-04-29 18:51  jaxws-rilib
     文件       26119  2013-04-29 16:54  jaxws-rilibjavax.annotation-api.jar
     文件       68177  2013-04-29 16:55  jaxws-rilib
esolver.jar
     文件     2445445  2013-04-29 17:46  jaxws-rilibjaxws-rt.jar
     文件      100146  2013-04-29 16:54  jaxws-rilibjaxb-api.jar
     文件       49100  2013-04-29 16:54  jaxws-rilibjaxws-api.jar
     文件       40812  2013-04-29 16:54  jaxws-rilibjavax.xml.soap-api.jar
     文件        7989  2013-04-29 16:54  jaxws-rilibjsr181-api.jar
     文件      221747  2013-04-29 16:55  jaxws-rilibjaxb-core.jar
     文件      919968  2013-04-29 16:55  jaxws-rilibjaxb-impl.jar
     文件      293863  2013-04-29 16:55  jaxws-rilibFastInfoset.jar
     文件      158494  2013-04-29 16:55  jaxws-rilibpolicy.jar
     文件       21820  2013-04-29 16:55  jaxws-rilibgmbal-api-only.jar
     文件       44724  2013-04-29 16:55  jaxws-rilibmanagement-api.jar
     文件       16655  2013-04-29 16:55  jaxws-rilibstax-ex.jar
     文件       64332  2013-04-29 16:55  jaxws-rilibstreambuffer.jar
     文件       59175  2013-04-29 16:55  jaxws-rilibmimepull.jar
     文件       36383  2013-04-29 16:57  jaxws-rilibha-api.jar
     文件      427999  2013-04-29 17:42  jaxws-rilibsaaj-impl.jar
     文件      478935  2013-04-29 16:55  jaxws-rilibwoodstox-core-asl.jar
     文件      182112  2013-04-29 16:55  jaxws-rilibstax2-api.jar
     文件      841559  2013-04-29 18:05  jaxws-rilibjaxws-tools.jar
     文件      114094  2013-04-29 16:58  jaxws-rilibjaxb-jxc.jar
     文件     1930174  2013-04-29 16:58  jaxws-rilibjaxb-xjc.jar
     目录           0  2013-04-29 18:51  jaxws-ridocs
     文件       20558  2013-04-29 18:50  jaxws-ridocsch07.html
     文件        8500  2013-04-29 18:50  jaxws-ridocsch06.html
     文件        8920  2013-04-29 18:50  jaxws-ridocsch05.html
     文件       75117  2013-04-29 18:50  jaxws-ridocsch04.html
     文件      484368  2013-04-29 18:50  jaxws-ridocsch03.html
............此处省略709个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)