You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by adamsi <ad...@gmail.com> on 2011/10/01 21:47:59 UTC
RMI Registry failed
Hello,
I've installed Geronimo on my machine and am getting an error when
starting the server. I saw several other similar posts and it was due to
port 1099 already being in use, however my error is slightly different.
Here is the my geronimo.log file for the error. Any help or suggestions
would be greatly appreciated! Thanks in advance! -Adam
2011-10-01 14:37:42,335 INFO [Log4jService]
----------------------------------------------
2011-10-01 14:37:42,336 INFO [Log4jService] Started Logging Service
2011-10-01 14:37:42,336 INFO [Log4jService] Runtime Information:
2011-10-01 14:37:42,338 INFO [Log4jService] Install Directory =
/home/geronimo/geronimo-tomcat6-javaee5-2.2.1
2011-10-01 14:37:42,340 INFO [JvmVendor] Sun JVM 1.6.0_22
2011-10-01 14:37:42,340 INFO [Log4jService] JVM in use = Sun JVM
1.6.0_22
2011-10-01 14:37:42,340 INFO [Log4jService] Java Information:
2011-10-01 14:37:42,340 INFO [Log4jService] System property
[java.runtime.name] = Java(TM) SE Runtime Environment
2011-10-01 14:37:42,340 INFO [Log4jService] System property
[java.runtime.version] = 1.6.0_22-b04
2011-10-01 14:37:42,340 INFO [Log4jService] System property [os.name]
= Linux
2011-10-01 14:37:42,340 INFO [Log4jService] System property [os.version]
= 2.6.32-3-686
2011-10-01 14:37:42,340 INFO [Log4jService] System property
[sun.os.patch.level] = unknown
2011-10-01 14:37:42,340 INFO [Log4jService] System property [os.arch]
= i386
2011-10-01 14:37:42,340 INFO [Log4jService] System property
[java.class.version] = 50.0
2011-10-01 14:37:42,340 INFO [Log4jService] System property [locale]
= en_US
2011-10-01 14:37:42,340 INFO [Log4jService] System property
[unicode.encoding] = UnicodeLittle
2011-10-01 14:37:42,340 INFO [Log4jService] System property
[file.encoding] = UTF-8
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.vm.name] = Java HotSpot(TM) Server VM
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.vm.vendor] = Sun Microsystems Inc.
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.vm.version] = 17.1-b03
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.vm.info] = mixed mode
2011-10-01 14:37:42,341 INFO [Log4jService] System property [java.home]
= /usr/lib/jvm/java-6-sun-1.6.0.22/jre
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.classpath] = null
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.library.path] =
/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1$
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.endorsed.dirs] =
/home/geronimo/geronimo-tomcat6-javaee5-2.2.1/lib/endorsed:/usr/lib/jvm/java-6$
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[java.ext.dirs] =
/home/geronimo/geronimo-tomcat6-javaee5-2.2.1/lib/ext:/usr/lib/jvm/java-6-sun-$
2011-10-01 14:37:42,341 INFO [Log4jService] System property
[sun.boot.class.path] =
/home/geronimo/geronimo-tomcat6-javaee5-2.2.1/lib/endorsed/yoko-rmi-spec-1.0.j$
2011-10-01 14:37:42,341 INFO [Log4jService]
----------------------------------------------
2011-10-01 14:37:44,155 WARN [RMIRegistryService] RMI Registry failed
2011-10-01 14:37:44,157 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="org.apache.geronimo.framework/rmi-naming/2.2.1$
java.rmi.server.ExportException: Listen failed on port: 1109; nested
exception is:
java.net.SocketException: Invalid argument
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
at
sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
at
sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
at
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:68)
at
java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:222)
at
org.apache.geronimo.kernel.rmi.RMIRegistryService.doStart(RMIRegistryService.java:72)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
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:597)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$1afd7d0c.startConfiguration(<generated>)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:204)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:87)
at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at
org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
at
sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
... 33 more
2011-10-01 14:37:44,199 INFO [KernelContextGBean] bound gbean
org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-namin$
2011-10-01 14:37:44,202 INFO [KernelContextGBean] bound gbean
org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-namin$
2011-10-01 14:37:44,202 INFO [KernelContextGBean] bound gbean
org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-namin$
2011-10-01 14:37:44,316 INFO [KernelContextGBean] unbound gbean
org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-nam$
2011-10-01 14:37:44,317 INFO [KernelContextGBean] unbound gbean
org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-nam$
2011-10-01 14:37:44,317 INFO [KernelContextGBean] unbound gbean
org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-nam$
2011-10-01 14:37:44,332 INFO [Log4jService] Stopping Logging Service
2011-10-01 14:37:44,332 INFO [Log4jService]
----------------------------------------------
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/RMI-Registry-failed-tp3385711p3385711.html
Sent from the Users mailing list archive at Nabble.com.
Re: RMI Registry failed
Posted by adamsi <ad...@gmail.com>.
Thanks Kevan! That seems to have been my issue. I'm able to start the server
now and reach the welcome page.
Thanks again!
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/RMI-Registry-failed-tp3385711p3386306.html
Sent from the Users mailing list archive at Nabble.com.
Re: RMI Registry failed
Posted by Kevan Miller <ke...@gmail.com>.
On Oct 1, 2011, at 3:47 PM, adamsi wrote:
> Hello,
>
> I've installed Geronimo on my machine and am getting an error when
> starting the server. I saw several other similar posts and it was due to
> port 1099 already being in use, however my error is slightly different.
> Here is the my geronimo.log file for the error. Any help or suggestions
> would be greatly appreciated! Thanks in advance! -Adam
I assume you've verified that port 1099 is not in use?
Do you have IP v6 configured, by chance? Running with the following property might help
-Djava.net.preferIPv4Stack=true e.g.:
$ GERONIMO_OPTS=-Djava.net.preferIPv4Stack=true ./geronimo.sh run
...
Or altering your system v6 configuration.
--kevan