tomcat hang when start with "service tomcat start"

View: New views
17 Messages — Rating Filter:   Alert me  

tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


dear all



i have a very weird problem with starting tomcat and would be most grateful if any one can give me some clue.



OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

java: jdk1.6.0_14

tomcat:apache-tomcat-6.0.20



if i try to start tomcat using

service tomcat start

it hangs at INFO: Initializing Spring root WebApplicationContext

or reboot also hangs here



BUT, if i run the following commands, it starts up fine:

/etc/init.d/tomcat start

/etc/rc5.d/S80tomcat start

$CATALINA_HOME/bin/startup.sh



thanks for any suggestions

regards
zcw

_________________________________________________________________
With Windows Live, you can organise, edit, and share your photos.
http://clk.atdmt.com/UKM/go/134665338/direct/01/

Re: tomcat hang when start with "service tomcat start"

by awarnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

zhicheng wang wrote:
...
>
> i have a very weird problem with starting tomcat
I think it is not so weird..

>
> OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
> java: jdk1.6.0_14
> tomcat:apache-tomcat-6.0.20
>
> if i try to start tomcat using
> service tomcat start
> it hangs

Where did you get this Tomcat ? is it the RedHat package, or a "real
Tomcat" that you downloaded from tomcat.apache.org and installed yourself ?

If it is a "real Tomcat" (as Chuck would say), then probably your
problems come from mixing up a RedHat startup script, with a non-RedHat
Tomcat package.  The RedHat startup command "service" probably makes a
number of assumptions about where files are, how to set up the
environment, etc.., which your real Tomcat does not like.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message








hi

thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years.

the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated
 INFO: Initializing Spring root WebApplicationContext

 regards

zcw

> Date: Tue, 30 Jun 2009 16:51:55 +0200
> From: aw@...
> To: users@...
> Subject: Re: tomcat hang when start with "service tomcat start"
>
> zhicheng wang wrote:
> ...
> >
> > i have a very weird problem with starting tomcat
> I think it is not so weird..
>
> >
> > OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
> > java: jdk1.6.0_14
> > tomcat:apache-tomcat-6.0.20
> >
> > if i try to start tomcat using
> > service tomcat start
> > it hangs
>
> Where did you get this Tomcat ? is it the RedHat package, or a "real
> Tomcat" that you downloaded from tomcat.apache.org and installed yourself ?
>
> If it is a "real Tomcat" (as Chuck would say), then probably your
> problems come from mixing up a RedHat startup script, with a non-RedHat
> Tomcat package.  The RedHat startup command "service" probably makes a
> number of assumptions about where files are, how to set up the
> environment, etc.., which your real Tomcat does not like.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

_________________________________________________________________

MSN straight to your mobile - news, entertainment, videos and more.

http://clk.atdmt.com/UKM/go/147991039/direct/01/

Re: tomcat hang when start with "service tomcat start"

by awarnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

zhicheng wang wrote:
>
>
> hi
>
> thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years.
>
> the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated
>  INFO: Initializing Spring root WebApplicationContext
>
Ha, that may be another matter altogether.
I have an old system like that, with an old CPU and not too much RAM,
and this one webapp which takes 15 minutes to initialize whenever I
restart Tomcat.
During that time, Tomcat is using 99% of the system's CPU time.
Are you sure that this is not simply the case here ?

You could check with "top" what really happens.

You could also make this webapp into a non-ROOT webapp, and not start it
right away.  I believe there is a <load-on-startup> parameter for that
in the web.xml of the application, which you can set to 0.
Then the app will only initialise when you first call it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: zhicheng wang [mailto:zcwlinux@...]
> Subject: RE: tomcat hang when start with "service tomcat start"
>
> the problem began when we started running a Grails app (as ROOT.war) as
> the hang point indicated
>  INFO: Initializing Spring root WebApplicationContext

What does a thread dump show?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi

but we can start tomcat with other methods such as

/etc/init.d/tomcat start

/etc/rc5.d/S80tomcat start

$CATALINA_HOME/bin/startup.sh

the above methods all work fine. and those are called by /sbin/service.



