It seems strage, i hope you followed the appropriate way of creating the surf page using surf-extension.
Post deployment of your custom amp, you can also check the status of the module by going to: http://127.0.0.1:8081/share/page/modules/deploy
You can also try clearning the cache before restart and see if works (assuming the extension is correctly created as per the docs and deployed).
Clear dependency cache (use POST request):
At last, try disabling the cache all-together, go to $TOMCAT_HOME/conf/Catalina/localhost/share.xml and update the Resources element given below:
<?xml version='1.0' encoding='utf-8'?>
(ACSCE, AWS SAA, Azure Admin)