soi-toolkit / soi-toolkit-mule

SOI Toolkit and Mule ESB
Apache License 2.0
6 stars 1 forks source link

Service description components: set CXF-encoding for code generation #360

Closed hdahl closed 9 years ago

hdahl commented 9 years ago

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).

hdahl commented 9 years ago

Comment #1 originally posted by soi-toolkit on 2014-01-23T21:20:43.000Z:

<empty>

hdahl commented 9 years ago

Comment #2 originally posted by soi-toolkit on 2014-01-23T21:24:06.000Z:

This issue was closed by revision r2109.