AnsweredAssumed Answered

Alfresco WCM Remote AVM Deployment

Question asked by wilsonb on Apr 8, 2011
Latest reply on Apr 12, 2011 by wilsonb
I’m a bit of a newbie to Alfresco (sorry if I have posted this in the wrong place) and I’m trying to assess if it can do what I need it to. The question below may well be a dumb one so please be patient and give it a look. At the moment I have a Dev (Windows), Staging (Linux) and Live (Linux) servers, I’m running 3.4.d Community out of the box with the standard MySQL/Tomcat setup. The issue I’m having is remote deployment of a Web Project. I have setup an avm deployment of a Web Project call it “InitialProject” and a version on the same box “InitialProject-live” and when I deploy to localhost via 50500 to a Target Name of “avm” it works a treat. However this is not how the real system will work. I’m trying to get the Windows machine to connect to the staging Linux box but when I try and to deploy the web project on the remote box I get the exception below.

I have checked if the port is open from the windows box and it appears to be (I telnet on 50500) and it opens. This seems to indicate there is no firewall between me and it. I have done a “netstat -an | grep 50500” on the Linux box and I get back a listen on that port so I assume the connectivity is correct. My RMI in the global properties file is as follows

### RMI service ports ###

I have setup the deployment on the windows box to be:

Transport Name:   default
Port:   50500
Type:   Live Server
Username:   admin
Target Name:   avm
Include In Auto Deploy:   No

Do I have to setup the Web Project on the other end in a special manner or run/configure something I have not mentioned above. Can someone please indicate why I am getting the exception below as I have looked through all the forums and also looked at the books and I think I have set everything up as expected.

org.alfresco.service.cmr.avm.AVMException: 03070050 Deployment exception, unable to deploy : srcPath:zurg:/www/avm_webapps, target:avm, version:3, adapterName:default,, port:50,500, error:org.alfresco.service.cmr.avm.AVMException: 03070049 Could not connect to remote deployment receiver, transportName:default,, port: 50500
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
   at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
   at $Proxy91.deployDifferenceFS(Unknown Source)
   at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
   at java.util.concurrent.ThreadPoolExecutor$
Caused by: org.alfresco.service.cmr.avm.AVMException: 03070049 Could not connect to remote deployment receiver, transportName:default,, port: 50500
   at org.alfresco.repo.deploy.DeploymentServiceImpl.getDeploymentReceiverService(
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(
   … 28 more
Caused by: org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.NoSuchObjectException: no such object in table
   at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(
   at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(
   at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(
   at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(
   at org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI.getTransport(
   at org.alfresco.repo.deploy.DeploymentServiceImpl.getDeploymentReceiverService(
   … 29 more
Caused by: java.rmi.NoSuchObjectException: no such object in table
   at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(
   at sun.rmi.transport.StreamRemoteCall.executeCall(
   at sun.rmi.server.UnicastRef.invoke(
   at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
   at java.rmi.Naming.lookup(
   at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(
   … 34 more