CRJAZ1218E, the bundle is not resolved error after a custom work item extension (plugin) is deployed
I have developed the extension which sends email to team members if a value of Filed Against Attribute is changed. I am sending html email using this plugin. I am using "org.apache.commons.lang3 (3.6) and org.apache.commons.text (1.3)" to to handle special characters in email body, to use these libraries I had to add these jar files in "Dependencies" tab of plugin project. The plugin is working successfully in Jetty server but if it is deployed on CLM server version 6.0.3 I am getting below error
com.datamato.notificationOnFiledAgainst [36]
Unresolved requirement: Require-Bundle: org.apache.commons.lang3; bundle-version="3.6.0"
Accepted answer
Can you explain me, why the fact that you add a dependency to a plugin or feature or build path, would make this dependency (jar file) being available on the application server, you deploy to?
Comments
I am not sure about that adding dependency to a plugin or build path would make this dependency available to application server. Since we add com.ibm.team.process.service, com.ibm.team.workitem.common, com.ibm.team. workitem.service, com.ibm.team.process.common, com.ibm.team.repository.common, com.ibm.team.repository.service to the dependencies similarly I have added other jar files to in the dependencies which were needed by plugin.
Adding the dependency is not enough. If the dependency is not available in other extensions, you need to also bundle the Jar Files somehow and contain them in the plugin. See
https://jazz.net/forum/questions/93445/server-side-extension-and-spring/93470