cancel
Showing results for 
Search instead for 
Did you mean: 

in-context editing - how soon?

sigei
Champ in-the-making
Champ in-the-making
Hi - howsoon will in-context editing of web sites be available?  I am evaluating Alfresco vs Magnolia, and at the moment Magnolia is winning purely because it has in-context edit - everything else about Alfresco seems like a better basis for moving forward.

I searched Jira but didn't find any obvious match for this..

thanks

sig
3 REPLIES 3

kvc
Champ in-the-making
Champ in-the-making
Everyone:


Take a look at the latest version of the WSF.  It includes an example of how to enable in-context editing in the run-time for logged-in, authenticated Alfresco users.

Let us know if you've any more questions!


Kevin

tqu
Champ in-the-making
Champ in-the-making
Hi Kevin!
One question: did this (ever) work for you? I installed the latest version of the WSF and after a few changes (had to adjust the link to the file) the corresponding form opens when I click on the link.
Unfortunately an exception is thrown:

12:04:55,984 ERROR [[localhost].[/alfresco].[commandServlet]] Servlet.service() for servlet commandServlet threw exception
org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: The transaction has already been marked for rollback
        at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:194)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.transaction.RollbackException: The transaction has already been marked for rollback
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:404)
        at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:163)
        … 15 more

No matter which button I click I'll get another exeption:
12:05:09,031 ERROR [ui.common.Utils] Path /www/avm_webapps/ROOT/content/article/071213.xml not found.
org.alfresco.service.cmr.avm.AVMNotFoundException: Path /www/avm_webapps/ROOT/content/article/071213.xml not found.
        at org.alfresco.repo.avm.AVMStoreImpl.getContentDataForWrite(AVMStoreImpl.java:1273)
        at org.alfresco.repo.avm.AVMRepository.getContentDataForWrite(AVMRepository.java:2187)
        at org.alfresco.repo.avm.AVMServiceImpl.getContentDataForWrite(AVMServiceImpl.java:1235)
        at sun.reflect.GeneratedMethodAccessor692.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

After that the whole web project is kind of messed up. I can't create any more content of the specific type. I'll get the exception:

12:05:58,218 ERROR [ui.common.Utils] Not Found: demo–admin–preview:/www
org.alfresco.service.cmr.avm.AVMNotFoundException: Not Found: demo–admin–preview:/www
        at org.alfresco.repo.avm.AVMSyncServiceImpl.resetLayer(AVMSyncServiceImpl.java:803)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
        at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:94)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy47.resetLayer(Unknown Source)
        at org.alfresco.web.bean.wcm.CreateWebContentWizard$1.execute(CreateWebContentWizard.java:218)
        at org.alfresco.web.bean.wcm.CreateWebContentWizard$1.execute(CreateWebContentWizard.java:212)

I tried to figure out what's going on in the background but it's quite complex.
Do you have any idea where to start looking / what to change? The question again: did this work for you?

Kind regars,
Torben

tqu
Champ in-the-making
Champ in-the-making
Hi!
I did find a way to solve it! I realised that my MySQL database ran in InnoDB mode and so I changed it to InnoDB. Now it works although the first exception is still thrown:

12:21:24,203 ERROR [[localhost].[/alfresco].[commandServlet]] Servlet.service() for servlet commandServlet threw exception
org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: The transaction has already been marked for rollback
        at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:194)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.transaction.RollbackException: The transaction has already been marked for rollback
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:404)
        at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:163)
        … 15 more

Is there anything I can do about it?
Best regards,
Torben