semaifour / myschedule

Automatically exported from code.google.com/p/myschedule
0 stars 1 forks source link

war deploy issues with latest tomcat #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install latest tomcat (7.0.28)
2. deploy latest myschedule war (2.4.3)
3. tomcat takes about 90 seconds to start, normally takes about a second.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

platform: mac osx v11.4.0

java: v1.6.0_33

Original issue reported on code.google.com by uove...@gmail.com on 20 Jun 2012 at 9:49

GoogleCodeExporter commented 9 years ago
Hi there,

Can you please provide more info? What did the tomcat log output say its doing? 
Did you have old MySchedule config that it try's to startup a scheduler during 
tomcat starts?

Zemian

Original comment by saltnlight5 on 21 Jun 2012 at 3:16

GoogleCodeExporter commented 9 years ago
Hi Zemian,

Certainly - please review the attached catalina.out for v7.0.27, v7.0.28.

Don't believe I have any old Myschedule configs contributing - tested with 
generic myschedule-2.4.3.war.

Let me know of any more I can provide - thanks

John

Original comment by uove...@gmail.com on 23 Jun 2012 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago
Hi John,

You gave me two example logs, and they both have started successfully without 
error.  So what happen when you go visit http://localhost:8080/myschedule-2.4.3 
?

I also see from your log that you already deployed other applications on it. 
Are you sure it's not these that give you problems?

You attached two logs, and both of them started with other application in it. 
Are you sure it's not those app that's giving you problem? 

Jun 23, 2012 8:50:46 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive 
/opt/apache-tomcat-7.0.28/webapps/authsub_sample.war

Jun 23, 2012 8:39:40 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory 
/opt/apache-tomcat-7.0.27/webapps/snippet
Jun 23, 2012 8:39:40 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory 
/opt/apache-tomcat-7.0.27/webapps/uxfwork
Jun 23, 2012 8:39:40 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory 
/opt/apache-tomcat-7.0.27/webapps/uxfworkft

These are not part of Tomcat installation.

I have an iMac and running a vanilla Tomcat 7.0.28, and MySchedule should 
starts within 2 seconds.

Original comment by saltnlight5 on 23 Jun 2012 at 7:36

GoogleCodeExporter commented 9 years ago
Also, if you want to troubleshoot MySchedule, you can try adding a 
log4j.properties file into $TOMCAT_HOME/lib directory. It should shows you 
what's going on when the MySchedule is starting up.

Here is an example of an log4j.properties:

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.conversionPattern=%d %-5p %t %c:%L| %m%n
log4j.rootLogger=INFO, CONSOLE
log4j.logger.myschedule=DEBUG

Original comment by saltnlight5 on 23 Jun 2012 at 7:38

GoogleCodeExporter commented 9 years ago
Hi Zemian,

Thanks for the tip on this - I'll do some checking.

Regarding the logs, please note the tomcat start-up times for the issue.

INFO: Server startup in 1460 ms (7.0.27)

vs.

INFO: Server startup in 87955 ms (7.0.28)

I have extra projects only in my 7.0.27 - no performance issue. 

Let me know of any ideas/thoughts - thanks.

My jdk is v1.6.0_33, btw.

John

Original comment by uove...@gmail.com on 26 Jun 2012 at 10:23

GoogleCodeExporter commented 9 years ago
John, do you still have this problem? I can't reproduce.

Original comment by saltnlight5 on 12 Jul 2012 at 1:11

GoogleCodeExporter commented 9 years ago
Close for not reproducible.

Original comment by saltnlight5 on 21 Aug 2012 at 12:57