[jira] Created: (SHALE-456) Tld2Claycfg has problems with encoding
Tld2Claycfg has problems with encoding -- Key: SHALE-456 URL: https://issues.apache.org/struts/browse/SHALE-456 Project: Shale Issue Type: Bug Components: Clay Affects Versions: 1.0.4 Environment: windows xp, maven 2.0.7, Reporter: Tom Pasierb I'm trying to use Tld2Claycfg tool to convert trinidad, tomahawk and tomahawk tlds to clay config files. In order to do this I've checked out 3 projects, built & installed tld2claycfg and mojo projects and configured pom in test project. When I run the mvn clean package goal I the the following exception indicating there's some problem with encoding (all the dependencies were downloaded to my local repo). Is there any config property or system property I should set when running the goal ? The exception is: javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1250' and input paramter for writeStartDocument() method 'utf-8' do not match. at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeStartDocument(XMLStreamWriterImpl.java:1182) at org.apache.shale.clay.util.TldToClayconfig.writeConfigFile(TldToClayconfig.java:435) at org.apache.shale.clay.util.TldToClayconfig.convert(TldToClayconfig.java:275) ... [ERROR] BUILD FAILURE [INFO] [INFO] !TldToClayconfig.exception: !javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1250' and input paramter for writeStartDocument() method 'utf-8' do not match.: Underlying stream encoding 'Cp1250' and input paramter for writeStartDocument() method 'utf-8' do not match. If you need more info on this, please let me know -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHALE-456) Tld2Claycfg has problems with encoding
[ https://issues.apache.org/struts/browse/SHALE-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41492 ] Hermod Opstvedt commented on SHALE-456: --- This sounds weird. Have you opened and saved the tld files? The tld files should be UTF-8 as pr. spec. CP1250 sounds to like you have opened and written the tld files using you default locale. Hermod > Tld2Claycfg has problems with encoding > -- > > Key: SHALE-456 > URL: https://issues.apache.org/struts/browse/SHALE-456 > Project: Shale > Issue Type: Bug > Components: Clay >Affects Versions: 1.0.4 > Environment: windows xp, maven 2.0.7, >Reporter: Tom Pasierb > > I'm trying to use Tld2Claycfg tool to convert trinidad, tomahawk and tomahawk > tlds to clay config files. In order to do this I've checked out 3 projects, > built & installed tld2claycfg and mojo projects and configured pom in test > project. > When I run the mvn clean package goal I the the following exception > indicating there's some problem with encoding (all the dependencies were > downloaded to my local repo). Is there any config property or system property > I should set when running the goal ? > > The exception is: > javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1250' and > input paramter for writeStartDocument() method 'utf-8' do not match. > at > com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeStartDocument(XMLStreamWriterImpl.java:1182) > > at > org.apache.shale.clay.util.TldToClayconfig.writeConfigFile(TldToClayconfig.java:435) > > at > org.apache.shale.clay.util.TldToClayconfig.convert(TldToClayconfig.java:275) > ... > [ERROR] BUILD FAILURE > [INFO] > > [INFO] !TldToClayconfig.exception: !javax.xml.stream.XMLStreamException: > Underlying stream encoding 'Cp1250' and input paramter for > writeStartDocument() method 'utf-8' do not match.: Underlying stream encoding > 'Cp1250' and input paramter for writeStartDocument() method 'utf-8' do not > match. > If you need more info on this, please let me know -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.