解决方案是在战争WEB-INF中包含一个sun-web.xml(或glassfish-
web.xml)文件。请参阅如何在Glassfish的Metro上选择CXF
编辑
glassfish-web.xml的内容:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN' 'http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd'><glassfish-web-app> <!-- Need this to tell Glassfish not to load the JAX-WS RI classes so it will use the CXF ones instead --> <class-loader delegate="false" /></glassfish-web-app>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)