cancel
Showing results for 
Search instead for 
Did you mean: 

HOw do I deploy sample example

cog123
Champ in-the-making
Champ in-the-making
Hello,

I have installed Alfreco 2.2.0 I wanted to try the SDK sample example ..SDKcustomLogin. How do I deploy the sample app. I trid to run the ant script which generated the .jar file. I renamed it .war and put it alongside custom-login.war. but on starting the sever the new customLogin app was not extracted.

please provide pointers.

thanks.
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
Use the ant build file that came with the SDK. If you copy the alfresco.war file into root sample directory and run the ant task "integrate-extension".

Alternatively you can create your ant tasks to do
1. Copy the custom-login.jar to alfresco/tomcat/webapps/alfresco/WEB-INF/lib (run package-jar to create the jar)
2. Copy the web directory to alfresco/tomcat/webapps/alfresco/

Restart tomcat.

htk_test
Champ in-the-making
Champ in-the-making
Hi All,

I try manual copy jar to lib folder, and web directory to  alfresco/tomcat/webapps/alfresco/

But I face this error: java.lang.ClassNotFoundException: org.alfresco.sample.CustomLoginBean. –> please help me.

I using alresco 4.0

mitpatoliya
Star Collaborator
Star Collaborator
you have to copy it inside tomcat/webapp/alfresco/WEB-INF/lib