cancel
Showing results for 
Search instead for 
Did you mean: 

'rmiAuthenticationService' Error creating bean with name

mrudmann
Champ in-the-making
Champ in-the-making
Hi Group,
I am getting the error below when running my new build from svn as of 12/22/06.  I am running Alfresco community Network.

"…org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rmiAuthenticationService' defined in class path resource [alfresco/authentication-services-context.xml]: Initialization of bean failed; nested exception…"

Obviously, it is an RMI related issue.  I was wondering if I need to configure RMI somewhere?  Do I need to build alfresco again with other libraries?  Do I really need tomcat_viirtual pointed to the separate instance of tomcat for some of this?  etc.

Your help is appreciated!

Thanks!
-Matt
15 REPLIES 15

piman31415
Champ in-the-making
Champ in-the-making
I had this same error.  My server has a non-routeable IP address like 192.168.1.23, behind a firewall with NAT translation from a globally routable address.  Adding an entry to the /etc/hosts file with the non-routable IP address fixed this problem for me (e.g.  adding an entry like:

192.168.1.23  myhost.mydomain.com

to the /etc/hosts file.   Apparently, the RMI registry needs the actual IP address of the box, not the globally-accessible name reported by the DNS server.

Hope this helps,

Dave C.

richmitc
Champ in-the-making
Champ in-the-making
Dave,

I'll try this.  However, I believe I have already done so.  In this case, I believe I had the duplicate registry errors.

I believe I will reinstall Alfresco, in my case 2.0, first as I have made numerous changes to try to get this to work and should start fresh.

Let me ask

1.  What OS are you on?  I assume it is a *X one.  I just wanted to know which one.
2.  What version of Alfresco?
3.  Is it Community or Enterprise?
4.  Is you system hostname the same as the one you are entering in /etc/hosts i.e. is the response to the "hostname" command the same as the name in the /etc/hosts?
5.  Is you system known by a DNS outside your firewall?  This should be as you external IP address.

Thanks for your help.

Rich

richmitc
Champ in-the-making
Champ in-the-making
I did try again this weekend with

192.168.x.y myhost.mydomain.com

in my /etc/hosts file where x and y are the address on the local network behind the firewall.

As I said, I first did a reinstall of Alfresco 2.0 Community on Fedora Core 6.  I also made sure no other java processes were running before I started it.

I get the following error:

18:52:57,256 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
18:53:01,529 WARN  [remoting.rmi.RmiServiceExporter] Could not detect RMI registry - creating new one
18:53:02,223 ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoRemoteTransportRMI' defined in class path resource [alfresco/core-services-context.xml]: Initialization of bean failed; nested exception is java.rmi.server.ExportException: internal error: ObjID already in use

I'm back to 1.4 for now.  I'll try again with Alfresco 2.x Community when possible success  is indicated.

Thanks.

richmitc
Champ in-the-making
Champ in-the-making
Well, IMHO, this is what you need:

1.  Use the JAVA_OPT -Djava.rmi.server.hostname=yourhost.yourdomain as outlined earlier in this post.

2.  Have an /etc/hosts entry which has the local area network IP of yourhost.yourdomain

That works for me.

By the way, make sure the IP address you have in /etc/hosts is the ACTUAL IP address for your host shown in ifconfig.  I can look in the mirror and find someone who was using the wrong address thus causing much of the problem.

kgorllap
Champ in-the-making
Champ in-the-making
Alright. I spent a lot of time on this issue which is "ObjId already in use" when alfresco starts on a new Solaris prod box.
Finally here is my finding.
On solaris, type "hostname" command or /usr/bin/hostname command and see what's your host name. This host name should match with your hostname in /etc/hosts file.
In case they are not matching and you want to set the right host name then use the following command.
$/usr/bin/hostname <newhostnamehere without brackets Smiley Happy>

It will work… Smiley Happy

cs02rm0
Champ in-the-making
Champ in-the-making
And then what do you do if you want to bind two alfresco instances to two different IPs on the same box?

java.rmi.server.hostname doesn't seem to be being respected for me.