Using eclipse to develop RMI under linux-centos6.3, launch the Tomcat service and discover "ObjID already in use" error. The log interception is as follows:
ERROR [Org.springframework.web.context.ContextLoader] context initialization failed
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Avmremoteservice ' ...
: Internal Error:objid already in use
analyzes the cause of the error, which should be attributed to the RMI common problem in the Linux environment, which may be the case with/etc/ The IP specified in the Hosts file is not the real ip,rmi of the current server and failed to register the service at initialization time.
Workaround:
Modify the/etc/hosts file to add a line to the file, as shown below,192.168.67.129 alf1 localhost localhost.localdomain Localhost4 Localhost4.localdomain4 on the line, or the/etc/hosts file in the default 127.0.0.1 changed to the current machine IP can!
127.0.0.1 alf1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.10.103 alf1 localhost localhost.localdomain localhost4 localhost4.localdomain4
After modification, restart the service successfully.
Append: Use hostname to view the host name.
This article is from the "Lendcode" blog, make sure to keep this source http://lendcode.blog.51cto.com/3532846/1642531
"ObjID already in use" error occurs with Eclipse development RMI in linux-centos6.3 environment