> Date: Tue, 30 Jun 2009 17:26:14 +0200
> From: aw@...
> To: users@...
> Subject: Re: tomcat hang when start with "service tomcat start"
>
> zhicheng wang wrote:
> >
> >
> > hi
> >
> > thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years.
> >
> > the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated
> >  INFO: Initializing Spring root WebApplicationContext
> >
> Ha, that may be another matter altogether.
> I have an old system like that, with an old CPU and not too much RAM,
> and this one webapp which takes 15 minutes to initialize whenever I
> restart Tomcat.
> During that time, Tomcat is using 99% of the system's CPU time.
> Are you sure that this is not simply the case here ?
>
> You could check with "top" what really happens.
>
> You could also make this webapp into a non-ROOT webapp, and not start it
> right away.  I believe there is a <load-on-startup> parameter for that
> in the web.xml of the application, which you can set to 0.
> Then the app will only initialise when you first call it.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

_________________________________________________________________

MSN straight to your mobile - news, entertainment, videos and more.

http://clk.atdmt.com/UKM/go/147991039/direct/01/

RE: tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi

do you mean
kill -3 <pid>

it printed nothing (while tomcat was hanging)



> From: Chuck.Caldarale@...
> To: users@...
> Date: Tue, 30 Jun 2009 10:29:57 -0500
> Subject: RE: tomcat hang when start with "service tomcat start"
>
> > From: zhicheng wang [mailto:zcwlinux@...]
> > Subject: RE: tomcat hang when start with "service tomcat start"
> >
> > the problem began when we started running a Grails app (as ROOT.war) as
> > the hang point indicated
> >  INFO: Initializing Spring root WebApplicationContext
>
> What does a thread dump show?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/

RE: tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi

sorry for the previous email. found the dump:

2009-06-30 16:50:25
Full thread dump Java HotSpot(TM) Server VM (14.0-b16 mixed mode):

"MySQL Statement Cancellation Timer" daemon prio=10 tid=0x08bc5400 nid=0x1ff4 in Object.wait() [0x8edfe000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x95877f50> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:485)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x95877f50> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)

