You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by jpmlpool <jp...@hotmail.com> on 2007/12/06 06:05:46 UTC

can not start Geronimo

Hi,

  I just wanted to start Geronimo, but I can not start it anymore.
I also tried this way.

(1) rename geronimo-tomcat6-jee5-2.0.2 dir to
old-geronimo-tomcat6-jee5-2.0.2
(2) unzip geronimo-tomcat6-jee5-2.0.2-bin.zip to geronimo-tomcat6-jee5-2.0.2
dir
(3) start geronimo again, but I still can not start it.

  This is serious problem for me. How can I solve this problem?

Regards,
John




Booting Geronimo Kernel (in Java 1.6.0_03)...
Module  1/57 org.apache.geronimo.configs/rmi-naming/2.0.2/car
started    .859s
Module  2/57 org.apache.geronimo.configs/j2ee-server/2.0.2/car
started in   .390s
Module  3/57 org.apache.geronimo.configs/transaction/2.0.2/car
started in  1.453s
Module  4/57 org.apache.geronimo.configs/j2ee-security/2.0.2/car
started in   .000s
Module  5/57 org.apache.geronimo.configs/axis/2.0.2/car
started in   .609s
Module  6/57 org.apache.geronimo.configs/axis2/2.0.2/car
started in 16.531s
Module  7/57 org.apache.geronimo.configs/openejb/2.0.2/car
started in   .000s
Module  8/57 org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car
20:51:37,812 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car?ServiceM
odule=org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car,j2eeType=CORBANa
meService,name=NameServer"
org.apache.geronimo.corba.security.config.ConfigException: Error starting
transient name service
 at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter
java:179)


Re: can not start Geronimo

Posted by Kevan Miller <ke...@gmail.com>.
On Dec 6, 2007, at 4:09 AM, Johannes Lietz wrote:

>
> I've got another startup failure:
>
> I'm running Geronimo 2.0.2 on Mac OS X 10.5 (Intel), and I cannot  
> start
> Geronimo except when I expand the Geronimo-home-dir exactly in a
> *subfolder* of my home-dir.
>
> When I move the Geronimo-home-dir out of my home-dir, e.g. in / 
> Library: it
> doesn't work.
> When I put the Geronimo-home-dir directly in my home-dir: it doesn't  
> work.
>
> Symptoms: Geronimo is appearantly starting up, and there's a Java  
> process
> running, but at some stage ist stops starting up and there are no  
> ports
> open to connect to and I have to kill -9 the Java process after that.

Hi Johannes,
This problem (assuming it's the same deadlock that I've encountered)  
should be fixed on our dev trunk (2.1-SNAPSHOT) and branches/2.0  
(2.0.3-SNAPSHOT).

--kevan

Re: can not start Geronimo

Posted by Kevan Miller <ke...@gmail.com>.
On Dec 6, 2007, at 4:09 AM, Johannes Lietz wrote:

>
> I've got another startup failure:
>
> I'm running Geronimo 2.0.2 on Mac OS X 10.5 (Intel), and I cannot  
> start
> Geronimo except when I expand the Geronimo-home-dir exactly in a
> *subfolder* of my home-dir.
>
> When I move the Geronimo-home-dir out of my home-dir, e.g. in / 
> Library: it
> doesn't work.
> When I put the Geronimo-home-dir directly in my home-dir: it doesn't  
> work.
>
> Symptoms: Geronimo is appearantly starting up, and there's a Java  
> process
> running, but at some stage ist stops starting up and there are no  
> ports
> open to connect to and I have to kill -9 the Java process after that.
>
> This happens with a freshly expanded zip.
>
> I can live with it, but it's curious...

Hi Johannes,
That is really, really strange. Can you send us the STDOUT when you  
start the server and it hangs?

I would guess you're getting a deadlock during startup. I've had  
deadlock problems with Leopard. I always run out of my home directory.  
So, don't know if that would make a difference for me... It's hard to  
believe that it would make a difference, but who knows.

One work-around that I've found is that running with jpda (debugging)  
will avoid the problem (i.e. ./bin/geronimo.sh jpda run).

I get the following when starting Geronimo using geronimo.sh:

$ ./geronimo.sh run
Using GERONIMO_BASE:   /Users/kevan/geronimo-jetty6-jee5-2.0.2
Using GERONIMO_HOME:   /Users/kevan/geronimo-jetty6-jee5-2.0.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/ 
Versions/CurrentJDK/Home

