You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Tapas Mishra <mi...@gmail.com> on 2010/05/04 06:08:44 UTC

java -jar server.jar is failing to start server.

I was able to install geromino.Could see admin control as per this page
https://cwiki.apache.org/GMOxDOC11/quick-start-apache-geronimo-for-the-impatient.html
if I am starting java -jar server.jar
then I am having problem.What should I check in ?
I am using geronimo-jetty7-javaee5-2.2




Booting Geronimo Kernel (in Java 1.6.0_18)...
Starting Geronimo Application Server v2.2
[****                                    ]  11%   4s  Loading
org.apache.ger...2010-05-03 22:36:40,611 WARN  [RMIRegistryService]
RMI Registry failed
2010-05-03 22:36:40,612 ERROR [GBeanInstanceState] Error while
starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.framework/rmi-naming/2.2/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2/car,j2eeType=GBean,name=RMIRegistry"
java.rmi.server.ExportException: Port already in use: 1099; nested
exception is:
	java.net.BindException: Address already in use
	at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:328)
	at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:236)
	at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
	at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
	at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)
	at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:110)
	at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:86)
	at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:239)
	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:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	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$$574e04df.startConfiguration(<generated>)
	at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
	at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
	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.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
	at java.net.ServerSocket.bind(ServerSocket.java:336)
	at java.net.ServerSocket.<init>(ServerSocket.java:202)
	at org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
	at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:667)
	at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:317)
	... 33 more
[****                                    ]  11%   4s Startup failed
org.apache.geronimo.kernel.config.LifecycleException: start of
org.apache.geronimo.framework/rmi-naming/2.2/car failed
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	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$$574e04df.startConfiguration(<generated>)
	at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
	at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
	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: org.apache.geronimo.kernel.config.InvalidConfigException:
Unknown start exception
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
	... 16 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Configuration org.apache.geronimo.framework/rmi-naming/2.2/car failed
to start due to the following reasons:
  The service ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2/car,j2eeType=GBean,name=RMIRegistry
did not start because Port already in use: 1099; nested exception is:
	java.net.BindException: Address already in use

	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
	... 18 more


-- 
Tapas

Re: java -jar server.jar is failing to start server.

Posted by Tapas Mishra <mi...@gmail.com>.
Last login: Tue May  4 09:25:08 on console
shankar-venkatagiris-power-mac-g5:~ openmac$ ssh root@172.21.100.147
Linux openworld 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun May  2 22:33:50 2010 from 172.21.100.149
openworld:~# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   404     8     r-----    968.5
ocw                                          1  1024     1     -b----     97.4
research                                     2  2048     1     -b----    100.8
social                                       3  2048     1     -b----    102.5
software                                     6  2048     1     -b----    104.5
staging                                      9   477     1     -b----    296.4
openworld:~# ping openitup.in
PING openitup.in (164.164.81.47) 56(84) bytes of data.
^C
--- openitup.in ping statistics ---
23 packets transmitted, 0 received, 100% packet loss, time 22013ms

openworld:~# exit
logout
Connection to 172.21.100.147 closed.
shankar-venkatagiris-power-mac-g5:~ openmac$ ssh root@172.21.100.193
Linux software 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May  3 04:33:07 2010 from 172.21.100.149
software:~#










software:~# ls
backups  grails  helloworld  helloworld-0.1.war  jdk1.6.0_20  videos
software:~# cd /etc/apache2/
software:/etc/apache2# ls
apache2.conf  conf.d  envvars  httpd.conf  mods-available
mods-enabled  ports.conf  sites-available  sites-enabled
software:/etc/apache2# cd sites-enabled/
software:/etc/apache2/sites-enabled# ls
000-openitup.in  001-software.openitup.in
software:/etc/apache2/sites-enabled# vi 001-software.openitup.in
software:/etc/apache2/sites-enabled# vi 000-openitup.in
software:/etc/apache2/sites-enabled# exit
logout
Connection to 172.21.100.193 closed.
shankar-venkatagiris-power-mac-g5:~ openmac$



































