I am running into an issue with maven2.0.4 and cargo and deploying an
ejb-jar to weblogic8x.  Has anyone seen a similar issue?

It looks like the name of the artifact is being incorrectly ascertained.


The extension is not being updated to .jar  (instead it uses .ejb) 

I think the relevant code is here 

http://svn.cargo.codehaus.org/browse/~raw,r=1061/cargo/cargo/trunk/exten
sions/maven2/src/main/java/org/codehaus/cargo/maven2/Deployable.java

Is this a bug or am I doing something wrong?

Thanks


mvn -X -e cargo:start
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from:
'/opt/app/devtp/bp6048/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/opt/app/devtp/opusbuild/.gnu/maven-2.0.4/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: net.mycompany.dsc:dsc::1.0 of project:
null:dsc-ejb:ejb:null in relative path: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project: null:dsc-ejb:ejb:null
[INFO] Searching repository for plugin with prefix: 'cargo'.
[DEBUG] maven-ejb-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-ejb-plugin:maven-plugin:2.0 from the repository.
[DEBUG] cargo-maven2-plugin: resolved to version 0.1 from repository
central
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-extensions::0.7
for project: null:cargo-maven2-plugin:maven-plugin:0.1 from the
repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-extensions:pom:null from the repository.
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Device Support Center:: EJB Modules
[INFO]    task-segment: [cargo:start]
[INFO]
------------------------------------------------------------------------
----
[DEBUG] net.mycompany.dsc:dsc-ejb:ejb:1.0 (selected for null)
[DEBUG]   commons-logging:commons-logging:jar:1.0.3:provided (selected
for provided)
[DEBUG]     junit:junit:jar:3.7:provided (selected for provided)
[DEBUG]     logkit:logkit:jar:1.0.1:provided (selected for provided)
[DEBUG]     log4j:log4j:jar:1.2.6:provided (selected for provided)
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee_1.4_spec:jar:1.0:provided
(selected for provided)
[DEBUG] org.codehaus.cargo:cargo-maven2-plugin:maven-plugin:0.1:runtime
(selected for runtime)
[DEBUG]   javax.servlet:jsp-api:jar:2.0:runtime (selected for runtime)
[DEBUG]     javax.servlet:servlet-api:jar:2.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-weblogic:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]
org.codehaus.cargo:cargo-core-container-weblogic:jar:0.7:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core-api::0.7
for project: null:cargo-core-api-container:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-api:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]     org.codehaus.cargo:cargo-core-api-container:jar:0.7:runtime
(selected for runtime)
[DEBUG]       ant:ant:jar:1.5.4:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core-api::0.7
for project: null:cargo-core-api-module:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-api:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]       org.codehaus.cargo:cargo-core-api-module:jar:0.7:runtime
(selected for runtime)
[DEBUG]         xml-apis:xml-apis:jar:1.3.02:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core-api::0.7
for project: null:cargo-core-api-util:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-api:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]         org.codehaus.cargo:cargo-core-api-util:jar:0.7:runtime
(selected for runtime)
[DEBUG]         xerces:xercesImpl:jar:2.6.2:runtime (selected for
runtime)
[DEBUG]
geronimo-spec:geronimo-spec-j2ee-deployment:jar:1.1-rc4:runtime
(selected for runtime)
[DEBUG]   javax.servlet:servlet-api:jar:2.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-jo:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-container-jo:jar:0.7:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-orion:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-container-orion:jar:0.7:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-tomcat:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-container-tomcat:jar:0.7:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-jboss:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-container-jboss:jar:0.7:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core-api::0.7
for project: null:cargo-core-api-generic:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-api:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-api-generic:jar:0.7:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-resin:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-container-resin:jar:0.7:runtime
(selected for runtime)
[DEBUG]   tomcat:jasper-compiler:jar:4.1.30:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-core-containers::0.7 for project:
null:cargo-core-container-jetty:jar:0.7 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo-core::0.7 for
project: null:cargo-core-containers:pom:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.7 for
project: null:cargo-core:pom:null from the repository.
[DEBUG]   org.codehaus.cargo:cargo-core-container-jetty:jar:0.7:runtime
(selected for runtime)
[DEBUG]   tomcat:jasper-runtime:jar:4.1.30:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-project:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-artifact:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-model:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-artifact-manager:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-repository-metadata:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime
(selected for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-profile:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-plugin-api:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtime)
[DEBUG]   jetty:org.mortbay.jetty:jar:4.2.20:runtime (selected for
runtime)
[DEBUG] Configuring mojo
'org.codehaus.cargo:cargo-maven2-plugin:0.1:start' -->
[DEBUG]   (s) containerId = weblogic8x
[DEBUG]   (s) home = /opt/app/devtp/posbea/bea812/weblogic81
[DEBUG]   (s) container = [EMAIL PROTECTED]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) wait = true
[DEBUG] -- end configuration --
[INFO] [cargo:start]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Deployable
[/opt/app/devtp/bp6048/builds/dsc/ejb/target/dsc-ejb-1.0.ejb] does not
exist and thus cannot be deployed.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Deployable
[/opt/app/devtp/bp6048/builds/dsc/ejb/target/dsc-ejb-1.0.ejb] does not
exist and thus cannot be deployed.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:488)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Deployable
[/opt/app/devtp/bp6048/builds/dsc/ejb/target/dsc-ejb-1.0.ejb] does not
exist and thus cannot be deployed.
        at
org.codehaus.cargo.maven2.Deployable.createDeployable(Deployable.java:15
1)
        at
org.codehaus.cargo.maven2.AbstractCargoMojo.createAutoDeployDeployable(A
bstractCargoMojo.java:298)
        at
org.codehaus.cargo.maven2.ContainerStartMojo.addAutoDeployDeployable(Con
tainerStartMojo.java:105)
        at
org.codehaus.cargo.maven2.ContainerStartMojo.execute(ContainerStartMojo.
java:71)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
        ... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Thu Jul 13 13:36:19 EDT 2006
[INFO] Final Memory: 2M/7M
[INFO]
------------------------------------------------------------------------

Bryan Pauquette
Cell:678-654-3049
Work:678-893-2331
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to