You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2012/08/09 10:47:19 UTC

[jira] [Commented] (CXF-4369) cxf-xjc-plugin generated unmappable characters using system encoding

    [ https://issues.apache.org/jira/browse/CXF-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431679#comment-13431679 ] 

Freeman Fang commented on CXF-4369:
-----------------------------------

Hi,

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.

[1]http://java.net/jira/browse/JAXB-701

Freeman
                
> cxf-xjc-plugin generated unmappable characters using system encoding
> --------------------------------------------------------------------
>
>                 Key: CXF-4369
>                 URL: https://issues.apache.org/jira/browse/CXF-4369
>             Project: CXF
>          Issue Type: Bug
>         Environment: jdk 1.7 ,  windows 7 , camel-soap 2.10-SNAPSHOT , cxf-xjc-plugin 2.6.0
>            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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira