cancel
Showing results for 
Search instead for 
Did you mean: 

remote virtualization server

sbzoom
Champ in-the-making
Champ in-the-making
I am trying to run the virtualization instance of Tomcat on a different server than the server that Alfresco is running on.  I thought this would be an extremely trivial task but I seem to be missing something.

I was hoping someone could point me to the few config files that I would need to change to get this all to work.

virt server:
<tomcat-home>/conf/alfresco-shared.properties# Name of the host running AVM#avm.remote.host=localhostavm.remote.host=10.4.4.34# AVMRemote APIavm.remote.port=50500‍‍‍‍‍‍‍‍‍

error log
WARNING: Could not connect to RMI service [rmi://10.4.4.34:50500/authentication] - retryingjava.lang.reflect.InvocationTargetException        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:585)        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)Caused by: org.springframework.remoting.RemoteConnectFailureException: Cannot connect to remote service [rmi://10.4.4.34:50500/authentication]; nested exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:        java.net.ConnectException: Connection refused        at org.springframework.remoting.rmi.RmiClientInterceptorUtils.convertRmiAccessException(RmiClientInterceptorUtils.java:171)        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:297)        at org.springframework.remoting.rmi.RmiClientInterceptor.refreshAndRetry(RmiClientInterceptor.java:280)        at org.springframework.remoting.rmi.RmiClientInterceptor.handleRemoteConnectFailure(RmiClientInterceptor.java:252)        at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:212)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)        at $Proxy0.authenticate(Unknown Source)        at org.alfresco.jndi.AVMFileDirContext.InitAVMRemote(AVMFileDirContext.java:277)        at org.alfresco.catalina.host.AVMHost.init(AVMHost.java:325)        at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:500)        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)        at org.apache.catalina.core.StandardService.start(StandardService.java:450)        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)        … 6 moreCaused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:        java.net.ConnectException: Connection refused        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)        at org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.invoke(Unknown Source)        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:347)        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:294)        … 20 moreCaused by: java.net.ConnectException: Connection refused        at java.net.PlainSocketImpl.socketConnect(Native Method)        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)        at java.net.Socket.connect(Socket.java:516)        at java.net.Socket.connect(Socket.java:466)        at java.net.Socket.<init>(Socket.java:366)        at java.net.Socket.<init>(Socket.java:179)        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

I am certain I have the username and password correct.  Is there something I have to change?  I don't know if I'm being all that clear, sorry about that.


Charlie
12 REPLIES 12

sbzoom
Champ in-the-making
Champ in-the-making
The magic must be in the alfresco-shared.properties file.  But I cannot figure out what I am doing wrong.  Should the two files match?  Or should they be different?

My server running Alfresco is 10.4.4.34.  My server running the virtualization server is 10.4.4.36.

So, should the <alf_home>/WEB-INF/classes/alfresco/alfresco-shared.properties file have:
avm.remote.host=10.4.4.34oravm.remote.host=10.4.4.36‍‍‍‍‍‍‍


And then, should the virtualization server's
<virt_home>/conf/alfresco-shared.properties file have:
avm.remote.host=10.4.4.34oravm.remote.host=10.4.4.36‍‍‍‍‍‍‍


So, should each server point at the other?  Should they both point at the virtualization server's IP?  Should they both point to the Alfresco server's IP?

Thanks for the help.


Charlie

marcus
Champ in-the-making
Champ in-the-making
Are you running a firewall at all?

sbzoom
Champ in-the-making
Champ in-the-making
Both machines are behind the same firewall.  I can't say with 100% certainty that there is not something killing traffic between them, but I am 99% sure.  They are sitting next to each other in a cage and in the same IP class.  More tellingly, I can telnet to 10.4.4.34:50500 no problem.  That means that I can see the machine and that port.  So I'm not sure what the problem might be.  It must be in how I am setting up the config files.

When both alfresco-shared.properties files point to "localhost" it works fine.  So, now that they are on different machines, how should they be configured?

Thanks.

gennaromonaco
Champ in-the-making
Champ in-the-making
Does anyone with a remote virtualization server up and running care to share their .properties files so we can see an example of how this should be configured?

Thanks!
- Gennaro

gennaromonaco
Champ in-the-making
Champ in-the-making
Still no word from any of the engineers on this, huh?

jcox
Champ in-the-making
Champ in-the-making
gennaromonaco,

This question has been asked/answered before,
but just to double-check, did you get an answer?
I'm in the midst of walking through old forum
posts looking for loose ends, and am hoping
you're all set now.  If not, please let me know.

  Thanks,
  -Jon

gennaromonaco
Champ in-the-making
Champ in-the-making
Hi Jon,
We've been unsucessful in setting up remote virtualization this far, so we just wanted to have a look at some example .properties files where this was done. Have any examples?
Thanks!
- Gennaro

gennaromonaco
Champ in-the-making
Champ in-the-making
I'm working with sbzoom on this issue, so please have a look at the messages posted above for further details.
Thanks Jon!
- G

jcox
Champ in-the-making
Champ in-the-making
One issue was that prior to the resolution of
http://issues.alfresco.com/browse/WCM-750
you had to either start the virt server after the
alfresco webapp, or put it in a retry loop.

This has since been fixed in 2.1 ENTERPRISE,
and should make it into other branches some time
in the not too distant future.