I copy the amp file in:
I stop Tomcat.
Then I uninstall.
D:\Alfresco\java\bin>java -jar ../../bin/alfresco-mmt.jar uninstall myrepo-amp ../../tomcat/webapps/alfresco.war
Then I install the new amp.
D:\Alfresco\java\bin>java -jar ../../bin/alfresco-mmt.jar install ../../amps/myrepo-amp.amp ../../tomcat/webapps/alfresco.war -verbose -force
I start Tomcat
The alfresco.war correctly contains the new files and new jar (e.g., my.jar inside amp). If I extract the alfresco.war, I can also see correctly the new jar file (e.g. my.jar) and other new XML files.
However, the D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib never gets the new jar of my.jar file.
The WEB-INF\lib had an older copy of "my.jar" which I deleted manually from before doing any install.
After the new install of amp, the "my.jar" never makes it to the WEB-INF\lib directory.
For that matter, I manually copied "my.jar" in the WEB-INF\lib and restarted Tomcat and re-started Tomcat.
After doing that, I am not getting any error in the start-up of Tomcat (Tomcat started successfully, no error in the log files), but the services page says 404 (Not found) error.
I doublechecked inside alfresco.war (which got created by install) that it indeed has all the new and correct XML and class files and the new jar file. I manually copied the my.jar inWEB-IN\lib and restarted Tomcat.
I am fine if I have to manually copy my.jar yo WEB-IN\lib (although I should not).
Perhaps I am missing something else. I am not sure why I keep getting 404 error when I try to display the sercice/index.html page.
Am I missing anything? Any thoughts?