Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Maven - Unresolved references to [javax.activation, javax.annotation]

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing web application with OSGI. I have a maven configuration error which I cannot find. This is the complete source code:

This is the POM file:

When I try to compile it with Netbeans I get this error:

The problem occurs when I add @Datasource. It seems that I'm missing something in the POM file but I don't have idea what it is?

Any help will be highly appreciated.

Best Wishes Peter
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you need to add a javaee JAR file to the dependencies because that is where I see the javax.activation.DataSource class is located. But I'm not sure about the interaction between OSGI and Maven and who declares what where.

The error that you pointed too seems to have something to do with OSGI configuration files:

Caused by: org.apache.maven.plugin.MojoFailureException: Error(s) found in bundle configuration
at org.apache.felix.bundleplugin.BundlePlugin.execute(

Would be nice if the plugin outlined those errors, but the sheer amount of text you posted is a lot more than I want to look through, especially not knowing OSGI or what info it outputs.

Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic