[ome-devel] OMERO and Ports for Productionsystem

Gernot Stocker gernot.stocker at tugraz.at
Sat Sep 27 15:01:42 BST 2008


Hi Josh,
thanks for your quick reply!

On Friday 26 September 2008, josh.moore at gmx.de wrote:
> 
> and looking in jboss-service.xml there's the line:
> 
> <attribute name="StoreURL">${jboss.home.url}/server-conf/bindings.xml</attribute>
> 
> where "server-conf" should be "server/conf". Was this a typo that
> occurred in packaging this up, or are you also getting the
> FileNotFoundException somewhere?
> 

No, unfortunately this was no typo because I created the directory

~/omero-3.0-Beta2.3/jboss-4.2.1.GA/server-conf 

and placed the binding.xml file there. JBoss is loading the binding.xml file without 
any problem but exceptions where coming later during bean initialization.

Thanks and regards,
Gernot

=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA

  JAVA: /usr/jdk/jdk1.5.0_03/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:MaxPermSize=128M -Djava.awt.headless=true

  CLASSPATH: /export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/bin/run.jar:/usr/jdk/jdk1.5.0_03/lib/tools.jar

=========================================================================

15:38:48,972 INFO  [Server] Starting JBoss (MX MicroKernel)...
15:38:48,975 INFO  [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
15:38:48,979 INFO  [Server] Home Dir: /export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA
15:38:48,979 INFO  [Server] Home URL: file:/export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/
15:38:48,982 INFO  [Server] Patch URL: null
15:38:48,983 INFO  [Server] Server Name: default
15:38:48,983 INFO  [Server] Server Home Dir: /export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/server/default
15:38:48,984 INFO  [Server] Server Home URL: file:/export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/server/default/
15:38:48,984 INFO  [Server] Server Log Dir: /export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/server/default/log
15:38:48,985 INFO  [Server] Server Temp Dir: /export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/server/default/tmp
15:38:48,987 INFO  [Server] Root Deployment Filename: jboss-service.xml
15:38:49,989 INFO  [ServerInfo] Java version: 1.5.0_03,Sun Microsystems Inc.
15:38:49,989 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_03-b07,Sun Microsystems Inc.
15:38:49,990 INFO  [ServerInfo] OS-System: SunOS 5.9,sparc
15:38:51,549 INFO  [Server] Core system initialized
15:38:56,229 INFO  [ServiceBindingManager] Initializing store
15:38:56,230 INFO  [ServiceBindingManager] Using StoreURL: file:/export/home/omero/omero-3.0-Beta2.3/jboss-4.2.1.GA/server-conf/bindings.xml
15:38:58,911 INFO  [WebService] Using RMI server codebase: http://taranis:20083/
[...] 
[...]  == MY COMMENT ==== 
[...]  here you can see that the bindings.xml is loaded correctly because the RMI server codebase has 
[...]  the assigned port http://taranis:20083/ 
[...]  The troubles are starting, when the 
[...]  == MY COMMENT ==== 
[...]  
15:42:20,491 INFO  [EJBContainer] STARTED EJB: ome.logic.AdminImpl ejbName: AdminImpl
15:42:25,733 INFO  [EJBContainer] STOPPED EJB: ome.logic.AdminImpl ejbName: AdminImpl
15:42:25,744 WARN  [ServiceController] Problem starting service jboss.j2ee:ear=omero.ear,jar=server.jar,name=AdminImpl,service=EJB3
javax.naming.NamingException: Could not bind stateless proxy with ejb name AdminImpl into JNDI under jndiName: /omero/remote/ome.api.IAdmin [Root exception is javax.naming.CommunicationException: Could not connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]]
        at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.bindProxy(BaseStatelessProxyFactory.java:245)
        at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:225)
        at org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.start(StatelessRemoteProxyFactory.java:107)
        at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:83)
        at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:128)
        at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:94)
        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.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy58.start(Unknown Source)
        at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
        at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
        at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
        at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy58.start(Unknown Source)
        at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
        at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
        at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
        at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy34.start(Unknown Source)
        at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
        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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root  connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.jboss.util.naming.Util.createSubcontext(Util.java:69)
        at org.jboss.util.naming.Util.rebind(Util.java:125)
        at org.jboss.util.naming.Util.rebind(Util.java:113)
        at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.bindProxy(BaseStatelessProxyFactory.java:242)
        ... 148 more
Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)
        ... 155 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
        ... 156 more
Caused 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:364)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at java.net.Socket.<init>(Socket.java:365)
        at java.net.Socket.<init>(Socket.java:265)
        at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
        at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
        ... 156 more
15:42:25,754 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
15:42:25,754 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=omero.ear,jar=server.jar,name=ConfigImpl,service=EJB3 with dependencies:
15:42:25,842 INFO  [EJBContainer] STARTED EJB: ome.logic.ConfigImpl ejbName: ConfigImpl
15:42:30,871 INFO  [EJBContainer] STOPPED EJB: ome.logic.ConfigImpl ejbName: ConfigImpl
[...] 
[...]  == MY COMMENT ==== 
[...]  And so on...
[...]  == MY COMMENT ==== 
[...]  



More information about the ome-devel mailing list