shankar-venkatagiris-power-mac-g5:~ openmac$ ssh root@172.21.100.147
Linux openworld 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May  3 22:27:06 2010 from 172.21.100.149
openworld:~# ls
cacert.pem	   drupal-6.16.tar.gz		      index.html?d=EQEAQ89I
lv_output.txt  PracticeProblems1.pdf	   videos
cacert.pem.backup  firewall.conf		      inscd		     openvpn.conf   staging
debian.iso	   firmware-bnx2_0.14+lenny2_all.deb  jcameron-key.asc	
o.txt	    Titanium bits study guide.pdf
openworld:~# cd /etc/apache2/
openworld:/etc/apache2# ls
apache2.conf  conf.d  envvars  httpd.conf  mods-available
mods-enabled  ports.conf  sites-available  sites-enabled
openworld:/etc/apache2# cd sites-enabled/
openworld:/etc/apache2/sites-enabled# ls
000-openitup.in  001-software.openitup.in  002-research.openitup.in
003-social.openitup.in  004-ocw.openitup.in  005-staging.openitup.in
openworld:/etc/apache2/sites-enabled# vi 001-software.openitup.in
openworld:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart
Restarting web server: apache2[Tue May 04 00:19:40 2010] [warn]
NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:40 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:40 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:40 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:40 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting [Tue May 04 00:19:41 2010] [warn] NameVirtualHost *:80
has no VirtualHosts
[Tue May 04 00:19:41 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:41 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:41 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue May 04 00:19:41 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
.
openworld:/etc/apache2/sites-enabled# exit
logout
Connection to 172.21.100.147 closed.
shankar-venkatagiris-power-mac-g5:~ openmac$












shankar-venkatagiris-power-mac-g5:~ openmac$ ssh root@172.21.100.193
Linux software 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue May  4 04:12:20 2010 from 172.21.100.149
software:~# ls
backups  grails  helloworld  helloworld-0.1.war  jdk1.6.0_20  videos
software:~# exit
logout
Connection to 172.21.100.193 closed.
shankar-venkatagiris-power-mac-g5:~ openmac$

































shankar-venkatagiris-power-mac-g5:~ openmac$ ssh root@172.21.100.197
Linux staging 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue May  4 00:12:06 2010 from
shankar-venkatagiris-power-mac-g5.local
staging:~# ls
a12			    geronimo-jetty7-javaee5-2.2		    grails	
helloworld	jdk-6u20-linux-x64.bin	red5-server_0.9~svn3968-2_all.deb
apache-maven-2.2.1-bin.tar  geronimo-jetty7-javaee5-2.2-bin.tar.gz
grails-1.2.2.zip  jcameron-key.asc	jdk1.6.0_20		test_jsp
staging:~# cd a12
staging:~/a12#


































staging:~/a12# ls
application.properties	grails-app  lib  scripts  src  target  test  web-app
staging:~/a12# cd web-app/
staging:~/a12/web-app# ls
META-INF  WEB-INF  css	images	js
staging:~/a12/web-app# cd WEB-INF/
staging:~/a12/web-app/WEB-INF# ls
applicationContext.xml	geronimo-web.xml  geronimo-web.xml.backup
sitemesh.xml  tld
staging:~/a12/web-app/WEB-INF# vi geronimo-web.xml
staging:~/a12/web-app/WEB-INF# ls
applicationContext.xml	geronimo-web.xml  geronimo-web.xml.backup
sitemesh.xml  tld
staging:~/a12/web-app/WEB-INF# pwd
/root/a12/web-app/WEB-INF
staging:~/a12/web-app/WEB-INF#



































staging:~/a12/web-app/WEB-INF# ls
applicationContext.xml	geronimo-web.xml  geronimo-web.xml.backup
sitemesh.xml  tld
staging:~/a12/web-app/WEB-INF# vi geronimo-web.xml
staging:~/a12/web-app/WEB-INF# cd /root/a12/
staging:~/a12# ls
application.properties	grails-app  lib  scripts  src  target  test  web-app
staging:~/a12# cd target/
staging:~/a12/target# ls
a12-0.1.war  classes  stacktrace.log
staging:~/a12/target# rm a12-0.1.war
staging:~/a12/target# cd ..
staging:~/a12#





































staging:~/a12# grails run-app
Welcome to Grails 1.2.2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /root/grails

Base Directory: /root/a12
Resolving dependencies...
Dependencies resolved in 2683ms.
Running script /root/grails/scripts/RunApp.groovy
Environment set to development
   [delete] Deleting directory /root/.grails/1.2.2/projects/a12/tomcat
Running Grails application..
Server running. Browse to http://localhost:8080/a12
^CApplication context shutting down...
Application context shutdown.
staging:~/a12# grails war
Welcome to Grails 1.2.2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /root/grails

Base Directory: /root/a12
Resolving dependencies...
Dependencies resolved in 1840ms.
Running script /root/grails/scripts/War.groovy
Environment set to production
Warning, target causing name overwriting of name startLogging
     [gspc] Compiling 3 GSP files for package [a12] to /root/a12/target/classes
    [mkdir] Created dir: /root/.grails/1.2.2/projects/a12/stage
     [copy] Copying 40 files to /root/.grails/1.2.2/projects/a12/stage
     [copy] Copied 9 empty directories to 1 empty directory under
/root/.grails/1.2.2/projects/a12/stage
     [copy] Copying 16 files to
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/grails-app
     [copy] Copied 4 empty directories to 1 empty directory under
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/grails-app
     [copy] Copying 65 files to
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/classes
    [mkdir] Created dir: /root/.grails/1.2.2/projects/a12/stage/WEB-INF/spring
    [mkdir] Created dir:
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/templates/scaffolding
     [copy] Copying 60 files to
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/lib
     [copy] Copying 1 file to /root/.grails/1.2.2/projects/a12/stage/WEB-INF
   [delete] Deleting: /root/.grails/1.2.2/projects/a12/resources/web.xml
[propertyfile] Updating property file:
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/classes/application.properties
COPYING RESOURCES FOR PATH
/root/.grails/1.2.2/projects/a12/resources/plugins/hibernate-1.2.2:
false?
    [mkdir] Created dir:
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/plugins/hibernate-1.2.2
     [copy] Copying 1 file to
/root/.grails/1.2.2/projects/a12/stage/WEB-INF/plugins/hibernate-1.2.2
     [copy] Warning:
/root/.grails/1.2.2/projects/a12/plugins/hibernate-1.2.2/grails-app/conf/spring
not found.
     [copy] Warning:
/root/.grails/1.2.2/projects/a12/plugins/hibernate-1.2.2/grails-app/conf
not found.
     [copy] Warning:
/root/.grails/1.2.2/projects/a12/plugins/hibernate-1.2.2/grails-app/conf/hibernate
not found.
     [copy] Warning:
/root/.grails/1.2.2/projects/a12/plugins/hibernate-1.2.2/src/java not
found.
      [jar] Building jar: /root/a12/target/a12-0.1.war
   [delete] Deleting directory /root/.grails/1.2.2/projects/a12/stage
Done creating WAR /root/a12/target/a12-0.1.war
staging:~/a12#
# Put variables and their substitution values in this file.
# They will be used when processing the corresponding config.xml.
# Values in this file can be overridden by environment variables and
system properties
# by prefixing the property name with 'org.apache.geronimo.config.substitution.'
# For example, an entry such as hostName=localhost
# can be overridden by an environment variable or system property
org.apache.geronimo.config.substitution.hostName=foo
# When running multiple instances of Geronimo choose a PortOffset
value such that none of the ports conflict.
# For example, try PortOffset=10
#Mon Dec 07 20:09:33 PST 2009
ORBPort=6882
AJPPort=8009
MaxThreadPoolSize=500
ResourceBindingsNamePattern=
Capacity=1000
SMTPHost=localhost
StatelessPoolSize=10
StatelessTimeout=0
ResourceBindingsQuery=?\#org.apache.geronimo.naming.ResourceSource
DerbyPort=1527
BMPPoolSize=10
COSNamingPort=1050
StatefulTimeout=20
webcontainer=JettyWebContainer
OpenEJBPort=4201
ORBSSLPort=2001
PortOffset=0
JMXPort=9999
ClusterNodeName=NODE
EndPointURI=http\://localhost\:8080
NamingPort=1099
DefaultWadiSweepInterval=36000
WADIClusterName=DEFAULT_WADI_CLUSTER
BulkPassivate=100
MulticastDiscoveryPort=6142
HTTPSPort=8443
MinThreadPoolSize=200
MulticastDiscoveryAddress=239.255.3.2
ReplicaCount=2
ServerHostname=0.0.0.0
ActiveMQPort=61616
SMTPPort=25
webcontainerName=jetty7
ResourceBindingsNameInNamespace=jca\:
StrictPooling=true
JMXSecurePort=9998
DefaultWadiNumPartitions=24
AccessTimeout=30
HTTPPort=9090
"config-substitutions.properties" 53L, 1668C

      1,1           Top

-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/java-jar-server-jar-is-failing-to-start-server-tp775094p775226.html
Sent from the Users mailing list archive at Nabble.com.

Re: java -jar server.jar is failing to start server.

Posted by Ashish Jain <as...@gmail.com>.
paste the file which u have changed.

On Tue, May 4, 2010 at 11:45 AM, Tapas Mishra <mi...@gmail.com>wrote:

>
> I had changed default port numbers even before putting the question on this
> list by looking at the same link you gave.
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/java-jar-server-jar-is-failing-to-start-server-tp775094p775221.html
> Sent from the Users mailing list archive at Nabble.com.
>

Re: java -jar server.jar is failing to start server.

Posted by Tapas Mishra <mi...@gmail.com>.
I had changed default port numbers even before putting the question on this
list by looking at the same link you gave.
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/java-jar-server-jar-is-failing-to-start-server-tp775094p775221.html
Sent from the Users mailing list archive at Nabble.com.

Re: java -jar server.jar is failing to start server.

Posted by Ashish Jain <as...@gmail.com>.
refer this
https://cwiki.apache.org/GMOxDOC22/changing-the-default-port-numbers.html

On Tue, May 4, 2010 at 11:30 AM, Ashish Jain <as...@gmail.com> wrote:

> The error clearly says 1099 port in use. Either free the port or specify
> portOffset variable in
> <GERONIMO_HOME>/var/config/config-substitution.properties.
>
>
> On Tue, May 4, 2010 at 9:38 AM, Tapas Mishra <mi...@gmail.com>wrote:
>
>> I was able to install geromino.Could see admin control as per this page
>>
>> https://cwiki.apache.org/GMOxDOC11/quick-start-apache-geronimo-for-the-impatient.html
>> if I am starting java -jar server.jar
>> then I am having problem.What should I check in ?
>> I am using geronimo-jetty7-javaee5-2.2
>>
>>
>>
>>
>> Booting Geronimo Kernel (in Java 1.6.0_18)...
>> Starting Geronimo Application Server v2.2
>> [****                                    ]  11%   4s  Loading
>> org.apache.ger...2010-05-03 22:36:40,611 WARN  [RMIRegistryService]
>> RMI Registry failed
>> 2010-05-03 22:36:40,612 ERROR [GBeanInstanceState] Error while
>> starting; GBean is now in the FAILED state:
>>
>> abstractName="org.apache.geronimo.framework/rmi-naming/2.2/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2/car,j2eeType=GBean,name=RMIRegistry"
>> java.rmi.server.ExportException: Port already in use: 1099; nested
>> exception is:
>>        java.net.BindException: Address already in use
>>        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:328)
>>        at
>> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:236)
>>        at
>> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
>>        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
>>        at
>> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)
>>        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:110)
>>        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:86)
>>        at
>> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:239)
>>        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:57)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>        at java.lang.reflect.Method.invoke(Method.java:616)
>>        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$$574e04df.startConfiguration(<generated>)
>>        at
>> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
>>        at
>> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
>>        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.BindException: Address already in use
>>        at java.net.PlainSocketImpl.socketBind(Native Method)
>>        at
>> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
>>        at java.net.ServerSocket.bind(ServerSocket.java:336)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:202)
>>        at
>> org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
>>        at
>> sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:667)
>>        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:317)
>>        ... 33 more
>> [****                                    ]  11%   4s Startup failed
>> org.apache.geronimo.kernel.config.LifecycleException: start of
>> org.apache.geronimo.framework/rmi-naming/2.2/car failed
>>        at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>        at java.lang.reflect.Method.invoke(Method.java:616)
>>        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$$574e04df.startConfiguration(<generated>)
>>        at
>> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
>>        at
>> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
>>        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: org.apache.geronimo.kernel.config.InvalidConfigException:
>> Unknown start exception
>>        at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
>>        at
>> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
>>        at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
>>        ... 16 more
>> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
>> Configuration org.apache.geronimo.framework/rmi-naming/2.2/car failed
>> to start due to the following reasons:
>>  The service
>> ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2/car,j2eeType=GBean,name=RMIRegistry
>> did not start because Port already in use: 1099; nested exception is:
>>        java.net.BindException: Address already in use
>>
>>        at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
>>        ... 18 more
>>
>>
>> --
>> Tapas
>>
>
>

