geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eugenelai <than...@gmail.com>
Subject Re: CARGO: A tool for easy manipulation of your Java EE server(s) - Now with Geronimo 3.x support!
Date Tue, 25 Sep 2012 02:18:30 GMT
Thanks Ali!

However, just bumped into an error: cannot stop, un-deploy or redeploy
bundle one it got deployed by Cargo previously. 

This is the error stack I got (on Eclipse 3.7)


[INFO] Scanning for projects...
[WARNING] POM for 'biz.aQute:bndlib:pom:1.50.0:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO]
------------------------------------------------------------------------
[INFO] Building xbundle
[INFO]    task-segment: [cargo:deployer-stop]
[INFO]
------------------------------------------------------------------------
[WARNING] POM for 'org.osgi:core:pom:4.3.0:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.osgi:org.osgi.compendium:pom:4.3.0:compile' is
invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [cargo:deployer-stop {execution: default-cli}]
[INFO] [en2.DeployerStopMojo] Resolved container artifact
org.codehaus.cargo:cargo-core-container-geronimo:jar:1.2.5-SNAPSHOT for
container geronimo3x
[INFO] [stalledLocalDeployer] bundle Id: 48
[INFO] [stalledLocalDeployer] bundle version: 1.0.0.SNAPSHOT
[INFO] [stalledLocalDeployer] bundle symbolic name: x.bundle
[INFO] [stalledLocalDeployer] bundle location:
reference:file:/D:/J2EE/geronimo-tomcat7-javaee6-3.0.0/repository/default/x.bundle/1.0.0.SNAPSHOT/x.bundle-1.0.0.SNAPSHOT.jar
[INFO] [stalledLocalDeployer] XBean init
[INFO] [stalledLocalDeployer] 2012-09-25 10:12:13,264 ERROR [DeployTool]
Error: 
[INFO] [stalledLocalDeployer]
org.apache.geronimo.common.DeploymentException: xbundle-1.0-SNAPSHOT does
not appear to be a the name of a module available on the selected server.
Perhaps it has already been stopped or undeployed?  If you're trying to
specify a TargetModuleID, use the syntax TargetName|ModuleName instead. If
you're not sure what's running, try the list-modules command.
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.deployment.plugin.ConfigIDExtractor.identifyTargetModuleIDs(ConfigIDExtractor.java:235)
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.deployment.cli.CommandStart.execute(CommandStart.java:55)
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:171)
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:66)
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
[INFO] [stalledLocalDeployer] 	at
org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
[INFO] [stalledLocalDeployer] XBean destroy
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to stop [xbundle-1.0-SNAPSHOT]
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Failed to stop
[xbundle-1.0-SNAPSHOT]
	at
org.codehaus.cargo.container.geronimo.GeronimoInstalledLocalDeployer.stop(GeronimoInstalledLocalDeployer.java:222)
	at
org.codehaus.cargo.container.geronimo.GeronimoInstalledLocalDeployer.stop(GeronimoInstalledLocalDeployer.java:197)
	at
org.codehaus.cargo.maven2.DeployerStopMojo.performDeployerActionOnSingleDeployable(DeployerStopMojo.java:49)
	at
org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:166)
	at
org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:97)
	at
org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:440)
	at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Tue Sep 25 10:12:14 SGT 2012
[INFO] Final Memory: 17M/245M
[INFO]
------------------------------------------------------------------------


This is my pom.xml:



<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <groupId>x</groupId>
    <artifactId>xbundle</artifactId>
    <version>1.0-SNAPSHOT</version>
    <name>xbundle</name>
    <packaging>bundle</packaging>
    <description>This is a prototype bundle</description>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <build>
    
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.3.7</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                    </instructions>
                </configuration>
            </plugin>
            
           <plugin>
				<groupId>org.codehaus.cargo</groupId>
				<artifactId>cargo-maven2-plugin</artifactId>
				<version>1.2.5-SNAPSHOT</version>
            
			    
			    <configuration>
			    	<container>
				  		<containerId>geronimo3x</containerId>
				  		<type>installed</type>
				  		<home>D:\J2EE\geronimo-tomcat7-javaee6-3.0.0</home>	      
					</container>
				
			      <configuration>
					  <type>existing</type>
			      	  <home>D:\J2EE\geronimo-tomcat7-javaee6-3.0.0</home>
				 </configuration>
	
			      <deployables>
			        <deployable>
				  		<groupId>x</groupId>
				  		<artifactId>xbundle</artifactId>
			          	<type>bundle</type>
			        </deployable>
			      </deployables>
			    </configuration>
			 </plugin>
    
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>core</artifactId>
            <version>4.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.compendium</artifactId>
            <version>4.3.0</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>
        
    </dependencies>
</project>


Can you take a look at this, please?



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/CARGO-A-tool-for-easy-manipulation-of-your-Java-EE-server-s-Now-with-Geronimo-3-x-support-tp3985644p3985753.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message