Bug #883
webWorkerUp stops starting webapps if one webapp fails
Added by Udo Offermann over 12 years ago. Updated over 12 years ago.
Start date:
24.08.2012
Due date:
% Done:
100%
Estimated time:
origin:
Description
webWorkerUp should start as much webapps as possible even if some webapps cannot be started.
However this doesn't work sometimes. An exception in one webapp stops the overall starting process.
You can (hopefully ;-) reproduce this by adding the z2-tenants repository to the z2-base system:
z2TenantsRepository.properties:
com.zfabrik.systemStates.participation=com.zfabrik.boot.main/sysrepo_up com.zfabrik.component.type = com.zfabrik.svncr svncr.url=svn://z2-environment.net/z2_tenants/trunk/l1 svncr.user=z2_site svncr.password=koyote13
Starting of de.ktechnologies/migration
will fail because migrate4j is missing in z2-base which will cause the webapp starting process to stop (so that the eclipsoid webapp is not started for example).
Updated by Udo Offermann over 12 years ago
stacktrace:
08/24 09:48:23 [1]...hers.HomeLauncher[800]: Z2 Home Launcher, (c) ZFabrik Software KG 2010, 2011, 2012 08/24 09:48:23 [1]...ProcessRunnerImpl[800]: Running core build 201208240929 as udoo in z2 home /Users/udoo/dev/z2-base/z2-base.core/run/bin/../.., timezone Europe/Berlin, language de, region null 08/24 09:48:23 [1]...ProcessRunnerImpl[800]: Using VM v1.6.0_33 by Apple Inc. at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home on Mac OS X (arch: 10.6.8) 08/24 09:48:23 [1]...ProcessRunnerImpl[800]: ************************************ 08/24 09:48:23 [1]...ProcessRunnerImpl[800]: *** Running in DEVELOPMENT mode! *** 08/24 09:48:23 [1]...ProcessRunnerImpl[800]: ************************************ 08/24 09:48:23 [1]...entRepositoryImpl[800]: Using GitCR com.zfabrik.boot.config/systemRepository (origin=http://git.z2-environment.net/z2-base.base, branch=master) com.zfabrik.impl.gitcr.GitComponentRepositoryImpl@7595ddb5,repo:246d0e3e, component:com.zfabrik.boot.config/systemRepository, prio:500, checkDepth:1073741823, fileSystem:com.zfabrik.components.provider.fs.FileSystemImpl@420ed262, root:/Users/udoo/dev/z2-base/z2-base.core/run/bin/../../work/repos/246d0e3e/git 08/24 09:48:23 [1]...entRepositoryImpl[800]: Pulled deltas from GitCR com.zfabrik.boot.config/systemRepository (origin=http://git.z2-environment.net/z2-base.base, branch=master) within 251msec 08/24 09:48:23 [1]...devcr.DevRepoImpl[900]: Dev Repository: Registered com.zfabrik.impl.devcr.DevRepoImpl@1e933c07,repo:6e1b1df7, component:com.zfabrik.dev.repo/devRepo, prio:750, workspaces (1): [/Users/udoo/dev/z2-base] 08/24 09:48:23 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/bootrepo_up 08/24 09:48:23 [1]...entRepositoryImpl[800]: Using GitCR environment/samplesRepository (origin=http://git.z2-environment.net/z2-base.samples, branch=master, OPTIONAL) com.zfabrik.impl.gitcr.GitComponentRepositoryImpl@6c618821,repo:4460b737, component:environment/samplesRepository, prio:500, checkDepth:1073741823, fileSystem:com.zfabrik.components.provider.fs.FileSystemImpl@7730661d, root:/Users/udoo/dev/z2-base/z2-base.core/run/bin/../../work/repos/4460b737/git 08/24 09:48:23 [1]...entRepositoryImpl[800]: Pulled deltas from GitCR environment/samplesRepository (origin=http://git.z2-environment.net/z2-base.samples, branch=master, OPTIONAL) within 42msec 08/24 09:48:23 [1]...entRepositoryImpl[800]: Using SVN Repository com.zfabrik.impl.svncr.ComponentRepositoryImpl@3b2601c,repo:ec50b31f, component:environment/z2TenantsRepository, prio:500, url:svn://z2-environment.net/z2_tenants/trunk/l1, username:z2_site 08/24 09:48:24 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/sysrepo_up 08/24 09:48:24 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...ProcessRunnerImpl[800]: Running core build 201208240929 as udoo in z2 home /Users/udoo/dev/z2-base/z2-base.core/run/bin/../.., timezone , language en, region null 08/24 09:48:24 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...ProcessRunnerImpl[800]: Using VM v1.6.0_33 by Apple Inc. at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home on Mac OS X (arch: 10.6.8) 08/24 09:48:24 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...devcr.DevRepoImpl[900]: Dev Repository: Registered com.zfabrik.impl.devcr.DevRepoImpl@76a8a314,repo:6e1b1df7, component:com.zfabrik.dev.repo/devRepo, prio:750, workspaces (1): [/Users/udoo/dev/z2-base] 08/24 09:48:24 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/bootrepo_up 08/24 09:48:24 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/sysrepo_up 08/24 09:48:24 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/process_up 08/24 09:48:25 [30]...ent/webWorker@0.2[800]: 08/24 09:48:24 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/worker_up 08/24 09:48:25 [30]...ent/webWorker@0.2[800]: 08/24 09:48:25 [1]...pp.WebAppResource[800]: Starting WebApp: de.wohnhof-atrium/web 08/24 09:48:25 [29]...ent/webWorker@0.1[800]: INFO org.eclipse.jetty.server.Server - jetty-8.1.4.v20120524 08/24 09:48:25 [29]...ent/webWorker@0.1[800]: INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:8080 08/24 09:48:25 [30]...ent/webWorker@0.2[800]: 08/24 09:48:25 [1]...pp.WebAppResource[800]: Done starting Web App (/atrium): de.wohnhof-atrium/web 08/24 09:48:25 [30]...ent/webWorker@0.2[800]: 08/24 09:48:25 [1]...pp.WebAppResource[800]: Starting WebApp: samples.jsp.imagelib/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Done starting Web App (/wickilext): samples.jsp.imagelib/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.dev.z2unit/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Done starting Web App (/z2unit): com.zfabrik.dev.z2unit/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.admin/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Done starting Web App (/adm): com.zfabrik.admin/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.gateway/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Done starting Web App (/z_gateway): com.zfabrik.gateway/web 08/24 09:48:26 [30]...ent/webWorker@0.2[800]: 08/24 09:48:26 [1]...pp.WebAppResource[800]: Starting WebApp: samples.wicket.imagelib/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: ******************************************************************** 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: *** WARNING: Wicket is running in DEVELOPMENT mode. *** 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: *** ^^^^^^^^^^^ *** 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: *** Do NOT deploy to your live server(s) without changing this. *** 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: *** See Application#getConfigurationType() for more information. *** 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: ******************************************************************** 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Done starting Web App (/wickil): samples.wicket.imagelib/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.dev.eclipsoid.srv/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Done starting Web App (/eclipsoid): com.zfabrik.dev.eclipsoid.srv/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.dev.javadoc/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Done starting Web App (/javadoc): com.zfabrik.dev.javadoc/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.samples.helloworld/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...pp.WebAppResource[800]: Done starting Web App (/helloworld): com.zfabrik.samples.helloworld/web 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...worker.WorkerSoul[1000]: Failed to attain worker target state "environment/webWorkerUp" 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: java.lang.IllegalStateException: Failed to attain system state: environment/webWorkerUp 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.states.SystemStateResource.attain(SystemStateResource.java:193) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.states.SystemStateResource$1.run(SystemStateResource.java:46) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.workers.worker.WorkerSoul._loadStates(WorkerSoul.java:303) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.workers.worker.WorkerSoul.run(WorkerSoul.java:254) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at launchers.WorkerLauncher.main(WorkerLauncher.java:50) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: Caused by: java.lang.IllegalStateException: No component factory found for component de.ktechnologies/migration of type com.zfabrik.schema.migrate4j 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.ComponentResourceWrapper._load(ComponentResourceWrapper.java:252) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.ComponentResourceWrapper._check(ComponentResourceWrapper.java:105) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.ComponentResourceWrapper.as(ComponentResourceWrapper.java:69) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.resources.ResourceHandleImpl.as(ResourceHandleImpl.java:70) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.states.SystemStateResource.attain(SystemStateResource.java:122) 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: ... 4 more 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [30]...ent/webWorker@0.2[800]: 08/24 09:48:28 [1]...worker.WorkerSoul[800]: Completed worker process initialization 08/24 09:48:28 [1]...stemStateResource[800]: System state attained: com.zfabrik.boot.main/home_up 08/24 09:48:28 [1]...hers.HomeLauncher[800]: Completed home process initialization 08/24 10:02:35 [34]...entRepositoryImpl[800]: Pulled deltas from GitCR environment/samplesRepository (origin=http://git.z2-environment.net/z2-base.samples, branch=master, OPTIONAL) within 406msec 08/24 10:02:35 [34]...entRepositoryImpl[800]: Pulled deltas from GitCR com.zfabrik.boot.config/systemRepository (origin=http://git.z2-environment.net/z2-base.base, branch=master) within 36msec 08/24 10:02:35 [34]...hronizationRunner[800]: Found 1 invalidation candidate resources 08/24 10:02:35 [34]...hronizationRunner[800]: Invalidated 0 resources 08/24 10:02:35 [34]...entRepositoryImpl[800]: Pulled deltas from GitCR com.zfabrik.boot.config/systemRepository (origin=http://git.z2-environment.net/z2-base.base, branch=master) within 32msec 08/24 10:02:35 [34]...entRepositoryImpl[800]: Pulled deltas from GitCR environment/samplesRepository (origin=http://git.z2-environment.net/z2-base.samples, branch=master, OPTIONAL) within 32msec 08/24 10:02:35 [30]...ent/webWorker@0.2[800]: 08/24 10:02:35 [19]...pp.WebAppResource[800]: Stopping Web App (/eclipsoid): com.zfabrik.dev.eclipsoid.srv/web 08/24 10:02:35 [30]...ent/webWorker@0.2[800]: 08/24 10:02:35 [19]...worker.WorkerSoul[800]: Invalidated 1 resources 08/24 10:02:40 [30]...ent/webWorker@0.2[800]: 08/24 10:02:40 [19]...pp.WebAppResource[800]: Starting WebApp: com.zfabrik.dev.eclipsoid.srv/web 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: 08/24 10:02:41 [19]...pp.WebAppResource[800]: Done starting Web App (/eclipsoid): com.zfabrik.dev.eclipsoid.srv/web 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: 08/24 10:02:41 [19]...worker.WorkerSoul[1000]: Failed to attain worker target state "environment/webWorkerUp" 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: java.lang.IllegalStateException: Failed to attain system state: environment/webWorkerUp 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.states.SystemStateResource.attain(SystemStateResource.java:193) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.states.SystemStateResource$1.run(SystemStateResource.java:46) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.workers.worker.WorkerSoul._loadStates(WorkerSoul.java:303) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.workers.worker.WorkerSoul.processMessage(WorkerSoul.java:353) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.workers.MessageExchange$MessageHandling.run(MessageExchange.java:123) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.work.WorkUnit.work(WorkUnit.java:346) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.work.ThreadPoolImpl.doIt(ThreadPoolImpl.java:279) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.work.WorkerThread.run(WorkerThread.java:58) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: Caused by: java.lang.IllegalStateException: No component factory found for component de.ktechnologies/migration of type com.zfabrik.schema.migrate4j 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.ComponentResourceWrapper._load(ComponentResourceWrapper.java:252) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.ComponentResourceWrapper._check(ComponentResourceWrapper.java:105) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.ComponentResourceWrapper.as(ComponentResourceWrapper.java:69) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.resources.ResourceHandleImpl.as(ResourceHandleImpl.java:70) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: at com.zfabrik.impl.components.states.SystemStateResource.attain(SystemStateResource.java:122) 08/24 10:02:41 [30]...ent/webWorker@0.2[800]: ... 7 more 08/24 10:02:41 [30]...ent/webWorker@0.2[800]:
Updated by Henning Blohm over 12 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset z2-core:3aeb9686ed5cc9a2cd715fe838dab2843ea64a38.