You can then send the java process a QUIT signal (kill -3 <pid>) to  
have java dump out the thread stack traces. The deadlock occurs during  
a load of an Iterator class (IIRC). The JVM is not well behaved, IMO.  
Here's the thread stack traces that I get:

Full thread dump Java HotSpot(TM) Client VM (1.5.0_13-119 mixed mode):

"Low Memory Detector" daemon prio=5 tid=0x01009d60 nid=0x858800  
runnable [0x00000000..0x00000000]

"CompilerThread0" daemon prio=9 tid=0x01009330 nid=0x857a00 waiting on  
condition [0x00000000..0x00000000]

"Signal Dispatcher" daemon prio=9 tid=0x01008e60 nid=0x855e00 waiting  
on condition [0x00000000..0x00000000]

"Finalizer" daemon prio=8 tid=0x01007d10 nid=0x81ba00 waiting for  
monitor entry [0xb0a05000..0xb0a05d90]
	at  
org 
.apache 
.geronimo 
.transformer 
.TransformerCollection.transform(TransformerCollection.java:35)
	at  
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
	at  
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java: 
155)
	at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:82)
	at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

"Reference Handler" daemon prio=10 tid=0x01007910 nid=0x81a200 in  
Object.wait() [0xb0984000..0xb0984d90]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x05a735f8> (a java.lang.ref.Reference$Lock)
	at java.lang.Object.wait(Object.java:474)
	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
	- locked <0x05a735f8> (a java.lang.ref.Reference$Lock)

"main" prio=5 tid=0x010018b0 nid=0xb0801000 waiting for monitor entry  
[0xb07ff000..0xb0800188]
	at java.lang.ClassLoader.findBootstrapClass(Native Method)
	at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:946)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:308)
	- locked <0x05a75b78> (a sun.misc.Launcher$ExtClassLoader)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	- locked <0x05a73660> (a sun.misc.Launcher$AppClassLoader)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
	- locked <0x05a73660> (a sun.misc.Launcher$AppClassLoader)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
	- locked <0x05a73660> (a sun.misc.Launcher$AppClassLoader)

"VM Thread" prio=9 tid=0x01007060 nid=0x809800 runnable

"VM Periodic Task Thread" prio=9 tid=0x0100aa00 nid=0x859c00 waiting  
on condition

"Exception Catcher Thread" prio=10 tid=0x01001b00 nid=0x80ae00 runnable

Found one Java-level deadlock:
=============================
"Finalizer":
   waiting to lock monitor 0x0081b070 (object 0x05a73660, a  
sun.misc.Launcher$AppClassLoader),
   which is held by "main"
"main":
   waiting to lock monitor 0x0081b094 (object 0x09584b40, a [[I),
   which is held by "Finalizer"

Java stack information for the threads listed above:
===================================================
"Finalizer":
	at  
org 
.apache 
.geronimo 
.transformer 
.TransformerCollection.transform(TransformerCollection.java:35)
	at  
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
	at  
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java: 
155)
	at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:82)
	at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
"main":
	at java.lang.ClassLoader.findBootstrapClass(Native Method)
	at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:946)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:308)
	- locked <0x05a75b78> (a sun.misc.Launcher$ExtClassLoader)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	- locked <0x05a73660> (a sun.misc.Launcher$AppClassLoader)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
	- locked <0x05a73660> (a sun.misc.Launcher$AppClassLoader)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
	- locked <0x05a73660> (a sun.misc.Launcher$AppClassLoader)

Found 1 deadlock.

  I tried a hack a while back to try and avoid the problem, but didn't  
work. I should try again. This is a pain...

--kevan

Re: can not start Geronimo

Posted by Johannes Lietz <rm...@rmail.dadabase.de>.
I've got another startup failure:

I'm running Geronimo 2.0.2 on Mac OS X 10.5 (Intel), and I cannot start
Geronimo except when I expand the Geronimo-home-dir exactly in a
*subfolder* of my home-dir.

When I move the Geronimo-home-dir out of my home-dir, e.g. in /Library: it
doesn't work.
When I put the Geronimo-home-dir directly in my home-dir: it doesn't work.

Symptoms: Geronimo is appearantly starting up, and there's a Java process
running, but at some stage ist stops starting up and there are no ports
open to connect to and I have to kill -9 the Java process after that.

