Hi Freeman,

 In the bundle pom.xml, I have set :

 <Import-Package>
 javax.jws,
 META-INF.cxf,
 META-INF.cxf.transport.nmr,
 javax.ejb*;version="3.0",
 javax.xml
 </Import-Package>

 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] 
 BuildProcess/AutoDeploy Project Leader 
 http://buildprocess.sourceforge.net

 On Tue 04/11/08 10:01, Freeman Fang [EMAIL PROTECTED] 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
[2] http://cxf.apache.org/jaxws
[3] http://www.springframework.org/schema/beans
[4] http://www.springframework.org/schema/beans/spring-beans.xsd
[5] http://cxf.apache.org/jaxws
[6] http://cxf.apache.org/schemas/jaxws.xsd
[7] http://webmail.nanthrax.net/jnp://srvfms-24.fimasys.fr:1299</font
[8] http://www.w3.org/2001/XMLSchema-instance
[9] http://maven.apache.org/POM/4.0.0</font
[10] http://maven.apache.org/maven-v4_0_0.xsd
[11] http://fsb.fimasys.com&lt;/url&gt;</font
[12] http://fsb.fimasys.com&lt;/url&gt;</font
[13] mailto:[EMAIL PROTECTED]
[14]
http://webmail.nanthrax.net/bundle://86.0:0/META-INF/spring/beans.xml]:
[15] mailto:[EMAIL PROTECTED]
[16] http://buildprocess.sourceforge.net</font
[17] http://www.springframework.org/schema/beans</font
[18]
http://www.springframework.org/schema/beans/spring-beans.xsd</font
[19] http://cxf.apache.org/jaxws</font
[20] http://cxf.apache.org/schemas/jaxws.xsd</font
[21] http://maven.apache.org/maven-v4_0_0.xsd</font

Reply via email to