Error creating bean with name 'avmRemoteService'

In searching the forum, it seems like this problem has come up many times before, but none of the solutions works for me. I had Alfresco working properly, then when I made changes to my content model, something broke and I started getting this error. After trying all of the troubleshooting steps, I gave up. I wiped out my opt/alfresco folder and started from scratch. It still gave me this error, until I went back and put

127.0.0.1 alfresco

into the hosts file (alfresco is the server name). Once I got it working, I installed the beCPG designer addon. I started building a new model, wasn't able to get it to publish the module, so I tried a re-boot. After rebooting, the "Error creating bean with name 'avmRemoteService'" error came back again, and I can't figure out how to fix it.

It seems to me that Alfresco is very sensitive to configuration issues, and if you have a problem, the server won't start up properly. That makes it really difficult to debug.

Anyhow, here is my alfresco.log file. Any assistance would be greatly appreciated.

Its just JVM bind exception.I think you are immediately starting the server after shutting down.Try with some time interval in between.Also once you shut down the alfresco check jvm is also down then only restart the alfresco.

I don't think that's the problem. The same thing happens after a complete reboot. I've tried changing the port #'s that are used, and that didn't work either, even when I set the port to 0 to have the server randomly select a port #.

I am just using "alfresco.sh start" to start everything up (and "alfresco.sh stop" to shut down). Should I be doing something different?

What is strange is that I had Alfresco working, but then a change to a custom model, and subsequent re-start caused this problem to come back. Why would changing a custom model affect this?

By the way, an lsof -i :50501 shows that there is nothing else running on that port.

When the problems started, I changed the alfresco IP address to the actual (internal) IP address of 192.168.1.81. I can't remember whether it ever worked with that configuration, but I have had this same problem at least 3 times. At some point I later changed it back to the loopback IP address, and got alfresco working again. I'm pretty sure that changing this back to 127.0.0.1 was what I did to get it working. Based on what I have read in the several threads on this topic, it should have worked with the "real" IP address, but it did not in my case.

After getting alfresco back up again, I installed beCPG Designer, tried to set up a custom model, had trouble getting it to save, and after a re-boot, wound up with this error again.

This error occurs due to port conflicting in your system with other software's.For me due to conflicting of cyberoam port which we are using.I have started alfresco tomcat server before connecting to cyberoam and it's working fine for me.

For example, Sometime we are not able to start MYSQL server due to port conflict of Skype so for that we have to explicitly stop Skype service at start up and then we need to start MYSQL server.