"Low Memory Detector" daemon prio=10 tid=0x8fdad800 nid=0x1b80 runnable [0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread1" daemon prio=10 tid=0x8fdab400 nid=0x1b7f waiting on condition [0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x8fda9c00 nid=0x1b7e waiting on condition [0x00000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x8fda8400 nid=0x1b7d waiting on condition [0x00000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x8fd98c00 nid=0x1b6a in Object.wait() [0x8fa63000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x944dcb30> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
    - locked <0x944dcb30> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x8fd97400 nid=0x1b69 in Object.wait() [0x8fab4000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x94426190> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x94426190> (a java.lang.ref.Reference$Lock)

"main" prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000]
   java.lang.Thread.State: RUNNABLE
    at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
    at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
    at java.io.File.isDirectory(File.java:754)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.retrieveMatchingFiles(PathMatchingResourcePatternResolver.java:571)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindMatchingFileSystemResources(PathMatchingResourcePatternResolver.java:543)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.java:526)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:342)
    at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:263)
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:182)
    at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:201)
    at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.scan(ClassPathBeanDefinitionScanner.java:180)
    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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:188)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
    at org.codehaus.groovy.grails.plugins.ValidationGrailsPlugin$_closure1.doCall(ValidationGrailsPlugin.groovy:41)
    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1061)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:910)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)
    at groovy.lang.Closure.call(Closure.java:279)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPlugin.doWithDynamicMethods(DefaultGrailsPlugin.java:866)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager.doDynamicMethods(DefaultGrailsPluginManager.java:787)
    at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:172)
    at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:131)
    at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.configureWebApplicationContext(GrailsConfigUtils.java:108)
    at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:68)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
    - locked <0x945327a0> (a org.apache.catalina.core.StandardContext)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    - locked <0x944f6660> (a java.util.HashMap)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    - locked <0x944f65d0> (a org.apache.catalina.core.StandardHost)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    - locked <0x944f65d0> (a org.apache.catalina.core.StandardHost)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    - locked <0x944f7d30> (a org.apache.catalina.core.StandardEngine)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    - locked <0x944f7d30> (a org.apache.catalina.core.StandardEngine)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    - locked <0x94507d70> (a [Lorg.apache.catalina.Service;)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
    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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

"VM Thread" prio=10 tid=0x8fd93400 nid=0x1b62 runnable

"GC task thread#0 (ParallelGC)" prio=10 tid=0x0805fc00 nid=0x1b5d runnable

"GC task thread#1 (ParallelGC)" prio=10 tid=0x08061000 nid=0x1b5e runnable

"GC task thread#2 (ParallelGC)" prio=10 tid=0x08062800 nid=0x1b5f runnable

"GC task thread#3 (ParallelGC)" prio=10 tid=0x08063c00 nid=0x1b60 runnable

"VM Periodic Task Thread" prio=10 tid=0x8fdaf800 nid=0x1b81 waiting on condition

JNI global references: 923

Heap
 PSYoungGen      total 29568K, used 8605K [0xb0a40000, 0xb2ed0000, 0xb4320000)
  eden space 23616K, 20% used [0xb0a40000,0xb0ee3420,0xb2150000)
  from space 5952K, 64% used [0xb2150000,0xb2514000,0xb2720000)
  to   space 6528K, 0% used [0xb2870000,0xb2870000,0xb2ed0000)
 PSOldGen        total 159424K, used 105493K [0x94320000, 0x9ded0000, 0xb0a40000)
  object space 159424K, 66% used [0x94320000,0x9aa255b8,0x9ded0000)
 PSPermGen       total 32768K, used 31030K [0x90320000, 0x92320000, 0x94320000)
  object space 32768K, 94% used [0x90320000,0x9216d9a8,0x92320000)



> From: Chuck.Caldarale@...
> To: users@...
> Date: Tue, 30 Jun 2009 10:29:57 -0500
> Subject: RE: tomcat hang when start with "service tomcat start"
>
> > From: zhicheng wang [mailto:zcwlinux@...]
> > Subject: RE: tomcat hang when start with "service tomcat start"
> >
> > the problem began when we started running a Grails app (as ROOT.war) as
> > the hang point indicated
> >  INFO: Initializing Spring root WebApplicationContext
>
> What does a thread dump show?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

_________________________________________________________________
Share your photos with Windows Live Photos – Free.
http://clk.atdmt.com/UKM/go/134665338/direct/01/

RE: tomcat hang when start with "service tomcat start"

by Steve Ochani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Send reply to: Tomcat Users List <users@...>
From: zhicheng wang <zcwlinux@...>
To: users@...
Subject: RE: tomcat hang when start with "service tomcat start"
Date sent: Tue, 30 Jun 2009 16:53:08 +0100

>
> hi
>
> do you mean
> kill -3 <pid>
>
> it printed nothing (while tomcat was hanging)
>
>

Look in the catalina.out logfile.




>
> > From: Chuck.Caldarale@...
> > To: users@...
> > Date: Tue, 30 Jun 2009 10:29:57 -0500
> > Subject: RE: tomcat hang when start with "service tomcat start"
> >
> > > From: zhicheng wang [mailto:zcwlinux@...]
> > > Subject: RE: tomcat hang when start with "service tomcat start"
> > >
> > > the problem began when we started running a Grails app (as
> > > ROOT.war) as the hang point indicated
> > >  INFO: Initializing Spring root WebApplicationContext
> >
> > What does a thread dump show?
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> > PROPRIETARY MATERIAL and is thus for use only by the intended
> > recipient. If you received this in error, please contact the sender
> > and delete the e-mail and its attachments from all computers.
> >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@... For
> > additional commands, e-mail: users-help@...
> >
>
> _________________________________________________________________ Get
> the best of MSN on your mobile
> http://clk.atdmt.com/UKM/go/147991039/direct/01/



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: zhicheng wang [mailto:zcwlinux@...]
> Subject: RE: tomcat hang when start with "service tomcat start"
>
> "main" prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000]
>    java.lang.Thread.State: RUNNABLE
>     at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>     at
> java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>     at java.io.File.isDirectory(File.java:754)
>     at
> org.springframework.core.io.support.PathMatchingResourcePatternResolver
> .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596)
>     at
> org.springframework.core.io.support.PathMatchingResourcePatternResolver
> .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
>     at
> org.springframework.core.io.support.PathMatchingResourcePatternResolver
> .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)

