Results 1 to 1 of 1
- 01-28-2012, 09:53 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 13
- Rep Power
- 0
Maven - Unresolved references to [javax.activation, javax.annotation]
I'm developing web application with OSGI. I have a maven configuration error which I cannot find. This is the complete source code: Download SH_27_test.zip for free on uploading.com
This is the POM file:
When I try to compile it with Netbeans I get this error: cd /home/rcbandit/Desktop/NetBeans/Prototype_3/SH_27; JAVA_HOME=/opt/jdk1.7.0_02 - Pastebin.comJava Code:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.DX_57.osgi.SH_27</groupId> <artifactId>SH_27</artifactId> <version>1.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>SH_27-impl</artifactId> <packaging>bundle</packaging> <name>SH_27-impl</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.core</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>SH_27-api</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>SH_27-api</artifactId> <version>${project.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Import-Package>${pom.groupId}.api, org.osgi.framework</Import-Package> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> <Bundle-Activator>${pom.groupId}.impl.SessionHandleApp</Bundle-Activator> </instructions> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build> <groupId>org.DX_57.osgi.SH_27</groupId> </project>
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
Similar Threads
-
java.lang.NoClassDefFoundError: javax/activation/DataSource
By bbq in forum Advanced JavaReplies: 2Last Post: 07-21-2012, 01:15 AM -
@Valid Annotation causes AbstractMethodError at javax.persistence
By jpm in forum Web FrameworksReplies: 0Last Post: 11-09-2011, 01:47 PM -
javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
By vietnamusa in forum Enterprise JavaBeans (EJB)Replies: 4Last Post: 04-01-2011, 07:47 PM -
javax.microedition.io/ javax.bluetooth
By ahtiven in forum New To JavaReplies: 3Last Post: 01-13-2009, 02:54 PM -
map javax.swing.text.Element to javax.swing.text.View
By elizabeth in forum New To JavaReplies: 1Last Post: 07-30-2007, 07:02 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks