cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Alfresco Web Editor

ajmillar
Champ in-the-making
Champ in-the-making
Have checked out the latest code from HEAD, but I'm having trouble deploying the alfresco web editor. I'm getting the following message after logging in …

A form could not be found, has an 'itemKind' and 'itemId' been provided?

Anyone had similar problems and found a solution?
16 REPLIES 16

ajmillar
Champ in-the-making
Champ in-the-making
Not much extra to contribute to this. Running on a WindowsXP laptop. Tried downloading the official 3.3 Community release and then downloading the addon from http://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3.

Unzipped the awe.war from the distribution and put it into the webapps folder. Restarted the server and get as far as the login screen. After that the same message comes up.

bremmington
Champ on-the-rise
Champ on-the-rise
What URL are you pointing your browser at?

ajmillar
Champ in-the-making
Champ in-the-making

bremmington
Champ on-the-rise
Champ on-the-rise
That's the problem. The AWE is a web app that provides content editing services to web sites that use content from Alfresco. It doesn't "do" anything if simply accessed from a browser directly. Have a look at the page at http://wiki.alfresco.com/wiki/Web_Editor (particularly the section entitled "Sample" at the bottom). If this doesn't help then post again here, and I'll try to clarify it.

schup
Champ in-the-making
Champ in-the-making
Would it make sense to print this information instead / additionally to the current error message?
A form could not be found, has an 'itemKind' and 'itemId' been provided?

Maybe even with a link to where the user can get more information.


… just an idea.

bremmington
Champ on-the-rise
Champ on-the-rise
Fair point. We'll put in a tweak to generate a brief information page if incorrect information is received.

Regards
Brian

yogesh_prabhu
Champ in-the-making
Champ in-the-making
Hi ajmillar,

Were you able to solve the issue, i am still unable to run the sample application that is given along with the zip file..
Can you please help me with the steps..?
Also the wiki : http://wiki.alfresco.com/wiki/Web_Editor talks about  a configuration file called awe-config-custom.xml..have you reached to that step?

Any kind of ideas would be of great help..

Thanks in advance..

Yogesh

yogesh_prabhu
Champ in-the-making
Champ in-the-making
Hi,

I am able to run the sample now..
When i specify the noderefs of the nodes from my repository i get to see the content in the editable format in the browser..

Now, my issue is: how can i view the web content in the editable format created in web projects??
The problem i am facing is i am not getting a node reference for the content that i create in a Web Project..

Has anyone tried this..??
Any kind of suggestions are welcome..
Thanks in advance..

Yogesh

sowmya
Champ in-the-making
Champ in-the-making
Hi..
I am working in linux environment. I extracted both awe.war and customer.war inside the tomcat webapps. Then  added two new html files inside my space using my webclient. Got the node values of them and updated it in noderefs.jsp which is in customer/includes/
Restarted my tomcat server.

After restart, when I try to access using http://xxx.xxx/customer/ (changed my localhost:8080 to xxx.xxx), I am getting following error in the browser:
org.apache.jasper.JasperException: An exception occurred processing JSP page /includes/body.jsp at line 4

1: <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 cause

javax.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:267)
   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 cause

javax.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:119)
   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)
There is no error message in tomcat logs…Actually I should view that webpage with WEF editing tools. But getting the above error in browser…
You are saying some thing like:
Now, my issue is: how can i view the web content in the editable format created in web projects??
Is this is my problem… but i had added my html files only inside my website… they will be inside Company Home > Sites > my website name> html files….
Any suggestions???

Thanks,