2017-06-08 10 views
0

私はMavenのosgi.wiring.package; (&(osgi.wiring.package = META-INF.cxf)(バージョン> = 2.6.0)(!(バージョン> = 3.0.0)))

mvn archetype:generate 
-DarchetypeGroupId=org.apache.servicemix.tooling 
-DarchetypeArtifactId=servicemix-cxf-code-first-osgi-bundle 
-DarchetypeVersion=2012.01.0.redhat-60024 
-DgroupId=org.fusesource.example 
-DartifactId=cxf-basic 
-Dversion=1.0-SNAPSHOT 
でこのプロジェクトを生成しています

はboundleを作成し、エラーに

Error executing command: Error installing bundles: 
Unable to start bundle mvn:org.fusesource.example/cxf-basic/1.0-SNAPSHOT: Unresolved constraint in bundle cxf-basic [363]: Unable to resolve 363.0: missing requirement [363.0] osgi.wiring.package; (&(osgi.wiring.package=META-INF.cxf)(version>=2.6.0)(!(version>=3.0.0))) 

を取得JBossのヒューズ私にそれをインストールして起動しようとしている私はすでに新しいものと

<plugin> 
      <groupId>org.apache.felix</groupId> 
      <artifactId>maven-bundle-plugin</artifactId> 
      <version>2.3.7</version> 
      <extensions>true</extensions> 
      <configuration> 
       <instructions> 
        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> 
        <Import-Package> 
         javax.jws, 
         javax.wsdl, 
         javax.xml.bind, 
         javax.xml.bind.annotation, 
         javax.xml.namespace, 
         javax.xml.ws, 
         org.apache.cxf.bus, 
         org.apache.cxf.bus.spring, 
         org.apache.cxf.bus.resource, 
         org.apache.cxf.configuration.spring, 
         org.apache.cxf.resource, 
         org.apache.cxf.jaxws, 
         org.apache.cxf.transport.http, 
         org.springframework.beans.factory.config 
        </Import-Package> 
        <Private-Package> 
         !org.fusesource.example.client, 
         org.fusesource.example, 
         org.fusesource.example.types 
        </Private-Package> 
        <Require-Bundle>org.apache.cxf.bundle</Require-Bundle> 
        <!-- 
         <DynamicImport-Package>*</DynamicImport-Package> 
        --> 
       </instructions> 
      </configuration> 
     </plugin> 

のバージョンを変更しようとしましたが、私はそれを行うとき、エラーはわずかに変化するn

Error executing command: Error installing bundles: 
Unable to start bundle mvn:org.fusesource.example/cxf-basic/1.0-SNAPSHOT: Unresolved constraint in bundle cxf-basic [362]: Unable to resolve 362.0: missing requirement [362.0] osgi.wiring.package; (&(osgi.wiring.package=javax.jws)(version>=2.0.0)(!(version>=3.0.0))) 

私は間違っていますか?

+0

のJBossヒューズのどのバージョンを使用しているの?なぜあなたのプロジェクトのような古いアーキタイプですか? –

+0

現時点では、Jboss 6.3.0を使用しています。このアーキタイプをチュートリアルの例として使用して、Jbossの機能を理解する方法を理解しています –

答えて

0

パッケージjavax.jwsがありません。良いバージョン(2.0.0)であなたのコンテナにlibをインストールする必要があります。 それはすでにケースで、あなたが提供されるバージョンを使用したい場合は、この試してみてください。

    <Import-Package> 
         javax.jws;version="[1.0.0, 0)", 
         javax.wsdl, 
         javax.xml.bind, 
         javax.xml.bind.annotation, 
         javax.xml.namespace, 
         javax.xml.ws, 
         org.apache.cxf.bus, 
         org.apache.cxf.bus.spring, 
         org.apache.cxf.bus.resource, 
         org.apache.cxf.configuration.spring, 
         org.apache.cxf.resource, 
         org.apache.cxf.jaxws, 
         org.apache.cxf.transport.http, 
         org.springframework.beans.factory.config 
        </Import-Package> 
関連する問題