cancel
Showing results for 
Search instead for 
Did you mean: 

Problems installing Alfresco Web Editor

sselvan
Champ in-the-making
Champ in-the-making
I am following http://wiki.alfresco.com/wiki/Web_Editor to install the Alfresco web editor and trying to open the sample application (customer.war) in browser. I am getting this error at that time (when I access http://localhost:8080/customer).

Please help…

HTTP Status 500 -type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: An exception occurred processing JSP page /includes/body.jsp at line 41: <body>2:    3:    <h1>4:       <customer:property nodeRef="<%=mainTextNodeRef%>" property="cm:title" />5:       <awe:markContent id="<%=mainTextNodeRef%>" title="Edit Press Release" />6:    </h1>7:    Stacktrace:   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   org.alfresco.web.awe.filter.WebEditorFilter.doFilter(WebEditorFilter.java:70)root causejavax.servlet.ServletException: javax.servlet.jsp.JspException: org.json.JSONException: A JSONObject text must begin with '{' at character 1   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)   org.apache.jsp.index_jsp._jspService(index_jsp.java:266)   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   org.alfresco.web.awe.filter.WebEditorFilter.doFilter(WebEditorFilter.java:70)root causejavax.servlet.jsp.JspException: org.json.JSONException: A JSONObject text must begin with '{' at character 1   org.customer.PropertyTag.doStartTag(PropertyTag.java:114)   org.apache.jsp.index_jsp._jspService(index_jsp.java:118)   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   org.alfresco.web.awe.filter.WebEditorFilter.doFilter(WebEditorFilter.java:70)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.Apache Tomcat/6.0.18‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
1 REPLY 1

dmihelj
Champ in-the-making
Champ in-the-making
I was getting the same error until I read this page http://www.benh.co.uk/alfresco/alfresco-web-editor/getting-started/ and did this:

Open up \customer\includes\noderefs.jsp file.  You will see the two node references for sample content items:


<%
String mainTextNodeRef = "workspace://SpacesStore/301a540e-7101-489c-a8a7-859102a99ea5";
String subTextNodeRef = "workspace://SpacesStore/e94797ce-c6e9-47eb-b28c-c6a4eb3ce666";
%>

The two node refs are used throughout the example pages.  Create two example html files on your local disk, add some textual content, and upload these to a location within the repository.  Browse to these files using the node browser, and add the appropriate node references to the noderefs.jsp file.  Save the file and then browse to http://localhost:8080/customer/, and you should see the page rendered and the WEF toolbar.  You should be able to go ahead and edit any of the content items.

Then everything started to work.