AnsweredAssumed Answered

Alfresco Web editor

Question asked by patni123 on May 25, 2011
Hi,

I was trying to get Alfresco Web editor.
Steps followed below:-

1. Added the jars as mentioned in Alfresco Wiki web editor.
2. Added new xml(awe-config-custom.xml) in shared/classes/alfresco/web-extension with below content replacing MYSERVER and PORT

<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>
   <plug-ins>
      <element-readers>
         <element-reader element-name="remote" class="org.springframework.extensions.config.RemoteConfigElementReader" />
      </element-readers>
   </plug-ins>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://MYSERVER:MYPORT/alfresco/s
            </endpoint-url>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>
</alfresco-config>

3.  Changed web.xml filter to below. Changed the context path to /customer

<filter>
    <filter-name>Alfresco Web Editor Filter</filter-name>
    <description>Enables support for the Alfresco Web Editor</description>
    <filter-class>org.alfresco.web.awe.filter.WebEditorFilter</filter-class>
    <init-param>
       <param-name>contextPath</param-name>
       <param-value>/customer</param-value>
    </init-param>
</filter>
 
<filter-mapping>
   <filter-name>Alfresco Web Editor Filter</filter-name>
   <url-pattern>/*</url-pattern>
</filter-mapping>

4.  Added start template, mark content, end template tags in index.jsp with form id.
5. Node reference created in alfresco was provided in noderefs.jsp.

Am getting below error while clicking on links provided in index.jsp

HTTP status 404 - /awe/page/metadata. Please help me how to solve this issue.


Regards,
Patni Alfresco Team

Outcomes