<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exception Starting Server afte Spring framework Registration in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254335#M207465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can somebody help me with how to resolve this issue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a java class as my controller for webscript. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I registered my Spring framework configuration file as shown below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version=’1.0’ encoding=’UTF-8’? &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE beans PUBLIC ‘-//SPRING//DTD BEAN 2.0//EN’&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;‘&lt;/SPAN&gt;&lt;A href="http://www.springframework.org/dtd/spring-beans-2.0.dtd’" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans-2.0.dtd’&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;beans&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="webscript.org.example.javadir.get"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class="org.example.JavaDir" parent="webscript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="repository" ref="repositoryHelper"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/beans&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i have this exception when starting my Alfresco Tomcat Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 12:12:19 GMT</pubDate>
    <dc:creator>oluwasegzy</dc:creator>
    <dc:date>2011-07-08T12:12:19Z</dc:date>
    <item>
      <title>Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254335#M207465</link>
      <description>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&amp;lt;?xml version=’1.0’ encoding=’UTF-8’? &amp;gt;&amp;lt;!DOCTYPE beans PUBLIC ‘-//SPRING//DTD BEAN 2.0//EN’‘http://www.springframewor</description>
      <pubDate>Fri, 08 Jul 2011 12:12:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254335#M207465</guid>
      <dc:creator>oluwasegzy</dc:creator>
      <dc:date>2011-07-08T12:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254336#M207466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't use an editor that inserts "smart quotes".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 12:54:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254336#M207466</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-07-08T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254337#M207467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks MikeH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used a better editor and it seems to have worked but am still having this exception when launching the Alfresco application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[file:/C:/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:04:26,507&amp;nbsp; INFO&amp;nbsp; [management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:04:36,187&amp;nbsp; INFO&amp;nbsp; [module.vti.VtiServer] Vti server started successfully on port: 7070&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:05:34,997 User&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ystem INFO&amp;nbsp; [extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 3322.1367ms)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11:05:35,183&amp;nbsp; ERROR [web.context.ContextLoader] Context initialization failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.ClassCastException: org.example.JavaDir cannot be cast to org.springframework.extensions.webscripts.AbstractWebScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.extensions.webscripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:462)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.extensions.webscripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:178)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:242)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.web.scripts.RepositoryContainer.init(RepositoryContainer.java:591)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.web.scripts.RepositoryContainer.reset(RepositoryContainer.java:565)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.web.scripts.RepositoryContainer$4.doWork(RepositoryContainer.java:519)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before this exception, there were some ClassNotFoundException i encountered, which i had to paste the appropriate jar into the&amp;nbsp; classpath of Alfresco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:31:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254337#M207467</guid>
      <dc:creator>oluwasegzy</dc:creator>
      <dc:date>2011-07-11T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254338#M207468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;java.lang.ClassCastException: org.example.JavaDir cannot be cast to org.springframework.extensions.webscripts.AbstractWebScript&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Looks like your class definition is wrong. Difficult to debug without source. I suggest you look at our code and see what you've done wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:36:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254338#M207468</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-07-11T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254339#M207469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I dont seems to find a fault with the source code, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;package org.example;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import java.util.HashMap;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import java.util.Map;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.repo.model.Repository;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.service.cmr.repository.NodeRef;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.scripts.Cache;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.scripts.DeclarativeWebScript;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.scripts.Status;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.scripts.WebScriptException;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.scripts.WebScriptRequest;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class JavaDir extends DeclarativeWebScript {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;private Repository repository;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public void setRepository(Repository repository) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.repository = repository;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public Repository getRepository(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return repository;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what am i actually doing wrong&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 11:54:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254339#M207469</guid>
      <dc:creator>oluwasegzy</dc:creator>
      <dc:date>2011-07-11T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254340#M207470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DeclarativeWebScript is in org.springframework.extensions.webscripts so your "import" is incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm surprised you can even compile your code, I suspect you are compiling against an old version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 12:04:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254340#M207470</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-07-11T12:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254341#M207471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The DeclarativeWebScript class i extended is the same class on the code in the Alfresco Book am using, it got imported from &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.web.scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also from what i read, the DeclarativeWebScript&amp;nbsp; class from org.alfresco.web.scripts is one of the two JAVA classes that implement the most difficult part of the interface org.alfresco.web.scripts.WebScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont understand it when u said i should import and use&amp;nbsp; DeclarativeWebScript&amp;nbsp; from org.Springframework.extensions.script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am compiling the code against the alfresco-labs-sdk-3c SDK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 13:40:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254341#M207471</guid>
      <dc:creator>oluwasegzy</dc:creator>
      <dc:date>2011-07-11T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254342#M207472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to use the right / matching version of SDK.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect you are using alfresco &amp;gt; 3.3 and your SDK is not for that version.&amp;nbsp;&amp;nbsp; In particular the web script framework moves to SpringSource in versions &amp;gt; 3.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Labs 3c SDK is for Labs 3c only&amp;nbsp; :!:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 13:52:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254342#M207472</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-07-11T13:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254343#M207473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can i get a link to the Alfresco 3.4d SDK,&amp;nbsp; thats the version of alfresco am using&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 15:49:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254343#M207473</guid>
      <dc:creator>oluwasegzy</dc:creator>
      <dc:date>2011-07-11T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254344#M207474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you not see the big orange download icon in the top right hand corner?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Community_file_list_3.4.d" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Community_file_list_3.4.d&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 15:53:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254344#M207474</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-07-11T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Starting Server afte Spring framework Registration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254345#M207475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have being looking for the jar for &lt;/SPAN&gt;&lt;STRONG&gt;org.springframework.extensions.webscripts&lt;/STRONG&gt;&lt;SPAN&gt; but have being able to find it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand this the package that replaces &lt;/SPAN&gt;&lt;STRONG&gt;org.alfresco.web.scripts&lt;/STRONG&gt;&lt;SPAN&gt; in the Alfresco V 3.3 and above&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please where can i get this packeage&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 10:09:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-server-afte-spring-framework-registration/m-p/254345#M207475</guid>
      <dc:creator>oluwasegzy</dc:creator>
      <dc:date>2011-07-12T10:09:46Z</dc:date>
    </item>
  </channel>
</rss>