<many recursive calls snipped>

That's an awful lot of nested calls.  I wonder if your startup script has created an infinite symlink loop?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi Chuck

many thanks for the reply

here is the /etc/init.d/tomcat, it only hangs when run by /sbin/service tomcat start

----------------
#!/bin/bash
#
# Startup script for Tomcat, the Apache Servlet Engine
#
#zcw modified to report status so that it and can be used by service check script 20040114
#zcw modifed to accommdate different versions of tomcat
#
# chkconfig: 345 80 20
# description: Tomcat is the Apache Servlet Engine RI for Servlet
# processname: tomcat
# pidfile: /var/run/tomcat.pid
# config:  /etc/tomcat/conf
#
# Gomez Henri <hgomez@...>
# Keith Irwin <keith_irwin@...>
# Nicolas Mailhot <nicolas.mailhot@...>
#

# Source function library.
. /etc/rc.d/init.d/functions

JAVA_HOME="/opt/java/jdk"
export JAVA_HOME
RETVAL=0
CATALINA_HOME="/var/tomcat"
TOMCAT_PROG="Tomcat"

# See how we were called.
start() {
 # Start Tomcat in debug mode
    SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l`
    if [ $SHUTDOWN_PORT -ne 0 ]; then
        echo "Tomcat already started"
    else
   
    echo -n "Starting $TOMCAT_PROG ... "
#    set
    ${CATALINA_HOME}/bin/startup.sh
    fi
}

stop() {
    SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l`
    if [ $SHUTDOWN_PORT -eq 0 ]; then
        echo "Tomcat already stopped"
    else
    echo -n "Stopping $TOMCAT_PROG: "
    ${CATALINA_HOME}/bin/shutdown.sh
    fi    
}

status() {
    status ${TOMCAT_PROG}
}

# See how we were called.
case "$1" in
    start)
    start
    ;;
    stop)
    stop
    ;;
    restart)
    stop
    sleep 2    
    start
    ;;
    status)
    tompid=`/bin/ps -ef | /bin/grep tomcat |/bin/grep -v check | /bin/grep -v grep | /bin/grep -v status | /bin/sed -e 's/^  *//' -e 's/ .*//'`
    if [ "${tompid}" != "" ]
    then
    echo "${TOMCAT_PROG} pid ${tompid} is running ..."
    else
    echo "${TOMCAT_PROG} is dead ..."
    fi
    ;;
   
    *)
    echo "Usage: $TOMCAT_PROG {start|stop|restart|status}"
    exit 1
esac

exit $RETVAL

------------
ZCW

> From: Chuck.Caldarale@...
> To: users@...
> Date: Tue, 30 Jun 2009 12:12:39 -0500
> Subject: RE: tomcat hang when start with "service tomcat start"
>
> > From: zhicheng wang [mailto:zcwlinux@...]
> > Subject: RE: tomcat hang when start with "service tomcat start"
> >
> > "main" prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000]
> >    java.lang.Thread.State: RUNNABLE
> >     at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
> >     at
> > java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
> >     at java.io.File.isDirectory(File.java:754)
> >     at
> > org.springframework.core.io.support.PathMatchingResourcePatternResolver
> > .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596)
> >     at
> > org.springframework.core.io.support.PathMatchingResourcePatternResolver
> > .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
> >     at
> > org.springframework.core.io.support.PathMatchingResourcePatternResolver
> > .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
>
> <many recursive calls snipped>
>
> That's an awful lot of nested calls.  I wonder if your startup script has created an infinite symlink loop?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

_________________________________________________________________

MSN straight to your mobile - news, entertainment, videos and more.

http://clk.atdmt.com/UKM/go/147991039/direct/01/

Re: tomcat hang when start with "service tomcat start"

by awarnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

zhicheng wang wrote:
> hi

