users@glassfish.java.net

Re: Glassfish keeps using default javax.xml.ws.spi.Provider ...

From: <forums_at_java.net>
Date: Mon, 18 Apr 2011 11:34:53 -0500 (CDT)

A solution to this is (from
http://stackoverflow.com/questions/2064068/how-to-pick-cxf-over-metro-on-glassfish):

Add a sun-web.xml and set delegate=false to the class-loader:

<?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'>
<sun-web-app>
<class-loader delegate="false"/>
</sun-web-app>
Add the file to the WEB-INF ofthe war.


--
[Message sent by forum member 'sdoca']
View Post: http://forums.java.net/node/732833