migration tool for coherence error "Content is not allowed in prolog"
gisellas Jun 7, 2010 1:48 PMRe.: infinispan 4.1.0 BETA1 and BETA2
I tried converting a coherence-cache-config.xml to infinispan using the migration tool. I tried various DOCTYPE flavors but it did not work.
As mentioned, my source is a Coherence cache-config file, not a coherence file. Am I doing something wrong?
I could not find information. This type of error sometimes happens when it does not find a file.
Where it fails, it is doing a transform using the xslt/indent.xslt (which is cotained in the infinispan-core.jar. Also, as you can see from the
classpath, I put the coherence .jar in the lib area, just in case (for the cache-config.dtd).
I would appreciate any help. Thanks!
-----------------------------------
C:\Tools\jboss\infinispan-4.1.0.BETA1\bin>importConfig.bat -source ..\mytests\coherence\coherence-cache-config.xml -dest
ination ..\mytests\infinispan-cache-config.xml -type Coherence35x
CP is ;..\lib\coherence-3.5.jar;..\lib\jboss-common-core-2.2.14.GA.jar;..\lib\jboss-transaction-api-1.0.1.GA.jar;..\lib\
jcip-annotations-1.0.jar;..\lib\jgroups-2.10.0.Beta2.jar;..\lib\marshalling-api-1.2.1.GA.jar;..\lib\rhq-pluginAnnotation
s-1.4.0.B01.jar;..\lib\river-1.2.1.GA.jar;..\infinispan-core.jar;
ERROR: 'Content is not allowed in prolog.'
ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.'
Exception in thread "main" javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.o
rg.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at org.infinispan.config.parsing.ConfigFilesConvertor.parse(ConfigFilesConvertor.java:83)
at org.infinispan.config.parsing.ConfigFilesConvertor.transformFromCoherence35x(ConfigFilesConvertor.java:173)
at org.infinispan.config.parsing.ConfigFilesConvertor.main(ConfigFilesConvertor.java:144)
Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Cont
ent is not allowed in prolog.
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(Unknown Source)
... 5 more
Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog.
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
... 6 more
-
coherence-cache-config.xml 2.0 KB