IF
>
> but we can start tomcat with other methods such as

 > $CATALINA_HOME/bin/startup.sh
(which is the basic script that starts Tomcat)

AND

> /etc/init.d/tomcat start
(which basically calls $CATALINA_HOME/bin/startup.sh)
>

AND

> /etc/rc5.d/S80tomcat start
(which is simply a link to /etc/init.d/tomcat)

AND NOT WITH

/sbin/service

THEN

the problem must be in something that /sbin/service is doing.

OR

am I missing something ?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: André Warnier [mailto:aw@...]
> Subject: Re: tomcat hang when start with "service tomcat start"
>
> the problem must be in something that /sbin/service is doing.

Correct; the script that should be undergoing scrutiny is /sbin/service, but the OP seems to be avoiding that for some reason.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: tomcat hang when start with "service tomcat start"

by Konstantin Kolinko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/6/30 zhicheng wang <zcwlinux@...>:

>
> if i try to start tomcat using
>
> service tomcat start
>
> it hangs at INFO: Initializing Spring root WebApplicationContext
>
> or reboot also hangs here
>
>
>
> BUT, if i run the following commands, it starts up fine:
>
> /etc/init.d/tomcat start
>
> /etc/rc5.d/S80tomcat start
>
> $CATALINA_HOME/bin/startup.sh
>

AFAIK, one of essentials about /sbin/service is that starts
the script using empty environment.

Maybe that causes the difference.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: tomcat hang when start with "service tomcat start"

by Filip Hanik - Dev Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

are you using a mounted network drive?

Filip

Caldarale, Charles R wrote:

>> From: zhicheng wang [mailto:zcwlinux@...]
>> Subject: RE: tomcat hang when start with "service tomcat start"
>>
>> "main" prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000]
>>    java.lang.Thread.State: RUNNABLE
>>     at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>>     at
>> java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>>     at java.io.File.isDirectory(File.java:754)
>>     at
>> org.springframework.core.io.support.PathMatchingResourcePatternResolver
>> .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596)
>>     at
>> org.springframework.core.io.support.PathMatchingResourcePatternResolver
>> .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
>>     at
>> org.springframework.core.io.support.PathMatchingResourcePatternResolver
>> .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
>>    
>
> <many recursive calls snipped>
>
> That's an awful lot of nested calls.  I wonder if your startup script has created an infinite symlink loop?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: tomcat hang when start with "service tomcat start"

by zhicheng wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi

Thanks for so many useful inputs. i totally agree with the following and had tried to get root user's environments by added
. /etc/profile
. /root/.bash_profile

in

/etc/init.d/tomcat
(we do not want to change /sbin/service)

but it did not work


> From: Chuck.Caldarale@...
> To: users@...
> Date: Tue, 30 Jun 2009 15:19:30 -0500
> Subject: RE: tomcat hang when start with "service tomcat start"
>
> > From: André Warnier [mailto:aw@...]
> > Subject: Re: tomcat hang when start with "service tomcat start"
> >
> > the problem must be in something that /sbin/service is doing.
>
> Correct; the script that should be undergoing scrutiny is /sbin/service, but the OP seems to be avoiding that for some reason.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/

Re: tomcat hang when start with "service tomcat start"

by awarnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

zhicheng wang wrote:

> hi
>
> Thanks for so many useful inputs. i totally agree with the following and had tried to get root user's environments by added
> . /etc/profile
> . /root/.bash_profile
>
> in
>
> /etc/init.d/tomcat
> (we do not want to change /sbin/service)
>
> but it did not work
>
Hi again.
It has already been established, in part by yourself, that the problem
is not with Tomcat, but in all likelihood with the /sbin/service command
or script, which is not a part of Tomcat, but either a part of RHEL or
something you wrote yourself. Or with the application which you are
trying to run, and which is not compatible with what this /sbin/service
script/command is doing.
This being a Tomcat-oriented list, and not a RHEL- or Grails-oriented
list, most people here probably don't have any idea what it inside of
that script/command nor that application.
But you do not seem to want to either tell what is inside that script,
nor to change it.
In this case, it seems a bit difficult to help you further.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...