This happens with a freshly expanded zip.

I can live with it, but it's curious...

-Johannes


Re: can not start Geronimo

Posted by jpmlpool <jp...@hotmail.com>.
Hi Vamsi,

    Thanks for your time.

     I started a fresh extract from the zip, but I still could
not start Geronimo.

    The fresh Geronimo does have 30 modules. To learn
Geronimo, I deployed the other projects (modules?), i.e.
the daytrader for benchmark.

    I just simplely restarted the computer, and then the
problem is gone. I can not explain the reasons.

Regards,
John

  ----- Original Message ----- 
  From: Vamsavardhana Reddy
  To: user@geronimo.apache.org
  Sent: Wednesday, December 05, 2007 11:22 PM
  Subject: Re: can not start Geronimo


  (in Java 1.6.0_03)...??
  You may try using Java 1.5.  There are certain additional steps to run G
on Java 1.6.  Can someone point to the thread in the mailing list?

  Is the server you are trying to start a fresh extract from the zip?  There
seem to be too many modules (57) at startup.  It is around 30 for me.

  ++Vamsi


  On Dec 6, 2007 10:35 AM, jpmlpool <jp...@hotmail.com> wrote:

    Hi,

      I just wanted to start Geronimo, but I can not start it anymore.
    I also tried this way.

    (1) rename geronimo-tomcat6-jee5-2.0.2 dir to
old-geronimo-tomcat6-jee5-2.0.2
    (2) unzip geronimo-tomcat6-jee5-2.0.2-bin.zip to
geronimo-tomcat6-jee5-2.0.2 dir
    (3) start geronimo again, but I still can not start it.

      This is serious problem for me. How can I solve this problem?

    Regards,
    John




    Booting Geronimo Kernel (in Java 1.6.0_03)...
    Module  1/57 org.apache.geronimo.configs/rmi-naming/2.0.2/car
started    .859s
    Module  2/57 org.apache.geronimo.configs/j2ee-server/2.0.2/car
started in   .390s
    Module  3/57 org.apache.geronimo.configs/transaction/2.0.2/car
started in  1.453s
    Module  4/57 org.apache.geronimo.configs/j2ee-security/2.0.2/car
started in   .000s
    Module  5/57 org.apache.geronimo.configs/axis/2.0.2/car
started in   .609s
    Module  6/57 org.apache.geronimo.configs/axis2/2.0.2/car
started in 16.531s
    Module  7/57 org.apache.geronimo.configs/openejb/2.0.2/car
started in   .000s
    Module  8/57 org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car
20:51:37,812 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car?ServiceM
odule=org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car,j2eeType=CORBANa
meService,name=NameServer"
    org.apache.geronimo.corba.security.config.ConfigException : Error
starting transient name service
     at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter
java:179)




Re: can not start Geronimo

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
(in Java 1.6.0_03)...??
You may try using Java 1.5.  There are certain additional steps to run G on
Java 1.6.  Can someone point to the thread in the mailing list?

Is the server you are trying to start a fresh extract from the zip?  There
seem to be too many modules (57) at startup.  It is around 30 for me.

++Vamsi

On Dec 6, 2007 10:35 AM, jpmlpool <jp...@hotmail.com> wrote:

>  Hi,
>
>   I just wanted to start Geronimo, but I can not start it anymore.
> I also tried this way.
>
> (1) rename geronimo-tomcat6-jee5-2.0.2 dir to
> old-geronimo-tomcat6-jee5-2.0.2
> (2) unzip geronimo-tomcat6-jee5-2.0.2-bin.zip to
> geronimo-tomcat6-jee5-2.0.2 dir
> (3) start geronimo again, but I still can not start it.
>
>   This is serious problem for me. How can I solve this problem?
>
> Regards,
> John
>
>
>
>
> Booting Geronimo Kernel (in Java 1.6.0_03)...
> Module  1/57 org.apache.geronimo.configs/rmi-naming/2.0.2/car
> started    .859s
> Module  2/57 org.apache.geronimo.configs/j2ee-server/2.0.2/car
> started in   .390s
> Module  3/57 org.apache.geronimo.configs/transaction/2.0.2/car
> started in  1.453s
> Module  4/57 org.apache.geronimo.configs/j2ee-security/2.0.2/car
> started in   .000s
> Module  5/57 org.apache.geronimo.configs/axis/2.0.2/car
> started in   .609s
> Module  6/57 org.apache.geronimo.configs/axis2/2.0.2/car
> started in 16.531s
> Module  7/57 org.apache.geronimo.configs/openejb/2.0.2/car
> started in   .000s
> Module  8/57 org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car
> 20:51:37,812 ERROR [GBeanInstanceState] Error while starting; GBean is now
> in the FAILED state: abstractName="org.apache.geronimo.configs
> /j2ee-corba-yoko/2.0.2/car?ServiceModule=org.apache.geronimo.configs
> /j2ee-corba-yoko/2.0.2/car,j2eeType=CORBANameService,name=NameServer"
> org.apache.geronimo.corba.security.config.ConfigException : Error starting
> transient name service
>  at org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(
> ORBConfigAdapter.java:179)
>
>
>

