I’ve been unable to fix this issue despite all the references to it in the SDK docs. I’m trying to get a pre-existing web app working with the Web Client, following the instructions under Integration of Existing Web Application.
An Import-Package could not be resolved. Resolver error data <Import-Package: org.apache.wicket.protocol.http.WicketFilter; version="0.0.0">. Caused by missing constraint in bundle <com.micron.rssdmui.rssdm-ui_1.0.0> constraint: <Import-Package: org.apache.wicket.protocol.http.WicketFilter; version="0.0.0">
I've followed all the steps under vsphere-client-sdk/docs/FAQ.html
How to use 3rd party java libraries?
This section states that as an alternative to using bundler/OSGI bundles you can nest your dependencies within the plugin.
I've included all my jar file dependencies at the root level of my war file like the instructions say (although I also tried WEB-INF/lib).
I've also added Bundle-ClassPath and Import-Package to my manifest as required.
Here is what my manifest file looks like: (omitted company name, .etc)
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.4
Created-By: 1.8.0_45-b14 (Oracle Corporation)
Bundle-Name: <plugin>-ui
Bundle-SymbolicName: com.<company>.<plugin>.<plugin>-ui
Bundle-Version: 1.0.0
Web-ContextPath: vsphere-client/<plugin>
Import-Package: org.apache.wicket.protocol.http.WicketFilter
Bundle-ClassPath: .,wicket-core-1.5.8.jar
The relevant parts of my war file looks like this:
WEB-INF
web.xml
META-INF
MANIFEST.MF
wicket-core-1.5.8.jar
How to solve most ClassNotFoundException or similar errors?
As above, I think I've correctly put the dependency in my bundle's manifest.
Bundle installation fails because "An Import-Package could not be resolved"
I don't think the Import-Packages metadata is wrong, and there's only one plugin package/bundle so I don't think it's an issue with the order of packages being deployed. It mentions that version="0.0.0" is an indication that MANIFEST.MF is missing, but I've checked the contents of the war file I'm generating.
Are there any suggestions? I can attempt to use the bundler tool if I have to, but this web app is relatively simple and I should be able to include a few jar files in it without all this trouble :/