Original issue 360 created by soi-toolkit on 2013-12-12T21:42:24.000Z:
Using CXF 2.5.1 with Java 6 causes problems if WSDL or XML-schema files contains umlaut-characters, CXF-code generation is done in platform encoding and when the compiler kicks in (using UTF-8 as encoding) we get compile errors due to "unmappable character ..." (since the generated code is not UTF-8 encoded).
Original issue 360 created by soi-toolkit on 2013-12-12T21:42:24.000Z:
Using CXF 2.5.1 with Java 6 causes problems if WSDL or XML-schema files contains umlaut-characters, CXF-code generation is done in platform encoding and when the compiler kicks in (using UTF-8 as encoding) we get compile errors due to "unmappable character ..." (since the generated code is not UTF-8 encoded).
See: https://issues.apache.org/jira/browse/CXF-2450
A simple fix is to fork code-gen with encoding set like:
<build> <plugins> <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <configuration> <fork>once</fork> <additionalJvmArgs>-Dfile.encoding=UTF-8</additionalJvmArgs> </configuration> <executions>
The problem doesn't seem to exist when using Java7 (fixed in JAXB 2.2.5+ according to CXF issue).