AnsweredAssumed Answered

Exception Starting Server afte Spring framework Registration

Question asked by oluwasegzy on Jul 8, 2011
Latest reply on Jul 12, 2011 by oluwasegzy
Can somebody help me with how to resolve this issue,

I am using a java class as my controller for webscript.

I registered my Spring framework configuration file as shown below

<?xml version=’1.0’ encoding=’UTF-8’? >
<!DOCTYPE beans PUBLIC ‘-//SPRING//DTD BEAN 2.0//EN’
http://www.springframework.org/dtd/spring-beans-2.0.dtd’>
<beans>
<bean id="webscript.org.example.javadir.get"
class="org.example.JavaDir" parent="webscript">
<property name="repository" ref="repositoryHelper"/>
</bean>
</beans>

but i have this exception when starting my Alfresco Tomcat Server

Offending resource: class path resource [alfresco/application-context.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file [C:\Alfresco\tomcat\shared\classes\alfresco\extension\javadir-context.xml]; nested exception is org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
   at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
   at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

Outcomes