You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Liu Jianhong (JIRA)" <ji...@apache.org> on 2012/06/09 12:43:42 UTC
[jira] [Created] (CXF-4369) cxf-xjc-plugin generated unmappable
characters using system encoding
Liu Jianhong created CXF-4369:
---------------------------------
Summary: 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
[jira] [Assigned] (CXF-4369) cxf-xjc-plugin generated unmappable
characters using system encoding
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned CXF-4369:
---------------------------------
Assignee: Freeman Fang
> 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
> Assignee: Freeman Fang
>
> 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
[jira] [Commented] (CXF-4369) cxf-xjc-plugin generated unmappable
characters using system encoding
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292660#comment-13292660 ]
Freeman Fang commented on CXF-4369:
-----------------------------------
Hi,
I believe CXF-2450[1] already fixed this issue, with CXF 2.6.1 you can specify -encoding flag for wsdltojava
[1]https://issues.apache.org/jira/browse/CXF-2450
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
[jira] [Commented] (CXF-4369) cxf-xjc-plugin generated unmappable
characters using system encoding
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (CXF-4369) cxf-xjc-plugin generated unmappable
characters using system encoding
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved CXF-4369.
-------------------------------
Resolution: Won't Fix
> 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
[jira] [Commented] (CXF-4369) cxf-xjc-plugin generated unmappable
characters using system encoding
Posted by "Liu Jianhong (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292837#comment-13292837 ]
Liu Jianhong commented on CXF-4369:
-----------------------------------
Where can I put -encoding flag to cxf-xjc-plugin's configuration section?
and when the 2.6.1 version of cxf-xjc-plugin will released?
> 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