How can I resolve a "java.lang.ClassNotFoundException" error for a newly created and deployed particpant?
I have a newly created participant that updates the parent with the accumulated hours from it's children. The code is from the blog: https://rsjazz.worpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant.
I have configured my development environment according to the Extensions Workshop. I built the update site project in Eclipse, included the feature, and built the site. I shut down the server, copied the features and plug-ins folder and site.xml over to a newly created update-parent-site folder under server/ccm/conf/sites and created a new update-parent-site.ini file in server/ccm/conf/provisioning-profiles and set it to point to the new site folder and used the feature id of "com.ibm.js.team.workitem.extension.updateparent.feature" as shown below:
url=file:ccm/sites/parent-update-site
featureid=com.ibm.js.team.workitem.extension.updateparent.feature
The server was reset and then restarted. The servers provisioning status shows the feature being provisioned as shown below:
CRJAZ0303I The profile install from "file:ccm/sites/parent-update-site" was started at "Wed Dec 07 11:16:35 EST 2016".
CRJAZ0300I This feature is being installed: "com.ibm.js.team.workitem.extension.updateparent.feature_1.0.0.201612061622".
CRJAZ0299I Installing bundle from the URL "file:/C%3a/RTC60Dev/installs/JAZZTE~1/server/conf/ccm/sites/parent-update-site/plugins/com.ibm.js.team.workitem.extension.updateparent.common_1.0.0.201612061622.jar".
CRJAZ0299I Installing bundle from the URL "file:/C%3a/RTC60Dev/installs/JAZZTE~1/server/conf/ccm/sites/parent-update-site/plugins/com.ibm.js.team.workitem.extension.updateparent.participant_1.0.0.201612061622.jar".
CRJAZ0299I Installing bundle from the URL "file:/C%3a/RTC60Dev/installs/JAZZTE~1/server/conf/ccm/sites/parent-update-site/plugins/com.ibm.js.team.api.workitem.common.utils_1.0.0.201612061622.jar".
I was able to create a new project area in Eclipse based on the Scrum template and then was able to see and add the participant as a follow-up action. After I did so and logged into the new project area I received and error stating " Unable to instantiate participant com.ibm.js.team.workitem.extension.updateparent.participant.updateparentduration. CRJAZ6011E" when I tried to save a story work item.
When I looked in the ccm log file I found this:
2016-12-07 12:24:53,412 [Default Executor-thread-1287 @@ 12:24 myadmin <com.ibm.team.process.editProjectArea/Save@70f1b848-0104-4d7f-8db8-456cac819474> /ccm/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/projectArea] ERROR t.internal.registry.AbstractActivationManagerOwner - CRJAZ1093E The "com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState" feature could not start.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1107I The implementation class "com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState" could not loaded from the bundle "com.ibm.js.team.workitem.extension.updateparent.participant".
as well as this:
Caused by: java.lang.ClassNotFoundException: com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState
This is with RTC 6.0.1
Thank you for any assistance provided.
I have configured my development environment according to the Extensions Workshop. I built the update site project in Eclipse, included the feature, and built the site. I shut down the server, copied the features and plug-ins folder and site.xml over to a newly created update-parent-site folder under server/ccm/conf/sites and created a new update-parent-site.ini file in server/ccm/conf/provisioning-profiles and set it to point to the new site folder and used the feature id of "com.ibm.js.team.workitem.extension.updateparent.feature" as shown below:
url=file:ccm/sites/parent-update-site
featureid=com.ibm.js.team.workitem.extension.updateparent.feature
The server was reset and then restarted. The servers provisioning status shows the feature being provisioned as shown below:
CRJAZ0303I The profile install from "file:ccm/sites/parent-update-site" was started at "Wed Dec 07 11:16:35 EST 2016".
CRJAZ0300I This feature is being installed: "com.ibm.js.team.workitem.extension.updateparent.feature_1.0.0.201612061622".
CRJAZ0299I Installing bundle from the URL "file:/C%3a/RTC60Dev/installs/JAZZTE~1/server/conf/ccm/sites/parent-update-site/plugins/com.ibm.js.team.workitem.extension.updateparent.common_1.0.0.201612061622.jar".
CRJAZ0299I Installing bundle from the URL "file:/C%3a/RTC60Dev/installs/JAZZTE~1/server/conf/ccm/sites/parent-update-site/plugins/com.ibm.js.team.workitem.extension.updateparent.participant_1.0.0.201612061622.jar".
CRJAZ0299I Installing bundle from the URL "file:/C%3a/RTC60Dev/installs/JAZZTE~1/server/conf/ccm/sites/parent-update-site/plugins/com.ibm.js.team.api.workitem.common.utils_1.0.0.201612061622.jar".
I was able to create a new project area in Eclipse based on the Scrum template and then was able to see and add the participant as a follow-up action. After I did so and logged into the new project area I received and error stating " Unable to instantiate participant com.ibm.js.team.workitem.extension.updateparent.participant.updateparentduration. CRJAZ6011E" when I tried to save a story work item.
When I looked in the ccm log file I found this:
2016-12-07 12:24:53,412 [Default Executor-thread-1287 @@ 12:24 myadmin <com.ibm.team.process.editProjectArea/Save@70f1b848-0104-4d7f-8db8-456cac819474> /ccm/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/projectArea] ERROR t.internal.registry.AbstractActivationManagerOwner - CRJAZ1093E The "com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState" feature could not start.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1107I The implementation class "com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState" could not loaded from the bundle "com.ibm.js.team.workitem.extension.updateparent.participant".
as well as this:
Caused by: java.lang.ClassNotFoundException: com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState
This is with RTC 6.0.1
Thank you for any assistance provided.
One answer
The error message is pretty clear and means that the class com.ibm.js.team.workitem.extension.updateparent.participant.UpdateParentState can not be found. So you were unsuccessful in creating/building the feature or there is a typo somewhere. The problem is somewhere in your .ini file or more likely in the contents of the plugins and features (folders) created when building the content for the site folder.
Comments
showing 5 of 13
show 8 more comments