Re: java -jar server.jar is failing to start server.

Posted by Ashish Jain <as...@gmail.com>.
The error clearly says 1099 port in use. Either free the port or specify
portOffset variable in
<GERONIMO_HOME>/var/config/config-substitution.properties.

On Tue, May 4, 2010 at 9:38 AM, Tapas Mishra <mi...@gmail.com> wrote:

> I was able to install geromino.Could see admin control as per this page
>
> https://cwiki.apache.org/GMOxDOC11/quick-start-apache-geronimo-for-the-impatient.html
> if I am starting java -jar server.jar
> then I am having problem.What should I check in ?
> I am using geronimo-jetty7-javaee5-2.2
>
>
>
>
> Booting Geronimo Kernel (in Java 1.6.0_18)...
> Starting Geronimo Application Server v2.2
> [****                                    ]  11%   4s  Loading
> org.apache.ger...2010-05-03 22:36:40,611 WARN  [RMIRegistryService]
> RMI Registry failed
> 2010-05-03 22:36:40,612 ERROR [GBeanInstanceState] Error while
> starting; GBean is now in the FAILED state:
>
> abstractName="org.apache.geronimo.framework/rmi-naming/2.2/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2/car,j2eeType=GBean,name=RMIRegistry"
> java.rmi.server.ExportException: Port already in use: 1099; nested
> exception is:
>        java.net.BindException: Address already in use
>        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:328)
>        at
> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:236)
>        at
> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
>        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
>        at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)
>        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:110)
>        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:86)
>        at
> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:239)
>        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:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        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$$574e04df.startConfiguration(<generated>)
>        at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
>        at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
>        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.BindException: Address already in use
>        at java.net.PlainSocketImpl.socketBind(Native Method)
>        at
> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
>        at java.net.ServerSocket.bind(ServerSocket.java:336)
>        at java.net.ServerSocket.<init>(ServerSocket.java:202)
>        at
> org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
>        at
> sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:667)
>        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:317)
>        ... 33 more
> [****                                    ]  11%   4s Startup failed
> org.apache.geronimo.kernel.config.LifecycleException: start of
> org.apache.geronimo.framework/rmi-naming/2.2/car failed
>        at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        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$$574e04df.startConfiguration(<generated>)
>        at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
>        at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
>        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: org.apache.geronimo.kernel.config.InvalidConfigException:
> Unknown start exception
>        at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
>        at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
>        at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
>        ... 16 more
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
> Configuration org.apache.geronimo.framework/rmi-naming/2.2/car failed
> to start due to the following reasons:
>  The service
> ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2/car,j2eeType=GBean,name=RMIRegistry
> did not start because Port already in use: 1099; nested exception is:
>        java.net.BindException: Address already in use
>
>        at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
>        ... 18 more
>
>
> --
> Tapas
>