cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Deshpande (JIRA)" <>
Subject [jira] Created: (CXF-3386) java.util.Locale does not have a no-arg default constructor
Date Wed, 09 Mar 2011 12:37:59 GMT
java.util.Locale does not have a no-arg default constructor

                 Key: CXF-3386
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.3.3, 2.2.6
         Environment: jboss 6, cxf 2.2.6, cxf 2.3.3, jdk 1.6.0_22, windows xp
            Reporter: Prasad Deshpande


I'm getting an issue when try to deploy on jboss 6. This works well with Jboss 5.1.0.GA version
with no problem. Bus as soon as I try to port it to Jboss6, I'm getting this error, Not sure
if it is related to CXF/JBoss.

Error is:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.util.Locale does not have a no-arg default constructor.
	this problem is related to the following location:
		at java.util.Locale
		at private java.util.Locale com.client.api.wsapi.jaxws_asm.Translate.arg1
		at com.client.api.wsapi.jaxws_asm.Translate

	at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl$
	at com.sun.xml.bind.v2.ContextFactory.createContext(
	at com.sun.xml.bind.v2.ContextFactory.createContext(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at javax.xml.bind.ContextFinder.newInstance(
	at javax.xml.bind.ContextFinder.find(
	at javax.xml.bind.JAXBContext.newInstance(
	at org.apache.cxf.jaxb.JAXBDataBinding.createContext(
	at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(
	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(
	... 105 more

I read Dan's post at But here,
I'm surely using CXF & Locale is a parameter to a method that I'm exposing as webmethod.
So not sure what is the problem. This works fine with Jboss 5. and issue is same with cxf

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message