Perhaps you can make changes to the pom.xml in the jtopen directory underneath the wrapping directory. Previously I was excluding com.ibm.* I changed this to
Code:
<Import-Package>com.ibm.sslight.*;resolution:=optional,com.ibm.gsk.*;resolution:=optional,com.ibm.cfwk.*;resolution:=optional,com.ibm.as400.ui.*;resolution:=optional,com.ibm.db2.jdbc.app.*;resolution:=optional,javax.servlet.*;resolution:=optional,sun.misc.*;resolution:=optional,*</Import-Package>
However it still gives the same error. You could tweak these settings, by first removing com.ibm.sslight.* to see what errors result. The driver needs a minimum set of dependencies for it to work, and making com.ibm.* optional was too severe. Make sure your database.properties in the project has the correct connection parameters.
Procedure is:
1) make change in pom.xml of <roo dir>/wrapping/jtopen
2) run mvn clean install in <roo dir>/wrapping/jtopen
3) run mvn clean install in <roo dir>/addon-jdbc
4) start roo with
Code:
rm -rf <roo dir>/bootstrap/target/osgi; roo-dev
You will see errors in the dependencies in the startup. These can then be added to the Import-Package statement. Then repeat the process until no errors occur. The example above of com.ibm.sslight.* may need to be com.ibm.sslight.foo.* for example, but you will see this in the error message when Roo starts. Let me know if you don't understand what I have said or are having trouble.
We're doing a release next week and I am flat out at the moment on other things, so would appreciate it.
Would you also log a bug on this in Jira?
Thanks
Alan