Re: can not start Geronimo

Posted by roarrrr <ro...@engen.no>.
Hi 

I've had the same error, it was because port 1050 was in use, I used a
program called CurrPorts on windows to figure out what was running on that
port. In my case it was a MSN messenger window which seems to randomly use
available ports, but I've heard about people having problems with Notes and
MyHelp aswel.
-- 
View this message in context: http://www.nabble.com/jaxws-tools-wsgen-UnsupportedClassVersionError-tp14176108s134p17625431.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: how to use MySQL

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Dec 6, 2007 8:02 AM, jpmlpool <jp...@hotmail.com> wrote:

>     I downloaded MySQL and installed it. Derby is already
> integrated into Geronimo. Is it possible to integrate MySQL
> to Geronimo? No big reasons, I just want to know if MySQL
> or the other databases can work with Geronimo. If YES,
> would you like to give me some advices, sample code, or URLs
> so I can learn and try it.

Yes, it's possible. Why would you think it is not? Geronimo's a Java
EE 5-certified application server where databases are accessible via
database pools managed by a server. If there's a jdbc driver for a
database (type 4 recommended), chances are it'll work without any
configuration troubles. I don't remember I have tried out setting up
MySQL myself, but I wouldn't expect any (fundamental) issues with it.
Just define a database pool using the administration console of
Geronimo and voila - use it in your enterprise applications. Read
about it in the Geronimo v2.0 documentation at "Configuring database
pools" [1].

Jacek

[1] http://cwiki.apache.org/GMOxDOC20/configuring-database-pools.html.

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

how to use MySQL

Posted by jpmlpool <jp...@hotmail.com>.
Hi

    So many questions today. Now it is 11:50 pm, but
I am still learning Geronimo.

    I downloaded MySQL and installed it. Derby is already
integrated into Geronimo. Is it possible to integrate MySQL
to Geronimo? No big reasons, I just want to know if MySQL
or the other databases can work with Geronimo. If YES,
would you like to give me some advices, sample code, or URLs
so I can learn and try it.

    I am new to this area. Thanks in advance!

Regards,
John

Re: can not start Geronimo

Posted by jpmlpool <jp...@hotmail.com>.
Hi David,

    Thanks a lot for your prompt reply.

    I did not change anything intentionally. Today I
updated my Skype and then shutdown the server.

    Several minutes ago I restarted the computer,
did not run any applications, and restarted Geronimo
again. Thanks God! Geronimo started correctly.

    I do not know the reasons. Next time if this problem
happens again, how can I check which port numbers
are in use? It seems there is a command on Windows.

The next message is from the startup process.

 Listening on Ports:
   1050 127.0.0.1 CORBA Naming Service
   1099 0.0.0.0   RMI Naming
   1527 0.0.0.0   Derby Connector
   2001 127.0.0.1 OpenEJB ORB Adapter
   4201 0.0.0.0   OpenEJB Daemon
   6882 127.0.0.1 OpenEJB ORB Adapter
   8009 0.0.0.0   Tomcat Connector AJP AJP
   8080 0.0.0.0   Tomcat Connector HTTP BIO HTTP
   8443 0.0.0.0   Tomcat Connector HTTPS BIO HTTPS
   9999 0.0.0.0   JMX Remoting Connector
  61613 0.0.0.0   ActiveMQ Transport Connector
  61616 0.0.0.0   ActiveMQ Transport Connector


Regards,
John

---- Original Message ----- 
  From: David Jencks
  To: user@geronimo.apache.org
  Sent: Wednesday, December 05, 2007 11:10 PM
  Subject: Re: can not start Geronimo


  It's hard to tell with this little info but is there any chance there is
