cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <>
Subject Re: Wrong binding ID: error
Date Fri, 22 Jun 2012 20:33:48 GMT
It looks like the Metro installed by default with GlassFish is getting 
activated, not CXF.    I suspect you're trying to do too much at once, 
making it hard to troubleshoot.  I would make it a two-step process:

1.) Get your sample below working on simple Tomcat where there's no 
Metro conflicts 
( can help even 
though it's a different sample)

2.) Then try to figure out the portion of getting the same WAR to work 
on GlassFish (where you'll need to suppress the Metro libraries)


1.) Get the simplest possible web service working on GlassFish 
( is a good 
candidate, although I've never tried to get it to work on GlassFish)

2.) Then try to get things working with the 
"" BindingType.

Incidentally, I'm not sure but there's a very good chance our XML over 
HTTP binding (which I very rarely hear about nowadays) is obsolete with 
JAX-RS / REST.  I would first rule out CXF's JAX-RS implementation, as 
well as the standard SOAP over HTTP binding, as useful options for you 
before considering XML over HTTP.


On 06/22/2012 03:33 PM, java kurious wrote:
> Hi
> I am trying to follow "CXF sample using WRAPPED Style in XML 
> Binding(pure XML)" to create a Web Service for Stock Quote. The WSDL 
> is attached. The difference is that I am using a web application 
> structure and trying to deploy it in Glassfish 3.1.
> I created a Service Implementation class, and specified the binding 
> annotation. See below:
> @javax.jws.WebService
> = 
> "")
> public class PureXMLBindingImpl implements DelayedStockQuoteSoap{
>     @Override
>     public QuoteData getQuote(String stockSymbol, String licenseKey) {
>         throw new UnsupportedOperationException("Not supported yet.");
>     }
>     @Override
>     public BigDecimal getQuickQuote(String stockSymbol, String 
> licenseKey) {
>         return new BigDecimal(2.0);
>     }
> When I deploy it to Glassfish, I get following exception:
> Wrong binding ID: 
>     at
>     at 
> org.glassfish.webservices.WSServletContextListener.registerEndpoint(
>     at 
> org.glassfish.webservices.WSServletContextListener.contextInitialized(
> Any ideas ?
> Thanks
> Vineet

Glen Mazza
Talend Community Coders

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message