Hi,

I'm quite new to Maven as well as Felix, and I'm having some trouble creating a 
bundle which includes everything it needs.

My problem is with using axis for calling an external webservice, I've included 
it as a compile jar in my maven dependencies, and compiling and 'mvn clean 
install' goes through without warnings. Once I put it up on the remote server, 
and attempt to start it in FUSE, I get the message "The bundle could not be 
resolved. Reason: Missing Constraint: Import-Package: javax.xml.rpc". I tried a 
long range of solutions, until I found that I could wrap jaxrpc.jar to a .bar, 
place it in FUSE's deploy folder, and then the missing constraint was resolved 
(after this, it was missing some axis classes, but by doing the same exercise 
with axis.jar into .bar, I resolved all missing dependencies, including the 
first one, which axis also includes).

So basicly, I can make it work. However we'd very much like to have these 
packages selfsufficient, rather than having them depend on us creating bar's. I 
reckoned this could instead be solved by the felix plugin instructions, either 
by "Embed-Dependency" or "Private-Package", including org.apache.axis* here, 
also made the resulting bundle much larger, and I assumed all would be well, 
but trying to start it on FUSE, now demanded that I install com.sun.jimi.core 
too. This has me rather confused, as it worked without it when I made the .bar.
I'm guessing this missing dependency, is due to a reference somewhere inside 
axis (I never use it), and I'm guessing, even if I resolved this, and made my 
bundle even larger, I'd run into a near endless road of having to include every 
referenced package, and their packages etc. So I'm guessing I'm doing something 
wrong, however I can't figure out what.

Does anyone have a piece of advice, or a good source where I could read further 
on this subject?

Been reading 
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html, along 
with much other material and forum post/old mailing lists, but without any luck.

Any help would be much appreciated,

Sincerely,
Morten Engel.

Reply via email to