cancel
Showing results for 
Search instead for 
Did you mean: 

JNVI Connection

cbrayne
Champ in-the-making
Champ in-the-making
Have installed the community tomcat WCM release and solved the JAVA_HOME issue. Tomcat starts up fine but  virtual_start.bat now loops giving the message WARNING: Retrying JNDI Connection ….

I have tried several starts and stops and both wired and wireless network connections.

Can anyone suggest a next step?

Chris
8 REPLIES 8

minimutang
Champ in-the-making
Champ in-the-making
I am getting the same error - any advice?

kooktroop
Champ in-the-making
Champ in-the-making
*bump* I'm also having problems with this… I've pasted the relevant section of the error log from virtual_tomcat/logs/catalina*.txt


Mar 6, 2007 1:38:41 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused: connect
   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 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
   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.stopServer(Bootstrap.java:343)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:434)
Mar 6, 2007 1:38:50 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Alfresco\java\bin;.;C:\WINNT\system32;C:\WINNT;C:\Alfresco\java/bin;C:\Alfresco\bin;C:\Alfresco\java\bin;C:\Alfresco\bin;C:\Program Files\Java\jdk1.6.0\bin;C:\products\Oracle81\bin;C:\products\j2sdk1.4.2_03\bin;C:\products\j2sdk1.4.2_03\jre\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\products\ULTRAE~1;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\products\maven-1.0-rc2\bin;C:\products\apache-ant-1.6.2\bin;C:\products\xmlbeans-2.0.0\bin;C:\fedora\fedora-2.1b\server\bin;C:\fedora\fedora-2.1b\client\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\
Mar 6, 2007 1:38:51 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Mar 6, 2007 1:38:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2813 ms
Mar 6, 2007 1:38:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 6, 2007 1:38:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Mar 6, 2007 1:38:52 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
Mar 6, 2007 1:38:52 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Mar 6, 2007 1:38:52 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=2804837]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
Mar 6, 2007 1:38:52 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=2804837]
Mar 6, 2007 1:38:52 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-shared.properties]
Mar 6, 2007 1:38:52 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
Mar 6, 2007 1:38:52 PM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@a77106]
Mar 6, 2007 1:38:52 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@15575e0]
Mar 6, 2007 1:38:52 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy]
Mar 6, 2007 1:38:54 PM org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy}
Mar 6, 2007 1:38:54 PM org.alfresco.jndi.AVMFileDirContext InitAVMRemote
WARNING: Retrying JNDI connection….

mchernecki
Champ in-the-making
Champ in-the-making
I am also getting the same error.

kooktroop
Champ in-the-making
Champ in-the-making
I managed to fix this by doing alf_start first, then once it was started, doing virtual_start.

kvc
Champ in-the-making
Champ in-the-making
Yes, seeing this as well.  Looks like while the web app is deploying, the virt server is waiting for a connection to the server, and is prematurely timing out.  On my system, if I've have lots of things taking CPU time and causing a longer than normal deployment of the web app I hit this.  If my system is quiescent, everything starts normally.  Another way to resolve is via the post above. 

We'll look into have the virt server attempt to connect for a longer time interval. 

Kevin

markd
Champ in-the-making
Champ in-the-making
Yes, seeing this as well.  Looks like while the web app is deploying, the virt server is waiting for a connection to the server, and is prematurely timing out.  On my system, if I've have lots of things taking CPU time and causing a longer than normal deployment of the web app I hit this.  If my system is quiescent, everything starts normally.  Another way to resolve is via the post above. 

We'll look into have the virt server attempt to connect for a longer time interval. 

Kevin

I tried the fix (manual start of virtual_start.bat), both start, but when I try a preview, I get in tomcat:
"16:41:10,535 ERROR [alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi
://ignored/jndi/rmi://127-0-0-1.ip.alfrescodemo.net:50501/alfresco/jmxrmi
16:41:17,135 ERROR [alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi
://ignored/jndi/rmi://127-0-0-1.ip.alfrescodemo.net:50501/alfresco/jmxrmi"

My browser gives for the url:
http://inf125.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8180/
"could not get requested url"
(proxy forbids port 8180, even if addresses starting with inf125 should not use the proxy)
??
Mark

jcox
Champ in-the-making
Champ in-the-making
The following message indicates a (typically transient) problem
connecting to the AVM server (which is currently bound to the
Alfresco webapp process within tomcat):

   WARNING: Retrying JNDI connection….

There are two cases:

    [1]  Recoverable
          If the virtualization server is started before the Alfresco webapp is
          fully initialized, you'll see this warning. Once the AVM comes online
          (i.e.: once the Alfresco webapp is fully up), the virtualization server
         connects to it, and no longer issues the warning.

    [2]  Non-recoverable
          If this warning is emitted  for several minutes *after* the Alfresco
          webapp is fully up,  then you've got a configuration or permission
          error.  The most typical problems are that your virtualziation server
          is not actually trying to connect to the right IP address/port,  or
          that you've changed the admin password in the Alfresco webapp
          but you've forgotten to make a corresponding change to the
          $VIRTUAL_TOMCAT_HOME/conf/alfresco-virtserver.properties
          property  alfresco.server.password=…

Also, to rule out any possible browser caching issues, if you do
get a blank page, be sure you hit refresh after the virtualization
server stops warning about not being able to connect yet.

               I hope this helps,
               -Jon

jcox
Champ in-the-making
Champ in-the-making
I just re-read the last line of your post.
What you you mean when you refer to a "proxy"?

Are you trying to access the virtualization server
on a browser that's not running on the same machine?
If you, you must configure:

alfresco.virtserver.domain=….

See the internal docs within the virtualization server's config file for details:

$VIRTUAL_TOMCAT_HOME/conf/alfresco-virtserver.properties