outputWebXml is encoded by a system encoding
--------------------------------------------
Key: MJSPC-44
URL: http://jira.codehaus.org/browse/MJSPC-44
Project: Maven 2.x JSPC Plugin
Issue Type: Bug
Environment: Japanese Windows XP(System encoding: MS932)
jspc-maven-plugin is 2.0-alpha-4-SNAPSHOT.
Reporter: Shinsuke SUGAYA
Attachments: jspc.patch
When a system encoding is not the same as an encoding of web.xml and web.xml
has non-ascii characters, the stored web.xml(outputWebXml) has garbage
characters. Therefore, an application server cannot parse the web.xml file.
Steps to reproduce:
1. Put non-ascii character, such as Japanese, to web.xml by UTF-8
2. Run mvn install with jspc plugin on Japanese Windows(MS932)
jspweb.xml is encoded by MS932, not UTF-8.
3. Deploy war file to Tomcat
But Tomcat cannot parse the web.xml because of a garbage in it.
Please see the attached patch.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email