Freeman, I have tried :
<Import-Package> javax.jws, META-INF.cxf, META-INF.cxf.transport.nmr, javax.ejb, javax.ejb.spi, javax.xml </Import-Package> And now, it seems to work. I have another error : Caused by: java.lang.IllegalArgumentException: Cannot find class [com.fimasys.finance.profinance.components.simulation.common.ejb.AutomaticSimulationSession]. Root cause: java.lang.ClassNotFoundException: com.fimasys.finance.profinance.components.simulation.common.ejb.AutomaticSimulationSession This class is define in dependency (in the pom.xml). I was thinking that the Felix maven plugin add dependencies in the OSGi bundle but it seems not. How can I add static dependencies like this ? Thanks Regards -- Jean-Baptiste Onofré [EMAIL PROTECTED] BuildProcess/AutoDeploy Project Leader http://buildprocess.sourceforge.net On Tue 04/11/08 10:48, Freeman Fang [EMAIL PROTECTED] wrote: How about use javax.jws, META-INF.cxf, META-INF.cxf.transport.nmr, javax.ejb, javax.ejb,spi, javax.xml Jean-Baptiste Onofré wrote: > Hi Freeman, > > In the bundle pom.xml, I have set : > > > javax.jws, > META-INF.cxf, > META-INF.cxf.transport.nmr, > javax.ejb*;version="3.0", > javax.xml > > > During the build (using mvn > org.apache.felix:maven-bundle-plugin:bundle), I have this warning : > [WARNING] Warning building bundle > com.fimasys.fsb:automatic-simulation-osgi-service:bundle:4.0 : Did not > find matching referal for javax.ejb* > whereas I haven't this using javax.ejb directly. > > Nevertheless, I have deployed the bundle but the behavior is the > same : java.lang.NoClassDefFoundError: javax/ejb/EJBObject > > Here is my bundle MANIFEST.MF (with javax.ejb*;version="3.0") : > Manifest-Version: 1.0 > Built-By: jb > Created-By: Apache Maven Bundle Plugin > Import-Package: > META-INF.cxf,META-INF.cxf.transport.nmr,javax.jws,java > x.xml > Bnd-LastModified: 1225790605755 > Bundle-Version: 4.0 > Bundle-Name: FSB :: Services :: OSGi :: Automatic Simulation > Build-Jdk: 1.5.0_14 > Private-Package: com.fimasys.fsb.services > Bundle-ManifestVersion: 2 > Bundle-SymbolicName: automatic-simulation-osgi-service > Tool: Bnd-0.0.255 > Require-Bundle: org.apache.servicemix.bundles.woodstox-3.2.3 > > and here is the MANIFEST.MF using javax.ejb without version : > Manifest-Version: 1.0 > Built-By: jb > Created-By: Apache Maven Bundle Plugin > Import-Package: > META-INF.cxf,META-INF.cxf.transport.nmr,javax.ejb;vers > ion="3.0",javax.jws,javax.xml > Bnd-LastModified: 1225790754188 > Bundle-Version: 4.0 > Bundle-Name: FSB :: Services :: OSGi :: Automatic Simulation > Build-Jdk: 1.5.0_14 > Private-Package: com.fimasys.fsb.services > Bundle-ManifestVersion: 2 > Bundle-SymbolicName: automatic-simulation-osgi-service > Tool: Bnd-0.0.255 > Require-Bundle: org.apache.servicemix.bundles.woodstox-3.2.3 > > Strange isn't it ? > > Regards > JB > -- > Jean-Baptiste Onofré > [EMAIL PROTECTED] [1] > BuildProcess/AutoDeploy Project Leader > http://buildprocess.sourceforge.net [2]> > > On Tue 04/11/08 10:01, Freeman Fang [EMAIL PROTECTED] [3] wrote: > Hi, > > Please try with import javax.ejb*;version="3.0" > And could you please append the MENIFEST file of your bundle jar if > it > still doesn't work? > > Freeman > > Jean-Baptiste Onofré wrote: > > Hi all, > > > > using ServiceMix 4.0-M1 (with the SMX Kernel 1.0-M2 embedded), I > > have created a CXF NMR OSGi bundle. > > > > In my bundle beans.xml, I have : > > > > > > > > Links: > ------ > [1] http://www.w3.org/2001/XMLSchema-instance [4]> > [2] http://cxf.apache.org/jaxws [5]> > [3] http://www.springframework.org/schema/beans [6]> > [4] http://www.springframework.org/schema/beans/spring-beans.xsd [7]> > [5] http://cxf.apache.org/jaxws [8]> > [6] http://cxf.apache.org/schemas/jaxws.xsd [9]> > [7] http://webmail.nanthrax.net/jnp://srvfms-24.fimasys.fr:1299 [10]> > [8] http://www.w3.org/2001/XMLSchema-instance [11]> > [9] http://maven.apache.org/POM/4.0.0 [12]> > [10] http://maven.apache.org/maven-v4_0_0.xsd [13]> > [11] http://fsb.fimasys.com [14]> > [12] http://fsb.fimasys.com [15]> > [13] [EMAIL PROTECTED] [16] > [14] > http://webmail.nanthrax.net/bundle://86.0:0/META-INF/spring/beans.xml]: [17]> > [15] [EMAIL PROTECTED] [18] > [16] http://buildprocess.sourceforge.net [19]> > [17] http://www.springframework.org/schema/beans [20]> > [18] > http://www.springframework.org/schema/beans/spring-beans.xsd [21]> > [19] http://cxf.apache.org/jaxws [22]> > [20] http://cxf.apache.org/schemas/jaxws.xsd [23]> > [21] http://maven.apache.org/maven-v4_0_0.xsd [24]> > > Links: ------ [1] mailto:[EMAIL PROTECTED] [2] http://buildprocess.sourceforge.net</font [3] mailto:[EMAIL PROTECTED] [4] http://www.w3.org/2001/XMLSchema-instance</font [5] http://cxf.apache.org/jaxws</font [6] http://www.springframework.org/schema/beans</font [7] http://www.springframework.org/schema/beans/spring-beans.xsd</font [8] http://cxf.apache.org/jaxws</font [9] http://cxf.apache.org/schemas/jaxws.xsd</font [10] http://webmail.nanthrax.net/jnp://srvfms-24.fimasys.fr:1299</font</font [11] http://www.w3.org/2001/XMLSchema-instance</font [12] http://maven.apache.org/POM/4.0.0</font</font [13] http://maven.apache.org/maven-v4_0_0.xsd</font [14] http://fsb.fimasys.com</url></font</font [15] http://fsb.fimasys.com</url></font</font [16] mailto:[EMAIL PROTECTED] [17] http://webmail.nanthrax.net/bundle://86.0:0/META-INF/spring/beans.xml]:</font [18] mailto:[EMAIL PROTECTED] [19] http://buildprocess.sourceforge.net</font</font [20] http://www.springframework.org/schema/beans</font</font [21] http://www.springframework.org/schema/beans/spring-beans.xsd</font</font [22] http://cxf.apache.org/jaxws</font</font [23] http://cxf.apache.org/schemas/jaxws.xsd</font</font [24] http://maven.apache.org/maven-v4_0_0.xsd</font</font
