If you want to use Axis 1.4.0, you can use the bundles from the
SpringSource repo. Starting with:
http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.axis&version=1.4.0&searchType=bundlesByName&searchQuery=axis

and also ensuring that all of the require imports are satisfied.
SpringSource provides bundles for those dependencies (see the Required
Dependencies section of the page above), but I imagine that FUSE already
has some of these installed.

You shouldn't be trying to create self-sufficient bundles. Even if you
are using a library for which no one has created an OSGi-friendly
version, it would be better to bundelize the library rather than using
Embed-Dependency.

Justin

On 7/15/10 5:26 AM, Morten Engel wrote:
> 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.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to