cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <>
Subject [jira] [Commented] (CXF-4369) cxf-xjc-plugin generated unmappable characters using system encoding
Date Thu, 09 Aug 2012 08:47:19 GMT


Freeman Fang commented on CXF-4369:


Sorry , you are using cxf-xjc-plugin but not the cxf-codegen-plugin, so the fix for CXF-2450
isn't applicable for you.

However, you can always specify property like -Dfile.encoding=UTF-8 to let xjc tool to pick
up your encoding. You can configure it in MAVEN_OPTS like MAVEN_OPTS=-Dfile.encoding=UTF8
so that cxf-xjc-plugin can pick it up automatically.

Moreover, jaxb xjc tool support the encoding option since  2.2.4[1],  but currently cxf-xjc-plugin
still use jaxb xjc 2.1.x, I will see if we can upgrade to use jaxb xjc 2.2.x for cxf-xjc-plugin.

I will close this issue now and if we decide to upgrade  jaxb xjc 2.2.x  for cxf-xjc-plugin,
I'll create another issue.


> cxf-xjc-plugin generated unmappable characters using system encoding
> --------------------------------------------------------------------
>                 Key: CXF-4369
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>         Environment: jdk 1.7 ,  windows 7 , camel-soap 2.10-SNAPSHOT , cxf-xjc-plugin
>            Reporter: Liu Jianhong
> In camel source,when I buid "camel-soap" component, it genrates unmappable characters
and build failed,the error information as following,and I checked the document for cxf-xjc-plugin,
I not found any solution:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile
(default-compile) on project camel-soap:
> Compilation failure: Compilation failure:
> [ERROR] D:\devstudio\soa\source\camel\components\camel-soap\target\generated\src\main\java\org\xmlsoap\schemas\soap\envelope\Fault
> .java:[5,40] 错误: 编码UTF-8的不可映射字符
> [ERROR] D:\devstudio\soa\source\camel\components\camel-soap\target\generated\src\main\java\org\xmlsoap\schemas\soap\envelope\Fault
> .java:[5,41] 错误: 编码UTF-8的不可映射字符

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message