Hello, I'm running Tomcat 6.0.18 using Java 1.6.0_12 on Windows XP professional.
> I have a problem that occurs during startup deploying a WAR file. > Tomcat deploys the WAR file but then there is a delay of minutes > before it tries to start the application. > > During the delay, there is no CPU usage and there is no abnormal > activity that I can detect. When Tomcat decides to start the > application, it fires right up. > > It almost seems like Tomcat is blocked waiting for a reply from some > request. > > My typical workflow consists of the following: > Open a command shell. > Edit code > Build WAR > Remove ${CATALINA_HOME}/webapps/* > Remove ${CATALINA_HOME}/work/Catalina/localhost > Remove ${CATALINA_HOME}/logs/* > Copy the WAR file to ${CATALINA_HOME}/webapps > From the command shell: startup > Test application > From the command shell: shutdown > > repeat > > I set the log level for Tomcat to debug and this is the output, early > on: > > 2009-10-04 16:04:23,327 DEBUG main > org.apache.catalina.startup.HostConfig - Watching WatchedResource > 'D:\apache-tomcat-6.0.18\conf\web.xml' > 2009-10-04 16:04:23,327 INFO main > org.apache.catalina.startup.HostConfig - Deploying web application > archive Spc.war > 2009-10-04 16:04:23,327 DEBUG main > org.apache.catalina.core.ContainerBase - Add child > StandardContext[/Spc] StandardEngine[Catalina].StandardHost[localhost] > 2009-10-04 16:04:23,327 DEBUG main > org.apache.catalina.startup.ContextConfig - ContextConfig: > Initializing > 2009-10-04 16:04:23,327 DEBUG main > org.apache.catalina.startup.ContextConfig - Processing context [/Spc] > configuration file D:\apache-tomcat-6.0.18 conf/context.xml > 2009-10-04 16:04:23,327 DEBUG main > org.apache.catalina.startup.ContextConfig - Processing context [/Spc] > configuration file D:\apache-tomcat-6.0.18\conf > Catalina/localhost/context.xml.default > > [ This is almost a 4 minute delay ] > > 2009-10-04 16:08:19,481 DEBUG main > org.apache.catalina.core.StandardContext - Starting /Spc > 2009-10-04 16:08:19,481 DEBUG main > org.apache.catalina.core.StandardContext - Registering > j2eeType=WebModule,name=//localhost/Spc,J2EEApplication=none,J2EEServe > r=none for null > > I'm at a loss since I startup and shutdown Tomcat during each > iteration. There is no context file in conf or > conf/Catalina/localhost. I don't delete to the RecycleBin. > > If anyone can tell me what I'm doing wrong or what may be causing the > delay, I'd appreciate it. >