already something running on the corba name service port (normally 1050 I
think)?  If you aren't using corba you could also try disabling the orb and
corba  nameserver gbeans.


  I didn't think we started corba by default.... has something changed?


  thanks
  david jencks


  On Dec 5, 2007, at 9:05 PM, jpmlpool wrote:


    Hi,

      I just wanted to start Geronimo, but I can not start it anymore.
    I also tried this way.

    (1) rename geronimo-tomcat6-jee5-2.0.2 dir to
old-geronimo-tomcat6-jee5-2.0.2
    (2) unzip geronimo-tomcat6-jee5-2.0.2-bin.zip to
geronimo-tomcat6-jee5-2.0.2 dir
    (3) start geronimo again, but I still can not start it.

      This is serious problem for me. How can I solve this problem?

    Regards,
    John




    Booting Geronimo Kernel (in Java 1.6.0_03)...
    Module  1/57 org.apache.geronimo.configs/rmi-naming/2.0.2/car
started    .859s
    Module  2/57 org.apache.geronimo.configs/j2ee-server/2.0.2/car
started in   .390s
    Module  3/57 org.apache.geronimo.configs/transaction/2.0.2/car
started in  1.453s
    Module  4/57 org.apache.geronimo.configs/j2ee-security/2.0.2/car
started in   .000s
    Module  5/57 org.apache.geronimo.configs/axis/2.0.2/car
started in   .609s
    Module  6/57 org.apache.geronimo.configs/axis2/2.0.2/car
started in 16.531s
    Module  7/57 org.apache.geronimo.configs/openejb/2.0.2/car
started in   .000s
    Module  8/57 org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car
20:51:37,812 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car?ServiceM
odule=org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car,j2eeType=CORBANa
meService,name=NameServer"
    org.apache.geronimo.corba.security.config.ConfigException: Error
starting transient name service
     at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter
java:179)






Re: can not start Geronimo

Posted by David Jencks <da...@yahoo.com>.
It's hard to tell with this little info but is there any chance there  
is already something running on the corba name service port (normally  
1050 I think)?  If you aren't using corba you could also try  
disabling the orb and corba  nameserver gbeans.

I didn't think we started corba by default.... has something changed?

thanks
david jencks

On Dec 5, 2007, at 9:05 PM, jpmlpool wrote:

> Hi,
>
>   I just wanted to start Geronimo, but I can not start it anymore.
> I also tried this way.
>
> (1) rename geronimo-tomcat6-jee5-2.0.2 dir to old-geronimo-tomcat6- 
> jee5-2.0.2
> (2) unzip geronimo-tomcat6-jee5-2.0.2-bin.zip to geronimo-tomcat6- 
> jee5-2.0.2 dir
> (3) start geronimo again, but I still can not start it.
>
>   This is serious problem for me. How can I solve this problem?
>
> Regards,
> John
>
>
>
>
> Booting Geronimo Kernel (in Java 1.6.0_03)...
> Module  1/57 org.apache.geronimo.configs/rmi-naming/2.0.2/ 
> car              started    .859s
> Module  2/57 org.apache.geronimo.configs/j2ee-server/2.0.2/ 
> car             started in   .390s
> Module  3/57 org.apache.geronimo.configs/transaction/2.0.2/ 
> car              started in  1.453s
> Module  4/57 org.apache.geronimo.configs/j2ee-security/2.0.2/ 
> car           started in   .000s
> Module  5/57 org.apache.geronimo.configs/axis/2.0.2/ 
> car                       started in   .609s
> Module  6/57 org.apache.geronimo.configs/axis2/2.0.2/ 
> car                      started in 16.531s
> Module  7/57 org.apache.geronimo.configs/openejb/2.0.2/ 
> car                   started in   .000s
> Module  8/57 org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/ 
> car           20:51:37,812 ERROR [GBeanInstanceState] Error while  
> starting; GBean is now in the FAILED state:  
> abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car? 
> ServiceModule=org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/ 
> car,j2eeType=CORBANameService,name=NameServer"
> org.apache.geronimo.corba.security.config.ConfigException: Error  
> starting transient name service
>  at org.apache.geronimo.yoko.ORBConfigAdapter.createNameService 
> (ORBConfigAdapter.java:179)
>
>
>