geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jacek.bukowski" <jacek.bukow...@rec-global.com>
Subject Cannot create CAR with EBA module
Date Tue, 14 Aug 2012 10:50:09 GMT
Hi,
I am trying to build geronimo plugin from my EBA application. I've tried
with my EBA application which deploys correctly when I place EBA file into
deploy directory, but car-maven-plugin throws error when building car for
it. I have also tried with sample aries EBA application (just in case my eba
have some problem). The result is the same, it complains about lack of
MANIFEST.MF:

[org.apache.geronimo.system.configuration.DependencyManager] : Starting
artifact: DependencyType [org.apache.aries.sampl
es.ariestrader/org.apache.aries.samples.ariestrader.jdbc/0.3/eba:ALL]
[org.apache.geronimo.system.configuration.DependencyManager] : Could not
install bundle dependecy
org.osgi.framework.BundleException: Error converting plugin at
C:\Users\wro00093\.m2\repository\org\apache\aries\samples
\ariestrader\org.apache.aries.samples.ariestrader.jdbc\0.3\org.apache.aries.samples.ariestrader.jdbc-0.3.eba.
        at
org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.generateManifest(EclipseStorageHook.java:451)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getGeneratedManifest0(EclipseStorageHook.java:42
8)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getGeneratedManifest(EclipseStorageHook.java:397
)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.createCachedManifest(EclipseStorageHook.java:392
)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getManifest(EclipseStorageHook.java:512)
        at
org.eclipse.osgi.internal.baseadaptor.BaseStorage.loadManifest(BaseStorage.java:316)
        at
org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:82)
        at
org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:930)
        at
org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:838)
        at
org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:1)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:897)
        at
org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:833)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:137)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:131)
        at
org.apache.geronimo.system.configuration.DependencyManager.starting(DependencyManager.java:498)
        at
org.apache.geronimo.system.configuration.DependencyManager.bundleChanged(DependencyManager.java:120)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
        at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1523)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1459)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1454)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:367)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
        at
org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:204)
        at
org.apache.geronimo.deployment.DeploymentContext.initializeConfiguration(DeploymentContext.java:192)
        at
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfiguration(ServiceConfigBuilder.java:251)

        at
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfiguration(ServiceConfigBuilder.java:211)

        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
        at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
        at
org.apache.geronimo.mavenplugins.car.PackageMojo.invokeDeployer(PackageMojo.java:525)
        at
org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(PackageMojo.java:338)
        at
org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:229)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by:
org.eclipse.osgi.service.pluginconversion.PluginConversionException: Could
not find a META-INF/MANIFEST.MF, p
lugin.xml or a fragment.xml in
C:\Users\wro00093\.m2\repository\org\apache\aries\samples\ariestrader\org.apache.aries.sa
mples.ariestrader.jdbc\0.3\org.apache.aries.samples.ariestrader.jdbc-0.3.eba.
        at
org.eclipse.core.runtime.internal.adaptor.PluginConverterImpl.fillPluginInfo(PluginConverterImpl.java:114)
        at
org.eclipse.core.runtime.internal.adaptor.PluginConverterImpl.convertManifest(PluginConverterImpl.java:714)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.generateManifest(EclipseStorageHook.java:448)


 I've got following in pom.xml:

  <dependencies>
    <dependency>
  		<groupId>org.apache.aries.samples.ariestrader</groupId>
  		<artifactId>org.apache.aries.samples.ariestrader.jdbc</artifactId>
  		<version>0.3</version>
  		<type>eba</type>
  	</dependency>
  	
   <dependency>
        <groupId>org.apache.geronimo.configs</groupId>
        <artifactId>j2ee-deployer</artifactId>
        <version>${geronimoVersion}</version>
        <type>car</type>
    </dependency>
    <dependency>
        <groupId>org.apache.geronimo.framework</groupId>
        <artifactId>plugin</artifactId>
        <version>${geronimoVersion}</version>
        <type>car</type>
    </dependency>
    <dependency>
        <groupId>org.apache.geronimo.framework</groupId>
        <artifactId>geronimo-deploy-jsr88</artifactId>
        <version>${geronimoVersion}</version>
    </dependency>
  </dependencies>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.geronimo.buildsupport</groupId>
        <artifactId>car-maven-plugin</artifactId>
        <configuration>
          <category>Test</category>
          <osgiApproved>true</osgiApproved>
          <deploymentConfigs>
			<deploymentConfig>${gbeanDeployer}</deploymentConfig>
			<deploymentConfig>${ariesDeployer}</deploymentConfig>
		  </deploymentConfigs>
          <module>
            <groupId>org.apache.aries.samples.ariestrader</groupId>
	  	    <artifactId>org.apache.aries.samples.ariestrader.jdbc</artifactId>
	  	    <version>0.3</version>
	  	    <type>eba</type>
          </module>
          <useMavenDependencies>
              <value>true</value>
              <includeVersion>true</includeVersion>
          </useMavenDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>

and plan.xml is:
 <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
 </module>

Has anyone an idea what is wrong here?

Thanks,
Jacek



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Cannot-create-CAR-with-EBA-module-tp3985601.html
Sent from the Development mailing list archive at Nabble.com.

Mime
View raw message