'rmiAuthenticationService' Error creating bean with name 

General installation questions

'rmiAuthenticationService' Error creating bean with name

Postby mrudmann » 22 Dec 2006, 21:13

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
mrudmann
Community Contributor Pro
Community Contributor Pro
 
Posts: 77
Joined: 12 Dec 2006, 02:11

0 Points (What is this?)

Postby yahya114 » 18 Jan 2007, 03:54

Hi, Matt

I have the same problem...

Have you found the solution?

Would you kindly to post it?

Thanks,
- yahya
yahya114
 
Posts: 1
Joined: 18 Jan 2007, 03:49

0 Points (What is this?)

zombie rmi/jndi?

Postby hiteshlad » 26 Jan 2007, 19:44

We had this problem too, on OSX. Could have been a zombie process.

So we paid :o the apple tax :o closed all our windows and rebooted. Then it started up correctly.

If not, you may want to turn on the log4j level for
remoting.rmi.RmiRegistryFactoryBean and remoting.rmi.RmiServiceExporter.

- hitesh
User avatar
hiteshlad
Community Member
Community Member
 
Posts: 12
Joined: 10 Jan 2007, 23:32
Location: Los Angeles, CA - USA
Alfresco Version: 2.1

0 Points (What is this?)

Postby richmitc » 27 Jan 2007, 19:43

Below are my errors upon installation of 2.0 Preview under Fedora Core 6. Based on the advice above I already 1) uninstalled, 2) rebooted, 3) installed, 4) rebooted, 5) started. I got the same error. I'll turn things on at the appropriate level in log4j next. Meanwhile, I post this in case someone has already solved it. Thanks.

14:18:55,504 WARN [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
14:25:15,069 WARN [remoting.rmi.RmiServiceExporter] Could not detect RMI registry - creating new one
14:28:30,463 WARN [remoting.rmi.RmiServiceExporter] Could not detect RMI registry - creating new one
14:28:30,649 ERROR [web.context.ContextLoader] Context initialization failed
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 is java.rmi.server.ExportException: internal error: ObjID already in use
java.rmi.server.ExportException: internal error: ObjID already in use
richmitc
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Postby richmitc » 27 Jan 2007, 20:38

I found my problem. It is embarrassing enough that I considered pulling the above post. However, maybe someone else would have the same issue....

I had hostname/host resolution problems. I was trying, in the recent past, to get my Fedora system to work right with DNS vis-a-vis my setup behind a couple of routers between it and my cable modem. It turns out that it still wasn't working right. I went back to a static 192.168.x.y IP address with appropriate mask, gateway, and DNS settings. Alfresco startup problem gone.

Sorry to bother y'all.
richmitc
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Postby richmitc » 18 Jul 2007, 02:41

I'm back....

Thumbnails became available for 2.0 (thanks Ray) so that I have tried to install it on my "production" box. This RMI problem is back. From what I read in other posts in these forums, MANY other people are having the same problem.

I believe I have narrowed it down to a NAT issue. I eliminated firewall as the problem by temporarily disabling it. Of course, certain ports must be open on the firewall, but I just wanted to see if an unopened port was the problem. It was not.

Here is the lowdown.... My "production" box is behind a Linksys router. The router is set up to pass through Internet traffic to my box. The public Internet IP is say w.x.y.z. The box has an IP of 192.168.m.n on my local network. If I put the host name in the form of host.xxxx.com or just host in the /etc/hosts file with the local network IP of 192.168.m.n, I get the "ObjID already in use" error. If I put it in with an IP of w.x.y.z, I get a "192.168.m.n is a non-local host" error. Catch-22. Either way it doesn't work.

I've noticed other posts on the Internet where people have had this generalized problem with RMI and NAT. They had to alter source code to make it work. I will download the source code and check into that possibility.

Meanwhile, can someone point out to me, and from what I can see, many others who appear to have this NAT problem, how to fix it with just settings.

Thanks.
richmitc
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Postby richmitc » 22 Jul 2007, 19:01

I regret to inform you that I found a way to make this work under Fedora Core 6. The regret is the fact the solution is kludgy and probably has adverse side-effects I have not run into yet. The solution is as follows:

1. Use the Network control panel at System->Administration->Network or other means to change you hostname to localhost.localdomain.

2. Remove or comment out any entries with your real host name in /etc/hosts.

3. Add "-Djava.rmi.server.hostname=yourhost.yourrealdomain" to the JAVA_OPTS in alfresco.sh in /opt/Alfresco or wherever yours is. Note yourrealdomain should have .com, .org, .edu or whatever is appropriate for you.

I'm hoping I have not tried all possible options but I tried many with various settings of java.rmi.server.hostname with various settings in /etc/hosts including nothing in /etc/hosts and other options like java.rmi.server.useLocalHostname (or java.rmi.server.useLocalHostName - I'm not sure which is right or if they both work). For all other options, I got either "ObjID already exists" or "is a non-local host".

I say I'm hoping I didn't try all options as I am hoping someone out there has a better solution for RMI behind NAT with Alfresco.

Thanks.
richmitc
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Postby Paul Lewon » 30 Jul 2007, 17:24

Rich,

Thanks for this. I'm not out of the woods, but I'm past the RMI errors.

Paul
Paul Lewon
Community Contributor
Community Contributor
 
Posts: 30
Joined: 09 Jul 2007, 13:55

0 Points (What is this?)

Postby BPInnovators » 13 Aug 2007, 00:02

I experienced this issue with the community 2.1 release. We are in the fortunate position to be testing the 2.1 enterprise (beta) release. It appears that the issue has been resolved in 2.1 enterprise (beta) as it is working even after backing out the changes posted by “richmitcâ€
BPInnovators
 
Posts: 2
Joined: 12 Aug 2007, 23:39

0 Points (What is this?)

Postby richmitc » 17 Aug 2007, 16:58

Yes, I have an "alias pj='ps -ef|fgrep java' in my /etc/bashrc just for this purpose i.e. checking for leftover java processes. If you have one, you should get a "port 50500 already in use" error.

I still haven't found an answer, other than the one I posted, to this NAT issue.

My most recent attempt involved trying to comment out all of the RMI and AVM references in the XML configuration files as I am not doing the web content thing and got the impression that the AVM stuff is for that. I couldn't get it to quite work. There was always something else to get out or put in to resolve undefined references.

As such, I am back to 1.4 for now.

I'll check the forums as well as the SVN on occasion to see if there is an answer or a code change and/or I might still try to figure out one myself.
richmitc
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

RMI Registry

Postby piman31415 » 23 Aug 2007, 03:11

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.
piman31415
Community Member
Community Member
 
Posts: 10
Joined: 29 Jan 2007, 18:36

0 Points (What is this?)

Postby richmitc » 23 Aug 2007, 14:00

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
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Postby richmitc » 26 Aug 2007, 23:04

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
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Re: 'rmiAuthenticationService' Error creating bean with name

Postby richmitc » 19 Aug 2008, 02:46

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.
richmitc
Community Contributor
Community Contributor
 
Posts: 38
Joined: 14 Dec 2006, 21:13

0 Points (What is this?)

Re: 'rmiAuthenticationService' Error creating bean with name

Postby kgorllap » 03 Aug 2010, 21:10

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 :)>

It will work... :)
kgorllap
 
Posts: 2
Joined: 03 Aug 2010, 20:58
Alfresco Version: 2.1

0 Points (What is this?)


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests