This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Duplicate Deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Duplicate Deploy" Watch "Tomcat Duplicate Deploy" New topic
Author

Tomcat Duplicate Deploy

TirupathiRao Pattapuraju
Greenhorn

Joined: Dec 09, 2010
Posts: 7
Hi All,

I am facing a strange issue where my applications are getting deployed mutliple times.

I deployed a webapplication which comprises a listener for quartz scheduler(web-inf.xml listener). and when i started the tomcat i see 3 times that same application is getting deployed and hence the scheduler is running 3 threads which is casuing chaos.

Please help me in this regards.

Thanks and Regards
TirupathiRao.P

***************************************
2011-10-12 12:42:24 Commons Daemon procrun stdout initialized0 0 11 * * ?
[INFO] Job execution threads will use class loader of thread: main
[INFO] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
[INFO] Quartz Scheduler v.1.8.5 created.
[INFO] RAMJobStore initialized.
[INFO] Scheduler meta-data: Quartz Scheduler (v1.8.5) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

[INFO] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
[INFO] Quartz scheduler version: 1.8.5
[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/addressing-1.5.4.mar
[INFO] Deploying module: metadataExchange-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/mex-1.5.4.mar
[INFO] Deploying module: mtompolicy-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/mtompolicy-1.5.4.mar
[INFO] Deploying module: ping-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/ping-1.5.4.mar
[INFO] Deploying module: script-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/scripting-1.5.4.mar
[INFO] Deploying module: soapmonitor-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/soapmonitor-1.5.4.mar
[INFO] Deploying Web service: version.aar - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/services/version.aar
[WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!


0 0 11 * * ?
[INFO] Job execution threads will use class loader of thread: main
[INFO] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
[INFO] Quartz Scheduler v.1.8.5 created.
[INFO] RAMJobStore initialized.
[INFO] Scheduler meta-data: Quartz Scheduler (v1.8.5) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

[INFO] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
[INFO] Quartz scheduler version: 1.8.5
[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/addressing-1.5.4.mar
[INFO] Deploying module: metadataExchange-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/mex-1.5.4.mar
[INFO] Deploying module: mtompolicy-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/mtompolicy-1.5.4.mar
[INFO] Deploying module: ping-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/ping-1.5.4.mar
[INFO] Deploying module: script-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/scripting-1.5.4.mar
[INFO] Deploying module: soapmonitor-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/soapmonitor-1.5.4.mar
[INFO] Deploying Web service: version.aar - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/services/version.aar
[WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!


0 0 11 * * ?
[INFO] Job execution threads will use class loader of thread: main
[INFO] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
[INFO] Quartz Scheduler v.1.8.5 created.
[INFO] RAMJobStore initialized.
[INFO] Scheduler meta-data: Quartz Scheduler (v1.8.5) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

[INFO] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
[INFO] Quartz scheduler version: 1.8.5
[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/addressing-1.5.4.mar
[INFO] Deploying module: metadataExchange-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/mex-1.5.4.mar
[INFO] Deploying module: mtompolicy-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/mtompolicy-1.5.4.mar
[INFO] Deploying module: ping-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/ping-1.5.4.mar
[INFO] Deploying module: script-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/scripting-1.5.4.mar
[INFO] Deploying module: soapmonitor-1.5.4 - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/modules/soapmonitor-1.5.4.mar
[INFO] Deploying Web service: version.aar - file:/C:/Program Files (x86)/Apache Software Foundation/Tomcat 6.0/webapps/TEST_APP/WEB-INF/services/version.aar
[WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!


********************************************
TirupathiRao Pattapuraju
Greenhorn

Joined: Dec 09, 2010
Posts: 7
Hi Friends,

I came to know all this is because of the virtual host i configured in server.xml.So i removed additional one and then it came to two threads.but still 2 threads are there.

here is what i did for the host in server.xml



If i remove the context only 1 thread is running but i need that context for specififying the docbase.


Pleae help me to sort this out.


Thanks and Regards
TirupathiRao.P
 
 
subject: Tomcat Duplicate Deploy