cancel
Showing results for 
Search instead for 
Did you mean: 

Move AMP from 3.0 to 4.2

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi there

I have developed time ago a customization of Alfresco which included a custom model, a couple of wizards and actions, two custom Advanced Search screens, and a pair of jsp changes. It was designed for our Alfresco CE 3.0 instance but now that instance will stay as "backup" and we would like to open a new one in Alfreso 4.2 (Still dont want to move to Alfresco 5).

We have set the Dev enviroment with Eclipse as desired (at least I think so) importing the Alfresco 4.2 SDK and also the project we designed for Alfresco 3.0 (which included other java projects like "3rd PArty, or WEB-CLIENT" ( we imported them directly from the ones we had in 3.0).

If we compile and deploy the build.xml file it works fine and the AMP file gets produced correctly. Also installing the AMP file in the Alfresco 4.2 war file works with no problem, however problems appears when we try to deploy and launch Alfresco.

Log file crashes showing some "Class Not Fould Exception", and after checking it over and over we dont know where the problem might be?

For example we have this error:


java.lang.ClassNotFoundException: org.alfresco.web.ui.common.component.SelfRenderingComponent


and seems that in 4.2 we do not know which jar file should have this class, as the SDK is imported correctly.

Could you please point us the right steps to move our code from 3.0 to 4.2?

Thanks a lot in advance!!

Here I attach the log file in case you would like to check it.

Cheers!!
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
SelfRenderingComponent moved to spring some time after 3.0.   You may find other classes you depend upon moved too.

It is now in the following package.
org.springframework.extensions.webscripts.ui.common.component;

Hi there

Where can I find the jar file to install this package in my Eclipse project?, I have tried to google it but I am not able to find any jar file containing this library. Also I have downloaed the Spring-Surf 1.0.0C but the package is not there.

Thanks a lot !!

mrogers
Star Contributor
Star Contributor
SelfRenderingComponent

It is contained within the SDK for 4.2.f

I see it in the spring-webscripts-1.2.0-SNAPSHOT.jar

Hi there yes it is true, once we found the line that uses this class, we changed the "import" line and now it launches ok. We are gonna test if the rest of the code keeps working as expected!.

Thanks once more!