Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4439

CXF Does not work with Turkish Locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.2.Final (EAP)
    • 7.1.1.Final
    • Web Services
    • None

      I'm trying to run the tests as described in AS7-4301, and there is a problem with how EnumUtil parses the annotation.

          static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name) {
              return Enum.valueOf(enumClass, name.toUpperCase());
          }
      

      "unqualified" becomes "UNQUALIF?ED", using name.toUpperCase(Locale.ENGLISH) should fix this. I'm assigning to you since you have more knowledge of Apache CXF.

      properties=[org.jboss.as.webservices.metadata.modelEjbComponentViewName -> service jboss.deployment.subunit."ws-notannotated-XXX.ear"."ws-notannotated-XXX.war".component.SampleBeanWebService.VIEW."org.jboss.as.test.integration.ws.context.application.SampleBeanWebService".SERVICE_ENDPOINT]
      11:32:36,214 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-16) Creating Service {http://application.context.ws.integration.test.as.jboss.org/}SampleBeanWebServiceService from class org.jboss.as.test.integration.ws.context.application.SampleBeanWebService
      11:32:36,221 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC00001: Failed to start service jboss.deployment.subunit."ws-notannotated-XXX.ear"."ws-notannotated-XXX.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ws-notannotated-XXX.ear"."ws-notannotated-XXX.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "ws-notannotated-XXX.war" of deployment "ws-notannotated-XXX.ear"
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]
              at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]
      Caused by: javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: No enum const class org.apache.ws.commons.schema.XmlSchemaForm.UNQUAL?F?ED
              at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)
              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)
              at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:113)
              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66)
              at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:114) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
              ... 5 more
      Caused by: java.lang.IllegalArgumentException: No enum const class org.apache.ws.commons.schema.XmlSchemaForm.UNQUAL?F?ED
              at java.lang.Enum.valueOf(Enum.java:196) [classes.jar:1.6.0_29]
              at org.apache.ws.commons.schema.EnumUtil.valueOf(EnumUtil.java:31)
              at org.apache.ws.commons.schema.XmlSchemaForm.schemaValueOf(XmlSchemaForm.java:32)
              at org.apache.ws.commons.schema.SchemaBuilder.getFormDefault(SchemaBuilder.java:181)
              at org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementBasics(SchemaBuilder.java:1489)
              at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:649)
              at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:157)
              at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
              at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:398)
              at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:133)
              at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:190)
              at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:93)
              at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:349)
              at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:444)
              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:507)
              at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
              at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
              at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
              at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
              at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:203)
              at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
              at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
              ... 13 more
      

            rhn-support-asoldano Alessio Soldano
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: